Added a flag to the rustdoc invocation
This CL adds the '-A renamed_and_removed_lints' argument to the rustdoc invocation. This will allow the compiler to be updated even when libraries have not fixed all of the new warnings in their codebase. Bug: 194899248 Test: m rustdoc Change-Id: Ife9fd6dbd7223c9964a8117d60e8be878c8f7332
This commit is contained in:
@@ -332,6 +332,9 @@ func Rustdoc(ctx ModuleContext, main android.Path, deps PathDeps,
|
||||
rustdocFlags = append(rustdocFlags, makeLibFlags(deps)...)
|
||||
docTimestampFile := android.PathForModuleOut(ctx, "rustdoc.timestamp")
|
||||
|
||||
// Silence warnings about renamed lints
|
||||
rustdocFlags = append(rustdocFlags, " -A renamed_and_removed_lints")
|
||||
|
||||
// Yes, the same out directory is used simultaneously by all rustdoc builds.
|
||||
// This is what cargo does. The docs for individual crates get generated to
|
||||
// a subdirectory named for the crate, and rustdoc synchronizes writes to
|
||||
|
Reference in New Issue
Block a user