Skip to content

Commit 78d8622

Browse files
committed
Remove #[track_caller] from incomplete features list.
1 parent 02bdfab commit 78d8622

18 files changed

+7
-88
lines changed

src/libsyntax/feature_gate/active.rs

-1
Original file line numberDiff line numberDiff line change
@@ -548,5 +548,4 @@ pub const INCOMPLETE_FEATURES: &[Symbol] = &[
548548
sym::or_patterns,
549549
sym::let_chains,
550550
sym::raw_dylib,
551-
sym::track_caller,
552551
];

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

-8
This file was deleted.

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

+1-1
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

-8
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

+1-1
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
extern "C" fn f() {}

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

-8
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]: `#[track_caller]` requires Rust ABI
102
--> $DIR/error-with-invalid-abi.rs:3:1
113
|

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

+1-1
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

-8
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

+1-1
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

-8
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

+1-1
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

-8
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

+1-1
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

-8
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

+1-1
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

-8
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.stderr

-8
This file was deleted.

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

-8
This file was deleted.

0 commit comments

Comments
 (0)