You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #92611 - Amanieu:asm-reference, r=m-ou-se
Add links to the reference and rust by example for asm! docs and lints
These were previously removed in #91728 due to broken links.
cc ``@ehuss`` since this updates the rust-by-example submodule
db.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");
Copy file name to clipboardExpand all lines: src/test/ui/asm/named-asm-labels.stderr
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ LL | asm!("bar: nop");
6
6
|
7
7
= note: `#[deny(named_asm_labels)]` on by default
8
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
9
10
10
11
error: avoid using named labels in inline assembly
11
12
--> $DIR/named-asm-labels.rs:27:15
@@ -14,6 +15,7 @@ LL | asm!("abcd:");
14
15
| ^^^^
15
16
|
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
17
19
18
20
error: avoid using named labels in inline assembly
19
21
--> $DIR/named-asm-labels.rs:30:15
@@ -22,6 +24,7 @@ LL | asm!("foo: bar1: nop");
22
24
| ^^^ ^^^^
23
25
|
24
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
25
28
26
29
error: avoid using named labels in inline assembly
27
30
--> $DIR/named-asm-labels.rs:34:15
@@ -30,6 +33,7 @@ LL | asm!("foo1: nop", "nop");
30
33
| ^^^^
31
34
|
32
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
33
37
34
38
error: avoid using named labels in inline assembly
= 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
41
46
42
47
error: avoid using named labels in inline assembly
43
48
--> $DIR/named-asm-labels.rs:37:22
@@ -46,6 +51,7 @@ LL | asm!("nop", "foo4: nop");
46
51
| ^^^^
47
52
|
48
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
49
55
50
56
error: avoid using named labels in inline assembly
= 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
57
64
58
65
error: avoid using named labels in inline assembly
= 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
65
73
66
74
error: avoid using named labels in inline assembly
= 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
73
82
74
83
error: avoid using named labels in inline assembly
75
84
--> $DIR/named-asm-labels.rs:45:15
@@ -78,6 +87,7 @@ LL | asm!("foo9: nop; nop");
78
87
| ^^^^
79
88
|
80
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
81
91
82
92
error: avoid using named labels in inline assembly
83
93
--> $DIR/named-asm-labels.rs:46:20
@@ -86,6 +96,7 @@ LL | asm!("nop; foo10: nop");
86
96
| ^^^^^
87
97
|
88
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
89
100
90
101
error: avoid using named labels in inline assembly
= 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
97
109
98
110
error: avoid using named labels in inline assembly
99
111
--> $DIR/named-asm-labels.rs:51:15
@@ -102,6 +114,7 @@ LL | asm!("bar4: nop\n nop");
102
114
| ^^^^
103
115
|
104
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
105
118
106
119
error: avoid using named labels in inline assembly
107
120
--> $DIR/named-asm-labels.rs:52:21
@@ -110,6 +123,7 @@ LL | asm!("nop\n bar5: nop");
110
123
| ^^^^
111
124
|
112
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
113
127
114
128
error: avoid using named labels in inline assembly
= 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
121
136
122
137
error: avoid using named labels in inline assembly
123
138
--> $DIR/named-asm-labels.rs:59:13
@@ -128,6 +143,7 @@ LL | blah3: nop
128
143
| ^^^^^
129
144
|
130
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
131
147
132
148
error: avoid using named labels in inline assembly
133
149
--> $DIR/named-asm-labels.rs:68:19
@@ -136,6 +152,7 @@ LL | nop ; blah4: nop
136
152
| ^^^^^
137
153
|
138
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
139
156
140
157
error: avoid using named labels in inline assembly
= 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
147
165
148
166
error: avoid using named labels in inline assembly
149
167
--> $DIR/named-asm-labels.rs:85:15
@@ -152,6 +170,7 @@ LL | asm!("def: def: nop");
152
170
| ^^^
153
171
|
154
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
155
174
156
175
error: avoid using named labels in inline assembly
= 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
163
183
164
184
error: avoid using named labels in inline assembly
= 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
171
192
172
193
error: avoid using named labels in inline assembly
= 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
179
201
180
202
error: avoid using named labels in inline assembly
181
203
--> $DIR/named-asm-labels.rs:96:15
@@ -184,6 +206,7 @@ LL | asm!("foooo\x3A nop");
184
206
| ^^^^^^^^^^^^^
185
207
|
186
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
187
210
188
211
error: avoid using named labels in inline assembly
= 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
195
219
196
220
error: avoid using named labels in inline assembly
= 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
203
228
204
229
error: avoid using named labels in inline assembly
= 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
211
237
212
238
error: avoid using named labels in inline assembly
213
239
--> $DIR/named-asm-labels.rs:112:13
@@ -216,6 +242,7 @@ LL | ab: nop // ab: does foo
216
242
| ^^
217
243
|
218
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
219
246
220
247
error: avoid using named labels in inline assembly
= 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
227
255
228
256
warning: avoid using named labels in inline assembly
229
257
--> $DIR/named-asm-labels.rs:134:19
@@ -237,6 +265,7 @@ note: the lint level is defined here
237
265
LL | #[warn(named_asm_labels)]
238
266
| ^^^^^^^^^^^^^^^^
239
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
240
269
241
270
error: avoid using named labels in inline assembly
= 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
248
278
249
279
error: avoid using named labels in inline assembly
= 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
256
287
257
288
error: avoid using named labels in inline assembly
= 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
264
296
265
297
error: avoid using named labels in inline assembly
= 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
272
305
273
306
error: avoid using named labels in inline assembly
274
307
--> $DIR/named-asm-labels.rs:176:15
@@ -277,6 +310,7 @@ LL | asm!("closure1: nop");
277
310
| ^^^^^^^^
278
311
|
279
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
280
314
281
315
error: avoid using named labels in inline assembly
282
316
--> $DIR/named-asm-labels.rs:180:15
@@ -285,6 +319,7 @@ LL | asm!("closure2: nop");
285
319
| ^^^^^^^^
286
320
|
287
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
288
323
289
324
error: avoid using named labels in inline assembly
290
325
--> $DIR/named-asm-labels.rs:190:19
@@ -293,6 +328,7 @@ LL | asm!("closure3: nop");
293
328
| ^^^^^^^^
294
329
|
295
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
296
332
297
333
error: aborting due to 35 previous errors; 1 warning emitted
0 commit comments