@@ -1426,14 +1426,14 @@ fn cargo_default_env_metadata_env_var() {
1426
1426
. with_stderr ( & format ! (
1427
1427
"\
1428
1428
[COMPILING] bar v0.0.1 ([CWD]/bar)
1429
- [RUNNING] `rustc --crate-name bar bar/src/lib.rs [..]--crate-type dylib \
1429
+ [RUNNING] `rustc --crate-name bar --edition=2015 bar/src/lib.rs [..]--crate-type dylib \
1430
1430
--emit=[..]link \
1431
1431
-C prefer-dynamic[..]-C debuginfo=2 [..]\
1432
1432
-C metadata=[..] \
1433
1433
--out-dir [..] \
1434
1434
-L dependency=[CWD]/target/debug/deps`
1435
1435
[COMPILING] foo v0.0.1 ([CWD])
1436
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
1436
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
1437
1437
--emit=[..]link[..]-C debuginfo=2 [..]\
1438
1438
-C metadata=[..] \
1439
1439
-C extra-filename=[..] \
@@ -1454,14 +1454,14 @@ fn cargo_default_env_metadata_env_var() {
1454
1454
. with_stderr ( & format ! (
1455
1455
"\
1456
1456
[COMPILING] bar v0.0.1 ([CWD]/bar)
1457
- [RUNNING] `rustc --crate-name bar bar/src/lib.rs [..]--crate-type dylib \
1457
+ [RUNNING] `rustc --crate-name bar --edition=2015 bar/src/lib.rs [..]--crate-type dylib \
1458
1458
--emit=[..]link \
1459
1459
-C prefer-dynamic[..]-C debuginfo=2 [..]\
1460
1460
-C metadata=[..] \
1461
1461
--out-dir [..] \
1462
1462
-L dependency=[CWD]/target/debug/deps`
1463
1463
[COMPILING] foo v0.0.1 ([CWD])
1464
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
1464
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
1465
1465
--emit=[..]link[..]-C debuginfo=2 [..]\
1466
1466
-C metadata=[..] \
1467
1467
-C extra-filename=[..] \
@@ -2326,7 +2326,7 @@ fn lto_build() {
2326
2326
. with_stderr (
2327
2327
"\
2328
2328
[COMPILING] test v0.0.0 ([CWD])
2329
- [RUNNING] `rustc --crate-name test src/main.rs [..]--crate-type bin \
2329
+ [RUNNING] `rustc --crate-name test --edition=2015 src/main.rs [..]--crate-type bin \
2330
2330
--emit=[..]link \
2331
2331
-C opt-level=3 \
2332
2332
-C lto \
@@ -2344,7 +2344,7 @@ fn verbose_build() {
2344
2344
. with_stderr (
2345
2345
"\
2346
2346
[COMPILING] foo v0.0.1 ([CWD])
2347
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
2347
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
2348
2348
--emit=[..]link[..]-C debuginfo=2 [..]\
2349
2349
-C metadata=[..] \
2350
2350
--out-dir [..] \
@@ -2362,7 +2362,7 @@ fn verbose_release_build() {
2362
2362
. with_stderr (
2363
2363
"\
2364
2364
[COMPILING] foo v0.0.1 ([CWD])
2365
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
2365
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
2366
2366
--emit=[..]link[..]\
2367
2367
-C opt-level=3[..]\
2368
2368
-C metadata=[..] \
@@ -2381,7 +2381,7 @@ fn verbose_release_build_short() {
2381
2381
. with_stderr (
2382
2382
"\
2383
2383
[COMPILING] foo v0.0.1 ([CWD])
2384
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
2384
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
2385
2385
--emit=[..]link[..]\
2386
2386
-C opt-level=3[..]\
2387
2387
-C metadata=[..] \
@@ -2430,7 +2430,7 @@ fn verbose_release_build_deps() {
2430
2430
. with_stderr ( & format ! (
2431
2431
"\
2432
2432
[COMPILING] foo v0.0.0 ([CWD]/foo)
2433
- [RUNNING] `rustc --crate-name foo foo/src/lib.rs [..]\
2433
+ [RUNNING] `rustc --crate-name foo --edition=2015 foo/src/lib.rs [..]\
2434
2434
--crate-type dylib --crate-type rlib \
2435
2435
--emit=[..]link \
2436
2436
-C prefer-dynamic[..]\
@@ -2439,7 +2439,7 @@ fn verbose_release_build_deps() {
2439
2439
--out-dir [..] \
2440
2440
-L dependency=[CWD]/target/release/deps`
2441
2441
[COMPILING] test v0.0.0 ([CWD])
2442
- [RUNNING] `rustc --crate-name test src/lib.rs [..]--crate-type lib \
2442
+ [RUNNING] `rustc --crate-name test --edition=2015 src/lib.rs [..]--crate-type lib \
2443
2443
--emit=[..]link[..]\
2444
2444
-C opt-level=3[..]\
2445
2445
-C metadata=[..] \
@@ -5704,27 +5704,27 @@ fn build_filter_infer_profile() {
5704
5704
5705
5705
p. cargo ( "build -v" )
5706
5706
. with_stderr_contains (
5707
- "[RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
5707
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
5708
5708
--emit=[..]link[..]",
5709
5709
)
5710
5710
. with_stderr_contains (
5711
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5711
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5712
5712
--emit=[..]link[..]",
5713
5713
)
5714
5714
. run ( ) ;
5715
5715
5716
5716
p. root ( ) . join ( "target" ) . rm_rf ( ) ;
5717
5717
p. cargo ( "build -v --test=t1" )
5718
5718
. with_stderr_contains (
5719
- "[RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
5719
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
5720
5720
--emit=[..]link[..]-C debuginfo=2 [..]",
5721
5721
)
5722
5722
. with_stderr_contains (
5723
- "[RUNNING] `rustc --crate-name t1 tests/t1.rs [..]--emit=[..]link[..]\
5723
+ "[RUNNING] `rustc --crate-name t1 --edition=2015 tests/t1.rs [..]--emit=[..]link[..]\
5724
5724
-C debuginfo=2 [..]",
5725
5725
)
5726
5726
. with_stderr_contains (
5727
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5727
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5728
5728
--emit=[..]link[..]-C debuginfo=2 [..]",
5729
5729
)
5730
5730
. run ( ) ;
@@ -5733,16 +5733,16 @@ fn build_filter_infer_profile() {
5733
5733
// Bench uses test profile without `--release`.
5734
5734
p. cargo ( "build -v --bench=b1" )
5735
5735
. with_stderr_contains (
5736
- "[RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
5736
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
5737
5737
--emit=[..]link[..]-C debuginfo=2 [..]",
5738
5738
)
5739
5739
. with_stderr_contains (
5740
- "[RUNNING] `rustc --crate-name b1 benches/b1.rs [..]--emit=[..]link[..]\
5740
+ "[RUNNING] `rustc --crate-name b1 --edition=2015 benches/b1.rs [..]--emit=[..]link[..]\
5741
5741
-C debuginfo=2 [..]",
5742
5742
)
5743
5743
. with_stderr_does_not_contain ( "opt-level" )
5744
5744
. with_stderr_contains (
5745
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5745
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5746
5746
--emit=[..]link[..]-C debuginfo=2 [..]",
5747
5747
)
5748
5748
. run ( ) ;
@@ -5754,17 +5754,17 @@ fn targets_selected_default() {
5754
5754
p. cargo ( "build -v" )
5755
5755
// Binaries.
5756
5756
. with_stderr_contains (
5757
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5757
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5758
5758
--emit=[..]link[..]",
5759
5759
)
5760
5760
// Benchmarks.
5761
5761
. with_stderr_does_not_contain (
5762
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--emit=[..]link \
5762
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--emit=[..]link \
5763
5763
-C opt-level=3 --test [..]",
5764
5764
)
5765
5765
// Unit tests.
5766
5766
. with_stderr_does_not_contain (
5767
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--emit=[..]link[..]\
5767
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--emit=[..]link[..]\
5768
5768
-C debuginfo=2 --test [..]",
5769
5769
)
5770
5770
. run ( ) ;
@@ -5776,12 +5776,12 @@ fn targets_selected_all() {
5776
5776
p. cargo ( "build -v --all-targets" )
5777
5777
// Binaries.
5778
5778
. with_stderr_contains (
5779
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5779
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5780
5780
--emit=[..]link[..]",
5781
5781
)
5782
5782
// Unit tests.
5783
5783
. with_stderr_contains (
5784
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--emit=[..]link[..]\
5784
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--emit=[..]link[..]\
5785
5785
-C debuginfo=2 [..]--test [..]",
5786
5786
)
5787
5787
. run ( ) ;
@@ -5793,12 +5793,12 @@ fn all_targets_no_lib() {
5793
5793
p. cargo ( "build -v --all-targets" )
5794
5794
// Binaries.
5795
5795
. with_stderr_contains (
5796
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--crate-type bin \
5796
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--crate-type bin \
5797
5797
--emit=[..]link[..]",
5798
5798
)
5799
5799
// Unit tests.
5800
5800
. with_stderr_contains (
5801
- "[RUNNING] `rustc --crate-name foo src/main.rs [..]--emit=[..]link[..]\
5801
+ "[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs [..]--emit=[..]link[..]\
5802
5802
-C debuginfo=2 [..]--test [..]",
5803
5803
)
5804
5804
. run ( ) ;
@@ -6271,7 +6271,7 @@ fn build_lib_only() {
6271
6271
. with_stderr (
6272
6272
"\
6273
6273
[COMPILING] foo v0.0.1 ([CWD])
6274
- [RUNNING] `rustc --crate-name foo src/lib.rs [..]--crate-type lib \
6274
+ [RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]--crate-type lib \
6275
6275
--emit=[..]link[..]-C debuginfo=2 [..]\
6276
6276
-C metadata=[..] \
6277
6277
--out-dir [..] \
0 commit comments