@@ -172,6 +172,7 @@ fn prepare_for_2018() {
172172 . build ( ) ;
173173
174174 let stderr = "\
175+ [MIGRATING] Cargo.toml from 2015 edition to 2018
175176[CHECKING] foo v0.0.1 ([..])
176177[MIGRATING] src/lib.rs from 2015 edition to 2018
177178[FIXED] src/lib.rs (2 fixes)
@@ -211,6 +212,7 @@ fn local_paths() {
211212 p. cargo ( "fix --edition --allow-no-vcs" )
212213 . with_stderr (
213214 "\
215+ [MIGRATING] Cargo.toml from 2015 edition to 2018
214216[CHECKING] foo v0.0.1 ([..])
215217[MIGRATING] src/lib.rs from 2015 edition to 2018
216218[FIXED] src/lib.rs (1 fix)
@@ -298,6 +300,7 @@ fn specify_rustflags() {
298300 . env ( "RUSTFLAGS" , "-C linker=cc" )
299301 . with_stderr (
300302 "\
303+ [MIGRATING] Cargo.toml from 2015 edition to 2018
301304[CHECKING] foo v0.0.1 ([..])
302305[MIGRATING] src/lib.rs from 2015 edition to 2018
303306[FIXED] src/lib.rs (1 fix)
@@ -770,6 +773,7 @@ https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-proje
770773 . masquerade_as_nightly_cargo ( & [ "always_nightly" ] )
771774 . with_stderr ( & format ! (
772775 "\
776+ [MIGRATING] Cargo.toml from {latest_stable} edition to {next}
773777[CHECKING] foo [..]
774778[MIGRATING] src/lib.rs from {latest_stable} edition to {next}
775779[FINISHED] [..]
@@ -804,11 +808,11 @@ fn prepare_for_latest_stable() {
804808 p. cargo ( "fix --edition --allow-no-vcs" )
805809 . with_stderr ( & format ! (
806810 "\
811+ [MIGRATING] Cargo.toml from {previous} edition to {latest_stable}
807812[CHECKING] foo [..]
808- [MIGRATING] src/lib.rs from {} edition to {}
813+ [MIGRATING] src/lib.rs from {previous } edition to {latest_stable }
809814[FINISHED] [..]
810815" ,
811- previous, latest_stable
812816 ) )
813817 . run ( ) ;
814818}
@@ -911,6 +915,7 @@ fn fix_overlapping() {
911915 p. cargo ( "fix --allow-no-vcs --edition --lib" )
912916 . with_stderr (
913917 "\
918+ [MIGRATING] Cargo.toml from 2015 edition to 2018
914919[CHECKING] foo [..]
915920[MIGRATING] src/lib.rs from 2015 edition to 2018
916921[FIXED] src/lib.rs (2 fixes)
@@ -1202,6 +1207,7 @@ fn only_warn_for_relevant_crates() {
12021207 p. cargo ( "fix --allow-no-vcs --edition" )
12031208 . with_stderr (
12041209 "\
1210+ [MIGRATING] Cargo.toml from 2015 edition to 2018
12051211[LOCKING] 2 packages to latest compatible versions
12061212[CHECKING] a v0.1.0 ([..])
12071213[CHECKING] foo v0.1.0 ([..])
@@ -1398,6 +1404,7 @@ fn edition_v2_resolver_report() {
13981404
13991405 p. cargo ( "fix --edition --allow-no-vcs" )
14001406 . with_stderr_unordered ( "\
1407+ [MIGRATING] Cargo.toml from 2018 edition to 2021
14011408[UPDATING] [..]
14021409[LOCKING] 4 packages to latest compatible versions
14031410[DOWNLOADING] crates ...
@@ -1477,6 +1484,7 @@ fn fix_edition_2021() {
14771484 p. cargo ( "fix --edition --allow-no-vcs" )
14781485 . with_stderr (
14791486 "\
1487+ [MIGRATING] Cargo.toml from 2018 edition to 2021
14801488[CHECKING] foo v0.1.0 [..]
14811489[MIGRATING] src/lib.rs from 2018 edition to 2021
14821490[FIXED] src/lib.rs (1 fix)
@@ -1966,6 +1974,7 @@ edition = "2021"
19661974 . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
19671975 . with_stderr (
19681976 "\
1977+ [MIGRATING] Cargo.toml from 2021 edition to 2024
19691978[WARNING] `[project]` is deprecated in favor of `[package]`
19701979[CHECKING] foo v0.0.0 ([CWD])
19711980[MIGRATING] src/lib.rs from 2021 edition to 2024
@@ -2018,6 +2027,7 @@ edition = "2021"
20182027 . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
20192028 . with_stderr (
20202029 "\
2030+ [MIGRATING] Cargo.toml from 2021 edition to 2024
20212031[WARNING] `[project]` is deprecated in favor of `[package]`
20222032[CHECKING] foo v0.0.0 ([CWD])
20232033[MIGRATING] src/lib.rs from 2021 edition to 2024
0 commit comments