We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef17d19 commit a2e8292Copy full SHA for a2e8292
src/runtest.rs
@@ -1462,11 +1462,10 @@ actual:\n\
1462
}
1463
1464
1465
- match allow_unused {
1466
- AllowUnused::Yes => {
1467
- rustc.args(&["-A", "unused"]);
1468
- }
1469
- 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"]);
1470
1471
1472
if self.props.force_host {
0 commit comments