Rollup merge of #70881 - eddyb:stage0-hide-incremental-unused-attrs, r=Mark-Simulacrum

bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds.

This should alleviate #58633 separately from a proper fix.

r? @Mark-Simulacrum
This commit is contained in:
Mazdak Farrokhzad 2020-04-11 01:52:24 +02:00 committed by GitHub
commit 4dfa73a0d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1099,6 +1099,13 @@ impl<'a> Builder<'a> {
if self.config.deny_warnings {
rustflags.arg("-Dwarnings");
// FIXME(#58633) hide "unused attribute" errors in incremental
// builds of the standard library, as the underlying checks are
// not yet properly integrated with incremental recompilation.
if mode == Mode::Std && compiler.stage == 0 && self.config.incremental {
rustflags.arg("-Aunused-attributes");
}
}
}