Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9953a199 authored by Chris Wailes's avatar Chris Wailes
Browse files

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
parent 06cf460f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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