@@ -6,6 +6,7 @@ LL | asm!("bar: nop");
66 |
77 = note: `#[deny(named_asm_labels)]` on by default
88 = 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
910
1011error: avoid using named labels in inline assembly
1112 --> $DIR/named-asm-labels.rs:27:15
@@ -14,6 +15,7 @@ LL | asm!("abcd:");
1415 | ^^^^
1516 |
1617 = 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
1719
1820error: avoid using named labels in inline assembly
1921 --> $DIR/named-asm-labels.rs:30:15
@@ -22,6 +24,7 @@ LL | asm!("foo: bar1: nop");
2224 | ^^^ ^^^^
2325 |
2426 = 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
2528
2629error: avoid using named labels in inline assembly
2730 --> $DIR/named-asm-labels.rs:34:15
@@ -30,6 +33,7 @@ LL | asm!("foo1: nop", "nop");
3033 | ^^^^
3134 |
3235 = 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
3337
3438error: avoid using named labels in inline assembly
3539 --> $DIR/named-asm-labels.rs:35:15
@@ -38,6 +42,7 @@ LL | asm!("foo2: foo3: nop", "nop");
3842 | ^^^^ ^^^^
3943 |
4044 = 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
4146
4247error: avoid using named labels in inline assembly
4348 --> $DIR/named-asm-labels.rs:37:22
@@ -46,6 +51,7 @@ LL | asm!("nop", "foo4: nop");
4651 | ^^^^
4752 |
4853 = 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
4955
5056error: avoid using named labels in inline assembly
5157 --> $DIR/named-asm-labels.rs:38:15
@@ -54,6 +60,7 @@ LL | asm!("foo5: nop", "foo6: nop");
5460 | ^^^^
5561 |
5662 = 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
5764
5865error: avoid using named labels in inline assembly
5966 --> $DIR/named-asm-labels.rs:38:28
@@ -62,6 +69,7 @@ LL | asm!("foo5: nop", "foo6: nop");
6269 | ^^^^
6370 |
6471 = 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
6573
6674error: avoid using named labels in inline assembly
6775 --> $DIR/named-asm-labels.rs:43:15
@@ -70,6 +78,7 @@ LL | asm!("foo7: nop; foo8: nop");
7078 | ^^^^ ^^^^
7179 |
7280 = 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
7382
7483error: avoid using named labels in inline assembly
7584 --> $DIR/named-asm-labels.rs:45:15
@@ -78,6 +87,7 @@ LL | asm!("foo9: nop; nop");
7887 | ^^^^
7988 |
8089 = 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
8191
8292error: avoid using named labels in inline assembly
8393 --> $DIR/named-asm-labels.rs:46:20
@@ -86,6 +96,7 @@ LL | asm!("nop; foo10: nop");
8696 | ^^^^^
8797 |
8898 = 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
89100
90101error: avoid using named labels in inline assembly
91102 --> $DIR/named-asm-labels.rs:49:15
@@ -94,6 +105,7 @@ LL | asm!("bar2: nop\n bar3: nop");
94105 | ^^^^ ^^^^
95106 |
96107 = 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
97109
98110error: avoid using named labels in inline assembly
99111 --> $DIR/named-asm-labels.rs:51:15
@@ -102,6 +114,7 @@ LL | asm!("bar4: nop\n nop");
102114 | ^^^^
103115 |
104116 = 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
105118
106119error: avoid using named labels in inline assembly
107120 --> $DIR/named-asm-labels.rs:52:21
@@ -110,6 +123,7 @@ LL | asm!("nop\n bar5: nop");
110123 | ^^^^
111124 |
112125 = 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
113127
114128error: avoid using named labels in inline assembly
115129 --> $DIR/named-asm-labels.rs:53:21
@@ -118,6 +132,7 @@ LL | asm!("nop\n bar6: bar7: nop");
118132 | ^^^^ ^^^^
119133 |
120134 = 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
121136
122137error: avoid using named labels in inline assembly
123138 --> $DIR/named-asm-labels.rs:59:13
@@ -128,6 +143,7 @@ LL | blah3: nop
128143 | ^^^^^
129144 |
130145 = 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
131147
132148error: avoid using named labels in inline assembly
133149 --> $DIR/named-asm-labels.rs:68:19
@@ -136,6 +152,7 @@ LL | nop ; blah4: nop
136152 | ^^^^^
137153 |
138154 = 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
139156
140157error: avoid using named labels in inline assembly
141158 --> $DIR/named-asm-labels.rs:82:15
@@ -144,6 +161,7 @@ LL | asm!("blah1: 2bar: nop");
144161 | ^^^^^
145162 |
146163 = 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
147165
148166error: avoid using named labels in inline assembly
149167 --> $DIR/named-asm-labels.rs:85:15
@@ -152,6 +170,7 @@ LL | asm!("def: def: nop");
152170 | ^^^
153171 |
154172 = 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
155174
156175error: avoid using named labels in inline assembly
157176 --> $DIR/named-asm-labels.rs:86:15
@@ -160,6 +179,7 @@ LL | asm!("def: nop\ndef: nop");
160179 | ^^^
161180 |
162181 = 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
163183
164184error: avoid using named labels in inline assembly
165185 --> $DIR/named-asm-labels.rs:87:15
@@ -168,6 +188,7 @@ LL | asm!("def: nop; def: nop");
168188 | ^^^
169189 |
170190 = 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
171192
172193error: avoid using named labels in inline assembly
173194 --> $DIR/named-asm-labels.rs:95:15
@@ -176,6 +197,7 @@ LL | asm!("fooo\u{003A} nop");
176197 | ^^^^^^^^^^^^^^^^
177198 |
178199 = 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
179201
180202error: avoid using named labels in inline assembly
181203 --> $DIR/named-asm-labels.rs:96:15
@@ -184,6 +206,7 @@ LL | asm!("foooo\x3A nop");
184206 | ^^^^^^^^^^^^^
185207 |
186208 = 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
187210
188211error: avoid using named labels in inline assembly
189212 --> $DIR/named-asm-labels.rs:99:15
@@ -192,6 +215,7 @@ LL | asm!("fooooo:\u{000A} nop");
192215 | ^^^^^^
193216 |
194217 = 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
195219
196220error: avoid using named labels in inline assembly
197221 --> $DIR/named-asm-labels.rs:100:15
@@ -200,6 +224,7 @@ LL | asm!("foooooo:\x0A nop");
200224 | ^^^^^^^
201225 |
202226 = 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
203228
204229error: avoid using named labels in inline assembly
205230 --> $DIR/named-asm-labels.rs:104:14
@@ -208,6 +233,7 @@ LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
208233 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
209234 |
210235 = 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
211237
212238error: avoid using named labels in inline assembly
213239 --> $DIR/named-asm-labels.rs:112:13
@@ -216,6 +242,7 @@ LL | ab: nop // ab: does foo
216242 | ^^
217243 |
218244 = 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
219246
220247error: avoid using named labels in inline assembly
221248 --> $DIR/named-asm-labels.rs:124:14
@@ -224,6 +251,7 @@ LL | asm!(include_str!("named-asm-labels.s"));
224251 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
225252 |
226253 = 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
227255
228256warning: avoid using named labels in inline assembly
229257 --> $DIR/named-asm-labels.rs:134:19
@@ -237,6 +265,7 @@ note: the lint level is defined here
237265LL | #[warn(named_asm_labels)]
238266 | ^^^^^^^^^^^^^^^^
239267 = 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
240269
241270error: avoid using named labels in inline assembly
242271 --> $DIR/named-asm-labels.rs:143:20
@@ -245,6 +274,7 @@ LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noret
245274 | ^^^^^
246275 |
247276 = 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
248278
249279error: avoid using named labels in inline assembly
250280 --> $DIR/named-asm-labels.rs:149:20
@@ -253,6 +283,7 @@ LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noret
253283 | ^^^^^
254284 |
255285 = 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
256287
257288error: avoid using named labels in inline assembly
258289 --> $DIR/named-asm-labels.rs:157:20
@@ -261,6 +292,7 @@ LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
261292 | ^^^^^
262293 |
263294 = 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
264296
265297error: avoid using named labels in inline assembly
266298 --> $DIR/named-asm-labels.rs:167:24
@@ -269,6 +301,7 @@ LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
269301 | ^^^^^
270302 |
271303 = 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
272305
273306error: avoid using named labels in inline assembly
274307 --> $DIR/named-asm-labels.rs:176:15
@@ -277,6 +310,7 @@ LL | asm!("closure1: nop");
277310 | ^^^^^^^^
278311 |
279312 = 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
280314
281315error: avoid using named labels in inline assembly
282316 --> $DIR/named-asm-labels.rs:180:15
@@ -285,6 +319,7 @@ LL | asm!("closure2: nop");
285319 | ^^^^^^^^
286320 |
287321 = 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
288323
289324error: avoid using named labels in inline assembly
290325 --> $DIR/named-asm-labels.rs:190:19
@@ -293,6 +328,7 @@ LL | asm!("closure3: nop");
293328 | ^^^^^^^^
294329 |
295330 = 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
296332
297333error: aborting due to 35 previous errors; 1 warning emitted
298334
0 commit comments