Skip to content

Commit

Permalink
Rollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-Sim…
Browse files Browse the repository at this point in the history
…ulacrum

bootstrap: also apply unused-attributes hack without deny_warnings

This is a follow-up to #70881 that also silences these warnings when deny_warnings is off. They otherwise spam my screen during development and make it hard to see actual warnings.

Cc  @eddyb r? @Mark-Simulacrum
  • Loading branch information
RalfJung authored May 2, 2020
2 parents cd824a5 + 6c8ae7c commit 72b8a31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,13 +1088,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");
}
// 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 72b8a31

Please sign in to comment.