Commit b973cb7 1 parent 93dc97a commit b973cb7 Copy full SHA for b973cb7
File tree 1 file changed +6
-4
lines changed
src/tools/compiletest/src
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1958,6 +1958,12 @@ impl<'test> TestCx<'test> {
1958
1958
None => { }
1959
1959
}
1960
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
+
1961
1967
if self . props . force_host {
1962
1968
self . maybe_add_external_args (
1963
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
- }
1986
-
1987
1989
rustc. args ( & self . props . compile_flags ) ;
1988
1990
1989
1991
rustc
You can’t perform that action at this time.
0 commit comments