Skip to content

Commit ee189ae

Browse files
committed
Address review comments
1 parent 8e8ab49 commit ee189ae

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Diff for: src/test/ui/lint/lint-obsolete-attr.rs renamed to src/test/ui/attributes/obsolete-attr.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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

Diff for: src/test/ui/lint/lint-obsolete-attr.stderr renamed to src/test/ui/attributes/obsolete-attr.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | #[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

1010
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
1212
|
1313
LL | #[ab_isize="stdcall"] extern {}
1414
| ^^^^^^^^

Diff for: src/test/ui/lint/lint-unknown-attr.rs renamed to src/test/ui/attributes/unknown-attr.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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

Diff for: src/test/ui/lint/lint-unknown-attr.stderr renamed to src/test/ui/attributes/unknown-attr.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | #![mutable_doc]
55
| ^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | #![mutable_doc]
88
= help: add #![feature(custom_attribute)] to the crate attributes to enable
99

1010
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
1212
|
1313
LL | #[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

1919
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
2121
|
2222
LL | #[dance] fn main() {}
2323
| ^^^^^

0 commit comments

Comments
 (0)