1 error: avoid using named labels in inline assembly
2 --> $DIR/named-asm-labels.rs:24:15
7 = note: `#[deny(named_asm_labels)]` on by default
8 = help: only local labels of the form `<number>:` should be used in inline asm
10 error: avoid using named labels in inline assembly
11 --> $DIR/named-asm-labels.rs:27:15
16 = help: only local labels of the form `<number>:` should be used in inline asm
18 error: avoid using named labels in inline assembly
19 --> $DIR/named-asm-labels.rs:30:15
21 LL | asm!("foo: bar1: nop");
24 = help: only local labels of the form `<number>:` should be used in inline asm
26 error: avoid using named labels in inline assembly
27 --> $DIR/named-asm-labels.rs:34:15
29 LL | asm!("foo1: nop", "nop");
32 = help: only local labels of the form `<number>:` should be used in inline asm
34 error: avoid using named labels in inline assembly
35 --> $DIR/named-asm-labels.rs:35:15
37 LL | asm!("foo2: foo3: nop", "nop");
40 = help: only local labels of the form `<number>:` should be used in inline asm
42 error: avoid using named labels in inline assembly
43 --> $DIR/named-asm-labels.rs:37:22
45 LL | asm!("nop", "foo4: nop");
48 = help: only local labels of the form `<number>:` should be used in inline asm
50 error: avoid using named labels in inline assembly
51 --> $DIR/named-asm-labels.rs:38:15
53 LL | asm!("foo5: nop", "foo6: nop");
56 = help: only local labels of the form `<number>:` should be used in inline asm
58 error: avoid using named labels in inline assembly
59 --> $DIR/named-asm-labels.rs:38:28
61 LL | asm!("foo5: nop", "foo6: nop");
64 = help: only local labels of the form `<number>:` should be used in inline asm
66 error: avoid using named labels in inline assembly
67 --> $DIR/named-asm-labels.rs:43:15
69 LL | asm!("foo7: nop; foo8: nop");
72 = help: only local labels of the form `<number>:` should be used in inline asm
74 error: avoid using named labels in inline assembly
75 --> $DIR/named-asm-labels.rs:45:15
77 LL | asm!("foo9: nop; nop");
80 = help: only local labels of the form `<number>:` should be used in inline asm
82 error: avoid using named labels in inline assembly
83 --> $DIR/named-asm-labels.rs:46:20
85 LL | asm!("nop; foo10: nop");
88 = help: only local labels of the form `<number>:` should be used in inline asm
90 error: avoid using named labels in inline assembly
91 --> $DIR/named-asm-labels.rs:49:15
93 LL | asm!("bar2: nop\n bar3: nop");
96 = help: only local labels of the form `<number>:` should be used in inline asm
98 error: avoid using named labels in inline assembly
99 --> $DIR/named-asm-labels.rs:51:15
101 LL | asm!("bar4: nop\n nop");
104 = help: only local labels of the form `<number>:` should be used in inline asm
106 error: avoid using named labels in inline assembly
107 --> $DIR/named-asm-labels.rs:52:21
109 LL | asm!("nop\n bar5: nop");
112 = help: only local labels of the form `<number>:` should be used in inline asm
114 error: avoid using named labels in inline assembly
115 --> $DIR/named-asm-labels.rs:53:21
117 LL | asm!("nop\n bar6: bar7: nop");
120 = help: only local labels of the form `<number>:` should be used in inline asm
122 error: avoid using named labels in inline assembly
123 --> $DIR/named-asm-labels.rs:59:13
130 = help: only local labels of the form `<number>:` should be used in inline asm
132 error: avoid using named labels in inline assembly
133 --> $DIR/named-asm-labels.rs:68:19
135 LL | nop ; blah4: nop
138 = help: only local labels of the form `<number>:` should be used in inline asm
140 error: avoid using named labels in inline assembly
141 --> $DIR/named-asm-labels.rs:82:15
143 LL | asm!("blah1: 2bar: nop");
146 = help: only local labels of the form `<number>:` should be used in inline asm
148 error: avoid using named labels in inline assembly
149 --> $DIR/named-asm-labels.rs:85:15
151 LL | asm!("def: def: nop");
154 = help: only local labels of the form `<number>:` should be used in inline asm
156 error: avoid using named labels in inline assembly
157 --> $DIR/named-asm-labels.rs:86:15
159 LL | asm!("def: nop\ndef: nop");
162 = help: only local labels of the form `<number>:` should be used in inline asm
164 error: avoid using named labels in inline assembly
165 --> $DIR/named-asm-labels.rs:87:15
167 LL | asm!("def: nop; def: nop");
170 = help: only local labels of the form `<number>:` should be used in inline asm
172 error: avoid using named labels in inline assembly
173 --> $DIR/named-asm-labels.rs:95:15
175 LL | asm!("fooo\u{003A} nop");
178 = help: only local labels of the form `<number>:` should be used in inline asm
180 error: avoid using named labels in inline assembly
181 --> $DIR/named-asm-labels.rs:96:15
183 LL | asm!("foooo\x3A nop");
186 = help: only local labels of the form `<number>:` should be used in inline asm
188 error: avoid using named labels in inline assembly
189 --> $DIR/named-asm-labels.rs:99:15
191 LL | asm!("fooooo:\u{000A} nop");
194 = help: only local labels of the form `<number>:` should be used in inline asm
196 error: avoid using named labels in inline assembly
197 --> $DIR/named-asm-labels.rs:100:15
199 LL | asm!("foooooo:\x0A nop");
202 = help: only local labels of the form `<number>:` should be used in inline asm
204 error: avoid using named labels in inline assembly
205 --> $DIR/named-asm-labels.rs:104:14
207 LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
208 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
210 = help: only local labels of the form `<number>:` should be used in inline asm
212 error: avoid using named labels in inline assembly
213 --> $DIR/named-asm-labels.rs:112:13
215 LL | ab: nop // ab: does foo
218 = help: only local labels of the form `<number>:` should be used in inline asm
220 error: avoid using named labels in inline assembly
221 --> $DIR/named-asm-labels.rs:124:14
223 LL | asm!(include_str!("named-asm-labels.s"));
224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
226 = help: only local labels of the form `<number>:` should be used in inline asm
228 warning: avoid using named labels in inline assembly
229 --> $DIR/named-asm-labels.rs:134:19
231 LL | asm!("warned: nop");
234 note: the lint level is defined here
235 --> $DIR/named-asm-labels.rs:132:16
237 LL | #[warn(named_asm_labels)]
239 = help: only local labels of the form `<number>:` should be used in inline asm
241 error: avoid using named labels in inline assembly
242 --> $DIR/named-asm-labels.rs:143:20
244 LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
247 = help: only local labels of the form `<number>:` should be used in inline asm
249 error: avoid using named labels in inline assembly
250 --> $DIR/named-asm-labels.rs:149:20
252 LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
255 = help: only local labels of the form `<number>:` should be used in inline asm
257 error: avoid using named labels in inline assembly
258 --> $DIR/named-asm-labels.rs:157:20
260 LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
263 = help: only local labels of the form `<number>:` should be used in inline asm
265 error: avoid using named labels in inline assembly
266 --> $DIR/named-asm-labels.rs:167:24
268 LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
271 = help: only local labels of the form `<number>:` should be used in inline asm
273 error: avoid using named labels in inline assembly
274 --> $DIR/named-asm-labels.rs:176:15
276 LL | asm!("closure1: nop");
279 = help: only local labels of the form `<number>:` should be used in inline asm
281 error: avoid using named labels in inline assembly
282 --> $DIR/named-asm-labels.rs:180:15
284 LL | asm!("closure2: nop");
287 = help: only local labels of the form `<number>:` should be used in inline asm
289 error: avoid using named labels in inline assembly
290 --> $DIR/named-asm-labels.rs:190:19
292 LL | asm!("closure3: nop");
295 = help: only local labels of the form `<number>:` should be used in inline asm
297 error: aborting due to 35 previous errors; 1 warning emitted