diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-22 18:22:03 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-23 13:28:40 -0800 |
| commit | cd6d9eab5d75584edfcae4ffdef8b0836db80c1e (patch) | |
| tree | fff2c174986eaab33f67390d0a114d508966fe68 /src/test/compile-fail/lint-stability.rs | |
| parent | f86bcc1543cb053363c5e6818a2ad44877ea8361 (diff) | |
| download | rust-cd6d9eab5d75584edfcae4ffdef8b0836db80c1e.tar.gz rust-cd6d9eab5d75584edfcae4ffdef8b0836db80c1e.zip | |
Set unstable feature names appropriately
* `core` - for the core crate * `hash` - hashing * `io` - io * `path` - path * `alloc` - alloc crate * `rand` - rand crate * `collections` - collections crate * `std_misc` - other parts of std * `test` - test crate * `rustc_private` - everything else
Diffstat (limited to 'src/test/compile-fail/lint-stability.rs')
| -rw-r--r-- | src/test/compile-fail/lint-stability.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/test/compile-fail/lint-stability.rs b/src/test/compile-fail/lint-stability.rs index ed474b6ef98..e89151aa746 100644 --- a/src/test/compile-fail/lint-stability.rs +++ b/src/test/compile-fail/lint-stability.rs @@ -43,9 +43,9 @@ mod cross_crate { foo.method_unstable(); //~ WARNING use of unstable library feature foo.trait_unstable(); //~ WARNING use of unstable library feature - unstable_text(); //~ WARNING use of unstable library feature 'unnamed_feature': text - foo.method_unstable_text(); //~ WARNING use of unstable library feature 'unnamed_feature': text - foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'unnamed_feature': text + unstable_text(); //~ WARNING use of unstable library feature 'test_feature': text + foo.method_unstable_text(); //~ WARNING use of unstable library feature 'test_feature': text + foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'test_feature': text unmarked(); //~ ERROR use of unmarked library feature foo.method_unmarked(); //~ ERROR use of unmarked library feature @@ -94,7 +94,7 @@ mod cross_crate { foo.trait_deprecated(); //~ ERROR use of deprecated item foo.trait_deprecated_text(); //~ ERROR use of deprecated item: text foo.trait_unstable(); //~ WARNING use of unstable library feature - foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'unnamed_feature': text + foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'test_feature': text foo.trait_unmarked(); //~ ERROR use of unmarked library feature foo.trait_stable(); } @@ -103,7 +103,7 @@ mod cross_crate { foo.trait_deprecated(); //~ ERROR use of deprecated item foo.trait_deprecated_text(); //~ ERROR use of deprecated item: text foo.trait_unstable(); //~ WARNING use of unstable library feature - foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'unnamed_feature': text + foo.trait_unstable_text(); //~ WARNING use of unstable library feature 'test_feature': text foo.trait_unmarked(); //~ ERROR use of unmarked library feature foo.trait_stable(); } @@ -144,9 +144,9 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0", reason = "text")] pub fn deprecated_text() {} - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] pub fn unstable() {} - #[unstable(feature = "unnamed_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text")] pub fn unstable_text() {} pub fn unmarked() {} @@ -165,9 +165,9 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0", reason = "text")] pub fn method_deprecated_text(&self) {} - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] pub fn method_unstable(&self) {} - #[unstable(feature = "unnamed_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text")] pub fn method_unstable_text(&self) {} pub fn method_unmarked(&self) {} @@ -184,9 +184,9 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0", reason = "text")] fn trait_deprecated_text(&self) {} - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] fn trait_unstable(&self) {} - #[unstable(feature = "unnamed_feature", reason = "text")] + #[unstable(feature = "test_feature", reason = "text")] fn trait_unstable_text(&self) {} fn trait_unmarked(&self) {} @@ -201,7 +201,7 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0")] pub struct DeprecatedStruct { i: isize } - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] pub struct UnstableStruct { i: isize } pub struct UnmarkedStruct { i: isize } #[stable(feature = "grandfathered", since = "1.0.0")] @@ -209,7 +209,7 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0")] pub struct DeprecatedUnitStruct; - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] pub struct UnstableUnitStruct; pub struct UnmarkedUnitStruct; #[stable(feature = "grandfathered", since = "1.0.0")] @@ -218,7 +218,7 @@ mod this_crate { pub enum Enum { #[deprecated(feature = "oldstuff", since = "1.0.0")] DeprecatedVariant, - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] UnstableVariant, UnmarkedVariant, @@ -228,7 +228,7 @@ mod this_crate { #[deprecated(feature = "oldstuff", since = "1.0.0")] pub struct DeprecatedTupleStruct(isize); - #[unstable(feature = "unnamed_feature")] + #[unstable(feature = "test_feature")] pub struct UnstableTupleStruct(isize); pub struct UnmarkedTupleStruct(isize); #[stable(feature = "grandfathered", since = "1.0.0")] |
