fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
6.0 KiB222 linesraw
1error: `collapse_debuginfo` attribute should be applied to macro definitions
2  --> $DIR/collapse-debuginfo-invalid.rs:8:1
3   |
4LL | #[collapse_debuginfo]
5   | ^^^^^^^^^^^^^^^^^^^^^
6LL |
7LL | extern crate std;
8   | ----------------- not a macro definition
9
10error: `collapse_debuginfo` attribute should be applied to macro definitions
11  --> $DIR/collapse-debuginfo-invalid.rs:12:1
12   |
13LL | #[collapse_debuginfo]
14   | ^^^^^^^^^^^^^^^^^^^^^
15LL |
16LL | use std::collections::HashMap;
17   | ------------------------------ not a macro definition
18
19error: `collapse_debuginfo` attribute should be applied to macro definitions
20  --> $DIR/collapse-debuginfo-invalid.rs:16:1
21   |
22LL | #[collapse_debuginfo]
23   | ^^^^^^^^^^^^^^^^^^^^^
24LL |
25LL | static FOO: u32 = 3;
26   | -------------------- not a macro definition
27
28error: `collapse_debuginfo` attribute should be applied to macro definitions
29  --> $DIR/collapse-debuginfo-invalid.rs:20:1
30   |
31LL | #[collapse_debuginfo]
32   | ^^^^^^^^^^^^^^^^^^^^^
33LL |
34LL | const BAR: u32 = 3;
35   | ------------------- not a macro definition
36
37error: `collapse_debuginfo` attribute should be applied to macro definitions
38  --> $DIR/collapse-debuginfo-invalid.rs:24:1
39   |
40LL |   #[collapse_debuginfo]
41   |   ^^^^^^^^^^^^^^^^^^^^^
42LL |
43LL | / fn foo() {
44LL | |     let _ = #[collapse_debuginfo] || { };
45LL | |
46LL | |     #[collapse_debuginfo]
47...  |
48LL | |     }
49LL | | }
50   | |_- not a macro definition
51
52error: `collapse_debuginfo` attribute should be applied to macro definitions
53  --> $DIR/collapse-debuginfo-invalid.rs:27:13
54   |
55LL |     let _ = #[collapse_debuginfo] || { };
56   |             ^^^^^^^^^^^^^^^^^^^^^ ------ not a macro definition
57
58error: `collapse_debuginfo` attribute should be applied to macro definitions
59  --> $DIR/collapse-debuginfo-invalid.rs:29:5
60   |
61LL |     #[collapse_debuginfo]
62   |     ^^^^^^^^^^^^^^^^^^^^^
63LL |
64LL |     let _ = 3;
65   |     ---------- not a macro definition
66
67error: `collapse_debuginfo` attribute should be applied to macro definitions
68  --> $DIR/collapse-debuginfo-invalid.rs:32:13
69   |
70LL |     let _ = #[collapse_debuginfo] 3;
71   |             ^^^^^^^^^^^^^^^^^^^^^ - not a macro definition
72
73error: `collapse_debuginfo` attribute should be applied to macro definitions
74  --> $DIR/collapse-debuginfo-invalid.rs:35:9
75   |
76LL |         #[collapse_debuginfo]
77   |         ^^^^^^^^^^^^^^^^^^^^^
78LL |
79LL |         _ => (),
80   |         ------- not a macro definition
81
82error: `collapse_debuginfo` attribute should be applied to macro definitions
83  --> $DIR/collapse-debuginfo-invalid.rs:41:1
84   |
85LL |   #[collapse_debuginfo]
86   |   ^^^^^^^^^^^^^^^^^^^^^
87LL |
88LL | / mod bar {
89LL | | }
90   | |_- not a macro definition
91
92error: `collapse_debuginfo` attribute should be applied to macro definitions
93  --> $DIR/collapse-debuginfo-invalid.rs:46:1
94   |
95LL | #[collapse_debuginfo]
96   | ^^^^^^^^^^^^^^^^^^^^^
97LL |
98LL | type Map = HashMap<u32, u32>;
99   | ----------------------------- not a macro definition
100
101error: `collapse_debuginfo` attribute should be applied to macro definitions
102  --> $DIR/collapse-debuginfo-invalid.rs:50:1
103   |
104LL |   #[collapse_debuginfo]
105   |   ^^^^^^^^^^^^^^^^^^^^^
106LL |
107LL | / enum Foo {
108LL | |     #[collapse_debuginfo]
109LL | |
110LL | |     Variant,
111LL | | }
112   | |_- not a macro definition
113
114error: `collapse_debuginfo` attribute should be applied to macro definitions
115  --> $DIR/collapse-debuginfo-invalid.rs:53:5
116   |
117LL |     #[collapse_debuginfo]
118   |     ^^^^^^^^^^^^^^^^^^^^^
119LL |
120LL |     Variant,
121   |     ------- not a macro definition
122
123error: `collapse_debuginfo` attribute should be applied to macro definitions
124  --> $DIR/collapse-debuginfo-invalid.rs:58:1
125   |
126LL |   #[collapse_debuginfo]
127   |   ^^^^^^^^^^^^^^^^^^^^^
128LL |
129LL | / struct Bar {
130LL | |     #[collapse_debuginfo]
131LL | |
132LL | |     field: u32,
133LL | | }
134   | |_- not a macro definition
135
136error: `collapse_debuginfo` attribute should be applied to macro definitions
137  --> $DIR/collapse-debuginfo-invalid.rs:61:5
138   |
139LL |     #[collapse_debuginfo]
140   |     ^^^^^^^^^^^^^^^^^^^^^
141LL |
142LL |     field: u32,
143   |     ---------- not a macro definition
144
145error: `collapse_debuginfo` attribute should be applied to macro definitions
146  --> $DIR/collapse-debuginfo-invalid.rs:66:1
147   |
148LL |   #[collapse_debuginfo]
149   |   ^^^^^^^^^^^^^^^^^^^^^
150LL |
151LL | / union Qux {
152LL | |     a: u32,
153LL | |     b: u16
154LL | | }
155   | |_- not a macro definition
156
157error: `collapse_debuginfo` attribute should be applied to macro definitions
158  --> $DIR/collapse-debuginfo-invalid.rs:73:1
159   |
160LL |   #[collapse_debuginfo]
161   |   ^^^^^^^^^^^^^^^^^^^^^
162LL |
163LL | / trait Foobar {
164LL | |     #[collapse_debuginfo]
165LL | |
166LL | |     type Bar;
167LL | | }
168   | |_- not a macro definition
169
170error: `collapse_debuginfo` attribute should be applied to macro definitions
171  --> $DIR/collapse-debuginfo-invalid.rs:81:1
172   |
173LL | #[collapse_debuginfo]
174   | ^^^^^^^^^^^^^^^^^^^^^
175LL |
176LL | type AFoobar = impl Foobar;
177   | --------------------------- not a macro definition
178
179error: `collapse_debuginfo` attribute should be applied to macro definitions
180  --> $DIR/collapse-debuginfo-invalid.rs:93:1
181   |
182LL |   #[collapse_debuginfo]
183   |   ^^^^^^^^^^^^^^^^^^^^^
184LL |
185LL | / impl Bar {
186LL | |     #[collapse_debuginfo]
187LL | |
188LL | |     const FOO: u32 = 3;
189...  |
190LL | |     fn bar(&self) {}
191LL | | }
192   | |_- not a macro definition
193
194error: `collapse_debuginfo` attribute should be applied to macro definitions
195  --> $DIR/collapse-debuginfo-invalid.rs:76:5
196   |
197LL |     #[collapse_debuginfo]
198   |     ^^^^^^^^^^^^^^^^^^^^^
199LL |
200LL |     type Bar;
201   |     --------- not a macro definition
202
203error: `collapse_debuginfo` attribute should be applied to macro definitions
204  --> $DIR/collapse-debuginfo-invalid.rs:96:5
205   |
206LL |     #[collapse_debuginfo]
207   |     ^^^^^^^^^^^^^^^^^^^^^
208LL |
209LL |     const FOO: u32 = 3;
210   |     ------------------- not a macro definition
211
212error: `collapse_debuginfo` attribute should be applied to macro definitions
213  --> $DIR/collapse-debuginfo-invalid.rs:100:5
214   |
215LL |     #[collapse_debuginfo]
216   |     ^^^^^^^^^^^^^^^^^^^^^
217LL |
218LL |     fn bar(&self) {}
219   |     ---------------- not a macro definition
220
221error: aborting due to 22 previous errors
222