@@ -12,46 +12,6 @@ LL | #[unsafe(allow(unsafe(dead_code)))]
1212 |
1313 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
1414
15- error: `proc_macro` is not an unsafe attribute
16- --> $DIR/proc-unsafe-attributes.rs:1:3
17- |
18- LL | #[unsafe(proc_macro)]
19- | ^^^^^^ this is not an unsafe attribute
20- |
21- = note: extraneous unsafe is not allowed in attributes
22-
23- error: `proc_macro_derive` is not an unsafe attribute
24- --> $DIR/proc-unsafe-attributes.rs:7:3
25- |
26- LL | #[unsafe(proc_macro_derive(Foo))]
27- | ^^^^^^ this is not an unsafe attribute
28- |
29- = note: extraneous unsafe is not allowed in attributes
30-
31- error: `proc_macro_attribute` is not an unsafe attribute
32- --> $DIR/proc-unsafe-attributes.rs:18:3
33- |
34- LL | #[unsafe(proc_macro_attribute)]
35- | ^^^^^^ this is not an unsafe attribute
36- |
37- = note: extraneous unsafe is not allowed in attributes
38-
39- error: `allow` is not an unsafe attribute
40- --> $DIR/proc-unsafe-attributes.rs:23:3
41- |
42- LL | #[unsafe(allow(dead_code))]
43- | ^^^^^^ this is not an unsafe attribute
44- |
45- = note: extraneous unsafe is not allowed in attributes
46-
47- error: `allow` is not an unsafe attribute
48- --> $DIR/proc-unsafe-attributes.rs:27:3
49- |
50- LL | #[unsafe(allow(unsafe(dead_code)))]
51- | ^^^^^^ this is not an unsafe attribute
52- |
53- = note: extraneous unsafe is not allowed in attributes
54-
5515error: expected identifier, found keyword `unsafe`
5616 --> $DIR/proc-unsafe-attributes.rs:27:16
5717 |
@@ -103,6 +63,22 @@ LL | #[unsafe(allow(unsafe(dead_code)))]
10363 |
10464 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
10565
66+ error: `proc_macro` is not an unsafe attribute
67+ --> $DIR/proc-unsafe-attributes.rs:1:3
68+ |
69+ LL | #[unsafe(proc_macro)]
70+ | ^^^^^^ this is not an unsafe attribute
71+ |
72+ = note: extraneous unsafe is not allowed in attributes
73+
74+ error: `proc_macro_derive` is not an unsafe attribute
75+ --> $DIR/proc-unsafe-attributes.rs:7:3
76+ |
77+ LL | #[unsafe(proc_macro_derive(Foo))]
78+ | ^^^^^^ this is not an unsafe attribute
79+ |
80+ = note: extraneous unsafe is not allowed in attributes
81+
10682error: expected identifier, found keyword `unsafe`
10783 --> $DIR/proc-unsafe-attributes.rs:12:21
10884 |
@@ -132,6 +108,30 @@ LL - #[proc_macro_derive(unsafe(Foo))]
132108LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
133109 |
134110
111+ error: `proc_macro_attribute` is not an unsafe attribute
112+ --> $DIR/proc-unsafe-attributes.rs:18:3
113+ |
114+ LL | #[unsafe(proc_macro_attribute)]
115+ | ^^^^^^ this is not an unsafe attribute
116+ |
117+ = note: extraneous unsafe is not allowed in attributes
118+
119+ error: `allow` is not an unsafe attribute
120+ --> $DIR/proc-unsafe-attributes.rs:23:3
121+ |
122+ LL | #[unsafe(allow(dead_code))]
123+ | ^^^^^^ this is not an unsafe attribute
124+ |
125+ = note: extraneous unsafe is not allowed in attributes
126+
127+ error: `allow` is not an unsafe attribute
128+ --> $DIR/proc-unsafe-attributes.rs:27:3
129+ |
130+ LL | #[unsafe(allow(unsafe(dead_code)))]
131+ | ^^^^^^ this is not an unsafe attribute
132+ |
133+ = note: extraneous unsafe is not allowed in attributes
134+
135135error[E0452]: malformed lint attribute input
136136 --> $DIR/proc-unsafe-attributes.rs:27:16
137137 |
0 commit comments