Merge "Silence rustdoc warnings from 3rd party Crates" am: 9406fc207a

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2436673

Change-Id: Iaa6cd691670b72a0049cc371cb32ea6d3ced74b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-02-15 03:31:13 +00:00
committed by Automerger Merge Worker

View File

@@ -399,7 +399,7 @@ func Rustdoc(ctx ModuleContext, main android.Path, deps PathDeps,
// Silence warnings about renamed lints for third-party crates
modulePath := android.PathForModuleSrc(ctx).String()
if android.IsThirdPartyPath(modulePath) {
rustdocFlags = append(rustdocFlags, " -A renamed_and_removed_lints")
rustdocFlags = append(rustdocFlags, " -A warnings")
}
// Yes, the same out directory is used simultaneously by all rustdoc builds.