File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
- // When denying at the crate level, be sure to not get random warnings from the
2
- // injected intrinsics by the compiler.
1
+ // Obsolete attributes fall back to feature gated custom attributes.
3
2
4
3
#[ ab_isize="stdcall" ] extern { } //~ ERROR attribute `ab_isize` is currently unknown
5
4
Original file line number Diff line number Diff line change 1
1
error[E0658]: The attribute `fixed_stack_segment` is currently unknown to the compiler and may have meaning added to it in the future
2
- --> $DIR/lint- obsolete-attr.rs:6 :3
2
+ --> $DIR/obsolete-attr.rs:5 :3
3
3
|
4
4
LL | #[fixed_stack_segment] fn f() {}
5
5
| ^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #[fixed_stack_segment] fn f() {}
8
8
= help: add #![feature(custom_attribute)] to the crate attributes to enable
9
9
10
10
error[E0658]: The attribute `ab_isize` is currently unknown to the compiler and may have meaning added to it in the future
11
- --> $DIR/lint- obsolete-attr.rs:4 :3
11
+ --> $DIR/obsolete-attr.rs:3 :3
12
12
|
13
13
LL | #[ab_isize="stdcall"] extern {}
14
14
| ^^^^^^^^
Original file line number Diff line number Diff line change 1
- // When denying at the crate level, be sure to not get random warnings from the
2
- // injected intrinsics by the compiler.
1
+ // Unknown attributes fall back to feature gated custom attributes.
3
2
4
3
#![ feature( custom_inner_attributes) ]
5
4
Original file line number Diff line number Diff line change 1
1
error[E0658]: The attribute `mutable_doc` is currently unknown to the compiler and may have meaning added to it in the future
2
- --> $DIR/lint- unknown-attr.rs:6 :4
2
+ --> $DIR/unknown-attr.rs:5 :4
3
3
|
4
4
LL | #![mutable_doc]
5
5
| ^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #![mutable_doc]
8
8
= help: add #![feature(custom_attribute)] to the crate attributes to enable
9
9
10
10
error[E0658]: The attribute `dance` is currently unknown to the compiler and may have meaning added to it in the future
11
- --> $DIR/lint- unknown-attr.rs:8 :3
11
+ --> $DIR/unknown-attr.rs:7 :3
12
12
|
13
13
LL | #[dance] mod a {}
14
14
| ^^^^^
@@ -17,7 +17,7 @@ LL | #[dance] mod a {}
17
17
= help: add #![feature(custom_attribute)] to the crate attributes to enable
18
18
19
19
error[E0658]: The attribute `dance` is currently unknown to the compiler and may have meaning added to it in the future
20
- --> $DIR/lint- unknown-attr.rs:10 :3
20
+ --> $DIR/unknown-attr.rs:9 :3
21
21
|
22
22
LL | #[dance] fn main() {}
23
23
| ^^^^^
You can’t perform that action at this time.
0 commit comments