1
Fork 0

Rollup merge of #132544 - dianne:unstable-library-feature-backticks, r=compiler-errors

Use backticks instead of single quotes for library feature names in diagnostics

This PR changes the text of library feature errors for using unstable or body-unstable items. Displaying library feature names in backticks is consistent with other diagnostics (e.g. those from `rustc_passes`) and with the `reason`s on unstable attributes in the library. Additionally, this simplifies diagnostics when supporting multiple unstable attributes on items (see #131824) since `DiagSymbolList` also displays symbols using backticks.
This commit is contained in:
Matthias Krüger 2024-11-04 18:12:46 +01:00 committed by GitHub
commit b9db639ea5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
113 changed files with 433 additions and 431 deletions

View file

@ -311,8 +311,8 @@ hir_analysis_missing_trait_item_suggestion = implement the missing item: `{$snip
hir_analysis_missing_trait_item_unstable = not all trait items implemented, missing: `{$missing_item_name}` hir_analysis_missing_trait_item_unstable = not all trait items implemented, missing: `{$missing_item_name}`
.note = default implementation of `{$missing_item_name}` is unstable .note = default implementation of `{$missing_item_name}` is unstable
.some_note = use of unstable library feature '{$feature}': {$reason} .some_note = use of unstable library feature `{$feature}`: {$reason}
.none_note = use of unstable library feature '{$feature}' .none_note = use of unstable library feature `{$feature}`
hir_analysis_missing_type_params = hir_analysis_missing_type_params =
the type {$parameterCount -> the type {$parameterCount ->

View file

@ -112,8 +112,8 @@ pub fn report_unstable(
soft_handler: impl FnOnce(&'static Lint, Span, String), soft_handler: impl FnOnce(&'static Lint, Span, String),
) { ) {
let msg = match reason { let msg = match reason {
Some(r) => format!("use of unstable library feature '{feature}': {r}"), Some(r) => format!("use of unstable library feature `{feature}`: {r}"),
None => format!("use of unstable library feature '{feature}'"), None => format!("use of unstable library feature `{feature}`"),
}; };
if is_soft { if is_soft {

View file

@ -1,24 +1,25 @@
//@ ignore-stage1 FIXME: this line can be removed once these new error messages are in stage 0 rustc
//@ compile-flags: -Zdeduplicate-diagnostics=yes //@ compile-flags: -Zdeduplicate-diagnostics=yes
extern crate rustc_data_structures; extern crate rustc_data_structures;
//~^ use of unstable library feature 'rustc_private' //~^ use of unstable library feature `rustc_private`
//~| NOTE: issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information //~| NOTE: issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date //~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
extern crate rustc_macros; extern crate rustc_macros;
//~^ use of unstable library feature 'rustc_private' //~^ use of unstable library feature `rustc_private`
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information //~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date //~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
extern crate rustc_query_system; extern crate rustc_query_system;
//~^ use of unstable library feature 'rustc_private' //~^ use of unstable library feature `rustc_private`
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information //~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date //~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
use rustc_macros::HashStable; use rustc_macros::HashStable;
//~^ use of unstable library feature 'rustc_private' //~^ use of unstable library feature `rustc_private`
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information //~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date //~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
#[derive(HashStable)] #[derive(HashStable)]
//~^ use of unstable library feature 'rustc_private' //~^ use of unstable library feature `rustc_private`
//~| NOTE: in this expansion of #[derive(HashStable)] //~| NOTE: in this expansion of #[derive(HashStable)]
//~| NOTE: in this expansion of #[derive(HashStable)] //~| NOTE: in this expansion of #[derive(HashStable)]
//~| NOTE: in this expansion of #[derive(HashStable)] //~| NOTE: in this expansion of #[derive(HashStable)]

View file

@ -1,5 +1,5 @@
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:2:1 --> $DIR/hash-stable-is-unstable.rs:3:1
| |
LL | extern crate rustc_data_structures; LL | extern crate rustc_data_structures;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -8,8 +8,8 @@ LL | extern crate rustc_data_structures;
= help: add `#![feature(rustc_private)]` to the crate attributes to enable = help: add `#![feature(rustc_private)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:6:1 --> $DIR/hash-stable-is-unstable.rs:7:1
| |
LL | extern crate rustc_macros; LL | extern crate rustc_macros;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -18,8 +18,8 @@ LL | extern crate rustc_macros;
= help: add `#![feature(rustc_private)]` to the crate attributes to enable = help: add `#![feature(rustc_private)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:10:1 --> $DIR/hash-stable-is-unstable.rs:11:1
| |
LL | extern crate rustc_query_system; LL | extern crate rustc_query_system;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -28,8 +28,8 @@ LL | extern crate rustc_query_system;
= help: add `#![feature(rustc_private)]` to the crate attributes to enable = help: add `#![feature(rustc_private)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:15:5 --> $DIR/hash-stable-is-unstable.rs:16:5
| |
LL | use rustc_macros::HashStable; LL | use rustc_macros::HashStable;
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^
@ -38,8 +38,8 @@ LL | use rustc_macros::HashStable;
= help: add `#![feature(rustc_private)]` to the crate attributes to enable = help: add `#![feature(rustc_private)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/hash-stable-is-unstable.rs:20:10 --> $DIR/hash-stable-is-unstable.rs:21:10
| |
LL | #[derive(HashStable)] LL | #[derive(HashStable)]
| ^^^^^^^^^^ | ^^^^^^^^^^

View file

@ -1,9 +1,10 @@
//@ ignore-stage1 FIXME: this line can be removed once these new error messages are in stage 0 rustc
//@ edition:2018 //@ edition:2018
//@ compile-flags:--extern rustc_middle //@ compile-flags:--extern rustc_middle
// Test that `--extern rustc_middle` fails with `rustc_private`. // Test that `--extern rustc_middle` fails with `rustc_private`.
pub use rustc_middle; pub use rustc_middle;
//~^ ERROR use of unstable library feature 'rustc_private' //~^ ERROR use of unstable library feature `rustc_private`
fn main() {} fn main() {}

View file

@ -1,5 +1,5 @@
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/pathless-extern-unstable.rs:6:9 --> $DIR/pathless-extern-unstable.rs:7:9
| |
LL | pub use rustc_middle; LL | pub use rustc_middle;
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^

View file

@ -4,6 +4,6 @@
#![feature(inherent_associated_types)] #![feature(inherent_associated_types)]
#![allow(incomplete_features)] #![allow(incomplete_features)]
type Data = aux::Owner::Data; //~ ERROR use of unstable library feature 'data' type Data = aux::Owner::Data; //~ ERROR use of unstable library feature `data`
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'data' error[E0658]: use of unstable library feature `data`
--> $DIR/assoc-inherent-unstable.rs:7:13 --> $DIR/assoc-inherent-unstable.rs:7:13
| |
LL | type Data = aux::Owner::Data; LL | type Data = aux::Owner::Data;

View file

@ -3,7 +3,7 @@ fn foo(x: impl async Fn()) -> impl async Fn() { x }
//~| ERROR `async` trait bounds are only allowed in Rust 2018 or later //~| ERROR `async` trait bounds are only allowed in Rust 2018 or later
//~| ERROR async closures are unstable //~| ERROR async closures are unstable
//~| ERROR async closures are unstable //~| ERROR async closures are unstable
//~| ERROR use of unstable library feature 'async_closure' //~| ERROR use of unstable library feature `async_closure`
//~| ERROR use of unstable library feature 'async_closure' //~| ERROR use of unstable library feature `async_closure`
fn main() {} fn main() {}

View file

@ -38,7 +38,7 @@ LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= help: to use an async block, remove the `||`: `async {` = help: to use an async block, remove the `||`: `async {`
error[E0658]: use of unstable library feature 'async_closure' error[E0658]: use of unstable library feature `async_closure`
--> $DIR/edition-2015.rs:1:42 --> $DIR/edition-2015.rs:1:42
| |
LL | fn foo(x: impl async Fn()) -> impl async Fn() { x } LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
@ -48,7 +48,7 @@ LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }
= help: add `#![feature(async_closure)]` to the crate attributes to enable = help: add `#![feature(async_closure)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'async_closure' error[E0658]: use of unstable library feature `async_closure`
--> $DIR/edition-2015.rs:1:22 --> $DIR/edition-2015.rs:1:22
| |
LL | fn foo(x: impl async Fn()) -> impl async Fn() { x } LL | fn foo(x: impl async Fn()) -> impl async Fn() { x }

View file

@ -2,5 +2,5 @@ use std::boxed::Box;
fn main() { fn main() {
let _boxed: Box<u32, _> = Box::new(10); let _boxed: Box<u32, _> = Box::new(10);
//~^ ERROR use of unstable library feature 'allocator_api' //~^ ERROR use of unstable library feature `allocator_api`
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'allocator_api' error[E0658]: use of unstable library feature `allocator_api`
--> $DIR/alloc-unstable-fail.rs:4:26 --> $DIR/alloc-unstable-fail.rs:4:26
| |
LL | let _boxed: Box<u32, _> = Box::new(10); LL | let _boxed: Box<u32, _> = Box::new(10);

View file

@ -1,2 +1,2 @@
#[cfg_accessible(std)] //~ ERROR use of unstable library feature 'cfg_accessible' #[cfg_accessible(std)] //~ ERROR use of unstable library feature `cfg_accessible`
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'cfg_accessible': `cfg_accessible` is not fully implemented error[E0658]: use of unstable library feature `cfg_accessible`: `cfg_accessible` is not fully implemented
--> $DIR/cfg_accessible-unstable.rs:1:3 --> $DIR/cfg_accessible-unstable.rs:1:3
| |
LL | #[cfg_accessible(std)] LL | #[cfg_accessible(std)]

View file

@ -15,16 +15,16 @@ const fn const_main() {
let x = 42; let x = 42;
unsafe { unsafe {
unstable_intrinsic::old_way::size_of_val(&x); unstable_intrinsic::old_way::size_of_val(&x);
//~^ERROR: unstable library feature 'unstable' //~^ERROR: unstable library feature `unstable`
//~|ERROR: cannot call non-const intrinsic //~|ERROR: cannot call non-const intrinsic
unstable_intrinsic::old_way::min_align_of_val(&x); unstable_intrinsic::old_way::min_align_of_val(&x);
//~^ERROR: unstable library feature 'unstable' //~^ERROR: unstable library feature `unstable`
//~|ERROR: not yet stable as a const intrinsic //~|ERROR: not yet stable as a const intrinsic
unstable_intrinsic::new_way::size_of_val(&x); unstable_intrinsic::new_way::size_of_val(&x);
//~^ERROR: unstable library feature 'unstable' //~^ERROR: unstable library feature `unstable`
//~|ERROR: cannot be (indirectly) exposed to stable //~|ERROR: cannot be (indirectly) exposed to stable
unstable_intrinsic::new_way::min_align_of_val(&x); unstable_intrinsic::new_way::min_align_of_val(&x);
//~^ERROR: unstable library feature 'unstable' //~^ERROR: unstable library feature `unstable`
//~|ERROR: not yet stable as a const intrinsic //~|ERROR: not yet stable as a const intrinsic
old_way::size_of_val(&x); old_way::size_of_val(&x);

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable' error[E0658]: use of unstable library feature `unstable`
--> $DIR/const-unstable-intrinsic.rs:17:9 --> $DIR/const-unstable-intrinsic.rs:17:9
| |
LL | unstable_intrinsic::old_way::size_of_val(&x); LL | unstable_intrinsic::old_way::size_of_val(&x);
@ -8,7 +8,7 @@ LL | unstable_intrinsic::old_way::size_of_val(&x);
= help: add `#![feature(unstable)]` to the crate attributes to enable = help: add `#![feature(unstable)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable' error[E0658]: use of unstable library feature `unstable`
--> $DIR/const-unstable-intrinsic.rs:20:9 --> $DIR/const-unstable-intrinsic.rs:20:9
| |
LL | unstable_intrinsic::old_way::min_align_of_val(&x); LL | unstable_intrinsic::old_way::min_align_of_val(&x);
@ -18,7 +18,7 @@ LL | unstable_intrinsic::old_way::min_align_of_val(&x);
= help: add `#![feature(unstable)]` to the crate attributes to enable = help: add `#![feature(unstable)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable' error[E0658]: use of unstable library feature `unstable`
--> $DIR/const-unstable-intrinsic.rs:23:9 --> $DIR/const-unstable-intrinsic.rs:23:9
| |
LL | unstable_intrinsic::new_way::size_of_val(&x); LL | unstable_intrinsic::new_way::size_of_val(&x);
@ -28,7 +28,7 @@ LL | unstable_intrinsic::new_way::size_of_val(&x);
= help: add `#![feature(unstable)]` to the crate attributes to enable = help: add `#![feature(unstable)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable' error[E0658]: use of unstable library feature `unstable`
--> $DIR/const-unstable-intrinsic.rs:26:9 --> $DIR/const-unstable-intrinsic.rs:26:9
| |
LL | unstable_intrinsic::new_way::min_align_of_val(&x); LL | unstable_intrinsic::new_way::min_align_of_val(&x);

View file

@ -1,5 +1,5 @@
Future incompatibility report: Future breakage diagnostic: Future incompatibility report: Future breakage diagnostic:
warning: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code warning: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
--> $DIR/rustc-decodable-issue-123156.rs:10:10 --> $DIR/rustc-decodable-issue-123156.rs:10:10
| |
LL | #[derive(RustcDecodable)] LL | #[derive(RustcDecodable)]

View file

@ -18,7 +18,7 @@ fn main() {
let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } = let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
Record::new(); Record::new();
//~^^ ERROR use of unstable library feature 'unstable_undeclared' //~^^ ERROR use of unstable library feature `unstable_undeclared`
let r = Record::new(); let r = Record::new();
let t = Tuple::new(); let t = Tuple::new();

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:19:63 --> $DIR/explore-issue-38412.rs:19:63
| |
LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } = LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_undeclared_pub: _, .. } =
@ -8,7 +8,7 @@ LL | let Record { a_stable_pub: _, a_unstable_declared_pub: _, a_unstable_un
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable = help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:28:5 --> $DIR/explore-issue-38412.rs:28:5
| |
LL | r.a_unstable_undeclared_pub; LL | r.a_unstable_undeclared_pub;
@ -36,7 +36,7 @@ error[E0616]: field `d_priv` of struct `Record` is private
LL | r.d_priv; LL | r.d_priv;
| ^^^^^^ private field | ^^^^^^ private field
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:35:5 --> $DIR/explore-issue-38412.rs:35:5
| |
LL | t.2; LL | t.2;
@ -64,7 +64,7 @@ error[E0616]: field `5` of struct `pub_and_stability::Tuple` is private
LL | t.5; LL | t.5;
| ^ private field | ^ private field
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:42:7 --> $DIR/explore-issue-38412.rs:42:7
| |
LL | r.unstable_undeclared_trait_method(); LL | r.unstable_undeclared_trait_method();
@ -74,7 +74,7 @@ LL | r.unstable_undeclared_trait_method();
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable = help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:46:7 --> $DIR/explore-issue-38412.rs:46:7
| |
LL | r.unstable_undeclared(); LL | r.unstable_undeclared();
@ -117,7 +117,7 @@ LL | r.private();
LL | fn private(&self) -> i32 { self.d_priv } LL | fn private(&self) -> i32 { self.d_priv }
| ------------------------ private method defined here | ------------------------ private method defined here
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:55:7 --> $DIR/explore-issue-38412.rs:55:7
| |
LL | t.unstable_undeclared_trait_method(); LL | t.unstable_undeclared_trait_method();
@ -127,7 +127,7 @@ LL | t.unstable_undeclared_trait_method();
= help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable = help: add `#![feature(unstable_undeclared)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_undeclared' error[E0658]: use of unstable library feature `unstable_undeclared`
--> $DIR/explore-issue-38412.rs:59:7 --> $DIR/explore-issue-38412.rs:59:7
| |
LL | t.unstable_undeclared(); LL | t.unstable_undeclared();

View file

@ -1,9 +1,9 @@
//@ edition:2018 //@ edition:2018
#[bench] //~ ERROR use of unstable library feature 'test' #[bench] //~ ERROR use of unstable library feature `test`
//~| WARN this was previously accepted //~| WARN this was previously accepted
fn bench() {} fn bench() {}
use bench as _; //~ ERROR use of unstable library feature 'test' use bench as _; //~ ERROR use of unstable library feature `test`
//~| WARN this was previously accepted //~| WARN this was previously accepted
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/bench.rs:3:3 --> $DIR/bench.rs:3:3
| |
LL | #[bench] LL | #[bench]
@ -8,7 +8,7 @@ LL | #[bench]
= note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266> = note: for more information, see issue #64266 <https://github.com/rust-lang/rust/issues/64266>
= note: `#[deny(soft_unstable)]` on by default = note: `#[deny(soft_unstable)]` on by default
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/bench.rs:7:5 --> $DIR/bench.rs:7:5
| |
LL | use bench as _; LL | use bench as _;
@ -20,7 +20,7 @@ LL | use bench as _;
error: aborting due to 2 previous errors error: aborting due to 2 previous errors
Future incompatibility report: Future breakage diagnostic: Future incompatibility report: Future breakage diagnostic:
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/bench.rs:3:3 --> $DIR/bench.rs:3:3
| |
LL | #[bench] LL | #[bench]
@ -31,7 +31,7 @@ LL | #[bench]
= note: `#[deny(soft_unstable)]` on by default = note: `#[deny(soft_unstable)]` on by default
Future breakage diagnostic: Future breakage diagnostic:
error: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable error: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/bench.rs:7:5 --> $DIR/bench.rs:7:5
| |
LL | use bench as _; LL | use bench as _;

View file

@ -5,7 +5,7 @@
use core::alloc::Layout; use core::alloc::Layout;
#[alloc_error_handler] //~ ERROR use of unstable library feature 'alloc_error_handler' #[alloc_error_handler] //~ ERROR use of unstable library feature `alloc_error_handler`
fn oom(info: Layout) -> ! { fn oom(info: Layout) -> ! {
loop {} loop {}
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'alloc_error_handler' error[E0658]: use of unstable library feature `alloc_error_handler`
--> $DIR/feature-gate-alloc-error-handler.rs:8:3 --> $DIR/feature-gate-alloc-error-handler.rs:8:3
| |
LL | #[alloc_error_handler] LL | #[alloc_error_handler]

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'autodiff' error[E0658]: use of unstable library feature `autodiff`
--> $DIR/feature-gate-autodiff-use.rs:13:3 --> $DIR/feature-gate-autodiff-use.rs:13:3
| |
LL | #[autodiff(dfoo, Reverse)] LL | #[autodiff(dfoo, Reverse)]
@ -8,7 +8,7 @@ LL | #[autodiff(dfoo, Reverse)]
= help: add `#![feature(autodiff)]` to the crate attributes to enable = help: add `#![feature(autodiff)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'autodiff' error[E0658]: use of unstable library feature `autodiff`
--> $DIR/feature-gate-autodiff-use.rs:9:5 --> $DIR/feature-gate-autodiff-use.rs:9:5
| |
LL | use std::autodiff::autodiff; LL | use std::autodiff::autodiff;

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'autodiff' error[E0658]: use of unstable library feature `autodiff`
--> $DIR/feature-gate-autodiff-use.rs:13:3 --> $DIR/feature-gate-autodiff-use.rs:13:3
| |
LL | #[autodiff(dfoo, Reverse)] LL | #[autodiff(dfoo, Reverse)]
@ -14,7 +14,7 @@ error: this rustc version does not support autodiff
LL | #[autodiff(dfoo, Reverse)] LL | #[autodiff(dfoo, Reverse)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'autodiff' error[E0658]: use of unstable library feature `autodiff`
--> $DIR/feature-gate-autodiff-use.rs:9:5 --> $DIR/feature-gate-autodiff-use.rs:9:5
| |
LL | use std::autodiff::autodiff; LL | use std::autodiff::autodiff;

View file

@ -7,11 +7,11 @@
#![crate_type = "lib"] #![crate_type = "lib"]
use std::autodiff::autodiff; use std::autodiff::autodiff;
//[has_support]~^ ERROR use of unstable library feature 'autodiff' //[has_support]~^ ERROR use of unstable library feature `autodiff`
//[no_support]~^^ ERROR use of unstable library feature 'autodiff' //[no_support]~^^ ERROR use of unstable library feature `autodiff`
#[autodiff(dfoo, Reverse)] #[autodiff(dfoo, Reverse)]
//[has_support]~^ ERROR use of unstable library feature 'autodiff' [E0658] //[has_support]~^ ERROR use of unstable library feature `autodiff` [E0658]
//[no_support]~^^ ERROR use of unstable library feature 'autodiff' [E0658] //[no_support]~^^ ERROR use of unstable library feature `autodiff` [E0658]
//[no_support]~| ERROR this rustc version does not support autodiff //[no_support]~| ERROR this rustc version does not support autodiff
fn foo() {} fn foo() {}

View file

@ -1,4 +1,4 @@
fn main() { fn main() {
let a = concat_bytes!(b'A', b"BC"); //~ ERROR use of unstable library feature 'concat_bytes' let a = concat_bytes!(b'A', b"BC"); //~ ERROR use of unstable library feature `concat_bytes`
assert_eq!(a, &[65, 66, 67]); assert_eq!(a, &[65, 66, 67]);
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'concat_bytes' error[E0658]: use of unstable library feature `concat_bytes`
--> $DIR/feature-gate-concat_bytes.rs:2:13 --> $DIR/feature-gate-concat_bytes.rs:2:13
| |
LL | let a = concat_bytes!(b'A', b"BC"); LL | let a = concat_bytes!(b'A', b"BC");

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'concat_idents': `concat_idents` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
--> $DIR/feature-gate-concat_idents.rs:5:13 --> $DIR/feature-gate-concat_idents.rs:5:13
| |
LL | let a = concat_idents!(X, Y_1); LL | let a = concat_idents!(X, Y_1);
@ -8,7 +8,7 @@ LL | let a = concat_idents!(X, Y_1);
= help: add `#![feature(concat_idents)]` to the crate attributes to enable = help: add `#![feature(concat_idents)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'concat_idents': `concat_idents` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
--> $DIR/feature-gate-concat_idents.rs:6:13 --> $DIR/feature-gate-concat_idents.rs:6:13
| |
LL | let b = concat_idents!(X, Y_2); LL | let b = concat_idents!(X, Y_2);

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'concat_idents': `concat_idents` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
--> $DIR/feature-gate-concat_idents2.rs:2:5 --> $DIR/feature-gate-concat_idents2.rs:2:5
| |
LL | concat_idents!(a, b); LL | concat_idents!(a, b);

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'concat_idents': `concat_idents` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
--> $DIR/feature-gate-concat_idents3.rs:5:20 --> $DIR/feature-gate-concat_idents3.rs:5:20
| |
LL | assert_eq!(10, concat_idents!(X, Y_1)); LL | assert_eq!(10, concat_idents!(X, Y_1));
@ -8,7 +8,7 @@ LL | assert_eq!(10, concat_idents!(X, Y_1));
= help: add `#![feature(concat_idents)]` to the crate attributes to enable = help: add `#![feature(concat_idents)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'concat_idents': `concat_idents` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
--> $DIR/feature-gate-concat_idents3.rs:6:20 --> $DIR/feature-gate-concat_idents3.rs:6:20
| |
LL | assert_eq!(20, concat_idents!(X, Y_2)); LL | assert_eq!(20, concat_idents!(X, Y_2));

View file

@ -7,7 +7,7 @@ LL | #[custom_mir(dialect = "built")]
= help: add `#![feature(custom_mir)]` to the crate attributes to enable = help: add `#![feature(custom_mir)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'custom_mir': MIR is an implementation detail and extremely unstable error[E0658]: use of unstable library feature `custom_mir`: MIR is an implementation detail and extremely unstable
--> $DIR/feature-gate-custom_mir.rs:4:5 --> $DIR/feature-gate-custom_mir.rs:4:5
| |
LL | use core::intrinsics::mir::*; LL | use core::intrinsics::mir::*;
@ -16,7 +16,7 @@ LL | use core::intrinsics::mir::*;
= help: add `#![feature(custom_mir)]` to the crate attributes to enable = help: add `#![feature(custom_mir)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'custom_mir': MIR is an implementation detail and extremely unstable error[E0658]: use of unstable library feature `custom_mir`: MIR is an implementation detail and extremely unstable
--> $DIR/feature-gate-custom_mir.rs:10:13 --> $DIR/feature-gate-custom_mir.rs:10:13
| |
LL | Return() LL | Return()

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'custom_test_frameworks': custom test frameworks are an unstable feature error[E0658]: use of unstable library feature `custom_test_frameworks`: custom test frameworks are an unstable feature
--> $DIR/feature-gate-custom_test_frameworks.rs:3:3 --> $DIR/feature-gate-custom_test_frameworks.rs:3:3
| |
LL | #[test_case] LL | #[test_case]

View file

@ -1,6 +1,6 @@
use std::marker::CoercePointee; //~ ERROR use of unstable library feature 'derive_coerce_pointee' use std::marker::CoercePointee; //~ ERROR use of unstable library feature `derive_coerce_pointee`
#[derive(CoercePointee)] //~ ERROR use of unstable library feature 'derive_coerce_pointee' #[derive(CoercePointee)] //~ ERROR use of unstable library feature `derive_coerce_pointee`
#[repr(transparent)] #[repr(transparent)]
struct MyPointer<'a, #[pointee] T: ?Sized> { struct MyPointer<'a, #[pointee] T: ?Sized> {
ptr: &'a T, ptr: &'a T,

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'derive_coerce_pointee' error[E0658]: use of unstable library feature `derive_coerce_pointee`
--> $DIR/feature-gate-derive-coerce-pointee.rs:3:10 --> $DIR/feature-gate-derive-coerce-pointee.rs:3:10
| |
LL | #[derive(CoercePointee)] LL | #[derive(CoercePointee)]
@ -8,7 +8,7 @@ LL | #[derive(CoercePointee)]
= help: add `#![feature(derive_coerce_pointee)]` to the crate attributes to enable = help: add `#![feature(derive_coerce_pointee)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'derive_coerce_pointee' error[E0658]: use of unstable library feature `derive_coerce_pointee`
--> $DIR/feature-gate-derive-coerce-pointee.rs:1:5 --> $DIR/feature-gate-derive-coerce-pointee.rs:1:5
| |
LL | use std::marker::CoercePointee; LL | use std::marker::CoercePointee;

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'format_args_nl': `format_args_nl` is only for internal language use and is subject to change error[E0658]: use of unstable library feature `format_args_nl`: `format_args_nl` is only for internal language use and is subject to change
--> $DIR/feature-gate-format_args_nl.rs:2:5 --> $DIR/feature-gate-format_args_nl.rs:2:5
| |
LL | format_args_nl!(""); LL | format_args_nl!("");

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'log_syntax': `log_syntax!` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `log_syntax`: `log_syntax!` is not stable enough for use and is subject to change
--> $DIR/feature-gate-log_syntax.rs:2:5 --> $DIR/feature-gate-log_syntax.rs:2:5
| |
LL | log_syntax!() LL | log_syntax!()

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'log_syntax': `log_syntax!` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `log_syntax`: `log_syntax!` is not stable enough for use and is subject to change
--> $DIR/feature-gate-log_syntax2.rs:2:22 --> $DIR/feature-gate-log_syntax2.rs:2:22
| |
LL | println!("{:?}", log_syntax!()); LL | println!("{:?}", log_syntax!());

View file

@ -1,13 +1,13 @@
//@ needs-asm-support //@ needs-asm-support
use std::arch::naked_asm; use std::arch::naked_asm;
//~^ ERROR use of unstable library feature 'naked_functions' //~^ ERROR use of unstable library feature `naked_functions`
#[naked] #[naked]
//~^ the `#[naked]` attribute is an experimental feature //~^ the `#[naked]` attribute is an experimental feature
extern "C" fn naked() { extern "C" fn naked() {
naked_asm!("") naked_asm!("")
//~^ ERROR use of unstable library feature 'naked_functions' //~^ ERROR use of unstable library feature `naked_functions`
//~| ERROR: requires unsafe //~| ERROR: requires unsafe
} }
@ -15,7 +15,7 @@ extern "C" fn naked() {
//~^ the `#[naked]` attribute is an experimental feature //~^ the `#[naked]` attribute is an experimental feature
extern "C" fn naked_2() -> isize { extern "C" fn naked_2() -> isize {
naked_asm!("") naked_asm!("")
//~^ ERROR use of unstable library feature 'naked_functions' //~^ ERROR use of unstable library feature `naked_functions`
//~| ERROR: requires unsafe //~| ERROR: requires unsafe
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'naked_functions' error[E0658]: use of unstable library feature `naked_functions`
--> $DIR/feature-gate-naked_functions.rs:9:5 --> $DIR/feature-gate-naked_functions.rs:9:5
| |
LL | naked_asm!("") LL | naked_asm!("")
@ -8,7 +8,7 @@ LL | naked_asm!("")
= help: add `#![feature(naked_functions)]` to the crate attributes to enable = help: add `#![feature(naked_functions)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'naked_functions' error[E0658]: use of unstable library feature `naked_functions`
--> $DIR/feature-gate-naked_functions.rs:17:5 --> $DIR/feature-gate-naked_functions.rs:17:5
| |
LL | naked_asm!("") LL | naked_asm!("")
@ -38,7 +38,7 @@ LL | #[naked]
= help: add `#![feature(naked_functions)]` to the crate attributes to enable = help: add `#![feature(naked_functions)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'naked_functions' error[E0658]: use of unstable library feature `naked_functions`
--> $DIR/feature-gate-naked_functions.rs:3:5 --> $DIR/feature-gate-naked_functions.rs:3:5
| |
LL | use std::arch::naked_asm; LL | use std::arch::naked_asm;

View file

@ -5,11 +5,11 @@ extern crate rustc_serialize; //~ERROR can't find crate for `rustc_serialize`
#[derive( #[derive(
RustcEncodable, RustcEncodable,
//~^ ERROR use of unstable library feature 'rustc_encodable_decodable' //~^ ERROR use of unstable library feature `rustc_encodable_decodable`
//~^^ WARNING this was previously accepted by the compiler //~^^ WARNING this was previously accepted by the compiler
//~^^^ WARNING use of deprecated macro `RustcEncodable` //~^^^ WARNING use of deprecated macro `RustcEncodable`
RustcDecodable, RustcDecodable,
//~^ ERROR use of unstable library feature 'rustc_encodable_decodable' //~^ ERROR use of unstable library feature `rustc_encodable_decodable`
//~^^ WARNING this was previously accepted by the compiler //~^^ WARNING this was previously accepted by the compiler
//~^^^ WARNING use of deprecated macro `RustcDecodable` //~^^^ WARNING use of deprecated macro `RustcDecodable`
)] )]

View file

@ -6,7 +6,7 @@ LL | extern crate rustc_serialize;
| |
= help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code error: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
--> $DIR/feature-gate-rustc_encodable_decodable.rs:7:5 --> $DIR/feature-gate-rustc_encodable_decodable.rs:7:5
| |
LL | RustcEncodable, LL | RustcEncodable,
@ -24,7 +24,7 @@ LL | RustcEncodable,
| |
= note: `#[warn(deprecated)]` on by default = note: `#[warn(deprecated)]` on by default
error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code error: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
--> $DIR/feature-gate-rustc_encodable_decodable.rs:11:5 --> $DIR/feature-gate-rustc_encodable_decodable.rs:11:5
| |
LL | RustcDecodable, LL | RustcDecodable,
@ -43,7 +43,7 @@ error: aborting due to 3 previous errors; 2 warnings emitted
For more information about this error, try `rustc --explain E0463`. For more information about this error, try `rustc --explain E0463`.
Future incompatibility report: Future breakage diagnostic: Future incompatibility report: Future breakage diagnostic:
error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code error: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
--> $DIR/feature-gate-rustc_encodable_decodable.rs:7:5 --> $DIR/feature-gate-rustc_encodable_decodable.rs:7:5
| |
LL | RustcEncodable, LL | RustcEncodable,
@ -54,7 +54,7 @@ LL | RustcEncodable,
= note: `#[deny(soft_unstable)]` on by default = note: `#[deny(soft_unstable)]` on by default
Future breakage diagnostic: Future breakage diagnostic:
error: use of unstable library feature 'rustc_encodable_decodable': derive macro for `rustc-serialize`; should not be used in new code error: use of unstable library feature `rustc_encodable_decodable`: derive macro for `rustc-serialize`; should not be used in new code
--> $DIR/feature-gate-rustc_encodable_decodable.rs:11:5 --> $DIR/feature-gate-rustc_encodable_decodable.rs:11:5
| |
LL | RustcDecodable, LL | RustcDecodable,

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'trace_macros': `trace_macros` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `trace_macros`: `trace_macros` is not stable enough for use and is subject to change
--> $DIR/feature-gate-trace_macros.rs:2:5 --> $DIR/feature-gate-trace_macros.rs:2:5
| |
LL | trace_macros!(true); LL | trace_macros!(true);

View file

@ -1,5 +1,5 @@
// Type ascription is unstable // Type ascription is unstable
fn main() { fn main() {
let a = type_ascribe!(10, u8); //~ ERROR use of unstable library feature 'type_ascription': placeholder syntax for type ascription let a = type_ascribe!(10, u8); //~ ERROR use of unstable library feature `type_ascription`: placeholder syntax for type ascription
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'type_ascription': placeholder syntax for type ascription error[E0658]: use of unstable library feature `type_ascription`: placeholder syntax for type ascription
--> $DIR/feature-gate-type_ascription.rs:4:13 --> $DIR/feature-gate-type_ascription.rs:4:13
| |
LL | let a = type_ascribe!(10, u8); LL | let a = type_ascribe!(10, u8);

View file

@ -1,9 +1,9 @@
#![allow(dead_code)] #![allow(dead_code)]
fn foo<F: Fn()>(mut f: F) { fn foo<F: Fn()>(mut f: F) {
f.call(()); //~ ERROR use of unstable library feature 'fn_traits' f.call(()); //~ ERROR use of unstable library feature `fn_traits`
f.call_mut(()); //~ ERROR use of unstable library feature 'fn_traits' f.call_mut(()); //~ ERROR use of unstable library feature `fn_traits`
f.call_once(()); //~ ERROR use of unstable library feature 'fn_traits' f.call_once(()); //~ ERROR use of unstable library feature `fn_traits`
} }
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-method-calls.rs:4:7 --> $DIR/feature-gate-unboxed-closures-method-calls.rs:4:7
| |
LL | f.call(()); LL | f.call(());
@ -8,7 +8,7 @@ LL | f.call(());
= help: add `#![feature(fn_traits)]` to the crate attributes to enable = help: add `#![feature(fn_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-method-calls.rs:5:7 --> $DIR/feature-gate-unboxed-closures-method-calls.rs:5:7
| |
LL | f.call_mut(()); LL | f.call_mut(());
@ -18,7 +18,7 @@ LL | f.call_mut(());
= help: add `#![feature(fn_traits)]` to the crate attributes to enable = help: add `#![feature(fn_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-method-calls.rs:6:7 --> $DIR/feature-gate-unboxed-closures-method-calls.rs:6:7
| |
LL | f.call_once(()); LL | f.call_once(());

View file

@ -1,9 +1,9 @@
#![allow(dead_code)] #![allow(dead_code)]
fn foo<F: Fn()>(mut f: F) { fn foo<F: Fn()>(mut f: F) {
Fn::call(&f, ()); //~ ERROR use of unstable library feature 'fn_traits' Fn::call(&f, ()); //~ ERROR use of unstable library feature `fn_traits`
FnMut::call_mut(&mut f, ()); //~ ERROR use of unstable library feature 'fn_traits' FnMut::call_mut(&mut f, ()); //~ ERROR use of unstable library feature `fn_traits`
FnOnce::call_once(f, ()); //~ ERROR use of unstable library feature 'fn_traits' FnOnce::call_once(f, ()); //~ ERROR use of unstable library feature `fn_traits`
} }
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:4:5 --> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:4:5
| |
LL | Fn::call(&f, ()); LL | Fn::call(&f, ());
@ -8,7 +8,7 @@ LL | Fn::call(&f, ());
= help: add `#![feature(fn_traits)]` to the crate attributes to enable = help: add `#![feature(fn_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:5:5 --> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:5:5
| |
LL | FnMut::call_mut(&mut f, ()); LL | FnMut::call_mut(&mut f, ());
@ -18,7 +18,7 @@ LL | FnMut::call_mut(&mut f, ());
= help: add `#![feature(fn_traits)]` to the crate attributes to enable = help: add `#![feature(fn_traits)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'fn_traits' error[E0658]: use of unstable library feature `fn_traits`
--> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:6:5 --> $DIR/feature-gate-unboxed-closures-ufcs-calls.rs:6:5
| |
LL | FnOnce::call_once(f, ()); LL | FnOnce::call_once(f, ());

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'ptr_internals': use `NonNull` instead and consider `PhantomData<T>` (if you also use `#[may_dangle]`), `Send`, and/or `Sync` error[E0658]: use of unstable library feature `ptr_internals`: use `NonNull` instead and consider `PhantomData<T>` (if you also use `#[may_dangle]`), `Send`, and/or `Sync`
--> $DIR/issue-49983-see-issue-0.rs:4:30 --> $DIR/issue-49983-see-issue-0.rs:4:30
| |
LL | #[allow(unused_imports)] use core::ptr::Unique; LL | #[allow(unused_imports)] use core::ptr::Unique;

View file

@ -1,5 +1,5 @@
// gate-test-rustc_private // gate-test-rustc_private
extern crate cfg_if; //~ ERROR use of unstable library feature 'rustc_private' extern crate cfg_if; //~ ERROR use of unstable library feature `rustc_private`
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> $DIR/rustc-private.rs:3:1 --> $DIR/rustc-private.rs:3:1
| |
LL | extern crate cfg_if; LL | extern crate cfg_if;

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'trace_macros': `trace_macros` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `trace_macros`: `trace_macros` is not stable enough for use and is subject to change
--> $DIR/trace_macros-gate.rs:4:5 --> $DIR/trace_macros-gate.rs:4:5
| |
LL | trace_macros!(); LL | trace_macros!();
@ -14,7 +14,7 @@ error: trace_macros! accepts only `true` or `false`
LL | trace_macros!(); LL | trace_macros!();
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
error[E0658]: use of unstable library feature 'trace_macros': `trace_macros` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `trace_macros`: `trace_macros` is not stable enough for use and is subject to change
--> $DIR/trace_macros-gate.rs:6:5 --> $DIR/trace_macros-gate.rs:6:5
| |
LL | trace_macros!(true); LL | trace_macros!(true);
@ -24,7 +24,7 @@ LL | trace_macros!(true);
= help: add `#![feature(trace_macros)]` to the crate attributes to enable = help: add `#![feature(trace_macros)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'trace_macros': `trace_macros` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `trace_macros`: `trace_macros` is not stable enough for use and is subject to change
--> $DIR/trace_macros-gate.rs:7:5 --> $DIR/trace_macros-gate.rs:7:5
| |
LL | trace_macros!(false); LL | trace_macros!(false);
@ -34,7 +34,7 @@ LL | trace_macros!(false);
= help: add `#![feature(trace_macros)]` to the crate attributes to enable = help: add `#![feature(trace_macros)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'trace_macros': `trace_macros` is not stable enough for use and is subject to change error[E0658]: use of unstable library feature `trace_macros`: `trace_macros` is not stable enough for use and is subject to change
--> $DIR/trace_macros-gate.rs:10:26 --> $DIR/trace_macros-gate.rs:10:26
| |
LL | ($x: ident) => { trace_macros!($x) } LL | ($x: ident) => { trace_macros!($x) }

View file

@ -9,7 +9,7 @@ help: consider importing the `test` crate
LL + extern crate test; LL + extern crate test;
| |
error[E0658]: use of unstable library feature 'test' error[E0658]: use of unstable library feature `test`
--> $DIR/issue-37887.rs:2:5 --> $DIR/issue-37887.rs:2:5
| |
LL | extern crate test; LL | extern crate test;

View file

@ -6,7 +6,7 @@
// indicates that `libc` was wrongly resolved to `libc` shipped with the // indicates that `libc` was wrongly resolved to `libc` shipped with the
// compiler: // compiler:
// //
// error[E0658]: use of unstable library feature 'rustc_private': \ // error[E0658]: use of unstable library feature `rustc_private`: \
// this crate is being loaded from the sysroot // this crate is being loaded from the sysroot
// //
extern crate libc; //~ ERROR: extern location for libc does not exist: test.rlib extern crate libc; //~ ERROR: extern location for libc does not exist: test.rlib

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'ipu_flatten' error[E0658]: use of unstable library feature `ipu_flatten`
--> $DIR/inference_unstable_forced.rs:11:20 --> $DIR/inference_unstable_forced.rs:11:20
| |
LL | assert_eq!('x'.ipu_flatten(), 0); LL | assert_eq!('x'.ipu_flatten(), 0);

View file

@ -4,10 +4,10 @@
// the // ~ form. // the // ~ form.
//@ aux-build:internal_unstable.rs //@ aux-build:internal_unstable.rs
//@ error-pattern:use of unstable library feature 'function' //@ error-pattern:use of unstable library feature `function`
//@ error-pattern:use of unstable library feature 'struct_field' //@ error-pattern:use of unstable library feature `struct_field`
//@ error-pattern:use of unstable library feature 'method' //@ error-pattern:use of unstable library feature `method`
//@ error-pattern:use of unstable library feature 'struct2_field' //@ error-pattern:use of unstable library feature `struct2_field`
#[macro_use] #[macro_use]
extern crate internal_unstable; extern crate internal_unstable;

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable-noallow.rs:16:5 --> $DIR/internal-unstable-noallow.rs:16:5
| |
LL | call_unstable_noallow!(); LL | call_unstable_noallow!();
@ -8,7 +8,7 @@ LL | call_unstable_noallow!();
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `call_unstable_noallow` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `call_unstable_noallow` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'struct_field' error[E0658]: use of unstable library feature `struct_field`
--> $DIR/internal-unstable-noallow.rs:18:5 --> $DIR/internal-unstable-noallow.rs:18:5
| |
LL | construct_unstable_noallow!(0); LL | construct_unstable_noallow!(0);
@ -18,7 +18,7 @@ LL | construct_unstable_noallow!(0);
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `construct_unstable_noallow` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `construct_unstable_noallow` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'method' error[E0658]: use of unstable library feature `method`
--> $DIR/internal-unstable-noallow.rs:20:35 --> $DIR/internal-unstable-noallow.rs:20:35
| |
LL | |x: internal_unstable::Foo| { call_method_noallow!(x) }; LL | |x: internal_unstable::Foo| { call_method_noallow!(x) };
@ -28,7 +28,7 @@ LL | |x: internal_unstable::Foo| { call_method_noallow!(x) };
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `call_method_noallow` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `call_method_noallow` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'struct2_field' error[E0658]: use of unstable library feature `struct2_field`
--> $DIR/internal-unstable-noallow.rs:22:35 --> $DIR/internal-unstable-noallow.rs:22:35
| |
LL | |x: internal_unstable::Bar| { access_field_noallow!(x) }; LL | |x: internal_unstable::Bar| { access_field_noallow!(x) };

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable-thread-local.rs:9:32 --> $DIR/internal-unstable-thread-local.rs:9:32
| |
LL | thread_local!(static BAR: () = internal_unstable::unstable()); LL | thread_local!(static BAR: () = internal_unstable::unstable());

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable.rs:48:25 --> $DIR/internal-unstable.rs:48:25
| |
LL | pass_through_allow!(internal_unstable::unstable()); LL | pass_through_allow!(internal_unstable::unstable());
@ -7,7 +7,7 @@ LL | pass_through_allow!(internal_unstable::unstable());
= help: add `#![feature(function)]` to the crate attributes to enable = help: add `#![feature(function)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable.rs:50:27 --> $DIR/internal-unstable.rs:50:27
| |
LL | pass_through_noallow!(internal_unstable::unstable()); LL | pass_through_noallow!(internal_unstable::unstable());
@ -16,7 +16,7 @@ LL | pass_through_noallow!(internal_unstable::unstable());
= help: add `#![feature(function)]` to the crate attributes to enable = help: add `#![feature(function)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable.rs:54:22 --> $DIR/internal-unstable.rs:54:22
| |
LL | println!("{:?}", internal_unstable::unstable()); LL | println!("{:?}", internal_unstable::unstable());
@ -25,7 +25,7 @@ LL | println!("{:?}", internal_unstable::unstable());
= help: add `#![feature(function)]` to the crate attributes to enable = help: add `#![feature(function)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable.rs:56:10 --> $DIR/internal-unstable.rs:56:10
| |
LL | bar!(internal_unstable::unstable()); LL | bar!(internal_unstable::unstable());
@ -34,7 +34,7 @@ LL | bar!(internal_unstable::unstable());
= help: add `#![feature(function)]` to the crate attributes to enable = help: add `#![feature(function)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'function' error[E0658]: use of unstable library feature `function`
--> $DIR/internal-unstable.rs:18:9 --> $DIR/internal-unstable.rs:18:9
| |
LL | internal_unstable::unstable(); LL | internal_unstable::unstable();

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library error[E0658]: use of unstable library feature `core_intrinsics`: intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
--> $DIR/unchecked_math_unstable.rs:4:19 --> $DIR/unchecked_math_unstable.rs:4:19
| |
LL | let add = std::intrinsics::unchecked_add(x, y); LL | let add = std::intrinsics::unchecked_add(x, y);
@ -7,7 +7,7 @@ LL | let add = std::intrinsics::unchecked_add(x, y);
= help: add `#![feature(core_intrinsics)]` to the crate attributes to enable = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library error[E0658]: use of unstable library feature `core_intrinsics`: intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
--> $DIR/unchecked_math_unstable.rs:5:19 --> $DIR/unchecked_math_unstable.rs:5:19
| |
LL | let sub = std::intrinsics::unchecked_sub(x, y); LL | let sub = std::intrinsics::unchecked_sub(x, y);
@ -16,7 +16,7 @@ LL | let sub = std::intrinsics::unchecked_sub(x, y);
= help: add `#![feature(core_intrinsics)]` to the crate attributes to enable = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library error[E0658]: use of unstable library feature `core_intrinsics`: intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
--> $DIR/unchecked_math_unstable.rs:6:19 --> $DIR/unchecked_math_unstable.rs:6:19
| |
LL | let mul = std::intrinsics::unchecked_mul(x, y); LL | let mul = std::intrinsics::unchecked_mul(x, y);

View file

@ -3,6 +3,6 @@
//@ compile-flags:--extern issue_52489 //@ compile-flags:--extern issue_52489
use issue_52489; use issue_52489;
//~^ ERROR use of unstable library feature 'issue_52489_unstable' //~^ ERROR use of unstable library feature `issue_52489_unstable`
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'issue_52489_unstable' error[E0658]: use of unstable library feature `issue_52489_unstable`
--> $DIR/issue-52489.rs:5:5 --> $DIR/issue-52489.rs:5:5
| |
LL | use issue_52489; LL | use issue_52489;

View file

@ -2,13 +2,13 @@
mod assert { mod assert {
use std::mem::{Assume, TransmuteFrom}; use std::mem::{Assume, TransmuteFrom};
//~^ ERROR: use of unstable library feature 'transmutability' //~^ ERROR: use of unstable library feature `transmutability`
//~| ERROR: use of unstable library feature 'transmutability' //~| ERROR: use of unstable library feature `transmutability`
pub fn is_transmutable<Src, Dst>() pub fn is_transmutable<Src, Dst>()
where where
Dst: TransmuteFrom<Src>, Dst: TransmuteFrom<Src>,
//~^ ERROR: use of unstable library feature 'transmutability' //~^ ERROR: use of unstable library feature `transmutability`
{ {
} }
} }

View file

@ -20,7 +20,7 @@ LL | | V = 0xFF,
LL | | } LL | | }
| |_- not a struct or union | |_- not a struct or union
error[E0658]: use of unstable library feature 'transmutability' error[E0658]: use of unstable library feature `transmutability`
--> $DIR/thaw-transmute-invalid-enum.rs:4:20 --> $DIR/thaw-transmute-invalid-enum.rs:4:20
| |
LL | use std::mem::{Assume, TransmuteFrom}; LL | use std::mem::{Assume, TransmuteFrom};
@ -30,7 +30,7 @@ LL | use std::mem::{Assume, TransmuteFrom};
= help: add `#![feature(transmutability)]` to the crate attributes to enable = help: add `#![feature(transmutability)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'transmutability' error[E0658]: use of unstable library feature `transmutability`
--> $DIR/thaw-transmute-invalid-enum.rs:4:28 --> $DIR/thaw-transmute-invalid-enum.rs:4:28
| |
LL | use std::mem::{Assume, TransmuteFrom}; LL | use std::mem::{Assume, TransmuteFrom};
@ -40,7 +40,7 @@ LL | use std::mem::{Assume, TransmuteFrom};
= help: add `#![feature(transmutability)]` to the crate attributes to enable = help: add `#![feature(transmutability)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'transmutability' error[E0658]: use of unstable library feature `transmutability`
--> $DIR/thaw-transmute-invalid-enum.rs:10:14 --> $DIR/thaw-transmute-invalid-enum.rs:10:14
| |
LL | Dst: TransmuteFrom<Src>, LL | Dst: TransmuteFrom<Src>,

View file

@ -11,7 +11,7 @@ macro_rules! m { ($i) => {} } //~ WARN missing fragment specifier
#[warn(soft_unstable)] #[warn(soft_unstable)]
mod benches { mod benches {
#[bench] //~ WARN use of unstable library feature 'test' #[bench] //~ WARN use of unstable library feature `test`
//~| WARN this was previously accepted //~| WARN this was previously accepted
fn foo() {} fn foo() {}
} }

View file

@ -26,7 +26,7 @@ note: the lint level is defined here
LL | #[warn(missing_fragment_specifier)] LL | #[warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable warning: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/expansion-time.rs:14:7 --> $DIR/expansion-time.rs:14:7
| |
LL | #[bench] LL | #[bench]
@ -70,7 +70,7 @@ LL | #[warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
Future breakage diagnostic: Future breakage diagnostic:
warning: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable warning: use of unstable library feature `test`: `bench` is a part of custom test frameworks which are unstable
--> $DIR/expansion-time.rs:14:7 --> $DIR/expansion-time.rs:14:7
| |
LL | #[bench] LL | #[bench]

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-output-format.rs:6:1 --> $DIR/lint-output-format.rs:6:1
| |
LL | extern crate lint_output_format; LL | extern crate lint_output_format;
@ -7,7 +7,7 @@ LL | extern crate lint_output_format;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-output-format.rs:7:26 --> $DIR/lint-output-format.rs:7:26
| |
LL | use lint_output_format::{foo, bar}; LL | use lint_output_format::{foo, bar};
@ -16,7 +16,7 @@ LL | use lint_output_format::{foo, bar};
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-output-format.rs:7:31 --> $DIR/lint-output-format.rs:7:31
| |
LL | use lint_output_format::{foo, bar}; LL | use lint_output_format::{foo, bar};
@ -25,7 +25,7 @@ LL | use lint_output_format::{foo, bar};
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-output-format.rs:12:14 --> $DIR/lint-output-format.rs:12:14
| |
LL | let _y = bar(); LL | let _y = bar();

View file

@ -66,15 +66,15 @@ mod cross_crate {
<Foo>::trait_unstable(&foo); //~ ERROR use of unstable library feature <Foo>::trait_unstable(&foo); //~ ERROR use of unstable library feature
foo.method_unstable_text(); foo.method_unstable_text();
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
Foo::method_unstable_text(&foo); Foo::method_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
<Foo>::method_unstable_text(&foo); <Foo>::method_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
foo.trait_unstable_text(); foo.trait_unstable_text();
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
<Foo>::trait_unstable_text(&foo); <Foo>::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
stable(); stable();
foo.method_stable(); foo.method_stable();
@ -139,9 +139,9 @@ mod cross_crate {
foo.trait_unstable(); //~ ERROR use of unstable library feature foo.trait_unstable(); //~ ERROR use of unstable library feature
<Foo>::trait_unstable(&foo); //~ ERROR use of unstable library feature <Foo>::trait_unstable(&foo); //~ ERROR use of unstable library feature
foo.trait_unstable_text(); foo.trait_unstable_text();
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
<Foo>::trait_unstable_text(&foo); <Foo>::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
foo.trait_stable(); foo.trait_stable();
Trait::trait_stable(&foo); Trait::trait_stable(&foo);
<Foo>::trait_stable(&foo); <Foo>::trait_stable(&foo);
@ -157,7 +157,7 @@ mod cross_crate {
//~^ ERROR use of unstable library feature //~^ ERROR use of unstable library feature
foo.trait_unstable(); //~ ERROR use of unstable library feature foo.trait_unstable(); //~ ERROR use of unstable library feature
foo.trait_unstable_text(); foo.trait_unstable_text();
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
foo.trait_stable(); foo.trait_stable();
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:40:13 --> $DIR/lint-stability-2.rs:40:13
| |
LL | foo.method_deprecated_unstable(); LL | foo.method_deprecated_unstable();
@ -7,7 +7,7 @@ LL | foo.method_deprecated_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:42:9 --> $DIR/lint-stability-2.rs:42:9
| |
LL | Foo::method_deprecated_unstable(&foo); LL | Foo::method_deprecated_unstable(&foo);
@ -16,7 +16,7 @@ LL | Foo::method_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:44:9 --> $DIR/lint-stability-2.rs:44:9
| |
LL | <Foo>::method_deprecated_unstable(&foo); LL | <Foo>::method_deprecated_unstable(&foo);
@ -25,7 +25,7 @@ LL | <Foo>::method_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:46:13 --> $DIR/lint-stability-2.rs:46:13
| |
LL | foo.trait_deprecated_unstable(); LL | foo.trait_deprecated_unstable();
@ -34,7 +34,7 @@ LL | foo.trait_deprecated_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:48:9 --> $DIR/lint-stability-2.rs:48:9
| |
LL | <Foo>::trait_deprecated_unstable(&foo); LL | <Foo>::trait_deprecated_unstable(&foo);
@ -43,7 +43,7 @@ LL | <Foo>::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:51:13 --> $DIR/lint-stability-2.rs:51:13
| |
LL | foo.method_deprecated_unstable_text(); LL | foo.method_deprecated_unstable_text();
@ -52,7 +52,7 @@ LL | foo.method_deprecated_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:53:9 --> $DIR/lint-stability-2.rs:53:9
| |
LL | Foo::method_deprecated_unstable_text(&foo); LL | Foo::method_deprecated_unstable_text(&foo);
@ -61,7 +61,7 @@ LL | Foo::method_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:55:9 --> $DIR/lint-stability-2.rs:55:9
| |
LL | <Foo>::method_deprecated_unstable_text(&foo); LL | <Foo>::method_deprecated_unstable_text(&foo);
@ -70,7 +70,7 @@ LL | <Foo>::method_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:57:13 --> $DIR/lint-stability-2.rs:57:13
| |
LL | foo.trait_deprecated_unstable_text(); LL | foo.trait_deprecated_unstable_text();
@ -79,7 +79,7 @@ LL | foo.trait_deprecated_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:59:9 --> $DIR/lint-stability-2.rs:59:9
| |
LL | <Foo>::trait_deprecated_unstable_text(&foo); LL | <Foo>::trait_deprecated_unstable_text(&foo);
@ -88,7 +88,7 @@ LL | <Foo>::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:62:13 --> $DIR/lint-stability-2.rs:62:13
| |
LL | foo.method_unstable(); LL | foo.method_unstable();
@ -97,7 +97,7 @@ LL | foo.method_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:63:9 --> $DIR/lint-stability-2.rs:63:9
| |
LL | Foo::method_unstable(&foo); LL | Foo::method_unstable(&foo);
@ -106,7 +106,7 @@ LL | Foo::method_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:64:9 --> $DIR/lint-stability-2.rs:64:9
| |
LL | <Foo>::method_unstable(&foo); LL | <Foo>::method_unstable(&foo);
@ -115,7 +115,7 @@ LL | <Foo>::method_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:65:13 --> $DIR/lint-stability-2.rs:65:13
| |
LL | foo.trait_unstable(); LL | foo.trait_unstable();
@ -124,7 +124,7 @@ LL | foo.trait_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:66:9 --> $DIR/lint-stability-2.rs:66:9
| |
LL | <Foo>::trait_unstable(&foo); LL | <Foo>::trait_unstable(&foo);
@ -133,7 +133,7 @@ LL | <Foo>::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:68:13 --> $DIR/lint-stability-2.rs:68:13
| |
LL | foo.method_unstable_text(); LL | foo.method_unstable_text();
@ -142,7 +142,7 @@ LL | foo.method_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:70:9 --> $DIR/lint-stability-2.rs:70:9
| |
LL | Foo::method_unstable_text(&foo); LL | Foo::method_unstable_text(&foo);
@ -151,7 +151,7 @@ LL | Foo::method_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:72:9 --> $DIR/lint-stability-2.rs:72:9
| |
LL | <Foo>::method_unstable_text(&foo); LL | <Foo>::method_unstable_text(&foo);
@ -160,7 +160,7 @@ LL | <Foo>::method_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:74:13 --> $DIR/lint-stability-2.rs:74:13
| |
LL | foo.trait_unstable_text(); LL | foo.trait_unstable_text();
@ -169,7 +169,7 @@ LL | foo.trait_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:76:9 --> $DIR/lint-stability-2.rs:76:9
| |
LL | <Foo>::trait_unstable_text(&foo); LL | <Foo>::trait_unstable_text(&foo);
@ -178,7 +178,7 @@ LL | <Foo>::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:131:13 --> $DIR/lint-stability-2.rs:131:13
| |
LL | foo.trait_deprecated_unstable(); LL | foo.trait_deprecated_unstable();
@ -187,7 +187,7 @@ LL | foo.trait_deprecated_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:133:9 --> $DIR/lint-stability-2.rs:133:9
| |
LL | <Foo>::trait_deprecated_unstable(&foo); LL | <Foo>::trait_deprecated_unstable(&foo);
@ -196,7 +196,7 @@ LL | <Foo>::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:135:13 --> $DIR/lint-stability-2.rs:135:13
| |
LL | foo.trait_deprecated_unstable_text(); LL | foo.trait_deprecated_unstable_text();
@ -205,7 +205,7 @@ LL | foo.trait_deprecated_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:137:9 --> $DIR/lint-stability-2.rs:137:9
| |
LL | <Foo>::trait_deprecated_unstable_text(&foo); LL | <Foo>::trait_deprecated_unstable_text(&foo);
@ -214,7 +214,7 @@ LL | <Foo>::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:139:13 --> $DIR/lint-stability-2.rs:139:13
| |
LL | foo.trait_unstable(); LL | foo.trait_unstable();
@ -223,7 +223,7 @@ LL | foo.trait_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:140:9 --> $DIR/lint-stability-2.rs:140:9
| |
LL | <Foo>::trait_unstable(&foo); LL | <Foo>::trait_unstable(&foo);
@ -232,7 +232,7 @@ LL | <Foo>::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:141:13 --> $DIR/lint-stability-2.rs:141:13
| |
LL | foo.trait_unstable_text(); LL | foo.trait_unstable_text();
@ -241,7 +241,7 @@ LL | foo.trait_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:143:9 --> $DIR/lint-stability-2.rs:143:9
| |
LL | <Foo>::trait_unstable_text(&foo); LL | <Foo>::trait_unstable_text(&foo);
@ -250,7 +250,7 @@ LL | <Foo>::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:154:13 --> $DIR/lint-stability-2.rs:154:13
| |
LL | foo.trait_deprecated_unstable(); LL | foo.trait_deprecated_unstable();
@ -259,7 +259,7 @@ LL | foo.trait_deprecated_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:156:13 --> $DIR/lint-stability-2.rs:156:13
| |
LL | foo.trait_deprecated_unstable_text(); LL | foo.trait_deprecated_unstable_text();
@ -268,7 +268,7 @@ LL | foo.trait_deprecated_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-2.rs:158:13 --> $DIR/lint-stability-2.rs:158:13
| |
LL | foo.trait_unstable(); LL | foo.trait_unstable();
@ -277,7 +277,7 @@ LL | foo.trait_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability-2.rs:159:13 --> $DIR/lint-stability-2.rs:159:13
| |
LL | foo.trait_unstable_text(); LL | foo.trait_unstable_text();

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:56:17 --> $DIR/lint-stability-fields.rs:56:17
| |
LL | let x = Unstable { LL | let x = Unstable {
@ -7,7 +7,7 @@ LL | let x = Unstable {
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:66:13 --> $DIR/lint-stability-fields.rs:66:13
| |
LL | let Unstable { LL | let Unstable {
@ -16,7 +16,7 @@ LL | let Unstable {
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:72:13 --> $DIR/lint-stability-fields.rs:72:13
| |
LL | let Unstable LL | let Unstable
@ -25,7 +25,7 @@ LL | let Unstable
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:77:17 --> $DIR/lint-stability-fields.rs:77:17
| |
LL | let x = reexport::Unstable2(1, 2, 3); LL | let x = reexport::Unstable2(1, 2, 3);
@ -34,7 +34,7 @@ LL | let x = reexport::Unstable2(1, 2, 3);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:79:17 --> $DIR/lint-stability-fields.rs:79:17
| |
LL | let x = Unstable2(1, 2, 3); LL | let x = Unstable2(1, 2, 3);
@ -43,7 +43,7 @@ LL | let x = Unstable2(1, 2, 3);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:85:13 --> $DIR/lint-stability-fields.rs:85:13
| |
LL | let Unstable2 LL | let Unstable2
@ -52,7 +52,7 @@ LL | let Unstable2
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:90:13 --> $DIR/lint-stability-fields.rs:90:13
| |
LL | let Unstable2 LL | let Unstable2
@ -61,7 +61,7 @@ LL | let Unstable2
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:95:17 --> $DIR/lint-stability-fields.rs:95:17
| |
LL | let x = Deprecated { LL | let x = Deprecated {
@ -70,7 +70,7 @@ LL | let x = Deprecated {
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:105:13 --> $DIR/lint-stability-fields.rs:105:13
| |
LL | let Deprecated { LL | let Deprecated {
@ -79,7 +79,7 @@ LL | let Deprecated {
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:111:13 --> $DIR/lint-stability-fields.rs:111:13
| |
LL | let Deprecated LL | let Deprecated
@ -88,7 +88,7 @@ LL | let Deprecated
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:115:17 --> $DIR/lint-stability-fields.rs:115:17
| |
LL | let x = Deprecated2(1, 2, 3); LL | let x = Deprecated2(1, 2, 3);
@ -97,7 +97,7 @@ LL | let x = Deprecated2(1, 2, 3);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:121:13 --> $DIR/lint-stability-fields.rs:121:13
| |
LL | let Deprecated2 LL | let Deprecated2
@ -106,7 +106,7 @@ LL | let Deprecated2
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:126:13 --> $DIR/lint-stability-fields.rs:126:13
| |
LL | let Deprecated2 LL | let Deprecated2
@ -115,7 +115,7 @@ LL | let Deprecated2
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:21:13 --> $DIR/lint-stability-fields.rs:21:13
| |
LL | override1: 2, LL | override1: 2,
@ -124,7 +124,7 @@ LL | override1: 2,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:22:13 --> $DIR/lint-stability-fields.rs:22:13
| |
LL | override2: 3, LL | override2: 3,
@ -133,7 +133,7 @@ LL | override2: 3,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:27:17 --> $DIR/lint-stability-fields.rs:27:17
| |
LL | let _ = x.override1; LL | let _ = x.override1;
@ -142,7 +142,7 @@ LL | let _ = x.override1;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:28:17 --> $DIR/lint-stability-fields.rs:28:17
| |
LL | let _ = x.override2; LL | let _ = x.override2;
@ -151,7 +151,7 @@ LL | let _ = x.override2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:33:13 --> $DIR/lint-stability-fields.rs:33:13
| |
LL | override1: _, LL | override1: _,
@ -160,7 +160,7 @@ LL | override1: _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:34:13 --> $DIR/lint-stability-fields.rs:34:13
| |
LL | override2: _, LL | override2: _,
@ -169,7 +169,7 @@ LL | override2: _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:43:17 --> $DIR/lint-stability-fields.rs:43:17
| |
LL | let _ = x.1; LL | let _ = x.1;
@ -178,7 +178,7 @@ LL | let _ = x.1;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:44:17 --> $DIR/lint-stability-fields.rs:44:17
| |
LL | let _ = x.2; LL | let _ = x.2;
@ -187,7 +187,7 @@ LL | let _ = x.2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:48:20 --> $DIR/lint-stability-fields.rs:48:20
| |
LL | _, LL | _,
@ -196,7 +196,7 @@ LL | _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:49:20 --> $DIR/lint-stability-fields.rs:49:20
| |
LL | _, LL | _,
@ -205,7 +205,7 @@ LL | _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:57:13 --> $DIR/lint-stability-fields.rs:57:13
| |
LL | inherit: 1, LL | inherit: 1,
@ -214,7 +214,7 @@ LL | inherit: 1,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:59:13 --> $DIR/lint-stability-fields.rs:59:13
| |
LL | override2: 3, LL | override2: 3,
@ -223,7 +223,7 @@ LL | override2: 3,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:62:17 --> $DIR/lint-stability-fields.rs:62:17
| |
LL | let _ = x.inherit; LL | let _ = x.inherit;
@ -232,7 +232,7 @@ LL | let _ = x.inherit;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:64:17 --> $DIR/lint-stability-fields.rs:64:17
| |
LL | let _ = x.override2; LL | let _ = x.override2;
@ -241,7 +241,7 @@ LL | let _ = x.override2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:67:13 --> $DIR/lint-stability-fields.rs:67:13
| |
LL | inherit: _, LL | inherit: _,
@ -250,7 +250,7 @@ LL | inherit: _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:69:13 --> $DIR/lint-stability-fields.rs:69:13
| |
LL | override2: _ LL | override2: _
@ -259,7 +259,7 @@ LL | override2: _
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:81:17 --> $DIR/lint-stability-fields.rs:81:17
| |
LL | let _ = x.0; LL | let _ = x.0;
@ -268,7 +268,7 @@ LL | let _ = x.0;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:83:17 --> $DIR/lint-stability-fields.rs:83:17
| |
LL | let _ = x.2; LL | let _ = x.2;
@ -277,7 +277,7 @@ LL | let _ = x.2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:86:14 --> $DIR/lint-stability-fields.rs:86:14
| |
LL | (_, LL | (_,
@ -286,7 +286,7 @@ LL | (_,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:88:14 --> $DIR/lint-stability-fields.rs:88:14
| |
LL | _) LL | _)
@ -295,7 +295,7 @@ LL | _)
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:96:13 --> $DIR/lint-stability-fields.rs:96:13
| |
LL | inherit: 1, LL | inherit: 1,
@ -304,7 +304,7 @@ LL | inherit: 1,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:98:13 --> $DIR/lint-stability-fields.rs:98:13
| |
LL | override2: 3, LL | override2: 3,
@ -313,7 +313,7 @@ LL | override2: 3,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:101:17 --> $DIR/lint-stability-fields.rs:101:17
| |
LL | let _ = x.inherit; LL | let _ = x.inherit;
@ -322,7 +322,7 @@ LL | let _ = x.inherit;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:103:17 --> $DIR/lint-stability-fields.rs:103:17
| |
LL | let _ = x.override2; LL | let _ = x.override2;
@ -331,7 +331,7 @@ LL | let _ = x.override2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:106:13 --> $DIR/lint-stability-fields.rs:106:13
| |
LL | inherit: _, LL | inherit: _,
@ -340,7 +340,7 @@ LL | inherit: _,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:108:13 --> $DIR/lint-stability-fields.rs:108:13
| |
LL | override2: _ LL | override2: _
@ -349,7 +349,7 @@ LL | override2: _
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:117:17 --> $DIR/lint-stability-fields.rs:117:17
| |
LL | let _ = x.0; LL | let _ = x.0;
@ -358,7 +358,7 @@ LL | let _ = x.0;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:119:17 --> $DIR/lint-stability-fields.rs:119:17
| |
LL | let _ = x.2; LL | let _ = x.2;
@ -367,7 +367,7 @@ LL | let _ = x.2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:122:14 --> $DIR/lint-stability-fields.rs:122:14
| |
LL | (_, LL | (_,
@ -376,7 +376,7 @@ LL | (_,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability-fields.rs:124:14 --> $DIR/lint-stability-fields.rs:124:14
| |
LL | _) LL | _)

View file

@ -61,11 +61,11 @@ mod cross_crate {
<Foo as Trait>::trait_unstable(&foo); //~ ERROR use of unstable library feature <Foo as Trait>::trait_unstable(&foo); //~ ERROR use of unstable library feature
unstable_text(); unstable_text();
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
Trait::trait_unstable_text(&foo); Trait::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
<Foo as Trait>::trait_unstable_text(&foo); <Foo as Trait>::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
stable(); stable();
foo.method_stable(); foo.method_stable();
@ -152,9 +152,9 @@ mod cross_crate {
Trait::trait_unstable(&foo); //~ ERROR use of unstable library feature Trait::trait_unstable(&foo); //~ ERROR use of unstable library feature
<Foo as Trait>::trait_unstable(&foo); //~ ERROR use of unstable library feature <Foo as Trait>::trait_unstable(&foo); //~ ERROR use of unstable library feature
Trait::trait_unstable_text(&foo); Trait::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
<Foo as Trait>::trait_unstable_text(&foo); <Foo as Trait>::trait_unstable_text(&foo);
//~^ ERROR use of unstable library feature 'unstable_test_feature': text //~^ ERROR use of unstable library feature `unstable_test_feature`: text
foo.trait_stable(); foo.trait_stable();
Trait::trait_stable(&foo); Trait::trait_stable(&foo);
<Foo>::trait_stable(&foo); <Foo>::trait_stable(&foo);

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:17:5 --> $DIR/lint-stability.rs:17:5
| |
LL | extern crate stability_cfg2; LL | extern crate stability_cfg2;
@ -7,7 +7,7 @@ LL | extern crate stability_cfg2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:45:9 --> $DIR/lint-stability.rs:45:9
| |
LL | deprecated_unstable(); LL | deprecated_unstable();
@ -16,7 +16,7 @@ LL | deprecated_unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:47:9 --> $DIR/lint-stability.rs:47:9
| |
LL | Trait::trait_deprecated_unstable(&foo); LL | Trait::trait_deprecated_unstable(&foo);
@ -25,7 +25,7 @@ LL | Trait::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:49:9 --> $DIR/lint-stability.rs:49:9
| |
LL | <Foo as Trait>::trait_deprecated_unstable(&foo); LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
@ -34,7 +34,7 @@ LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:52:9 --> $DIR/lint-stability.rs:52:9
| |
LL | deprecated_unstable_text(); LL | deprecated_unstable_text();
@ -43,7 +43,7 @@ LL | deprecated_unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:54:9 --> $DIR/lint-stability.rs:54:9
| |
LL | Trait::trait_deprecated_unstable_text(&foo); LL | Trait::trait_deprecated_unstable_text(&foo);
@ -52,7 +52,7 @@ LL | Trait::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:56:9 --> $DIR/lint-stability.rs:56:9
| |
LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo); LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
@ -61,7 +61,7 @@ LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:59:9 --> $DIR/lint-stability.rs:59:9
| |
LL | unstable(); LL | unstable();
@ -70,7 +70,7 @@ LL | unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:60:9 --> $DIR/lint-stability.rs:60:9
| |
LL | Trait::trait_unstable(&foo); LL | Trait::trait_unstable(&foo);
@ -79,7 +79,7 @@ LL | Trait::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:61:9 --> $DIR/lint-stability.rs:61:9
| |
LL | <Foo as Trait>::trait_unstable(&foo); LL | <Foo as Trait>::trait_unstable(&foo);
@ -88,7 +88,7 @@ LL | <Foo as Trait>::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability.rs:63:9 --> $DIR/lint-stability.rs:63:9
| |
LL | unstable_text(); LL | unstable_text();
@ -97,7 +97,7 @@ LL | unstable_text();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability.rs:65:9 --> $DIR/lint-stability.rs:65:9
| |
LL | Trait::trait_unstable_text(&foo); LL | Trait::trait_unstable_text(&foo);
@ -106,7 +106,7 @@ LL | Trait::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability.rs:67:9 --> $DIR/lint-stability.rs:67:9
| |
LL | <Foo as Trait>::trait_unstable_text(&foo); LL | <Foo as Trait>::trait_unstable_text(&foo);
@ -115,7 +115,7 @@ LL | <Foo as Trait>::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:99:17 --> $DIR/lint-stability.rs:99:17
| |
LL | let _ = DeprecatedUnstableStruct { LL | let _ = DeprecatedUnstableStruct {
@ -124,7 +124,7 @@ LL | let _ = DeprecatedUnstableStruct {
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:103:17 --> $DIR/lint-stability.rs:103:17
| |
LL | let _ = UnstableStruct { i: 0 }; LL | let _ = UnstableStruct { i: 0 };
@ -133,7 +133,7 @@ LL | let _ = UnstableStruct { i: 0 };
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:107:17 --> $DIR/lint-stability.rs:107:17
| |
LL | let _ = DeprecatedUnstableUnitStruct; LL | let _ = DeprecatedUnstableUnitStruct;
@ -142,7 +142,7 @@ LL | let _ = DeprecatedUnstableUnitStruct;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:109:17 --> $DIR/lint-stability.rs:109:17
| |
LL | let _ = UnstableUnitStruct; LL | let _ = UnstableUnitStruct;
@ -151,7 +151,7 @@ LL | let _ = UnstableUnitStruct;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:113:17 --> $DIR/lint-stability.rs:113:17
| |
LL | let _ = Enum::DeprecatedUnstableVariant; LL | let _ = Enum::DeprecatedUnstableVariant;
@ -160,7 +160,7 @@ LL | let _ = Enum::DeprecatedUnstableVariant;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:115:17 --> $DIR/lint-stability.rs:115:17
| |
LL | let _ = Enum::UnstableVariant; LL | let _ = Enum::UnstableVariant;
@ -169,7 +169,7 @@ LL | let _ = Enum::UnstableVariant;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:119:17 --> $DIR/lint-stability.rs:119:17
| |
LL | let _ = DeprecatedUnstableTupleStruct (1); LL | let _ = DeprecatedUnstableTupleStruct (1);
@ -178,7 +178,7 @@ LL | let _ = DeprecatedUnstableTupleStruct (1);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:121:17 --> $DIR/lint-stability.rs:121:17
| |
LL | let _ = UnstableTupleStruct (1); LL | let _ = UnstableTupleStruct (1);
@ -187,7 +187,7 @@ LL | let _ = UnstableTupleStruct (1);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:130:25 --> $DIR/lint-stability.rs:130:25
| |
LL | macro_test_arg!(deprecated_unstable_text()); LL | macro_test_arg!(deprecated_unstable_text());
@ -196,7 +196,7 @@ LL | macro_test_arg!(deprecated_unstable_text());
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:144:9 --> $DIR/lint-stability.rs:144:9
| |
LL | Trait::trait_deprecated_unstable(&foo); LL | Trait::trait_deprecated_unstable(&foo);
@ -205,7 +205,7 @@ LL | Trait::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:146:9 --> $DIR/lint-stability.rs:146:9
| |
LL | <Foo as Trait>::trait_deprecated_unstable(&foo); LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
@ -214,7 +214,7 @@ LL | <Foo as Trait>::trait_deprecated_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:148:9 --> $DIR/lint-stability.rs:148:9
| |
LL | Trait::trait_deprecated_unstable_text(&foo); LL | Trait::trait_deprecated_unstable_text(&foo);
@ -223,7 +223,7 @@ LL | Trait::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:150:9 --> $DIR/lint-stability.rs:150:9
| |
LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo); LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
@ -232,7 +232,7 @@ LL | <Foo as Trait>::trait_deprecated_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:152:9 --> $DIR/lint-stability.rs:152:9
| |
LL | Trait::trait_unstable(&foo); LL | Trait::trait_unstable(&foo);
@ -241,7 +241,7 @@ LL | Trait::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:153:9 --> $DIR/lint-stability.rs:153:9
| |
LL | <Foo as Trait>::trait_unstable(&foo); LL | <Foo as Trait>::trait_unstable(&foo);
@ -250,7 +250,7 @@ LL | <Foo as Trait>::trait_unstable(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability.rs:154:9 --> $DIR/lint-stability.rs:154:9
| |
LL | Trait::trait_unstable_text(&foo); LL | Trait::trait_unstable_text(&foo);
@ -259,7 +259,7 @@ LL | Trait::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/lint-stability.rs:156:9 --> $DIR/lint-stability.rs:156:9
| |
LL | <Foo as Trait>::trait_unstable_text(&foo); LL | <Foo as Trait>::trait_unstable_text(&foo);
@ -268,7 +268,7 @@ LL | <Foo as Trait>::trait_unstable_text(&foo);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:172:10 --> $DIR/lint-stability.rs:172:10
| |
LL | impl UnstableTrait for S { } LL | impl UnstableTrait for S { }
@ -277,7 +277,7 @@ LL | impl UnstableTrait for S { }
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:174:24 --> $DIR/lint-stability.rs:174:24
| |
LL | trait LocalTrait : UnstableTrait { } LL | trait LocalTrait : UnstableTrait { }
@ -286,7 +286,7 @@ LL | trait LocalTrait : UnstableTrait { }
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:179:9 --> $DIR/lint-stability.rs:179:9
| |
LL | fn trait_unstable(&self) {} LL | fn trait_unstable(&self) {}
@ -295,7 +295,7 @@ LL | fn trait_unstable(&self) {}
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:184:5 --> $DIR/lint-stability.rs:184:5
| |
LL | extern crate inherited_stability; LL | extern crate inherited_stability;
@ -304,7 +304,7 @@ LL | extern crate inherited_stability;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:185:9 --> $DIR/lint-stability.rs:185:9
| |
LL | use self::inherited_stability::*; LL | use self::inherited_stability::*;
@ -313,7 +313,7 @@ LL | use self::inherited_stability::*;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:188:9 --> $DIR/lint-stability.rs:188:9
| |
LL | unstable(); LL | unstable();
@ -322,7 +322,7 @@ LL | unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:191:9 --> $DIR/lint-stability.rs:191:9
| |
LL | stable_mod::unstable(); LL | stable_mod::unstable();
@ -331,7 +331,7 @@ LL | stable_mod::unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:194:9 --> $DIR/lint-stability.rs:194:9
| |
LL | unstable_mod::deprecated(); LL | unstable_mod::deprecated();
@ -340,7 +340,7 @@ LL | unstable_mod::deprecated();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:195:9 --> $DIR/lint-stability.rs:195:9
| |
LL | unstable_mod::unstable(); LL | unstable_mod::unstable();
@ -349,7 +349,7 @@ LL | unstable_mod::unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:197:17 --> $DIR/lint-stability.rs:197:17
| |
LL | let _ = Unstable::UnstableVariant; LL | let _ = Unstable::UnstableVariant;
@ -358,7 +358,7 @@ LL | let _ = Unstable::UnstableVariant;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:198:17 --> $DIR/lint-stability.rs:198:17
| |
LL | let _ = Unstable::StableVariant; LL | let _ = Unstable::StableVariant;
@ -367,7 +367,7 @@ LL | let _ = Unstable::StableVariant;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:88:48 --> $DIR/lint-stability.rs:88:48
| |
LL | struct S1<T: TraitWithAssociatedTypes>(T::TypeUnstable); LL | struct S1<T: TraitWithAssociatedTypes>(T::TypeUnstable);
@ -376,7 +376,7 @@ LL | struct S1<T: TraitWithAssociatedTypes>(T::TypeUnstable);
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/lint-stability.rs:92:13 --> $DIR/lint-stability.rs:92:13
| |
LL | TypeUnstable = u8, LL | TypeUnstable = u8,

View file

@ -19,10 +19,10 @@ macro local_unstable_modern() {}
macro_rules! local_deprecated{ () => () } macro_rules! local_deprecated{ () => () }
fn main() { fn main() {
local_unstable!(); //~ ERROR use of unstable library feature 'local_unstable' local_unstable!(); //~ ERROR use of unstable library feature `local_unstable`
local_unstable_modern!(); //~ ERROR use of unstable library feature 'local_unstable' local_unstable_modern!(); //~ ERROR use of unstable library feature `local_unstable`
unstable_macro!(); //~ ERROR use of unstable library feature 'unstable_macros' unstable_macro!(); //~ ERROR use of unstable library feature `unstable_macros`
// unstable_macro_modern!(); // ERROR use of unstable library feature 'unstable_macros' // unstable_macro_modern!(); // ERROR use of unstable library feature `unstable_macros`
deprecated_macro!(); deprecated_macro!();
//~^ WARN use of deprecated macro `deprecated_macro`: deprecation note //~^ WARN use of deprecated macro `deprecated_macro`: deprecation note

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'local_unstable' error[E0658]: use of unstable library feature `local_unstable`
--> $DIR/macro-stability.rs:22:5 --> $DIR/macro-stability.rs:22:5
| |
LL | local_unstable!(); LL | local_unstable!();
@ -7,7 +7,7 @@ LL | local_unstable!();
= help: add `#![feature(local_unstable)]` to the crate attributes to enable = help: add `#![feature(local_unstable)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'local_unstable' error[E0658]: use of unstable library feature `local_unstable`
--> $DIR/macro-stability.rs:23:5 --> $DIR/macro-stability.rs:23:5
| |
LL | local_unstable_modern!(); LL | local_unstable_modern!();
@ -16,7 +16,7 @@ LL | local_unstable_modern!();
= help: add `#![feature(local_unstable)]` to the crate attributes to enable = help: add `#![feature(local_unstable)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_macros' error[E0658]: use of unstable library feature `unstable_macros`
--> $DIR/macro-stability.rs:24:5 --> $DIR/macro-stability.rs:24:5
| |
LL | unstable_macro!(); LL | unstable_macro!();

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:12:9 --> $DIR/offset-of-unstable.rs:12:9
| |
LL | Unstable, LL | Unstable,
@ -7,7 +7,7 @@ LL | Unstable,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:21:9 --> $DIR/offset-of-unstable.rs:21:9
| |
LL | UnstableWithStableFieldType, LL | UnstableWithStableFieldType,
@ -16,7 +16,7 @@ LL | UnstableWithStableFieldType,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:26:9 --> $DIR/offset-of-unstable.rs:26:9
| |
LL | UnstableWithStableFieldType, LL | UnstableWithStableFieldType,
@ -25,7 +25,7 @@ LL | UnstableWithStableFieldType,
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:10:5 --> $DIR/offset-of-unstable.rs:10:5
| |
LL | / offset_of!( LL | / offset_of!(
@ -39,7 +39,7 @@ LL | | );
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:16:5 --> $DIR/offset-of-unstable.rs:16:5
| |
LL | offset_of!(StableWithUnstableField, unstable); LL | offset_of!(StableWithUnstableField, unstable);
@ -49,7 +49,7 @@ LL | offset_of!(StableWithUnstableField, unstable);
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:18:5 --> $DIR/offset-of-unstable.rs:18:5
| |
LL | offset_of!(StableWithUnstableFieldType, stable.unstable); LL | offset_of!(StableWithUnstableFieldType, stable.unstable);
@ -59,7 +59,7 @@ LL | offset_of!(StableWithUnstableFieldType, stable.unstable);
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:19:5 --> $DIR/offset-of-unstable.rs:19:5
| |
LL | / offset_of!( LL | / offset_of!(
@ -73,7 +73,7 @@ LL | | );
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
= note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/offset-of-unstable.rs:24:5 --> $DIR/offset-of-unstable.rs:24:5
| |
LL | / offset_of!( LL | / offset_of!(

View file

@ -8,5 +8,5 @@ use core::{
fn main() { fn main() {
let mut phantom_pinned = pin!(PhantomPinned); let mut phantom_pinned = pin!(PhantomPinned);
mem::take(phantom_pinned.__pointer); //~ ERROR use of unstable library feature 'unsafe_pin_internals' mem::take(phantom_pinned.__pointer); //~ ERROR use of unstable library feature `unsafe_pin_internals`
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unsafe_pin_internals' error[E0658]: use of unstable library feature `unsafe_pin_internals`
--> $DIR/cant_access_internals.rs:11:15 --> $DIR/cant_access_internals.rs:11:15
| |
LL | mem::take(phantom_pinned.__pointer); LL | mem::take(phantom_pinned.__pointer);

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library error[E0658]: use of unstable library feature `core_intrinsics`: intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
--> $DIR/expand-to-unstable.rs:8:10 --> $DIR/expand-to-unstable.rs:8:10
| |
LL | #[derive(Unstable)] LL | #[derive(Unstable)]

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'structural_match' error[E0658]: use of unstable library feature `structural_match`
--> $DIR/feature-gate.rs:29:6 --> $DIR/feature-gate.rs:29:6
| |
LL | impl std::marker::StructuralPartialEq for Foo { } LL | impl std::marker::StructuralPartialEq for Foo { }

View file

@ -27,7 +27,7 @@ fn main() { //[with_gate]~ ERROR fatal error triggered by #[rustc_error]
} }
impl std::marker::StructuralPartialEq for Foo { } impl std::marker::StructuralPartialEq for Foo { }
//[no_gate]~^ ERROR use of unstable library feature 'structural_match' //[no_gate]~^ ERROR use of unstable library feature `structural_match`
impl PartialEq<Foo> for Foo { impl PartialEq<Foo> for Foo {
fn eq(&self, other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {

View file

@ -3,7 +3,7 @@ extern crate core;
// Known accidental stabilizations with no known users, slated for un-stabilization // Known accidental stabilizations with no known users, slated for un-stabilization
// fully stable @ core::char::UNICODE_VERSION // fully stable @ core::char::UNICODE_VERSION
use core::unicode::UNICODE_VERSION; //~ ERROR use of unstable library feature 'unicode_internals' use core::unicode::UNICODE_VERSION; //~ ERROR use of unstable library feature `unicode_internals`
// Known accidental stabilizations with known users // Known accidental stabilizations with known users
// fully stable @ core::mem::transmute // fully stable @ core::mem::transmute

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unicode_internals' error[E0658]: use of unstable library feature `unicode_internals`
--> $DIR/accidental-stable-in-unstable.rs:6:5 --> $DIR/accidental-stable-in-unstable.rs:6:5
| |
LL | use core::unicode::UNICODE_VERSION; LL | use core::unicode::UNICODE_VERSION;

View file

@ -20,11 +20,11 @@ pub use lint_stability_reexport::unstable_text;
// Ensure items which aren't marked as unstable can't re-export unstable items // Ensure items which aren't marked as unstable can't re-export unstable items
#[stable(feature = "lint_stability", since = "1.0.0")] #[stable(feature = "lint_stability", since = "1.0.0")]
pub use lint_stability::unstable as unstable2; pub use lint_stability::unstable as unstable2;
//~^ ERROR use of unstable library feature 'unstable_test_feature' //~^ ERROR use of unstable library feature `unstable_test_feature`
fn main() { fn main() {
// Since we didn't enable the feature in this crate, we still can't // Since we didn't enable the feature in this crate, we still can't
// use these items, even though they're in scope from the `use`s which are now allowed. // use these items, even though they're in scope from the `use`s which are now allowed.
unstable(); //~ ERROR use of unstable library feature 'unstable_test_feature' unstable(); //~ ERROR use of unstable library feature `unstable_test_feature`
unstable_text(); //~ ERROR use of unstable library feature 'unstable_test_feature' unstable_text(); //~ ERROR use of unstable library feature `unstable_test_feature`
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/allow-unstable-reexport.rs:22:9 --> $DIR/allow-unstable-reexport.rs:22:9
| |
LL | pub use lint_stability::unstable as unstable2; LL | pub use lint_stability::unstable as unstable2;
@ -7,7 +7,7 @@ LL | pub use lint_stability::unstable as unstable2;
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/allow-unstable-reexport.rs:28:5 --> $DIR/allow-unstable-reexport.rs:28:5
| |
LL | unstable(); LL | unstable();
@ -16,7 +16,7 @@ LL | unstable();
= help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable = help: add `#![feature(unstable_test_feature)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_test_feature': text error[E0658]: use of unstable library feature `unstable_test_feature`: text
--> $DIR/allow-unstable-reexport.rs:29:5 --> $DIR/allow-unstable-reexport.rs:29:5
| |
LL | unstable_text(); LL | unstable_text();

View file

@ -6,4 +6,4 @@
extern crate allowed_through_unstable_core; extern crate allowed_through_unstable_core;
use allowed_through_unstable_core::unstable_module::OldStableTraitAllowedThoughUnstable; use allowed_through_unstable_core::unstable_module::OldStableTraitAllowedThoughUnstable;
use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable; //~ ERROR use of unstable library feature 'unstable_test_feature' use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable; //~ ERROR use of unstable library feature `unstable_test_feature`

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/allowed-through-unstable.rs:9:5 --> $DIR/allowed-through-unstable.rs:9:5
| |
LL | use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable; LL | use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable;

View file

@ -5,7 +5,7 @@ LL | impl JustTrait for Type {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= note: default implementation of `CONSTANT` is unstable = note: default implementation of `CONSTANT` is unstable
= note: use of unstable library feature 'constant_default_body' = note: use of unstable library feature `constant_default_body`
= help: add `#![feature(constant_default_body)]` to the crate attributes to enable = help: add `#![feature(constant_default_body)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
@ -16,7 +16,7 @@ LL | impl JustTrait for Type {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= note: default implementation of `fun` is unstable = note: default implementation of `fun` is unstable
= note: use of unstable library feature 'fun_default_body' = note: use of unstable library feature `fun_default_body`
= help: add `#![feature(fun_default_body)]` to the crate attributes to enable = help: add `#![feature(fun_default_body)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
@ -27,7 +27,7 @@ LL | impl JustTrait for Type {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= note: default implementation of `fun2` is unstable = note: default implementation of `fun2` is unstable
= note: use of unstable library feature 'fun_default_body': reason = note: use of unstable library feature `fun_default_body`: reason
= help: add `#![feature(fun_default_body)]` to the crate attributes to enable = help: add `#![feature(fun_default_body)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
@ -43,7 +43,7 @@ LL | | }
| |_^ | |_^
| |
= note: default implementation of `eq` is unstable = note: default implementation of `eq` is unstable
= note: use of unstable library feature 'eq_default_body' = note: use of unstable library feature `eq_default_body`
= help: add `#![feature(eq_default_body)]` to the crate attributes to enable = help: add `#![feature(eq_default_body)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

View file

@ -13,15 +13,15 @@ impl Trait1 for S {
struct S; struct S;
impl Trait1<usize> for S { //~ ERROR use of unstable library feature 'unstable_default' impl Trait1<usize> for S { //~ ERROR use of unstable library feature `unstable_default`
fn foo() -> usize { 0 } fn foo() -> usize { 0 }
} }
impl Trait1<isize> for S { //~ ERROR use of unstable library feature 'unstable_default' impl Trait1<isize> for S { //~ ERROR use of unstable library feature `unstable_default`
fn foo() -> isize { 0 } fn foo() -> isize { 0 }
} }
impl Trait2<usize> for S { //~ ERROR use of unstable library feature 'unstable_default' impl Trait2<usize> for S { //~ ERROR use of unstable library feature `unstable_default`
fn foo() -> usize { 0 } fn foo() -> usize { 0 }
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability-trait.rs:16:13 --> $DIR/generics-default-stability-trait.rs:16:13
| |
LL | impl Trait1<usize> for S { LL | impl Trait1<usize> for S {
@ -7,7 +7,7 @@ LL | impl Trait1<usize> for S {
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability-trait.rs:20:13 --> $DIR/generics-default-stability-trait.rs:20:13
| |
LL | impl Trait1<isize> for S { LL | impl Trait1<isize> for S {
@ -16,7 +16,7 @@ LL | impl Trait1<isize> for S {
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability-trait.rs:24:13 --> $DIR/generics-default-stability-trait.rs:24:13
| |
LL | impl Trait2<usize> for S { LL | impl Trait2<usize> for S {

View file

@ -4,7 +4,7 @@ extern crate unstable_generic_param;
use unstable_generic_param::*; use unstable_generic_param::*;
impl<T> Trait3<usize> for T where T: Trait2<usize> { //~ ERROR use of unstable library feature 'unstable_default' impl<T> Trait3<usize> for T where T: Trait2<usize> { //~ ERROR use of unstable library feature `unstable_default`
//~^ ERROR `T` must be used as the type parameter for some local type //~^ ERROR `T` must be used as the type parameter for some local type
fn foo() -> usize { T::foo() } fn foo() -> usize { T::foo() }
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability-where.rs:7:45 --> $DIR/generics-default-stability-where.rs:7:45
| |
LL | impl<T> Trait3<usize> for T where T: Trait2<usize> { LL | impl<T> Trait3<usize> for T where T: Trait2<usize> {

View file

@ -20,12 +20,12 @@ impl Trait3<usize> for S {
fn main() { fn main() {
let _ = S; let _ = S;
let _: Struct1<isize> = Struct1 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct1<isize> = Struct1 { field: 1 }; //~ ERROR use of unstable library feature `unstable_default`
let _ = STRUCT1; // ok let _ = STRUCT1; // ok
let _: Struct1 = STRUCT1; // ok let _: Struct1 = STRUCT1; // ok
let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct1<usize> = STRUCT1; //~ ERROR use of unstable library feature `unstable_default`
let _: Struct1<isize> = Struct1 { field: 0 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct1<isize> = Struct1 { field: 0 }; //~ ERROR use of unstable library feature `unstable_default`
// Instability is not enforced for generic type parameters used in public fields. // Instability is not enforced for generic type parameters used in public fields.
// Note how the unstable type default `usize` leaks, // Note how the unstable type default `usize` leaks,
@ -54,10 +54,10 @@ fn main() {
let _ = STRUCT3; let _ = STRUCT3;
let _: Struct3 = STRUCT3; // ok let _: Struct3 = STRUCT3; // ok
let _: Struct3<isize, usize> = STRUCT3; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct3<isize, usize> = STRUCT3; //~ ERROR use of unstable library feature `unstable_default`
let _: Struct3<isize> = STRUCT3; // ok let _: Struct3<isize> = STRUCT3; // ok
let _: Struct3<isize, isize> = Struct3 { field1: 0, field2: 0 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct3<isize, isize> = Struct3 { field1: 0, field2: 0 }; //~ ERROR use of unstable library feature `unstable_default`
let _: Struct3<usize, usize> = Struct3 { field1: 0, field2: 0 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct3<usize, usize> = Struct3 { field1: 0, field2: 0 }; //~ ERROR use of unstable library feature `unstable_default`
let _ = STRUCT3.field1; // ok let _ = STRUCT3.field1; // ok
let _: isize = STRUCT3.field1; // ok let _: isize = STRUCT3.field1; // ok
let _ = STRUCT3.field1 + 1; // ok let _ = STRUCT3.field1 + 1; // ok
@ -81,15 +81,15 @@ fn main() {
//~^^^ use of deprecated field `unstable_generic_param::Struct4::field`: test [deprecated] //~^^^ use of deprecated field `unstable_generic_param::Struct4::field`: test [deprecated]
let _ = STRUCT5; let _ = STRUCT5;
let _: Struct5<isize> = Struct5 { field: 1 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct5<isize> = Struct5 { field: 1 }; //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] //~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
//~^^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] //~^^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
//~^^^ use of deprecated field `unstable_generic_param::Struct5::field`: test [deprecated] //~^^^ use of deprecated field `unstable_generic_param::Struct5::field`: test [deprecated]
let _ = STRUCT5; let _ = STRUCT5;
let _: Struct5 = STRUCT5; //~ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] let _: Struct5 = STRUCT5; //~ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
let _: Struct5<usize> = STRUCT5; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct5<usize> = STRUCT5; //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] //~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
let _: Struct5<isize> = Struct5 { field: 0 }; //~ ERROR use of unstable library feature 'unstable_default' let _: Struct5<isize> = Struct5 { field: 0 }; //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] //~^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
//~^^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated] //~^^ use of deprecated struct `unstable_generic_param::Struct5`: test [deprecated]
//~^^^ use of deprecated field `unstable_generic_param::Struct5::field`: test [deprecated] //~^^^ use of deprecated field `unstable_generic_param::Struct5::field`: test [deprecated]
@ -97,12 +97,12 @@ fn main() {
let _: Struct6<isize> = Struct6 { field: 1 }; // ok let _: Struct6<isize> = Struct6 { field: 1 }; // ok
let _: Struct6<isize> = Struct6 { field: 0 }; // ok let _: Struct6<isize> = Struct6 { field: 0 }; // ok
let _: Alias1<isize> = Alias1::Some(1); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias1<isize> = Alias1::Some(1); //~ ERROR use of unstable library feature `unstable_default`
let _ = ALIAS1; // ok let _ = ALIAS1; // ok
let _: Alias1 = ALIAS1; // ok let _: Alias1 = ALIAS1; // ok
let _: Alias1<usize> = ALIAS1; //~ ERROR use of unstable library feature 'unstable_default' let _: Alias1<usize> = ALIAS1; //~ ERROR use of unstable library feature `unstable_default`
let _: Alias1<isize> = Alias1::Some(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias1<isize> = Alias1::Some(0); //~ ERROR use of unstable library feature `unstable_default`
// Instability is not enforced for generic type parameters used in public fields. // Instability is not enforced for generic type parameters used in public fields.
// Note how the unstable type default `usize` leaks, // Note how the unstable type default `usize` leaks,
@ -130,10 +130,10 @@ fn main() {
let _ = ALIAS3; let _ = ALIAS3;
let _: Alias3 = ALIAS3; // ok let _: Alias3 = ALIAS3; // ok
let _: Alias3<isize, usize> = ALIAS3; //~ ERROR use of unstable library feature 'unstable_default' let _: Alias3<isize, usize> = ALIAS3; //~ ERROR use of unstable library feature `unstable_default`
let _: Alias3<isize> = ALIAS3; // ok let _: Alias3<isize> = ALIAS3; // ok
let _: Alias3<isize, isize> = Alias3::Ok(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias3<isize, isize> = Alias3::Ok(0); //~ ERROR use of unstable library feature `unstable_default`
let _: Alias3<usize, usize> = Alias3::Ok(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias3<usize, usize> = Alias3::Ok(0); //~ ERROR use of unstable library feature `unstable_default`
let _ = ALIAS3.unwrap(); // ok let _ = ALIAS3.unwrap(); // ok
let _: isize = ALIAS3.unwrap(); // ok let _: isize = ALIAS3.unwrap(); // ok
let _ = ALIAS3.unwrap() + 1; // ok let _ = ALIAS3.unwrap() + 1; // ok
@ -155,26 +155,26 @@ fn main() {
//~^^ use of deprecated type alias `unstable_generic_param::Alias4`: test [deprecated] //~^^ use of deprecated type alias `unstable_generic_param::Alias4`: test [deprecated]
let _ = ALIAS5; let _ = ALIAS5;
let _: Alias5<isize> = Alias5::Some(1); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias5<isize> = Alias5::Some(1); //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] //~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
//~^^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] //~^^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
let _ = ALIAS5; let _ = ALIAS5;
let _: Alias5 = ALIAS5; //~ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] let _: Alias5 = ALIAS5; //~ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
let _: Alias5<usize> = ALIAS5; //~ ERROR use of unstable library feature 'unstable_default' let _: Alias5<usize> = ALIAS5; //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] //~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
let _: Alias5<isize> = Alias5::Some(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Alias5<isize> = Alias5::Some(0); //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] //~^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
//~^^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated] //~^^ use of deprecated type alias `unstable_generic_param::Alias5`: test [deprecated]
let _: Alias6<isize> = Alias6::Some(1); // ok let _: Alias6<isize> = Alias6::Some(1); // ok
let _: Alias6<isize> = Alias6::Some(0); // ok let _: Alias6<isize> = Alias6::Some(0); // ok
let _: Enum1<isize> = Enum1::Some(1); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum1<isize> = Enum1::Some(1); //~ ERROR use of unstable library feature `unstable_default`
let _ = ENUM1; // ok let _ = ENUM1; // ok
let _: Enum1 = ENUM1; // ok let _: Enum1 = ENUM1; // ok
let _: Enum1<usize> = ENUM1; //~ ERROR use of unstable library feature 'unstable_default' let _: Enum1<usize> = ENUM1; //~ ERROR use of unstable library feature `unstable_default`
let _: Enum1<isize> = Enum1::Some(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum1<isize> = Enum1::Some(0); //~ ERROR use of unstable library feature `unstable_default`
// Instability is not enforced for generic type parameters used in public fields. // Instability is not enforced for generic type parameters used in public fields.
// Note how the unstable type default `usize` leaks, // Note how the unstable type default `usize` leaks,
@ -202,10 +202,10 @@ fn main() {
let _ = ENUM3; let _ = ENUM3;
let _: Enum3 = ENUM3; // ok let _: Enum3 = ENUM3; // ok
let _: Enum3<isize, usize> = ENUM3; //~ ERROR use of unstable library feature 'unstable_default' let _: Enum3<isize, usize> = ENUM3; //~ ERROR use of unstable library feature `unstable_default`
let _: Enum3<isize> = ENUM3; // ok let _: Enum3<isize> = ENUM3; // ok
let _: Enum3<isize, isize> = Enum3::Ok(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum3<isize, isize> = Enum3::Ok(0); //~ ERROR use of unstable library feature `unstable_default`
let _: Enum3<usize, usize> = Enum3::Ok(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum3<usize, usize> = Enum3::Ok(0); //~ ERROR use of unstable library feature `unstable_default`
if let Enum3::Ok(x) = ENUM3 {let _ = x;} // ok if let Enum3::Ok(x) = ENUM3 {let _ = x;} // ok
if let Enum3::Ok(x) = ENUM3 {let _: isize = x;} // ok if let Enum3::Ok(x) = ENUM3 {let _: isize = x;} // ok
if let Enum3::Ok(x) = ENUM3 {let _ = x + 1;} // ok if let Enum3::Ok(x) = ENUM3 {let _ = x + 1;} // ok
@ -227,21 +227,21 @@ fn main() {
//~^^ use of deprecated enum `unstable_generic_param::Enum4`: test [deprecated] //~^^ use of deprecated enum `unstable_generic_param::Enum4`: test [deprecated]
let _ = ENUM5; let _ = ENUM5;
let _: Enum5<isize> = Enum5::Some(1); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum5<isize> = Enum5::Some(1); //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated tuple variant `unstable_generic_param::Enum5::Some`: test [deprecated] //~^ use of deprecated tuple variant `unstable_generic_param::Enum5::Some`: test [deprecated]
//~^^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated] //~^^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated]
let _ = ENUM5; let _ = ENUM5;
let _: Enum5 = ENUM5; //~ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated] let _: Enum5 = ENUM5; //~ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated]
let _: Enum5<usize> = ENUM5; //~ ERROR use of unstable library feature 'unstable_default' let _: Enum5<usize> = ENUM5; //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated] //~^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated]
let _: Enum5<isize> = Enum5::Some(0); //~ ERROR use of unstable library feature 'unstable_default' let _: Enum5<isize> = Enum5::Some(0); //~ ERROR use of unstable library feature `unstable_default`
//~^ use of deprecated tuple variant `unstable_generic_param::Enum5::Some`: test [deprecated] //~^ use of deprecated tuple variant `unstable_generic_param::Enum5::Some`: test [deprecated]
//~^^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated] //~^^ use of deprecated enum `unstable_generic_param::Enum5`: test [deprecated]
let _: Enum6<isize> = Enum6::Some(1); // ok let _: Enum6<isize> = Enum6::Some(1); // ok
let _: Enum6<isize> = Enum6::Some(0); // ok let _: Enum6<isize> = Enum6::Some(0); // ok
let _: Box1<isize, System> = Box1::new(1); //~ ERROR use of unstable library feature 'box_alloc_param' let _: Box1<isize, System> = Box1::new(1); //~ ERROR use of unstable library feature `box_alloc_param`
let _: Box1<isize> = Box1::new(1); // ok let _: Box1<isize> = Box1::new(1); // ok
let _: Box2<isize, System> = Box2::new(1); // ok let _: Box2<isize, System> = Box2::new(1); // ok

View file

@ -216,7 +216,7 @@ warning: use of deprecated enum `unstable_generic_param::Enum5`: test
LL | let _: Enum5<isize> = Enum5::Some(0); LL | let _: Enum5<isize> = Enum5::Some(0);
| ^^^^^ | ^^^^^
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:23:20 --> $DIR/generics-default-stability.rs:23:20
| |
LL | let _: Struct1<isize> = Struct1 { field: 1 }; LL | let _: Struct1<isize> = Struct1 { field: 1 };
@ -225,7 +225,7 @@ LL | let _: Struct1<isize> = Struct1 { field: 1 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:27:20 --> $DIR/generics-default-stability.rs:27:20
| |
LL | let _: Struct1<usize> = STRUCT1; LL | let _: Struct1<usize> = STRUCT1;
@ -234,7 +234,7 @@ LL | let _: Struct1<usize> = STRUCT1;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:28:20 --> $DIR/generics-default-stability.rs:28:20
| |
LL | let _: Struct1<isize> = Struct1 { field: 0 }; LL | let _: Struct1<isize> = Struct1 { field: 0 };
@ -243,7 +243,7 @@ LL | let _: Struct1<isize> = Struct1 { field: 0 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:57:27 --> $DIR/generics-default-stability.rs:57:27
| |
LL | let _: Struct3<isize, usize> = STRUCT3; LL | let _: Struct3<isize, usize> = STRUCT3;
@ -252,7 +252,7 @@ LL | let _: Struct3<isize, usize> = STRUCT3;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:59:27 --> $DIR/generics-default-stability.rs:59:27
| |
LL | let _: Struct3<isize, isize> = Struct3 { field1: 0, field2: 0 }; LL | let _: Struct3<isize, isize> = Struct3 { field1: 0, field2: 0 };
@ -261,7 +261,7 @@ LL | let _: Struct3<isize, isize> = Struct3 { field1: 0, field2: 0 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:60:27 --> $DIR/generics-default-stability.rs:60:27
| |
LL | let _: Struct3<usize, usize> = Struct3 { field1: 0, field2: 0 }; LL | let _: Struct3<usize, usize> = Struct3 { field1: 0, field2: 0 };
@ -270,7 +270,7 @@ LL | let _: Struct3<usize, usize> = Struct3 { field1: 0, field2: 0 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:84:20 --> $DIR/generics-default-stability.rs:84:20
| |
LL | let _: Struct5<isize> = Struct5 { field: 1 }; LL | let _: Struct5<isize> = Struct5 { field: 1 };
@ -279,7 +279,7 @@ LL | let _: Struct5<isize> = Struct5 { field: 1 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:90:20 --> $DIR/generics-default-stability.rs:90:20
| |
LL | let _: Struct5<usize> = STRUCT5; LL | let _: Struct5<usize> = STRUCT5;
@ -288,7 +288,7 @@ LL | let _: Struct5<usize> = STRUCT5;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:92:20 --> $DIR/generics-default-stability.rs:92:20
| |
LL | let _: Struct5<isize> = Struct5 { field: 0 }; LL | let _: Struct5<isize> = Struct5 { field: 0 };
@ -297,7 +297,7 @@ LL | let _: Struct5<isize> = Struct5 { field: 0 };
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:100:19 --> $DIR/generics-default-stability.rs:100:19
| |
LL | let _: Alias1<isize> = Alias1::Some(1); LL | let _: Alias1<isize> = Alias1::Some(1);
@ -306,7 +306,7 @@ LL | let _: Alias1<isize> = Alias1::Some(1);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:104:19 --> $DIR/generics-default-stability.rs:104:19
| |
LL | let _: Alias1<usize> = ALIAS1; LL | let _: Alias1<usize> = ALIAS1;
@ -315,7 +315,7 @@ LL | let _: Alias1<usize> = ALIAS1;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:105:19 --> $DIR/generics-default-stability.rs:105:19
| |
LL | let _: Alias1<isize> = Alias1::Some(0); LL | let _: Alias1<isize> = Alias1::Some(0);
@ -324,7 +324,7 @@ LL | let _: Alias1<isize> = Alias1::Some(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:133:26 --> $DIR/generics-default-stability.rs:133:26
| |
LL | let _: Alias3<isize, usize> = ALIAS3; LL | let _: Alias3<isize, usize> = ALIAS3;
@ -333,7 +333,7 @@ LL | let _: Alias3<isize, usize> = ALIAS3;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:135:26 --> $DIR/generics-default-stability.rs:135:26
| |
LL | let _: Alias3<isize, isize> = Alias3::Ok(0); LL | let _: Alias3<isize, isize> = Alias3::Ok(0);
@ -342,7 +342,7 @@ LL | let _: Alias3<isize, isize> = Alias3::Ok(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:136:26 --> $DIR/generics-default-stability.rs:136:26
| |
LL | let _: Alias3<usize, usize> = Alias3::Ok(0); LL | let _: Alias3<usize, usize> = Alias3::Ok(0);
@ -351,7 +351,7 @@ LL | let _: Alias3<usize, usize> = Alias3::Ok(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:158:19 --> $DIR/generics-default-stability.rs:158:19
| |
LL | let _: Alias5<isize> = Alias5::Some(1); LL | let _: Alias5<isize> = Alias5::Some(1);
@ -360,7 +360,7 @@ LL | let _: Alias5<isize> = Alias5::Some(1);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:163:19 --> $DIR/generics-default-stability.rs:163:19
| |
LL | let _: Alias5<usize> = ALIAS5; LL | let _: Alias5<usize> = ALIAS5;
@ -369,7 +369,7 @@ LL | let _: Alias5<usize> = ALIAS5;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:165:19 --> $DIR/generics-default-stability.rs:165:19
| |
LL | let _: Alias5<isize> = Alias5::Some(0); LL | let _: Alias5<isize> = Alias5::Some(0);
@ -378,7 +378,7 @@ LL | let _: Alias5<isize> = Alias5::Some(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:172:18 --> $DIR/generics-default-stability.rs:172:18
| |
LL | let _: Enum1<isize> = Enum1::Some(1); LL | let _: Enum1<isize> = Enum1::Some(1);
@ -387,7 +387,7 @@ LL | let _: Enum1<isize> = Enum1::Some(1);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:176:18 --> $DIR/generics-default-stability.rs:176:18
| |
LL | let _: Enum1<usize> = ENUM1; LL | let _: Enum1<usize> = ENUM1;
@ -396,7 +396,7 @@ LL | let _: Enum1<usize> = ENUM1;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:177:18 --> $DIR/generics-default-stability.rs:177:18
| |
LL | let _: Enum1<isize> = Enum1::Some(0); LL | let _: Enum1<isize> = Enum1::Some(0);
@ -405,7 +405,7 @@ LL | let _: Enum1<isize> = Enum1::Some(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:205:25 --> $DIR/generics-default-stability.rs:205:25
| |
LL | let _: Enum3<isize, usize> = ENUM3; LL | let _: Enum3<isize, usize> = ENUM3;
@ -414,7 +414,7 @@ LL | let _: Enum3<isize, usize> = ENUM3;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:207:25 --> $DIR/generics-default-stability.rs:207:25
| |
LL | let _: Enum3<isize, isize> = Enum3::Ok(0); LL | let _: Enum3<isize, isize> = Enum3::Ok(0);
@ -423,7 +423,7 @@ LL | let _: Enum3<isize, isize> = Enum3::Ok(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:208:25 --> $DIR/generics-default-stability.rs:208:25
| |
LL | let _: Enum3<usize, usize> = Enum3::Ok(0); LL | let _: Enum3<usize, usize> = Enum3::Ok(0);
@ -432,7 +432,7 @@ LL | let _: Enum3<usize, usize> = Enum3::Ok(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:230:18 --> $DIR/generics-default-stability.rs:230:18
| |
LL | let _: Enum5<isize> = Enum5::Some(1); LL | let _: Enum5<isize> = Enum5::Some(1);
@ -441,7 +441,7 @@ LL | let _: Enum5<isize> = Enum5::Some(1);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:235:18 --> $DIR/generics-default-stability.rs:235:18
| |
LL | let _: Enum5<usize> = ENUM5; LL | let _: Enum5<usize> = ENUM5;
@ -450,7 +450,7 @@ LL | let _: Enum5<usize> = ENUM5;
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unstable_default' error[E0658]: use of unstable library feature `unstable_default`
--> $DIR/generics-default-stability.rs:237:18 --> $DIR/generics-default-stability.rs:237:18
| |
LL | let _: Enum5<isize> = Enum5::Some(0); LL | let _: Enum5<isize> = Enum5::Some(0);
@ -459,7 +459,7 @@ LL | let _: Enum5<isize> = Enum5::Some(0);
= help: add `#![feature(unstable_default)]` to the crate attributes to enable = help: add `#![feature(unstable_default)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'box_alloc_param' error[E0658]: use of unstable library feature `box_alloc_param`
--> $DIR/generics-default-stability.rs:244:24 --> $DIR/generics-default-stability.rs:244:24
| |
LL | let _: Box1<isize, System> = Box1::new(1); LL | let _: Box1<isize, System> = Box1::new(1);

View file

@ -7,7 +7,7 @@
extern crate lint_stability; extern crate lint_stability;
use lint_stability::{unstable, deprecated}; use lint_stability::{unstable, deprecated};
//~^ ERROR use of unstable library feature 'unstable_test_feature' //~^ ERROR use of unstable library feature `unstable_test_feature`
fn main() { fn main() {
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/issue-28075.rs:9:22 --> $DIR/issue-28075.rs:9:22
| |
LL | use lint_stability::{unstable, deprecated}; LL | use lint_stability::{unstable, deprecated};

View file

@ -5,7 +5,7 @@
extern crate lint_stability; extern crate lint_stability;
use lint_stability::UnstableEnum::{}; use lint_stability::UnstableEnum::{};
//~^ ERROR use of unstable library feature 'unstable_test_feature' //~^ ERROR use of unstable library feature `unstable_test_feature`
use lint_stability::StableEnum::{}; // OK use lint_stability::StableEnum::{}; // OK
fn main() {} fn main() {}

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'unstable_test_feature' error[E0658]: use of unstable library feature `unstable_test_feature`
--> $DIR/issue-28388-3.rs:7:5 --> $DIR/issue-28388-3.rs:7:5
| |
LL | use lint_stability::UnstableEnum::{}; LL | use lint_stability::UnstableEnum::{};

View file

@ -5,9 +5,9 @@
extern crate stability_attribute_implies; extern crate stability_attribute_implies;
use stability_attribute_implies::{foo, foobar}; use stability_attribute_implies::{foo, foobar};
//~^ ERROR use of unstable library feature 'foobar' //~^ ERROR use of unstable library feature `foobar`
fn main() { fn main() {
foo(); // no error - stable foo(); // no error - stable
foobar(); //~ ERROR use of unstable library feature 'foobar' foobar(); //~ ERROR use of unstable library feature `foobar`
} }

View file

@ -1,4 +1,4 @@
error[E0658]: use of unstable library feature 'foobar' error[E0658]: use of unstable library feature `foobar`
--> $DIR/stability-attribute-implies-no-feature.rs:7:40 --> $DIR/stability-attribute-implies-no-feature.rs:7:40
| |
LL | use stability_attribute_implies::{foo, foobar}; LL | use stability_attribute_implies::{foo, foobar};
@ -8,7 +8,7 @@ LL | use stability_attribute_implies::{foo, foobar};
= help: add `#![feature(foobar)]` to the crate attributes to enable = help: add `#![feature(foobar)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'foobar' error[E0658]: use of unstable library feature `foobar`
--> $DIR/stability-attribute-implies-no-feature.rs:12:5 --> $DIR/stability-attribute-implies-no-feature.rs:12:5
| |
LL | foobar(); LL | foobar();

Some files were not shown because too many files have changed in this diff Show more