]> git.proxmox.com Git - cargo.git/commitdiff
Bump to 0.51.0
authorEric Huss <eric@huss.org>
Tue, 24 Nov 2020 01:34:18 +0000 (17:34 -0800)
committerEric Huss <eric@huss.org>
Tue, 24 Nov 2020 01:34:18 +0000 (17:34 -0800)
Cargo.toml
tests/testsuite/dep_info.rs
tests/testsuite/doc.rs
tests/testsuite/profiles.rs
tests/testsuite/pub_priv.rs
tests/testsuite/required_features.rs

index f1d1b61f26a99e1bcdab3f2088d5a3e88c796e27..bf322e16cb13304f4f1742c0d65fd5e8800621be 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "cargo"
-version = "0.50.0"
+version = "0.51.0"
 edition = "2018"
 authors = ["Yehuda Katz <wycats@gmail.com>",
            "Carl Lerche <me@carllerche.com>",
index d63d09652b7deabfcfbc3a7613fb1279e141fa7d..cfa6e96529fd1018dea67b3ee9de4dbfccd292ff 100644 (file)
@@ -230,7 +230,7 @@ fn no_rewrite_if_no_change() {
 #[cargo_test]
 fn relative_depinfo_paths_ws() {
     if !is_nightly() {
-        // See https://github.com/rust-lang/rust/issues/63012
+        // -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
         return;
     }
 
@@ -368,7 +368,7 @@ fn relative_depinfo_paths_ws() {
 #[cargo_test]
 fn relative_depinfo_paths_no_ws() {
     if !is_nightly() {
-        // See https://github.com/rust-lang/rust/issues/63012
+        // -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
         return;
     }
 
@@ -535,7 +535,7 @@ fn reg_dep_source_not_tracked() {
 #[cargo_test]
 fn canonical_path() {
     if !is_nightly() {
-        // See https://github.com/rust-lang/rust/issues/63012
+        // -Z binary-dep-depinfo is unstable (https://github.com/rust-lang/rust/issues/63012)
         return;
     }
     if !cargo_test_support::symlink_supported() {
index 8b1749f5e81a9872afd61a9609d42407bbaaaecf..516e0070256cbac91ce43d04d15bbc33bb92c172 100644 (file)
@@ -1352,10 +1352,6 @@ pub fn foo() {}
 
 #[cargo_test]
 fn doc_cap_lints() {
-    if !is_nightly() {
-        // This can be removed once intra_doc_link_resolution_failure fails on stable.
-        return;
-    }
     let a = git::new("a", |p| {
         p.file("Cargo.toml", &basic_lib_manifest("a"))
             .file("src/lib.rs", BAD_INTRA_LINK_LIB)
@@ -1401,10 +1397,6 @@ fn doc_cap_lints() {
 
 #[cargo_test]
 fn doc_message_format() {
-    if !is_nightly() {
-        // This can be removed once intra_doc_link_resolution_failure fails on stable.
-        return;
-    }
     let p = project().file("src/lib.rs", BAD_INTRA_LINK_LIB).build();
 
     p.cargo("doc --message-format=json")
@@ -1431,10 +1423,6 @@ fn doc_message_format() {
 
 #[cargo_test]
 fn short_message_format() {
-    if !is_nightly() {
-        // This can be removed once intra_doc_link_resolution_failure fails on stable.
-        return;
-    }
     let p = project().file("src/lib.rs", BAD_INTRA_LINK_LIB).build();
     p.cargo("doc --message-format=short")
         .with_status(101)
index de2b477fdb7449ab47a0e41101e4e4ccd939cac4..d238d9a639274119da9e73222967127e41697393 100644 (file)
@@ -474,6 +474,7 @@ fn thin_lto_works() {
 #[cfg_attr(target_os = "macos", ignore)]
 fn strip_works() {
     if !is_nightly() {
+        // -Zstrip is unstable
         return;
     }
 
@@ -508,10 +509,6 @@ fn strip_works() {
 
 #[cargo_test]
 fn strip_requires_cargo_feature() {
-    if !is_nightly() {
-        return;
-    }
-
     let p = project()
         .file(
             "Cargo.toml",
@@ -542,12 +539,9 @@ Caused by:
         )
         .run();
 }
+
 #[cargo_test]
 fn strip_rejects_invalid_option() {
-    if !is_nightly() {
-        return;
-    }
-
     let p = project()
         .file(
             "Cargo.toml",
index 17c5831652a7549899f5f2cdb9f738920ca6de8c..a10cb1ef0efc5958b1069e88f464789f58c4a5ca 100644 (file)
@@ -6,6 +6,7 @@ use cargo_test_support::{is_nightly, project};
 #[cargo_test]
 fn exported_priv_warning() {
     if !is_nightly() {
+        // exported_private_dependencies lint is unstable
         return;
     }
     Package::new("priv_dep", "0.1.0")
@@ -48,6 +49,7 @@ src/lib.rs:3:13: warning: type `[..]FromPriv` from private dependency 'priv_dep'
 #[cargo_test]
 fn exported_pub_dep() {
     if !is_nightly() {
+        // exported_private_dependencies lint is unstable
         return;
     }
     Package::new("pub_dep", "0.1.0")
index 5289c60b088409d4de3dff25e5891b044c1ec496..eabc9aaf289c505049a919f353b73354e2494364 100644 (file)
@@ -417,6 +417,7 @@ fn test_multiple_required_features() {
 #[cargo_test]
 fn bench_default_features() {
     if !is_nightly() {
+        // #[bench] is unstable
         return;
     }
 
@@ -489,6 +490,7 @@ Consider enabling them by passing, e.g., `--features=\"a\"`
 #[cargo_test]
 fn bench_arg_features() {
     if !is_nightly() {
+        // #[bench] is unstable
         return;
     }
 
@@ -536,6 +538,7 @@ fn bench_arg_features() {
 #[cargo_test]
 fn bench_multiple_required_features() {
     if !is_nightly() {
+        // #[bench] is unstable
         return;
     }