@@ -362,7 +362,7 @@ fn change_package_version() {
362
362
}
363
363
364
364
#[ cargo_test]
365
- fn update_precise ( ) {
365
+ fn update_precise_downgrade ( ) {
366
366
Package :: new ( "serde" , "0.1.0" ) . publish ( ) ;
367
367
Package :: new ( "serde" , "0.2.1" ) . publish ( ) ;
368
368
@@ -1411,7 +1411,7 @@ fn update_precise_git_revisions() {
1411
1411
}
1412
1412
1413
1413
#[ cargo_test]
1414
- fn precise_yanked ( ) {
1414
+ fn update_precise_yanked ( ) {
1415
1415
Package :: new ( "bar" , "0.1.0" ) . publish ( ) ;
1416
1416
Package :: new ( "bar" , "0.1.1" ) . yanked ( true ) . publish ( ) ;
1417
1417
let p = project ( )
@@ -1450,7 +1450,7 @@ fn precise_yanked() {
1450
1450
}
1451
1451
1452
1452
#[ cargo_test]
1453
- fn precise_yanked_multiple_presence ( ) {
1453
+ fn update_precise_yanked_multiple_presence ( ) {
1454
1454
Package :: new ( "bar" , "0.1.0" ) . publish ( ) ;
1455
1455
Package :: new ( "bar" , "0.1.1" ) . yanked ( true ) . publish ( ) ;
1456
1456
let p = project ( )
@@ -2162,7 +2162,7 @@ fn update_breaking_specific_packages_that_wont_update() {
2162
2162
p. cargo ( "update -Zunstable-options --breaking compatible renamed-from non-semver transitive-compatible transitive-incompatible" )
2163
2163
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2164
2164
. with_stderr_data ( str![ [ r#"
2165
- [UPDATING] `[..] ` index
2165
+ [UPDATING] `dummy-registry ` index
2166
2166
2167
2167
"# ] ] )
2168
2168
. run ( ) ;
@@ -2177,7 +2177,7 @@ fn update_breaking_specific_packages_that_wont_update() {
2177
2177
"update compatible renamed-from non-semver transitive-compatible transitive-incompatible" ,
2178
2178
)
2179
2179
. with_stderr_data ( str![ [ r#"
2180
- [UPDATING] `[..] ` index
2180
+ [UPDATING] `dummy-registry ` index
2181
2181
[LOCKING] 5 packages to latest compatible versions
2182
2182
[UPDATING] compatible v1.0.0 -> v1.0.1
2183
2183
[UPDATING] non-semver v1.0.0 -> v1.0.1 (latest: v2.0.0)
@@ -2220,7 +2220,7 @@ fn update_breaking_without_lock_file() {
2220
2220
p. cargo ( "update -Zunstable-options --breaking" )
2221
2221
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2222
2222
. with_stderr_data ( str![ [ r#"
2223
- [UPDATING] `[..] ` index
2223
+ [UPDATING] `dummy-registry ` index
2224
2224
[UPGRADING] incompatible ^1.0 -> ^2.0
2225
2225
[LOCKING] 3 packages to latest compatible versions
2226
2226
@@ -2284,7 +2284,7 @@ fn update_breaking_spec_version() {
2284
2284
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2285
2285
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2286
2286
. with_stderr_data ( str![ [ r#"
2287
- [UPDATING] `[..] ` index
2287
+ [UPDATING] `dummy-registry ` index
2288
2288
[UPGRADING] incompatible ^1.0 -> ^2.0
2289
2289
[LOCKING] 1 package to latest compatible version
2290
2290
[UPDATING] incompatible v1.0.0 -> v2.0.0
@@ -2297,7 +2297,7 @@ fn update_breaking_spec_version() {
2297
2297
p
. cargo ( "update -Zunstable-options --breaking https://github.com/rust-lang/crates.io-index#[email protected] " )
2298
2298
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2299
2299
. with_stderr_data ( str![ [ r#"
2300
- [UPDATING] `[..] ` index
2300
+ [UPDATING] `dummy-registry ` index
2301
2301
[UPGRADING] incompatible ^2.0 -> ^3.0
2302
2302
[LOCKING] 1 package to latest compatible version
2303
2303
[UPDATING] incompatible v2.0.0 -> v3.0.0
@@ -2309,7 +2309,7 @@ fn update_breaking_spec_version() {
2309
2309
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2310
2310
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2311
2311
. with_stderr_data ( str![ [ r#"
2312
- [UPDATING] `[..] ` index
2312
+ [UPDATING] `dummy-registry ` index
2313
2313
2314
2314
"# ] ] )
2315
2315
. run ( ) ;
@@ -2329,7 +2329,7 @@ fn update_breaking_spec_version() {
2329
2329
#[ cargo_test]
2330
2330
fn update_breaking_spec_version_transitive ( ) {
2331
2331
Package :: new ( "dep" , "1.0.0" ) . publish ( ) ;
2332
- Package :: new ( "dep" , "1.1 .0" ) . publish ( ) ;
2332
+ Package :: new ( "dep" , "2.0 .0" ) . publish ( ) ;
2333
2333
2334
2334
let p = project ( )
2335
2335
. file (
@@ -2357,44 +2357,44 @@ fn update_breaking_spec_version_transitive() {
2357
2357
authors = []
2358
2358
2359
2359
[dependencies]
2360
- dep = "1.1 "
2360
+ dep = "2.0 "
2361
2361
"# ,
2362
2362
)
2363
2363
. file ( "bar/src/lib.rs" , "" )
2364
2364
. build ( ) ;
2365
2365
2366
2366
p. cargo ( "generate-lockfile" ) . run ( ) ;
2367
2367
2368
- Package :: new ( "dep" , "1.1 .1" ) . publish ( ) ;
2369
- Package :: new ( "dep" , "2 .0.0" ) . publish ( ) ;
2368
+ Package :: new ( "dep" , "2.0 .1" ) . publish ( ) ;
2369
+ Package :: new ( "dep" , "3 .0.0" ) . publish ( ) ;
2370
2370
2371
2371
// Will upgrade the direct dependency
2372
2372
p
. cargo ( "update -Zunstable-options --breaking [email protected] " )
2373
2373
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2374
2374
. with_stderr_data ( str![ [ r#"
2375
- [UPDATING] `[..] ` index
2376
- [UPGRADING] dep ^1.0 -> ^2 .0
2375
+ [UPDATING] `dummy-registry ` index
2376
+ [UPGRADING] dep ^1.0 -> ^3 .0
2377
2377
[LOCKING] 1 package to latest compatible version
2378
- [ADDING ] dep v2 .0.0
2378
+ [UPDATING ] dep v1.0.0 -> v3 .0.0
2379
2379
2380
2380
"# ] ] )
2381
2381
. run ( ) ;
2382
2382
2383
2383
// But not the transitive one, because bar is not a workspace member
2384
- p. cargo ( "update -Zunstable-options --breaking dep@1.1 " )
2384
+ p. cargo ( "update -Zunstable-options --breaking dep@2.0 " )
2385
2385
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2386
2386
. with_stderr_data ( str![ [ r#"
2387
- [UPDATING] `[..] ` index
2387
+ [UPDATING] `dummy-registry ` index
2388
2388
2389
2389
"# ] ] )
2390
2390
. run ( ) ;
2391
2391
2392
2392
// A non-breaking update is different, as it will update transitive dependencies
2393
- p. cargo ( "update dep@1.1 " )
2393
+ p. cargo ( "update dep@2.0 " )
2394
2394
. with_stderr_data ( str![ [ r#"
2395
- [UPDATING] `[..] ` index
2395
+ [UPDATING] `dummy-registry ` index
2396
2396
[LOCKING] 1 package to latest compatible version
2397
- [UPDATING] dep v1.1 .0 -> v1.1 .1 (latest: v2 .0.0)
2397
+ [UPDATING] dep v2.0 .0 -> v2.0 .1 (latest: v3 .0.0)
2398
2398
2399
2399
"# ] ] )
2400
2400
. run ( ) ;
@@ -2450,7 +2450,7 @@ fn update_breaking_mixed_compatibility() {
2450
2450
p. cargo ( "update -Zunstable-options --breaking" )
2451
2451
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2452
2452
. with_stderr_data ( str![ [ r#"
2453
- [UPDATING] `[..] ` index
2453
+ [UPDATING] `dummy-registry ` index
2454
2454
[UPGRADING] mixed-compatibility ^1.0 -> ^2.0
2455
2455
[LOCKING] 1 package to latest compatible version
2456
2456
[ADDING] mixed-compatibility v2.0.1
@@ -2536,7 +2536,7 @@ fn update_breaking_mixed_pinning_renaming() {
2536
2536
p. cargo ( "update -Zunstable-options --breaking" )
2537
2537
. masquerade_as_nightly_cargo ( & [ "update-breaking" ] )
2538
2538
. with_stderr_data ( str![ [ r#"
2539
- [UPDATING] `[..] ` index
2539
+ [UPDATING] `dummy-registry ` index
2540
2540
[UPGRADING] mixed-pinned ^1.0 -> ^2.0
2541
2541
[UPGRADING] mixed-ws-pinned ^1.0 -> ^2.0
2542
2542
[UPGRADING] renamed-from ^1.0 -> ^2.0
0 commit comments