]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/proc-macro-attributes.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / proc-macro / proc-macro-attributes.stderr
1 error: cannot find attribute `C` in this scope
2   --> $DIR/proc-macro-attributes.rs:9:3
3    |
4 LL | #[C]
5    |   ^ help: a derive helper attribute with a similar name exists: `B`
6
7 error[E0659]: `B` is ambiguous
8   --> $DIR/proc-macro-attributes.rs:6:3
9    |
10 LL | #[B]
11    |   ^ ambiguous name
12    |
13    = note: ambiguous because of a name conflict with a derive helper attribute
14 note: `B` could refer to the derive helper attribute defined here
15   --> $DIR/proc-macro-attributes.rs:19:10
16    |
17 LL | #[derive(B)]
18    |          ^
19 note: `B` could also refer to the derive macro imported here
20   --> $DIR/proc-macro-attributes.rs:3:1
21    |
22 LL | #[macro_use]
23    | ^^^^^^^^^^^^
24
25 error[E0659]: `B` is ambiguous
26   --> $DIR/proc-macro-attributes.rs:10:3
27    |
28 LL | #[B(D)]
29    |   ^ ambiguous name
30    |
31    = note: ambiguous because of a name conflict with a derive helper attribute
32 note: `B` could refer to the derive helper attribute defined here
33   --> $DIR/proc-macro-attributes.rs:19:10
34    |
35 LL | #[derive(B)]
36    |          ^
37 note: `B` could also refer to the derive macro imported here
38   --> $DIR/proc-macro-attributes.rs:3:1
39    |
40 LL | #[macro_use]
41    | ^^^^^^^^^^^^
42
43 error[E0659]: `B` is ambiguous
44   --> $DIR/proc-macro-attributes.rs:13:3
45    |
46 LL | #[B(E = "foo")]
47    |   ^ ambiguous name
48    |
49    = note: ambiguous because of a name conflict with a derive helper attribute
50 note: `B` could refer to the derive helper attribute defined here
51   --> $DIR/proc-macro-attributes.rs:19:10
52    |
53 LL | #[derive(B)]
54    |          ^
55 note: `B` could also refer to the derive macro imported here
56   --> $DIR/proc-macro-attributes.rs:3:1
57    |
58 LL | #[macro_use]
59    | ^^^^^^^^^^^^
60
61 error[E0659]: `B` is ambiguous
62   --> $DIR/proc-macro-attributes.rs:16:3
63    |
64 LL | #[B(arbitrary tokens)]
65    |   ^ ambiguous name
66    |
67    = note: ambiguous because of a name conflict with a derive helper attribute
68 note: `B` could refer to the derive helper attribute defined here
69   --> $DIR/proc-macro-attributes.rs:19:10
70    |
71 LL | #[derive(B)]
72    |          ^
73 note: `B` could also refer to the derive macro imported here
74   --> $DIR/proc-macro-attributes.rs:3:1
75    |
76 LL | #[macro_use]
77    | ^^^^^^^^^^^^
78
79 warning: derive helper attribute is used before it is introduced
80   --> $DIR/proc-macro-attributes.rs:6:3
81    |
82 LL | #[B]
83    |   ^
84 ...
85 LL | #[derive(B)]
86    |          - the attribute is introduced here
87    |
88    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
89    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
90    = note: `#[warn(legacy_derive_helpers)]` on by default
91
92 warning: derive helper attribute is used before it is introduced
93   --> $DIR/proc-macro-attributes.rs:10:3
94    |
95 LL | #[B(D)]
96    |   ^
97 ...
98 LL | #[derive(B)]
99    |          - the attribute is introduced here
100    |
101    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
102    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
103
104 warning: derive helper attribute is used before it is introduced
105   --> $DIR/proc-macro-attributes.rs:13:3
106    |
107 LL | #[B(E = "foo")]
108    |   ^
109 ...
110 LL | #[derive(B)]
111    |          - the attribute is introduced here
112    |
113    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
114    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
115
116 warning: derive helper attribute is used before it is introduced
117   --> $DIR/proc-macro-attributes.rs:16:3
118    |
119 LL | #[B(arbitrary tokens)]
120    |   ^
121 ...
122 LL | #[derive(B)]
123    |          - the attribute is introduced here
124    |
125    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
126    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
127
128 error: aborting due to 5 previous errors; 4 warnings emitted
129
130 For more information about this error, try `rustc --explain E0659`.