Skip to content

Commit 9b590d0

Browse files
committed
Bump to 0.51.0
1 parent 41c0f48 commit 9b590d0

File tree

6 files changed

+11
-24
lines changed

6 files changed

+11
-24
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.50.0"
3+
version = "0.51.0"
44
edition = "2018"
55
authors = ["Yehuda Katz <wycats@gmail.com>",
66
"Carl Lerche <me@carllerche.com>",

tests/testsuite/dep_info.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn no_rewrite_if_no_change() {
230230
#[cargo_test]
231231
fn relative_depinfo_paths_ws() {
232232
if !is_nightly() {
233-
// See https://github.com/rust-lang/rust/issues/63012
233+
// -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
234234
return;
235235
}
236236

@@ -368,7 +368,7 @@ fn relative_depinfo_paths_ws() {
368368
#[cargo_test]
369369
fn relative_depinfo_paths_no_ws() {
370370
if !is_nightly() {
371-
// See https://github.com/rust-lang/rust/issues/63012
371+
// -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
372372
return;
373373
}
374374

@@ -535,7 +535,7 @@ fn reg_dep_source_not_tracked() {
535535
#[cargo_test]
536536
fn canonical_path() {
537537
if !is_nightly() {
538-
// See https://github.com/rust-lang/rust/issues/63012
538+
// -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
539539
return;
540540
}
541541
if !cargo_test_support::symlink_supported() {

tests/testsuite/doc.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,10 +1352,6 @@ pub fn foo() {}
13521352

13531353
#[cargo_test]
13541354
fn doc_cap_lints() {
1355-
if !is_nightly() {
1356-
// This can be removed once intra_doc_link_resolution_failure fails on stable.
1357-
return;
1358-
}
13591355
let a = git::new("a", |p| {
13601356
p.file("Cargo.toml", &basic_lib_manifest("a"))
13611357
.file("src/lib.rs", BAD_INTRA_LINK_LIB)
@@ -1401,10 +1397,6 @@ fn doc_cap_lints() {
14011397

14021398
#[cargo_test]
14031399
fn doc_message_format() {
1404-
if !is_nightly() {
1405-
// This can be removed once intra_doc_link_resolution_failure fails on stable.
1406-
return;
1407-
}
14081400
let p = project().file("src/lib.rs", BAD_INTRA_LINK_LIB).build();
14091401

14101402
p.cargo("doc --message-format=json")
@@ -1431,10 +1423,6 @@ fn doc_message_format() {
14311423

14321424
#[cargo_test]
14331425
fn short_message_format() {
1434-
if !is_nightly() {
1435-
// This can be removed once intra_doc_link_resolution_failure fails on stable.
1436-
return;
1437-
}
14381426
let p = project().file("src/lib.rs", BAD_INTRA_LINK_LIB).build();
14391427
p.cargo("doc --message-format=short")
14401428
.with_status(101)

tests/testsuite/profiles.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ fn thin_lto_works() {
474474
#[cfg_attr(target_os = "macos", ignore)]
475475
fn strip_works() {
476476
if !is_nightly() {
477+
// -Zstrip is unstable
477478
return;
478479
}
479480

@@ -508,10 +509,6 @@ fn strip_works() {
508509

509510
#[cargo_test]
510511
fn strip_requires_cargo_feature() {
511-
if !is_nightly() {
512-
return;
513-
}
514-
515512
let p = project()
516513
.file(
517514
"Cargo.toml",
@@ -542,12 +539,9 @@ Caused by:
542539
)
543540
.run();
544541
}
542+
545543
#[cargo_test]
546544
fn strip_rejects_invalid_option() {
547-
if !is_nightly() {
548-
return;
549-
}
550-
551545
let p = project()
552546
.file(
553547
"Cargo.toml",

tests/testsuite/pub_priv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use cargo_test_support::{is_nightly, project};
66
#[cargo_test]
77
fn exported_priv_warning() {
88
if !is_nightly() {
9+
// exported_private_dependencies lint is unstable
910
return;
1011
}
1112
Package::new("priv_dep", "0.1.0")
@@ -48,6 +49,7 @@ src/lib.rs:3:13: warning: type `[..]FromPriv` from private dependency 'priv_dep'
4849
#[cargo_test]
4950
fn exported_pub_dep() {
5051
if !is_nightly() {
52+
// exported_private_dependencies lint is unstable
5153
return;
5254
}
5355
Package::new("pub_dep", "0.1.0")

tests/testsuite/required_features.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ fn test_multiple_required_features() {
417417
#[cargo_test]
418418
fn bench_default_features() {
419419
if !is_nightly() {
420+
// #[bench] is unstable
420421
return;
421422
}
422423

@@ -489,6 +490,7 @@ Consider enabling them by passing, e.g., `--features=\"a\"`
489490
#[cargo_test]
490491
fn bench_arg_features() {
491492
if !is_nightly() {
493+
// #[bench] is unstable
492494
return;
493495
}
494496

@@ -536,6 +538,7 @@ fn bench_arg_features() {
536538
#[cargo_test]
537539
fn bench_multiple_required_features() {
538540
if !is_nightly() {
541+
// #[bench] is unstable
539542
return;
540543
}
541544

0 commit comments

Comments
 (0)