File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -867,6 +867,7 @@ impl Config {
867
867
868
868
// Set flags.
869
869
config. paths = std:: mem:: take ( & mut flags. paths ) ;
870
+ config. free_args = std:: mem:: take ( & mut flags. free_args ) ;
870
871
config. exclude = flags. exclude . into_iter ( ) . map ( |path| TaskPath :: parse ( path) ) . collect ( ) ;
871
872
config. include_default_paths = flags. include_default_paths ;
872
873
config. rustc_error_format = flags. error_format ;
@@ -879,7 +880,6 @@ impl Config {
879
880
config. keep_stage = flags. keep_stage ;
880
881
config. keep_stage_std = flags. keep_stage_std ;
881
882
config. color = flags. color ;
882
- config. free_args = flags. free_args . clone ( ) . unwrap_or_default ( ) ;
883
883
if matches ! ( flags. deny_warnings, crate :: flags:: Warnings :: Deny ) {
884
884
config. deny_warnings = true ;
885
885
}
Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ pub struct Flags {
149
149
#[ arg( global( true ) ) ]
150
150
/// paths for the subcommand
151
151
pub paths : Vec < PathBuf > ,
152
+ /// arguments passed to subcommands
153
+ #[ arg( global( true ) , last( true ) , value_name = "ARGS" ) ]
154
+ pub free_args : Vec < String > ,
152
155
}
153
156
154
157
impl Flags {
Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ impl Step for Miri {
184
184
miri. arg ( "--" ) . arg ( "--target" ) . arg ( target. rustc_target_arg ( ) ) ;
185
185
miri. args ( builder. config . cmd . args ( ) ) ;
186
186
miri. args ( & builder. config . free_args ) ;
187
-
188
187
// miri tests need to know about the stage sysroot
189
188
miri. env ( "MIRI_SYSROOT" , & miri_sysroot) ;
190
189
You can’t perform that action at this time.
0 commit comments