]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/named-asm-labels.stderr
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / named-asm-labels.stderr
1 error: avoid using named labels in inline assembly
2   --> $DIR/named-asm-labels.rs:24:15
3    |
4 LL |         asm!("bar: nop");
5    |               ^^^
6    |
7    = note: `#[deny(named_asm_labels)]` on by default
8    = help: only local labels of the form `<number>:` should be used in inline asm
9    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
10
11 error: avoid using named labels in inline assembly
12   --> $DIR/named-asm-labels.rs:27:15
13    |
14 LL |         asm!("abcd:");
15    |               ^^^^
16    |
17    = help: only local labels of the form `<number>:` should be used in inline asm
18    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
19
20 error: avoid using named labels in inline assembly
21   --> $DIR/named-asm-labels.rs:30:15
22    |
23 LL |         asm!("foo: bar1: nop");
24    |               ^^^  ^^^^
25    |
26    = help: only local labels of the form `<number>:` should be used in inline asm
27    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
28
29 error: avoid using named labels in inline assembly
30   --> $DIR/named-asm-labels.rs:34:15
31    |
32 LL |         asm!("foo1: nop", "nop");
33    |               ^^^^
34    |
35    = help: only local labels of the form `<number>:` should be used in inline asm
36    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
37
38 error: avoid using named labels in inline assembly
39   --> $DIR/named-asm-labels.rs:35:15
40    |
41 LL |         asm!("foo2: foo3: nop", "nop");
42    |               ^^^^  ^^^^
43    |
44    = help: only local labels of the form `<number>:` should be used in inline asm
45    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
46
47 error: avoid using named labels in inline assembly
48   --> $DIR/named-asm-labels.rs:37:22
49    |
50 LL |         asm!("nop", "foo4: nop");
51    |                      ^^^^
52    |
53    = help: only local labels of the form `<number>:` should be used in inline asm
54    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
55
56 error: avoid using named labels in inline assembly
57   --> $DIR/named-asm-labels.rs:38:15
58    |
59 LL |         asm!("foo5: nop", "foo6: nop");
60    |               ^^^^
61    |
62    = help: only local labels of the form `<number>:` should be used in inline asm
63    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
64
65 error: avoid using named labels in inline assembly
66   --> $DIR/named-asm-labels.rs:38:28
67    |
68 LL |         asm!("foo5: nop", "foo6: nop");
69    |                            ^^^^
70    |
71    = help: only local labels of the form `<number>:` should be used in inline asm
72    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
73
74 error: avoid using named labels in inline assembly
75   --> $DIR/named-asm-labels.rs:43:15
76    |
77 LL |         asm!("foo7: nop; foo8: nop");
78    |               ^^^^       ^^^^
79    |
80    = help: only local labels of the form `<number>:` should be used in inline asm
81    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
82
83 error: avoid using named labels in inline assembly
84   --> $DIR/named-asm-labels.rs:45:15
85    |
86 LL |         asm!("foo9: nop; nop");
87    |               ^^^^
88    |
89    = help: only local labels of the form `<number>:` should be used in inline asm
90    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
91
92 error: avoid using named labels in inline assembly
93   --> $DIR/named-asm-labels.rs:46:20
94    |
95 LL |         asm!("nop; foo10: nop");
96    |                    ^^^^^
97    |
98    = help: only local labels of the form `<number>:` should be used in inline asm
99    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
100
101 error: avoid using named labels in inline assembly
102   --> $DIR/named-asm-labels.rs:49:15
103    |
104 LL |         asm!("bar2: nop\n bar3: nop");
105    |               ^^^^        ^^^^
106    |
107    = help: only local labels of the form `<number>:` should be used in inline asm
108    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
109
110 error: avoid using named labels in inline assembly
111   --> $DIR/named-asm-labels.rs:51:15
112    |
113 LL |         asm!("bar4: nop\n nop");
114    |               ^^^^
115    |
116    = help: only local labels of the form `<number>:` should be used in inline asm
117    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
118
119 error: avoid using named labels in inline assembly
120   --> $DIR/named-asm-labels.rs:52:21
121    |
122 LL |         asm!("nop\n bar5: nop");
123    |                     ^^^^
124    |
125    = help: only local labels of the form `<number>:` should be used in inline asm
126    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
127
128 error: avoid using named labels in inline assembly
129   --> $DIR/named-asm-labels.rs:53:21
130    |
131 LL |         asm!("nop\n bar6: bar7: nop");
132    |                     ^^^^  ^^^^
133    |
134    = help: only local labels of the form `<number>:` should be used in inline asm
135    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
136
137 error: avoid using named labels in inline assembly
138   --> $DIR/named-asm-labels.rs:59:13
139    |
140 LL |             blah2: nop
141    |             ^^^^^
142 LL |             blah3: nop
143    |             ^^^^^
144    |
145    = help: only local labels of the form `<number>:` should be used in inline asm
146    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
147
148 error: avoid using named labels in inline assembly
149   --> $DIR/named-asm-labels.rs:68:19
150    |
151 LL |             nop ; blah4: nop
152    |                   ^^^^^
153    |
154    = help: only local labels of the form `<number>:` should be used in inline asm
155    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
156
157 error: avoid using named labels in inline assembly
158   --> $DIR/named-asm-labels.rs:82:15
159    |
160 LL |         asm!("blah1: 2bar: nop");
161    |               ^^^^^
162    |
163    = help: only local labels of the form `<number>:` should be used in inline asm
164    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
165
166 error: avoid using named labels in inline assembly
167   --> $DIR/named-asm-labels.rs:85:15
168    |
169 LL |         asm!("def: def: nop");
170    |               ^^^
171    |
172    = help: only local labels of the form `<number>:` should be used in inline asm
173    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
174
175 error: avoid using named labels in inline assembly
176   --> $DIR/named-asm-labels.rs:86:15
177    |
178 LL |         asm!("def: nop\ndef: nop");
179    |               ^^^
180    |
181    = help: only local labels of the form `<number>:` should be used in inline asm
182    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
183
184 error: avoid using named labels in inline assembly
185   --> $DIR/named-asm-labels.rs:87:15
186    |
187 LL |         asm!("def: nop; def: nop");
188    |               ^^^
189    |
190    = help: only local labels of the form `<number>:` should be used in inline asm
191    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
192
193 error: avoid using named labels in inline assembly
194   --> $DIR/named-asm-labels.rs:95:15
195    |
196 LL |         asm!("fooo\u{003A} nop");
197    |               ^^^^^^^^^^^^^^^^
198    |
199    = help: only local labels of the form `<number>:` should be used in inline asm
200    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
201
202 error: avoid using named labels in inline assembly
203   --> $DIR/named-asm-labels.rs:96:15
204    |
205 LL |         asm!("foooo\x3A nop");
206    |               ^^^^^^^^^^^^^
207    |
208    = help: only local labels of the form `<number>:` should be used in inline asm
209    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
210
211 error: avoid using named labels in inline assembly
212   --> $DIR/named-asm-labels.rs:99:15
213    |
214 LL |         asm!("fooooo:\u{000A} nop");
215    |               ^^^^^^
216    |
217    = help: only local labels of the form `<number>:` should be used in inline asm
218    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
219
220 error: avoid using named labels in inline assembly
221   --> $DIR/named-asm-labels.rs:100:15
222    |
223 LL |         asm!("foooooo:\x0A nop");
224    |               ^^^^^^^
225    |
226    = help: only local labels of the form `<number>:` should be used in inline asm
227    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
228
229 error: avoid using named labels in inline assembly
230   --> $DIR/named-asm-labels.rs:104:14
231    |
232 LL |         asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
233    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
234    |
235    = help: only local labels of the form `<number>:` should be used in inline asm
236    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
237
238 error: avoid using named labels in inline assembly
239   --> $DIR/named-asm-labels.rs:112:13
240    |
241 LL |             ab: nop // ab: does foo
242    |             ^^
243    |
244    = help: only local labels of the form `<number>:` should be used in inline asm
245    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
246
247 error: avoid using named labels in inline assembly
248   --> $DIR/named-asm-labels.rs:124:14
249    |
250 LL |         asm!(include_str!("named-asm-labels.s"));
251    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
252    |
253    = help: only local labels of the form `<number>:` should be used in inline asm
254    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
255
256 warning: avoid using named labels in inline assembly
257   --> $DIR/named-asm-labels.rs:134:19
258    |
259 LL |             asm!("warned: nop");
260    |                   ^^^^^^
261    |
262 note: the lint level is defined here
263   --> $DIR/named-asm-labels.rs:132:16
264    |
265 LL |         #[warn(named_asm_labels)]
266    |                ^^^^^^^^^^^^^^^^
267    = help: only local labels of the form `<number>:` should be used in inline asm
268    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
269
270 error: avoid using named labels in inline assembly
271   --> $DIR/named-asm-labels.rs:143:20
272    |
273 LL |     unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
274    |                    ^^^^^
275    |
276    = help: only local labels of the form `<number>:` should be used in inline asm
277    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
278
279 error: avoid using named labels in inline assembly
280   --> $DIR/named-asm-labels.rs:149:20
281    |
282 LL |     unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
283    |                    ^^^^^
284    |
285    = help: only local labels of the form `<number>:` should be used in inline asm
286    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
287
288 error: avoid using named labels in inline assembly
289   --> $DIR/named-asm-labels.rs:157:20
290    |
291 LL |     unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
292    |                    ^^^^^
293    |
294    = help: only local labels of the form `<number>:` should be used in inline asm
295    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
296
297 error: avoid using named labels in inline assembly
298   --> $DIR/named-asm-labels.rs:167:24
299    |
300 LL |         unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
301    |                        ^^^^^
302    |
303    = help: only local labels of the form `<number>:` should be used in inline asm
304    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
305
306 error: avoid using named labels in inline assembly
307   --> $DIR/named-asm-labels.rs:176:15
308    |
309 LL |         asm!("closure1: nop");
310    |               ^^^^^^^^
311    |
312    = help: only local labels of the form `<number>:` should be used in inline asm
313    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
314
315 error: avoid using named labels in inline assembly
316   --> $DIR/named-asm-labels.rs:180:15
317    |
318 LL |         asm!("closure2: nop");
319    |               ^^^^^^^^
320    |
321    = help: only local labels of the form `<number>:` should be used in inline asm
322    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
323
324 error: avoid using named labels in inline assembly
325   --> $DIR/named-asm-labels.rs:190:19
326    |
327 LL |             asm!("closure3: nop");
328    |                   ^^^^^^^^
329    |
330    = help: only local labels of the form `<number>:` should be used in inline asm
331    = note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
332
333 error: aborting due to 35 previous errors; 1 warning emitted
334