提交 ebaebd98 编写于 作者: A Adam Perry

Remove #[track_caller] from incomplete features list.

上级 207f5208
......@@ -538,5 +538,4 @@ pub fn set(&self, features: &mut Features, span: Span) {
sym::or_patterns,
sym::let_chains,
sym::raw_dylib,
sym::track_caller,
];
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
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller(1)]
fn f() {}
......
......@@ -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
#![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() {}
......
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
|
......
#![feature(naked_functions, track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(naked_functions, track_caller)]
#[track_caller]
#[naked]
......
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
|
......
#![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
......
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
|
......
#![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
......
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
|
......
// check-fail
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
trait Trait {
fn unwrap(&self);
......
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
|
......
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
struct S;
......
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
|
......
// run-pass
#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
#![feature(track_caller)]
#[track_caller]
fn f() {}
......
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
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册