Improve wording.
This commit is contained in:
parent
43a5ff4222
commit
8acab6bc56
@ -159,7 +159,7 @@ impl Collector<'tcx> {
|
||||
sym::link_cfg,
|
||||
span.unwrap(),
|
||||
GateIssue::Language,
|
||||
"is feature gated");
|
||||
"is unstable");
|
||||
}
|
||||
if lib.kind == cstore::NativeStaticNobundle &&
|
||||
!self.tcx.features().static_nobundle {
|
||||
@ -167,7 +167,7 @@ impl Collector<'tcx> {
|
||||
sym::static_nobundle,
|
||||
span.unwrap_or_else(|| syntax_pos::DUMMY_SP),
|
||||
GateIssue::Language,
|
||||
"kind=\"static-nobundle\" is feature gated");
|
||||
"kind=\"static-nobundle\" is unstable");
|
||||
}
|
||||
self.libs.push(lib);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Obsolete attributes fall back to feature gated custom attributes.
|
||||
// Obsolete attributes fall back to unstable custom attributes.
|
||||
|
||||
#[ab_isize="stdcall"] extern {}
|
||||
//~^ ERROR cannot find attribute macro `ab_isize` in this scope
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Unknown attributes fall back to feature gated custom attributes.
|
||||
// Unknown attributes fall back to unstable custom attributes.
|
||||
|
||||
#![feature(custom_inner_attributes)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//~ ERROR kind="static-nobundle" is feature gated
|
||||
//~ ERROR kind="static-nobundle" is unstable
|
||||
// Test the behavior of rustc when non-existent library is statically linked
|
||||
|
||||
// compile-flags: -l static-nobundle=nonexistent
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0658]: kind="static-nobundle" is feature gated
|
||||
error[E0658]: kind="static-nobundle" is unstable
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/37403
|
||||
= help: add `#![feature(static_nobundle)]` to the crate attributes to enable
|
||||
|
@ -1,11 +1,11 @@
|
||||
fn main() {
|
||||
// Assert `Iterator` methods are feature gated
|
||||
// Assert `Iterator` methods are unstable
|
||||
assert!([1, 2, 2, 9].iter().is_sorted());
|
||||
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||
assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
|
||||
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||
|
||||
// Assert `[T]` methods are feature gated
|
||||
// Assert `[T]` methods are unstable
|
||||
assert!([1, 2, 2, 9].is_sorted());
|
||||
//~^ ERROR: use of unstable library feature 'is_sorted': new API
|
||||
assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
|
||||
|
@ -1,5 +1,5 @@
|
||||
#[link(name = "foo", cfg(foo))]
|
||||
//~^ ERROR: is feature gated
|
||||
//~^ ERROR: is unstable
|
||||
extern {}
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0658]: is feature gated
|
||||
error[E0658]: is unstable
|
||||
--> $DIR/feature-gate-link_cfg.rs:1:1
|
||||
|
|
||||
LL | #[link(name = "foo", cfg(foo))]
|
||||
|
@ -1,5 +1,5 @@
|
||||
#[link(name="foo", kind="static-nobundle")]
|
||||
//~^ ERROR: kind="static-nobundle" is feature gated
|
||||
//~^ ERROR: kind="static-nobundle" is unstable
|
||||
extern {}
|
||||
|
||||
fn main() {}
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0658]: kind="static-nobundle" is feature gated
|
||||
error[E0658]: kind="static-nobundle" is unstable
|
||||
--> $DIR/feature-gate-static-nobundle.rs:1:1
|
||||
|
|
||||
LL | #[link(name="foo", kind="static-nobundle")]
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Type ascription is feature gated
|
||||
// Type ascription is unstable
|
||||
|
||||
fn main() {
|
||||
let a = 10: u8; //~ ERROR type ascription is experimental
|
||||
|
@ -23,11 +23,11 @@ macro_rules! attr_proc_mac {
|
||||
//~^ ERROR cannot find
|
||||
struct Foo;
|
||||
|
||||
// Interpreted as a feature gated custom attribute
|
||||
// Interpreted as an unstable custom attribute
|
||||
#[attr_proc_macra] //~ ERROR cannot find attribute macro `attr_proc_macra` in this scope
|
||||
struct Bar;
|
||||
|
||||
// Interpreted as a feature gated custom attribute
|
||||
// Interpreted as an unstable custom attribute
|
||||
#[FooWithLongNan] //~ ERROR cannot find attribute macro `FooWithLongNan` in this scope
|
||||
struct Asdf;
|
||||
|
||||
|
@ -4,7 +4,7 @@ type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::
|
||||
#[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
|
||||
struct S;
|
||||
|
||||
// Interpreted as a feature gated custom attribute
|
||||
// Interpreted as an unstable custom attribute
|
||||
#[rustfmt] //~ ERROR cannot find attribute macro `rustfmt` in this scope
|
||||
fn check() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user