test: Fix tests for requiring issues
This commit is contained in:
parent
2972b77134
commit
8ef1e3b77f
@ -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)]
|
||||
|
@ -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)]
|
||||
|
@ -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.
|
||||
|
@ -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")]
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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]
|
||||
|
@ -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 {
|
||||
|
@ -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) { }
|
||||
|
@ -19,7 +19,7 @@ pub fn unmarked() {
|
||||
()
|
||||
}
|
||||
|
||||
#[unstable(feature = "foo")]
|
||||
#[unstable(feature = "foo", issue = "0")]
|
||||
pub mod foo {
|
||||
// #[unstable] is inherited
|
||||
pub fn unmarked() {}
|
||||
|
@ -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")]
|
||||
|
@ -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() { }
|
||||
|
Loading…
x
Reference in New Issue
Block a user