diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs index 2a30f88df49ac..4179cbe8a7bac 100644 --- a/src/liballoc_jemalloc/lib.rs +++ b/src/liballoc_jemalloc/lib.rs @@ -16,7 +16,8 @@ #![cfg_attr(not(stage0), allocator)] #![unstable(feature = "alloc_jemalloc", reason = "this library is unlikely to be stabilized in its current \ - form or name")] + form or name", + issue = "27783")] #![feature(allocator)] #![feature(libc)] #![feature(no_std)] diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs index 0687ced7da1eb..aff4bea19e0f3 100644 --- a/src/liballoc_system/lib.rs +++ b/src/liballoc_system/lib.rs @@ -16,7 +16,8 @@ #![cfg_attr(not(stage0), allocator)] #![unstable(feature = "alloc_system", reason = "this library is unlikely to be stabilized in its current \ - form or name")] + form or name", + issue = "27783")] #![feature(allocator)] #![feature(libc)] #![feature(no_std)] diff --git a/src/libstd/sys/windows/ext/fs.rs b/src/libstd/sys/windows/ext/fs.rs index 66f42db42cfc8..9fe6527d89e89 100644 --- a/src/libstd/sys/windows/ext/fs.rs +++ b/src/libstd/sys/windows/ext/fs.rs @@ -20,7 +20,8 @@ use sys_common::{AsInnerMut, AsInner}; /// Windows-specific extensions to `OpenOptions` #[unstable(feature = "open_options_ext", - reason = "may require more thought/methods")] + reason = "may require more thought/methods", + issue = "27720")] pub trait OpenOptionsExt { /// Overrides the `dwDesiredAccess` argument to the call to `CreateFile` /// with the specified value. diff --git a/src/test/auxiliary/inherited_stability.rs b/src/test/auxiliary/inherited_stability.rs index c09cc53466dc1..f4e6f6d7511a8 100644 --- a/src/test/auxiliary/inherited_stability.rs +++ b/src/test/auxiliary/inherited_stability.rs @@ -9,7 +9,7 @@ // except according to those terms. #![crate_name="inherited_stability"] #![crate_type = "lib"] -#![unstable(feature = "test_feature")] +#![unstable(feature = "test_feature", issue = "0")] #![feature(staged_api)] #![staged_api] @@ -26,7 +26,7 @@ pub mod stable_mod { pub fn stable() {} } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub mod unstable_mod { #[stable(feature = "test_feature", since = "1.0.0")] #[deprecated(since = "1.0.0")] diff --git a/src/test/auxiliary/internal_unstable.rs b/src/test/auxiliary/internal_unstable.rs index 7f682d5d8d100..d9335eb567f69 100644 --- a/src/test/auxiliary/internal_unstable.rs +++ b/src/test/auxiliary/internal_unstable.rs @@ -12,24 +12,24 @@ #![staged_api] #![stable(feature = "stable", since = "1.0.0")] -#[unstable(feature = "function")] +#[unstable(feature = "function", issue = "0")] pub fn unstable() {} #[stable(feature = "stable", since = "1.0.0")] pub struct Foo { - #[unstable(feature = "struct_field")] + #[unstable(feature = "struct_field", issue = "0")] pub x: u8 } impl Foo { - #[unstable(feature = "method")] + #[unstable(feature = "method", issue = "0")] pub fn method(&self) {} } #[stable(feature = "stable", since = "1.0.0")] pub struct Bar { - #[unstable(feature = "struct2_field")] + #[unstable(feature = "struct2_field", issue = "0")] pub x: u8 } diff --git a/src/test/auxiliary/lint_output_format.rs b/src/test/auxiliary/lint_output_format.rs index 50a9202a87b5c..51fad3ce3cd69 100644 --- a/src/test/auxiliary/lint_output_format.rs +++ b/src/test/auxiliary/lint_output_format.rs @@ -12,7 +12,7 @@ #![crate_type = "lib"] #![feature(staged_api)] #![staged_api] -#![unstable(feature = "test_feature")] +#![unstable(feature = "test_feature", issue = "0")] #[stable(feature = "test_feature", since = "1.0.0")] #[deprecated(since = "1.0.0")] @@ -20,12 +20,12 @@ pub fn foo() -> usize { 20 } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub fn bar() -> usize { 40 } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub fn baz() -> usize { 30 } diff --git a/src/test/auxiliary/lint_stability.rs b/src/test/auxiliary/lint_stability.rs index bb3b71bc2441b..60097393a2596 100644 --- a/src/test/auxiliary/lint_stability.rs +++ b/src/test/auxiliary/lint_stability.rs @@ -20,16 +20,16 @@ pub fn deprecated() {} #[deprecated(since = "1.0.0", reason = "text")] pub fn deprecated_text() {} -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub fn deprecated_unstable() {} -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] pub fn deprecated_unstable_text() {} -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub fn unstable() {} -#[unstable(feature = "test_feature", reason = "text")] +#[unstable(feature = "test_feature", reason = "text", issue = "0")] pub fn unstable_text() {} #[stable(feature = "rust1", since = "1.0.0")] @@ -48,16 +48,16 @@ impl MethodTester { #[deprecated(since = "1.0.0", reason = "text")] pub fn method_deprecated_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub fn method_deprecated_unstable(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] pub fn method_deprecated_unstable_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub fn method_unstable(&self) {} - #[unstable(feature = "test_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text", issue = "0")] pub fn method_unstable_text(&self) {} #[stable(feature = "rust1", since = "1.0.0")] @@ -75,16 +75,16 @@ pub trait Trait { #[deprecated(since = "1.0.0", reason = "text")] fn trait_deprecated_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] fn trait_deprecated_unstable(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] fn trait_deprecated_unstable_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] fn trait_unstable(&self) {} - #[unstable(feature = "test_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text", issue = "0")] fn trait_unstable_text(&self) {} #[stable(feature = "rust1", since = "1.0.0")] @@ -95,7 +95,7 @@ pub trait Trait { impl Trait for MethodTester {} -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub trait UnstableTrait { fn dummy(&self) { } } #[stable(feature = "test_feature", since = "1.0.0")] @@ -103,12 +103,12 @@ pub trait UnstableTrait { fn dummy(&self) { } } pub struct DeprecatedStruct { #[stable(feature = "test_feature", since = "1.0.0")] pub i: isize } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedUnstableStruct { #[stable(feature = "test_feature", since = "1.0.0")] pub i: isize } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub struct UnstableStruct { #[stable(feature = "test_feature", since = "1.0.0")] pub i: isize } @@ -120,10 +120,10 @@ pub struct StableStruct { #[stable(feature = "test_feature", since = "1.0.0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedUnitStruct; -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedUnstableUnitStruct; -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub struct UnstableUnitStruct; #[stable(feature = "rust1", since = "1.0.0")] pub struct StableUnitStruct; @@ -133,10 +133,10 @@ pub enum Enum { #[stable(feature = "test_feature", since = "1.0.0")] #[deprecated(since = "1.0.0")] DeprecatedVariant, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] DeprecatedUnstableVariant, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] UnstableVariant, #[stable(feature = "rust1", since = "1.0.0")] @@ -146,10 +146,10 @@ pub enum Enum { #[stable(feature = "test_feature", since = "1.0.0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize); -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedUnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize); -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub struct UnstableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize); #[stable(feature = "rust1", since = "1.0.0")] pub struct StableTupleStruct(#[stable(feature = "rust1", since = "1.0.0")] pub isize); diff --git a/src/test/auxiliary/lint_stability_fields.rs b/src/test/auxiliary/lint_stability_fields.rs index 66940ee0081b4..b45af89dd3b73 100644 --- a/src/test/auxiliary/lint_stability_fields.rs +++ b/src/test/auxiliary/lint_stability_fields.rs @@ -16,45 +16,47 @@ pub struct Stable { #[stable(feature = "rust1", since = "1.0.0")] pub inherit: u8, // it's a lie (stable doesn't inherit) - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub override1: u8, #[deprecated(since = "1.0.0")] - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub override2: u8, } #[stable(feature = "rust1", since = "1.0.0")] pub struct Stable2(#[stable(feature = "rust1", since = "1.0.0")] pub u8, - #[unstable(feature = "test_feature")] pub u8, - #[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] pub u8); + #[unstable(feature = "test_feature", issue = "0")] pub u8, + #[unstable(feature = "test_feature", issue = "0")] + #[deprecated(since = "1.0.0")] pub u8); -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub struct Unstable { pub inherit: u8, #[stable(feature = "rust1", since = "1.0.0")] pub override1: u8, #[deprecated(since = "1.0.0")] - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub override2: u8, } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] pub struct Unstable2(pub u8, #[stable(feature = "rust1", since = "1.0.0")] pub u8, - #[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] pub u8); + #[unstable(feature = "test_feature", issue = "0")] + #[deprecated(since = "1.0.0")] pub u8); -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(feature = "rust1", since = "1.0.0")] pub struct Deprecated { pub inherit: u8, #[stable(feature = "rust1", since = "1.0.0")] pub override1: u8, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub override2: u8, } -#[unstable(feature = "test_feature")] +#[unstable(feature = "test_feature", issue = "0")] #[deprecated(feature = "rust1", since = "1.0.0")] pub struct Deprecated2(pub u8, #[stable(feature = "rust1", since = "1.0.0")] pub u8, - #[unstable(feature = "test_feature")] pub u8); + #[unstable(feature = "test_feature", issue = "0")] pub u8); diff --git a/src/test/auxiliary/stability_cfg2.rs b/src/test/auxiliary/stability_cfg2.rs index d9ed76e5c58e7..8277280f0696f 100644 --- a/src/test/auxiliary/stability_cfg2.rs +++ b/src/test/auxiliary/stability_cfg2.rs @@ -10,7 +10,7 @@ // compile-flags:--cfg foo -#![cfg_attr(foo, unstable(feature = "test_feature"))] +#![cfg_attr(foo, unstable(feature = "test_feature", issue = "0"))] #![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))] #![feature(staged_api)] #![staged_api] diff --git a/src/test/compile-fail/lint-stability-fields.rs b/src/test/compile-fail/lint-stability-fields.rs index db58f930a02b0..7e675ca0bc40d 100644 --- a/src/test/compile-fail/lint-stability-fields.rs +++ b/src/test/compile-fail/lint-stability-fields.rs @@ -187,48 +187,50 @@ mod this_crate { #[stable(feature = "rust1", since = "1.0.0")] struct Stable { inherit: u8, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] override1: u8, #[deprecated(since = "1.0.0")] - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] override2: u8, } #[stable(feature = "rust1", since = "1.0.0")] struct Stable2(u8, #[stable(feature = "rust1", since = "1.0.0")] u8, - #[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] u8); + #[unstable(feature = "test_feature", issue = "0")] + #[deprecated(since = "1.0.0")] u8); - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] struct Unstable { inherit: u8, #[stable(feature = "rust1", since = "1.0.0")] override1: u8, #[deprecated(since = "1.0.0")] - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] override2: u8, } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] struct Unstable2(u8, #[stable(feature = "rust1", since = "1.0.0")] u8, - #[unstable(feature = "test_feature")] #[deprecated(since = "1.0.0")] u8); + #[unstable(feature = "test_feature", issue = "0")] + #[deprecated(since = "1.0.0")] u8); - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(feature = "rust1", since = "1.0.0")] struct Deprecated { inherit: u8, #[stable(feature = "rust1", since = "1.0.0")] override1: u8, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] override2: u8, } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(feature = "rust1", since = "1.0.0")] struct Deprecated2(u8, #[stable(feature = "rust1", since = "1.0.0")] u8, - #[unstable(feature = "test_feature")] u8); + #[unstable(feature = "test_feature", issue = "0")] u8); pub fn foo() { let x = Stable { diff --git a/src/test/compile-fail/lint-stability.rs b/src/test/compile-fail/lint-stability.rs index 4cba12d7b352c..6cc73ded9750f 100644 --- a/src/test/compile-fail/lint-stability.rs +++ b/src/test/compile-fail/lint-stability.rs @@ -257,16 +257,16 @@ mod inheritance { } mod this_crate { - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub fn deprecated() {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] pub fn deprecated_text() {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub fn unstable() {} - #[unstable(feature = "test_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text", issue = "0")] pub fn unstable_text() {} #[stable(feature = "rust1", since = "1.0.0")] @@ -278,16 +278,16 @@ mod this_crate { pub struct MethodTester; impl MethodTester { - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub fn method_deprecated(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] pub fn method_deprecated_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub fn method_unstable(&self) {} - #[unstable(feature = "test_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text", issue = "0")] pub fn method_unstable_text(&self) {} #[stable(feature = "rust1", since = "1.0.0")] @@ -297,16 +297,16 @@ mod this_crate { } pub trait Trait { - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] fn trait_deprecated(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0", reason = "text")] fn trait_deprecated_text(&self) {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] fn trait_unstable(&self) {} - #[unstable(feature = "test_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text", issue = "0")] fn trait_unstable_text(&self) {} #[stable(feature = "rust1", since = "1.0.0")] @@ -317,12 +317,12 @@ mod this_crate { impl Trait for MethodTester {} - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedStruct { #[stable(feature = "test_feature", since = "1.0.0")] i: isize } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub struct UnstableStruct { #[stable(feature = "test_feature", since = "1.0.0")] i: isize } @@ -331,29 +331,29 @@ mod this_crate { #[stable(feature = "test_feature", since = "1.0.0")] i: isize } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedUnitStruct; - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub struct UnstableUnitStruct; #[stable(feature = "rust1", since = "1.0.0")] pub struct StableUnitStruct; pub enum Enum { - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] DeprecatedVariant, - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] UnstableVariant, #[stable(feature = "rust1", since = "1.0.0")] StableVariant, } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub struct DeprecatedTupleStruct(isize); - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] pub struct UnstableTupleStruct(isize); #[stable(feature = "rust1", since = "1.0.0")] pub struct StableTupleStruct(isize); @@ -471,7 +471,7 @@ mod this_crate { foo.trait_stable(); } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] fn test_fn_body() { fn fn_in_body() {} @@ -479,7 +479,7 @@ mod this_crate { } impl MethodTester { - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] fn test_method_body(&self) { fn fn_in_body() {} @@ -487,7 +487,7 @@ mod this_crate { } } - #[unstable(feature = "test_feature")] + #[unstable(feature = "test_feature", issue = "0")] #[deprecated(since = "1.0.0")] pub trait DeprecatedTrait { fn dummy(&self) { } diff --git a/src/test/compile-fail/missing-stability.rs b/src/test/compile-fail/missing-stability.rs index cf7a8378b9a9a..1f68b7dbf5e3a 100644 --- a/src/test/compile-fail/missing-stability.rs +++ b/src/test/compile-fail/missing-stability.rs @@ -19,7 +19,7 @@ pub fn unmarked() { () } -#[unstable(feature = "foo")] +#[unstable(feature = "foo", issue = "0")] pub mod foo { // #[unstable] is inherited pub fn unmarked() {} diff --git a/src/test/compile-fail/stability-attribute-sanity.rs b/src/test/compile-fail/stability-attribute-sanity.rs index f0597d57b7973..00c5be0f211e3 100644 --- a/src/test/compile-fail/stability-attribute-sanity.rs +++ b/src/test/compile-fail/stability-attribute-sanity.rs @@ -56,11 +56,14 @@ mod bogus_attribute_types_2 { } mod missing_feature_names { - #[unstable(since = "a")] //~ ERROR missing 'feature' + #[unstable(since = "a", issue = "0")] //~ ERROR missing 'feature' fn f1() { } + #[unstable(feature = "a")] + fn f2() { } //~ ERROR need to point to an issue + #[stable(since = "a")] //~ ERROR missing 'feature' - fn f2() { } + fn f3() { } } mod missing_version { @@ -72,12 +75,12 @@ mod missing_version { fn f2() { } } -#[unstable(feature = "a", since = "b")] +#[unstable(feature = "a", since = "b", issue = "0")] #[stable(feature = "a", since = "b")] fn multiple1() { } //~ ERROR multiple stability levels -#[unstable(feature = "a", since = "b")] -#[unstable(feature = "a", since = "b")] +#[unstable(feature = "a", since = "b", issue = "0")] +#[unstable(feature = "a", since = "b", issue = "0")] fn multiple2() { } //~ ERROR multiple stability levels #[stable(feature = "a", since = "b")] diff --git a/src/test/run-make/allow-warnings-cmdline-stability/bar.rs b/src/test/run-make/allow-warnings-cmdline-stability/bar.rs index 6a683d96b03a0..9c24694951a50 100644 --- a/src/test/run-make/allow-warnings-cmdline-stability/bar.rs +++ b/src/test/run-make/allow-warnings-cmdline-stability/bar.rs @@ -11,6 +11,6 @@ #![crate_type = "lib"] #![feature(staged_api)] #![staged_api] -#![unstable(feature = "test_feature")] +#![unstable(feature = "test_feature", issue = "0")] pub fn baz() { }