@@ -28,7 +28,7 @@ fn lib() {
28
28
p. cargo ( "rustc --lib -v -- -C debug-assertions=off" )
29
29
. with_stderr_data ( str![ [ r#"
30
30
[COMPILING] foo v0.0.1 ([ROOT]/foo)
31
- [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib --emit=[..]link[..]-C debuginfo=2 [..]-C debug-assertions=off[..]-C metadata=[..] [..]--out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps`
31
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib --emit=[..]link[..]-C debuginfo=2 [..]-C metadata=[..] [..]--out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps[..]-C debug-assertions=off[..] `
32
32
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
33
33
34
34
"# ] ] )
@@ -46,7 +46,7 @@ fn build_main_and_allow_unstable_options() {
46
46
. with_stderr_data ( str![ [ r#"
47
47
[COMPILING] foo v0.0.1 ([ROOT]/foo)
48
48
[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib --emit=[..]link[..]-C debuginfo=2 [..]-C metadata=[..] --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps`
49
- [RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin --emit=[..]link[..]-C debuginfo=2 [..]-C debug-assertions[..]-C metadata=[..] --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps --extern foo=[ROOT]/foo/target/debug/deps/libfoo-[HASH].rlib`
49
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin --emit=[..]link[..]-C debuginfo=2 [..]-C metadata=[..] --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps --extern foo=[ROOT]/foo/target/debug/deps/libfoo-[HASH].rlib[..]-C debug-assertions[..] `
50
50
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
51
51
52
52
"# ] ] )
@@ -83,7 +83,7 @@ fn build_with_args_to_one_of_multiple_binaries() {
83
83
. with_stderr_data ( str![ [ r#"
84
84
[COMPILING] foo v0.0.1 ([ROOT]/foo)
85
85
[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib --emit=[..]link[..]-C debuginfo=2 [..]-C metadata=[..] --out-dir [..]`
86
- [RUNNING] `rustc --crate-name bar --edition=2015 src/bin/bar.rs [..]--crate-type bin --emit=[..]link[..]-C debuginfo=2 [..]-C debug-assertions [..]`
86
+ [RUNNING] `rustc --crate-name bar --edition=2015 src/bin/bar.rs [..]--crate-type bin --emit=[..]link[..]-C debuginfo=2 [..]-C debug-assertions[..]`
87
87
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
88
88
89
89
"# ] ] )
@@ -358,7 +358,7 @@ fn build_with_args_to_one_of_multiple_tests() {
358
358
. with_stderr_data ( str![ [ r#"
359
359
[COMPILING] foo v0.0.1 ([ROOT]/foo)
360
360
[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib --emit=[..]link[..]-C debuginfo=2 [..]-C metadata=[..] --out-dir [..]`
361
- [RUNNING] `rustc --crate-name bar --edition=2015 tests/bar.rs [..]--emit=[..]link[..]-C debuginfo=2 [..]-C debug-assertions --test [..]`
361
+ [RUNNING] `rustc --crate-name bar --edition=2015 tests/bar.rs [..]--emit=[..]link[..]-C debuginfo=2 [..]--test[..]- C debug-assertions[..]`
362
362
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
363
363
364
364
"# ] ] )
@@ -395,7 +395,7 @@ fn build_foo_with_bar_dependency() {
395
395
[COMPILING] bar v0.1.0 ([ROOT]/bar)
396
396
[RUNNING] `rustc --crate-name bar [..] -C debuginfo=2[..]`
397
397
[COMPILING] foo v0.0.1 ([ROOT]/foo)
398
- [RUNNING] `rustc --crate-name foo [..] -C debuginfo=2 [..]-C debug-assertions [..]`
398
+ [RUNNING] `rustc --crate-name foo [..] -C debuginfo=2 [..]-C debug-assertions[..]`
399
399
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
400
400
401
401
"# ] ] )
@@ -430,7 +430,7 @@ fn build_only_bar_dependency() {
430
430
. with_stderr_data ( str![ [ r#"
431
431
[LOCKING] 1 package to latest compatible version
432
432
[COMPILING] bar v0.1.0 ([ROOT]/bar)
433
- [RUNNING] `rustc --crate-name bar [..]--crate-type lib [..] -C debug-assertions [..]`
433
+ [RUNNING] `rustc --crate-name bar [..]--crate-type lib [..] -C debug-assertions[..]`
434
434
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
435
435
436
436
"# ] ] )
@@ -599,7 +599,7 @@ fn rustc_fingerprint() {
599
599
p. cargo ( "rustc -v -- -C debug-assertions" )
600
600
. with_stderr_data ( str![ [ r#"
601
601
[COMPILING] foo v0.5.0 ([ROOT]/foo)
602
- [RUNNING] `rustc --crate-name foo [..]-C debug-assertions [..]`
602
+ [RUNNING] `rustc --crate-name foo [..]-C debug-assertions[..]`
603
603
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
604
604
605
605
"# ] ] )
@@ -658,7 +658,7 @@ fn rustc_test_with_implicit_bin() {
658
658
. with_stderr_data (
659
659
str![ [ r#"
660
660
[COMPILING] foo v0.5.0 ([ROOT]/foo)
661
- [RUNNING] `rustc --crate-name test1 --edition=2015 tests/test1.rs [..] --cfg foo [..]`
661
+ [RUNNING] `rustc --crate-name test1 --edition=2015 tests/test1.rs [..] --cfg foo[..]`
662
662
[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]`
663
663
...
664
664
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -817,42 +817,11 @@ fn precedence() {
817
817
818
818
p. cargo ( "rustc --release -v -- --cfg cargo_rustc -C strip=symbols" )
819
819
. env ( "RUSTFLAGS" , "--cfg from_rustflags" )
820
- . masquerade_as_nightly_cargo ( & [ "cargo-rustc-precedence" ] )
821
820
. with_stderr_data ( str![ [ r#"
822
821
[COMPILING] foo v0.0.0 ([ROOT]/foo)
823
822
[RUNNING] `rustc [..]-C strip=debuginfo [..]--cfg cargo_rustc -C strip=symbols --cfg from_rustflags`
824
823
[FINISHED] `release` profile [optimized] target(s) in [ELAPSED]s
825
824
826
825
"# ] ] )
827
826
. run ( ) ;
828
-
829
- // Ensure the short-live env var to work
830
- p. cargo ( "clean" ) . run ( ) ;
831
- p. cargo ( "rustc --release -v -- --cfg cargo_rustc -C strip=symbols" )
832
- . env ( "RUSTFLAGS" , "--cfg from_rustflags" )
833
- . env ( "__CARGO_RUSTC_ORIG_ARGS_PRIO" , "1" )
834
- . masquerade_as_nightly_cargo ( & [ "cargo-rustc-precedence" ] )
835
- . with_stderr_data (
836
- str![ [ r#"
837
- [COMPILING] foo v0.0.0 ([ROOT]/foo)
838
- [RUNNING] `rustc [..]--cfg cargo_rustc -C strip=symbols [..]-C strip=debuginfo [..]--cfg from_rustflags`
839
- [FINISHED] `release` profile [optimized] target(s) in [ELAPSED]s
840
-
841
- "# ] ]
842
- )
843
- . run ( ) ;
844
-
845
- // Ensure non-nightly to work as before
846
- p. cargo ( "clean" ) . run ( ) ;
847
- p. cargo ( "rustc --release -v -- --cfg cargo_rustc -C strip=symbols" )
848
- . env ( "RUSTFLAGS" , "--cfg from_rustflags" )
849
- . with_stderr_data (
850
- str![ [ r#"
851
- [COMPILING] foo v0.0.0 ([ROOT]/foo)
852
- [RUNNING] `rustc [..]--cfg cargo_rustc -C strip=symbols [..]-C strip=debuginfo [..]--cfg from_rustflags`
853
- [FINISHED] `release` profile [optimized] target(s) in [ELAPSED]s
854
-
855
- "# ] ]
856
- )
857
- . run ( ) ;
858
827
}
0 commit comments