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

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

Change-Id: I0abc4586c6e8c19415d7eac9a8def6e8d4ccea58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-02-15 04:18:57 +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.