We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d89287 + b973cb7 commit a5e06f2Copy full SHA for a5e06f2
src/tools/compiletest/src/runtest.rs
@@ -1958,6 +1958,12 @@ impl<'test> TestCx<'test> {
1958
None => {}
1959
}
1960
1961
+ // Add `-A unused` before `config` flags and in-test (`props`) flags, so that they can
1962
+ // overwrite this.
1963
+ if let AllowUnused::Yes = allow_unused {
1964
+ rustc.args(&["-A", "unused"]);
1965
+ }
1966
+
1967
if self.props.force_host {
1968
self.maybe_add_external_args(
1969
&mut rustc,
@@ -1980,10 +1986,6 @@ impl<'test> TestCx<'test> {
1980
1986
rustc.arg("-Ctarget-feature=-crt-static");
1981
1987
1982
1988
1983
- if let AllowUnused::Yes = allow_unused {
1984
- rustc.args(&["-A", "unused"]);
1985
- }
-
1989
rustc.args(&self.props.compile_flags);
1990
1991
rustc
0 commit comments