Silence rustdoc warnings from 3rd party Crates

Test: m rustdoc
Change-Id: I25599845b2bec76d92fd325b62132aeac9dd74c4
This commit is contained in:
Chris Wailes 2023-02-14 16:09:49 -08:00
parent 4d3f11ccb3
commit 7b3eb24e29

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.