Skip to content

Commit a2e8292

Browse files
committed
sync with upstream
1 parent ef17d19 commit a2e8292

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/runtest.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,11 +1462,10 @@ actual:\n\
14621462
}
14631463
}
14641464

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

14721471
if self.props.force_host {

0 commit comments

Comments
 (0)