Silence rustdoc warnings from 3rd party Crates
Test: m rustdoc Change-Id: I25599845b2bec76d92fd325b62132aeac9dd74c4
This commit is contained in:
@@ -399,7 +399,7 @@ func Rustdoc(ctx ModuleContext, main android.Path, deps PathDeps,
|
|||||||
// Silence warnings about renamed lints for third-party crates
|
// Silence warnings about renamed lints for third-party crates
|
||||||
modulePath := android.PathForModuleSrc(ctx).String()
|
modulePath := android.PathForModuleSrc(ctx).String()
|
||||||
if android.IsThirdPartyPath(modulePath) {
|
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.
|
// Yes, the same out directory is used simultaneously by all rustdoc builds.
|
||||||
|
Reference in New Issue
Block a user