Skip to content

Commit ebaebd9

Browse files
committed
Remove #[track_caller] from incomplete features list.
1 parent 207f520 commit ebaebd9

19 files changed

+8
-89
lines changed

src/librustc_feature/active.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,5 +538,4 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
538538
sym::or_patterns,
539539
sym::let_chains,
540540
sym::raw_dylib,
541-
sym::track_caller,
542541
];

src/test/ui/rfc-2091-track-caller/const-caller-location.stderr

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(track_caller)]
22

33
#[track_caller(1)]
44
fn f() {}

src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,5 @@ error: malformed `track_caller` attribute input
44
LL | #[track_caller(1)]
55
| ^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[track_caller]`
66

7-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
8-
--> $DIR/error-odd-syntax.rs:1:12
9-
|
10-
LL | #![feature(track_caller)]
11-
| ^^^^^^^^^^^^
12-
|
13-
= note: `#[warn(incomplete_features)]` on by default
14-
157
error: aborting due to previous error
168

src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(track_caller)]
22

33
#[track_caller] //~ ERROR Rust ABI is required to use `#[track_caller]`
44
extern "C" fn f() {}

src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/error-with-invalid-abi.rs:1:12
3-
|
4-
LL | #![feature(track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0737]: Rust ABI is required to use `#[track_caller]`
102
--> $DIR/error-with-invalid-abi.rs:3:1
113
|

src/test/ui/rfc-2091-track-caller/error-with-naked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(naked_functions, track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(naked_functions, track_caller)]
22

33
#[track_caller]
44
#[naked]

src/test/ui/rfc-2091-track-caller/error-with-naked.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/error-with-naked.rs:1:29
3-
|
4-
LL | #![feature(naked_functions, track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0736]: cannot use `#[track_caller]` with `#[naked]`
102
--> $DIR/error-with-naked.rs:3:1
113
|

src/test/ui/rfc-2091-track-caller/error-with-trait-decl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(track_caller)]
22

33
trait Trait {
44
#[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods

src/test/ui/rfc-2091-track-caller/error-with-trait-decl.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/error-with-trait-decl.rs:1:12
3-
|
4-
LL | #![feature(track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0738]: `#[track_caller]` may not be used on trait methods
102
--> $DIR/error-with-trait-decl.rs:4:5
113
|

src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(track_caller)]
22

33
trait Trait {
44
#[track_caller] //~ ERROR: `#[track_caller]` may not be used on trait methods

src/test/ui/rfc-2091-track-caller/error-with-trait-default-impl.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/error-with-trait-default-impl.rs:1:12
3-
|
4-
LL | #![feature(track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0738]: `#[track_caller]` may not be used on trait methods
102
--> $DIR/error-with-trait-default-impl.rs:4:5
113
|

src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// check-fail
22

3-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
3+
#![feature(track_caller)]
44

55
trait Trait {
66
fn unwrap(&self);

src/test/ui/rfc-2091-track-caller/error-with-trait-fn-impl.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/error-with-trait-fn-impl.rs:3:12
3-
|
4-
LL | #![feature(track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0738]: `#[track_caller]` may not be used on trait methods
102
--> $DIR/error-with-trait-fn-impl.rs:10:5
113
|

src/test/ui/rfc-2091-track-caller/only-for-fns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
1+
#![feature(track_caller)]
22

33
#[track_caller]
44
struct S;

src/test/ui/rfc-2091-track-caller/only-for-fns.stderr

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: the feature `track_caller` is incomplete and may cause the compiler to crash
2-
--> $DIR/only-for-fns.rs:1:12
3-
|
4-
LL | #![feature(track_caller)]
5-
| ^^^^^^^^^^^^
6-
|
7-
= note: `#[warn(incomplete_features)]` on by default
8-
91
error[E0739]: attribute should be applied to function
102
--> $DIR/only-for-fns.rs:3:1
113
|

src/test/ui/rfc-2091-track-caller/pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
2+
#![feature(track_caller)]
33

44
#[track_caller]
55
fn f() {}

src/test/ui/rfc-2091-track-caller/pass.stderr

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/test/ui/rfc-2091-track-caller/track-caller-attribute.stderr

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)