@@ -172,6 +172,7 @@ fn prepare_for_2018() {
172
172
. build ( ) ;
173
173
174
174
let stderr = "\
175
+ [MIGRATING] Cargo.toml from 2015 edition to 2018
175
176
[CHECKING] foo v0.0.1 ([..])
176
177
[MIGRATING] src/lib.rs from 2015 edition to 2018
177
178
[FIXED] src/lib.rs (2 fixes)
@@ -211,6 +212,7 @@ fn local_paths() {
211
212
p. cargo ( "fix --edition --allow-no-vcs" )
212
213
. with_stderr (
213
214
"\
215
+ [MIGRATING] Cargo.toml from 2015 edition to 2018
214
216
[CHECKING] foo v0.0.1 ([..])
215
217
[MIGRATING] src/lib.rs from 2015 edition to 2018
216
218
[FIXED] src/lib.rs (1 fix)
@@ -298,6 +300,7 @@ fn specify_rustflags() {
298
300
. env ( "RUSTFLAGS" , "-C linker=cc" )
299
301
. with_stderr (
300
302
"\
303
+ [MIGRATING] Cargo.toml from 2015 edition to 2018
301
304
[CHECKING] foo v0.0.1 ([..])
302
305
[MIGRATING] src/lib.rs from 2015 edition to 2018
303
306
[FIXED] src/lib.rs (1 fix)
@@ -770,6 +773,7 @@ https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-proje
770
773
. masquerade_as_nightly_cargo ( & [ "always_nightly" ] )
771
774
. with_stderr ( & format ! (
772
775
"\
776
+ [MIGRATING] Cargo.toml from {latest_stable} edition to {next}
773
777
[CHECKING] foo [..]
774
778
[MIGRATING] src/lib.rs from {latest_stable} edition to {next}
775
779
[FINISHED] [..]
@@ -804,11 +808,11 @@ fn prepare_for_latest_stable() {
804
808
p. cargo ( "fix --edition --allow-no-vcs" )
805
809
. with_stderr ( & format ! (
806
810
"\
811
+ [MIGRATING] Cargo.toml from {previous} edition to {latest_stable}
807
812
[CHECKING] foo [..]
808
- [MIGRATING] src/lib.rs from {} edition to {}
813
+ [MIGRATING] src/lib.rs from {previous } edition to {latest_stable }
809
814
[FINISHED] [..]
810
815
" ,
811
- previous, latest_stable
812
816
) )
813
817
. run ( ) ;
814
818
}
@@ -911,6 +915,7 @@ fn fix_overlapping() {
911
915
p. cargo ( "fix --allow-no-vcs --edition --lib" )
912
916
. with_stderr (
913
917
"\
918
+ [MIGRATING] Cargo.toml from 2015 edition to 2018
914
919
[CHECKING] foo [..]
915
920
[MIGRATING] src/lib.rs from 2015 edition to 2018
916
921
[FIXED] src/lib.rs (2 fixes)
@@ -1202,6 +1207,7 @@ fn only_warn_for_relevant_crates() {
1202
1207
p. cargo ( "fix --allow-no-vcs --edition" )
1203
1208
. with_stderr (
1204
1209
"\
1210
+ [MIGRATING] Cargo.toml from 2015 edition to 2018
1205
1211
[LOCKING] 2 packages to latest compatible versions
1206
1212
[CHECKING] a v0.1.0 ([..])
1207
1213
[CHECKING] foo v0.1.0 ([..])
@@ -1398,6 +1404,7 @@ fn edition_v2_resolver_report() {
1398
1404
1399
1405
p. cargo ( "fix --edition --allow-no-vcs" )
1400
1406
. with_stderr_unordered ( "\
1407
+ [MIGRATING] Cargo.toml from 2018 edition to 2021
1401
1408
[UPDATING] [..]
1402
1409
[LOCKING] 4 packages to latest compatible versions
1403
1410
[DOWNLOADING] crates ...
@@ -1477,6 +1484,7 @@ fn fix_edition_2021() {
1477
1484
p. cargo ( "fix --edition --allow-no-vcs" )
1478
1485
. with_stderr (
1479
1486
"\
1487
+ [MIGRATING] Cargo.toml from 2018 edition to 2021
1480
1488
[CHECKING] foo v0.1.0 [..]
1481
1489
[MIGRATING] src/lib.rs from 2018 edition to 2021
1482
1490
[FIXED] src/lib.rs (1 fix)
@@ -1966,6 +1974,7 @@ edition = "2021"
1966
1974
. masquerade_as_nightly_cargo ( & [ "edition2024" ] )
1967
1975
. with_stderr (
1968
1976
"\
1977
+ [MIGRATING] Cargo.toml from 2021 edition to 2024
1969
1978
[WARNING] `[project]` is deprecated in favor of `[package]`
1970
1979
[CHECKING] foo v0.0.0 ([CWD])
1971
1980
[MIGRATING] src/lib.rs from 2021 edition to 2024
@@ -2018,6 +2027,7 @@ edition = "2021"
2018
2027
. masquerade_as_nightly_cargo ( & [ "edition2024" ] )
2019
2028
. with_stderr (
2020
2029
"\
2030
+ [MIGRATING] Cargo.toml from 2021 edition to 2024
2021
2031
[WARNING] `[project]` is deprecated in favor of `[package]`
2022
2032
[CHECKING] foo v0.0.0 ([CWD])
2023
2033
[MIGRATING] src/lib.rs from 2021 edition to 2024
0 commit comments