Skip to content

Commit

Permalink
Remove #[track_caller] from incomplete features list.
Browse files Browse the repository at this point in the history
  • Loading branch information
anp committed Nov 8, 2019
1 parent 02bdfab commit 78d8622
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 88 deletions.
1 change: 0 additions & 1 deletion src/libsyntax/feature_gate/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,5 +548,4 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
sym::or_patterns,
sym::let_chains,
sym::raw_dylib,
sym::track_caller,
];

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]

#[track_caller(1)]
fn f() {}
Expand Down
8 changes: 0 additions & 8 deletions src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]

#[track_caller]
extern "C" fn f() {}
Expand Down
Original file line number Diff line number Diff line change
@@ -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]: `#[track_caller]` requires Rust ABI
--> $DIR/error-with-invalid-abi.rs:3:1
|
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/rfc-2091-track-caller/error-with-naked.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(naked_functions, track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(naked_functions, track_caller)]

#[track_caller]
#[naked]
Expand Down
8 changes: 0 additions & 8 deletions src/test/ui/rfc-2091-track-caller/error-with-naked.stderr
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// check-fail

#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]

trait Trait {
fn unwrap(&self);
Expand Down
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/rfc-2091-track-caller/only-for-fns.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]

#[track_caller]
struct S;
Expand Down
8 changes: 0 additions & 8 deletions src/test/ui/rfc-2091-track-caller/only-for-fns.stderr
Original file line number Diff line number Diff line change
@@ -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
|
Expand Down
8 changes: 0 additions & 8 deletions src/test/ui/rfc-2091-track-caller/pass.stderr

This file was deleted.

This file was deleted.

0 comments on commit 78d8622

Please sign in to comment.