Remove #[track_caller] from incomplete features list.

This commit is contained in:
Adam Perry 2019-11-07 16:13:44 -08:00
parent 207f520827
commit ebaebd987f
19 changed files with 8 additions and 89 deletions

View file

@ -538,5 +538,4 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
sym::or_patterns,
sym::let_chains,
sym::raw_dylib,
sym::track_caller,
];

View file

@ -1,8 +0,0 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/const-caller-location.rs:3:39
|
LL | #![feature(const_fn, core_intrinsics, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default

View file

@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller(1)]
fn f() {}

View file

@ -4,13 +4,5 @@ error: malformed `track_caller` attribute input
LL | #[track_caller(1)]
| ^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[track_caller]`
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-odd-syntax.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error: aborting due to previous error

View file

@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller] //~ ERROR Rust ABI is required to use `#[track_caller]`
extern "C" fn f() {}

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-invalid-abi.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0737]: Rust ABI is required to use `#[track_caller]`
--> $DIR/error-with-invalid-abi.rs:3:1
|

View file

@ -1,4 +1,4 @@
#![feature(naked_functions, track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(naked_functions, track_caller)]
#[track_caller]
#[naked]

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-naked.rs:1:29
|
LL | #![feature(naked_functions, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0736]: cannot use `#[track_caller]` with `#[naked]`
--> $DIR/error-with-naked.rs:3:1
|

View file

@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait Trait {
#[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-decl.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-decl.rs:4:5
|

View file

@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait Trait {
#[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-default-impl.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-default-impl.rs:4:5
|

View file

@ -1,6 +1,6 @@
// check-fail
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait Trait {
fn unwrap(&self);

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/error-with-trait-fn-impl.rs:3:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0738]: `#[track_caller]` may not be used on trait methods
--> $DIR/error-with-trait-fn-impl.rs:10:5
|

View file

@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
struct S;

View file

@ -1,11 +1,3 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/only-for-fns.rs:1:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
error[E0739]: attribute should be applied to function
--> $DIR/only-for-fns.rs:3:1
|

View file

@ -1,5 +1,5 @@
// run-pass
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
fn f() {}

View file

@ -1,8 +0,0 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/pass.rs:2:12
|
LL | #![feature(track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default

View file

@ -1,8 +0,0 @@
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
--> $DIR/track-caller-attribute.rs:3:39
|
LL | #![feature(const_fn, core_intrinsics, track_caller)]
| ^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default