Skip to content

Commit

Permalink
sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 10, 2020
1 parent ef17d19 commit a2e8292
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/runtest.rs
Expand Up @@ -1462,11 +1462,10 @@ actual:\n\
}
}

match allow_unused {
AllowUnused::Yes => {
rustc.args(&["-A", "unused"]);
}
AllowUnused::No => {}
// Add `-A unused` before `config` flags and in-test (`props`) flags, so that they can
// overwrite this.
if let AllowUnused::Yes = allow_unused {
rustc.args(&["-A", "unused"]);
}

if self.props.force_host {
Expand Down

0 comments on commit a2e8292

Please sign in to comment.