@@ -890,7 +890,7 @@ perhaps a crate was updated and forgotten to be re-vendored?
890
890
}
891
891
892
892
#[ cargo_test]
893
- fn v4_is_unstable ( ) {
893
+ fn next_version_is_always_unstable ( ) {
894
894
let p = project ( )
895
895
. file (
896
896
"Cargo.toml" ,
@@ -903,7 +903,7 @@ fn v4_is_unstable() {
903
903
) ,
904
904
)
905
905
. file ( "src/lib.rs" , "" )
906
- . file ( "Cargo.lock" , "version = 4 " )
906
+ . file ( "Cargo.lock" , "version = 5 " )
907
907
. build ( ) ;
908
908
909
909
p. cargo ( "fetch" )
@@ -913,7 +913,7 @@ fn v4_is_unstable() {
913
913
error: failed to parse lock file at: [CWD]/Cargo.lock
914
914
915
915
Caused 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 \
917
917
understand this lock file, perhaps Cargo needs to be updated?
918
918
" ,
919
919
)
@@ -928,7 +928,7 @@ Caused by:
928
928
error: failed to parse lock file at: [CWD]/Cargo.lock
929
929
930
930
Caused by:
931
- lock file version 4 requires `-Znext-lockfile-bump`
931
+ lock file version `5` requires `-Znext-lockfile-bump`
932
932
" ,
933
933
)
934
934
. run ( ) ;
@@ -950,9 +950,7 @@ fn v4_cannot_be_created_from_scratch() {
950
950
. file ( "src/lib.rs" , "" )
951
951
. build ( ) ;
952
952
953
- p. cargo ( "fetch -Znext-lockfile-bump" )
954
- . masquerade_as_nightly_cargo ( & [ "-Znext-lockfile-bump" ] )
955
- . run ( ) ;
953
+ p. cargo ( "fetch" ) . run ( ) ;
956
954
957
955
let lockfile = r#"# This file is automatically @generated by Cargo.
958
956
# It is not intended for manual editing.
@@ -1124,8 +1122,7 @@ dependencies = [
1124
1122
. file ( "Cargo.lock" , "version = 4" )
1125
1123
. build ( ) ;
1126
1124
1127
- p. cargo ( "check -Znext-lockfile-bump" )
1128
- . masquerade_as_nightly_cargo ( & [ "-Znext-lockfile-bump" ] )
1125
+ p. cargo ( "check" )
1129
1126
. with_stderr ( format ! (
1130
1127
"\
1131
1128
[UPDATING] git repository `{url}`
@@ -1141,10 +1138,7 @@ dependencies = [
1141
1138
1142
1139
// Unlike v3_and_git_url_encoded, v4 encodes URL parameters so no git
1143
1140
// 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 ( ) ;
1148
1142
}
1149
1143
1150
1144
#[ cargo_test]
0 commit comments