Skip to content

Commit 9ae485d

Browse files
committed
test(lockfile): v4 isn't the default for rust-version 1.77
1 parent fb95ac4 commit 9ae485d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/cargo/core/resolver/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub enum ResolveVersion {
8585
V3,
8686
/// SourceId URL serialization is aware of URL encoding. For example,
8787
/// `?branch=foo bar` is now encoded as `?branch=foo+bar` and can be decoded
88-
/// back and forth correctly. Introduced in 2024 in version 1.77.
88+
/// back and forth correctly. Introduced in 2024 in version 1.78.
8989
V4,
9090
/// Unstable. Will collect a certain amount of changes and then go.
9191
///

tests/testsuite/lockfile_compat.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ dependencies = [
12201220
("1.37", Some(1), 1),
12211221
("1.37", Some(2), 2),
12221222
("1.37", Some(3), 3),
1223+
("1.37", Some(4), 4),
12231224
// v2 introduced
12241225
("1.38", None, 1),
12251226
// last version of v1 as the default
@@ -1229,6 +1230,7 @@ dependencies = [
12291230
("1.41", Some(1), 1),
12301231
("1.41", Some(2), 2),
12311232
("1.41", Some(3), 3),
1233+
("1.41", Some(4), 4),
12321234
// v3 introduced
12331235
("1.47", None, 2),
12341236
// last version of v2 as the default
@@ -1238,6 +1240,9 @@ dependencies = [
12381240
("1.53", Some(1), 1),
12391241
("1.53", Some(2), 2),
12401242
("1.53", Some(3), 3),
1243+
("1.53", Some(4), 4),
1244+
// v4 introduced
1245+
("1.78", None, 3),
12411246
];
12421247

12431248
for (msrv, existing_lockfile, expected_version) in cases {

0 commit comments

Comments
 (0)