File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 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.
32
43#[ ab_isize="stdcall" ] extern { } //~ ERROR attribute `ab_isize` is currently unknown
54
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | #[fixed_stack_segment] fn f() {}
55 | ^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #[fixed_stack_segment] fn f() {}
88 = help: add #![feature(custom_attribute)] to the crate attributes to enable
99
1010error[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
1212 |
1313LL | #[ab_isize="stdcall"] extern {}
1414 | ^^^^^^^^
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.
32
43#![ feature( custom_inner_attributes) ]
54
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | #![mutable_doc]
55 | ^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #![mutable_doc]
88 = help: add #![feature(custom_attribute)] to the crate attributes to enable
99
1010error[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
1212 |
1313LL | #[dance] mod a {}
1414 | ^^^^^
@@ -17,7 +17,7 @@ LL | #[dance] mod a {}
1717 = help: add #![feature(custom_attribute)] to the crate attributes to enable
1818
1919error[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
2121 |
2222LL | #[dance] fn main() {}
2323 | ^^^^^
You can’t perform that action at this time.
0 commit comments