Skip to content

Commit

Permalink
Rollup merge of rust-lang#70881 - eddyb:stage0-hide-incremental-unuse…
Browse files Browse the repository at this point in the history
…d-attrs, r=Mark-Simulacrum

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

This should alleviate rust-lang#58633 separately from a proper fix.

r? @Mark-Simulacrum
  • Loading branch information
Centril authored Apr 10, 2020
2 parents 426fb27 + b88cb3d commit 4dfa73a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}

Expand Down

0 comments on commit 4dfa73a

Please sign in to comment.