Skip to content

Commit de19c42

Browse files
committed
Pass args after -- to subcommands
1 parent b17ae5b commit de19c42

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/bootstrap/config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ impl Config {
868868

869869
// Set flags.
870870
config.paths = std::mem::take(&mut flags.paths);
871+
config.free_args = std::mem::take(&mut flags.free_args);
871872
config.exclude = flags.exclude.into_iter().map(|path| TaskPath::parse(path)).collect();
872873
config.include_default_paths = flags.include_default_paths;
873874
config.rustc_error_format = flags.error_format;

src/bootstrap/flags.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,7 @@ impl Subcommand {
459459
}
460460
}
461461

462-
pub fn only_modified(
463-
&self) -> bool {
462+
pub fn only_modified(&self) -> bool {
464463
match *self {
465464
Subcommand::Test { only_modified, .. } => only_modified,
466465
_ => false,

src/bootstrap/run.rs

-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ impl Step for Miri {
184184
miri.arg("--").arg("--target").arg(target.rustc_target_arg());
185185
miri.args(builder.config.cmd.args());
186186
miri.args(&builder.config.free_args);
187-
188187
// miri tests need to know about the stage sysroot
189188
miri.env("MIRI_SYSROOT", &miri_sysroot);
190189

0 commit comments

Comments
 (0)