Skip to content

Commit ef17d19

Browse files
committed
move -A unused further up in the CLI args
1 parent d0feade commit ef17d19

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/runtest.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,13 @@ actual:\n\
14621462
}
14631463
}
14641464

1465+
match allow_unused {
1466+
AllowUnused::Yes => {
1467+
rustc.args(&["-A", "unused"]);
1468+
}
1469+
AllowUnused::No => {}
1470+
}
1471+
14651472
if self.props.force_host {
14661473
rustc.args(self.split_maybe_args(&self.config.host_rustcflags));
14671474
} else {
@@ -1471,13 +1478,6 @@ actual:\n\
14711478
rustc.arg(format!("-Clinker={}", linker));
14721479
}
14731480

1474-
match allow_unused {
1475-
AllowUnused::Yes => {
1476-
rustc.args(&["-A", "unused"]);
1477-
}
1478-
AllowUnused::No => {}
1479-
}
1480-
14811481
rustc.args(&self.props.compile_flags);
14821482

14831483
rustc

0 commit comments

Comments
 (0)