@@ -890,7 +890,7 @@ perhaps a crate was updated and forgotten to be re-vendored?
890890}
891891
892892#[ cargo_test]
893- fn v4_is_unstable ( ) {
893+ fn next_version_is_always_unstable ( ) {
894894 let p = project ( )
895895 . file (
896896 "Cargo.toml" ,
@@ -903,7 +903,7 @@ fn v4_is_unstable() {
903903 ) ,
904904 )
905905 . file ( "src/lib.rs" , "" )
906- . file ( "Cargo.lock" , "version = 4 " )
906+ . file ( "Cargo.lock" , "version = 5 " )
907907 . build ( ) ;
908908
909909 p. cargo ( "fetch" )
@@ -913,7 +913,7 @@ fn v4_is_unstable() {
913913 error: failed to parse lock file at: [CWD]/Cargo.lock
914914
915915Caused by:
916- lock file version `4 ` was found, but this version of Cargo does not \
916+ lock file version `5 ` was found, but this version of Cargo does not \
917917 understand this lock file, perhaps Cargo needs to be updated?
918918" ,
919919 )
@@ -928,7 +928,7 @@ Caused by:
928928 error: failed to parse lock file at: [CWD]/Cargo.lock
929929
930930Caused by:
931- lock file version 4 requires `-Znext-lockfile-bump`
931+ lock file version `5` requires `-Znext-lockfile-bump`
932932" ,
933933 )
934934 . run ( ) ;
@@ -950,9 +950,7 @@ fn v4_cannot_be_created_from_scratch() {
950950 . file ( "src/lib.rs" , "" )
951951 . build ( ) ;
952952
953- p. cargo ( "fetch -Znext-lockfile-bump" )
954- . masquerade_as_nightly_cargo ( & [ "-Znext-lockfile-bump" ] )
955- . run ( ) ;
953+ p. cargo ( "fetch" ) . run ( ) ;
956954
957955 let lockfile = r#"# This file is automatically @generated by Cargo.
958956# It is not intended for manual editing.
@@ -1124,8 +1122,7 @@ dependencies = [
11241122 . file ( "Cargo.lock" , "version = 4" )
11251123 . build ( ) ;
11261124
1127- p. cargo ( "check -Znext-lockfile-bump" )
1128- . masquerade_as_nightly_cargo ( & [ "-Znext-lockfile-bump" ] )
1125+ p. cargo ( "check" )
11291126 . with_stderr ( format ! (
11301127 "\
11311128 [UPDATING] git repository `{url}`
@@ -1141,10 +1138,7 @@ dependencies = [
11411138
11421139 // Unlike v3_and_git_url_encoded, v4 encodes URL parameters so no git
11431140 // repository re-clone happen.
1144- p. cargo ( "check -Znext-lockfile-bump" )
1145- . masquerade_as_nightly_cargo ( & [ "-Znext-lockfile-bump" ] )
1146- . with_stderr ( "[FINISHED] dev [..]" )
1147- . run ( ) ;
1141+ p. cargo ( "check" ) . with_stderr ( "[FINISHED] dev [..]" ) . run ( ) ;
11481142}
11491143
11501144#[ cargo_test]
0 commit comments