Skip to content

Commit 5e87256

Browse files
committed
rename ./x test's --rustc-args to --compiletest-rustc-args
1 parent 0ad798a commit 5e87256

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

compiler/rustc_codegen_gcc/build_system/src/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> {
552552
&"--stage",
553553
&"0",
554554
&"tests/assembly/asm",
555-
&"--rustc-args",
555+
&"--compiletest-rustc-args",
556556
&rustc_args,
557557
],
558558
Some(&rust_dir),
@@ -1020,7 +1020,7 @@ where
10201020
&"--stage",
10211021
&"0",
10221022
&format!("tests/{}", test_type),
1023-
&"--rustc-args",
1023+
&"--compiletest-rustc-args",
10241024
&rustc_args,
10251025
],
10261026
Some(&rust_path),

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18151815

18161816
let mut flags = if is_rustdoc { Vec::new() } else { vec!["-Crpath".to_string()] };
18171817
flags.push(format!("-Cdebuginfo={}", builder.config.rust_debuginfo_level_tests));
1818-
flags.extend(builder.config.cmd.rustc_args().iter().map(|s| s.to_string()));
1818+
flags.extend(builder.config.cmd.compiletest_rustc_args().iter().map(|s| s.to_string()));
18191819

18201820
if suite != "mir-opt" {
18211821
if let Some(linker) = builder.linker(target) {

src/bootstrap/src/core/builder/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ mod dist {
632632
config.paths = vec!["library/std".into()];
633633
config.cmd = Subcommand::Test {
634634
test_args: vec![],
635-
rustc_args: vec![],
635+
compiletest_rustc_args: vec![],
636636
no_fail_fast: false,
637637
no_doc: true,
638638
doc: false,
@@ -703,7 +703,7 @@ mod dist {
703703
let mut config = configure(&["A-A"], &["A-A"]);
704704
config.cmd = Subcommand::Test {
705705
test_args: vec![],
706-
rustc_args: vec![],
706+
compiletest_rustc_args: vec![],
707707
no_fail_fast: false,
708708
doc: true,
709709
no_doc: false,

src/bootstrap/src/core/config/flags.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ pub enum Subcommand {
349349
test_args: Vec<String>,
350350
/// extra options to pass the compiler when running compiletest tests
351351
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))]
352-
rustc_args: Vec<String>,
352+
compiletest_rustc_args: Vec<String>,
353353
#[arg(long)]
354354
/// do not run doc tests
355355
no_doc: bool,
@@ -496,10 +496,10 @@ impl Subcommand {
496496
}
497497
}
498498

499-
pub fn rustc_args(&self) -> Vec<&str> {
499+
pub fn compiletest_rustc_args(&self) -> Vec<&str> {
500500
match *self {
501-
Subcommand::Test { ref rustc_args, .. } => {
502-
rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
501+
Subcommand::Test { ref compiletest_rustc_args, .. } => {
502+
compiletest_rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
503503
}
504504
_ => vec![],
505505
}

0 commit comments

Comments
 (0)