1
1
error: asm with the `pure` option must have at least one output
2
- --> $DIR/naked-functions.rs:126 :14
2
+ --> $DIR/naked-functions.rs:127 :14
3
3
|
4
4
LL | asm!("", options(readonly, nostack), options(pure));
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
6
6
7
7
error: patterns not allowed in naked function parameters
8
- --> $DIR/naked-functions.rs:13 :5
8
+ --> $DIR/naked-functions.rs:14 :5
9
9
|
10
10
LL | mut a: u32,
11
11
| ^^^^^
12
12
13
13
error: patterns not allowed in naked function parameters
14
- --> $DIR/naked-functions.rs:15 :5
14
+ --> $DIR/naked-functions.rs:16 :5
15
15
|
16
16
LL | &b: &i32,
17
17
| ^^
18
18
19
19
error: patterns not allowed in naked function parameters
20
- --> $DIR/naked-functions.rs:17 :6
20
+ --> $DIR/naked-functions.rs:18 :6
21
21
|
22
22
LL | (None | Some(_)): Option<std::ptr::NonNull<u8>>,
23
23
| ^^^^^^^^^^^^^^
24
24
25
25
error: patterns not allowed in naked function parameters
26
- --> $DIR/naked-functions.rs:19 :5
26
+ --> $DIR/naked-functions.rs:20 :5
27
27
|
28
28
LL | P { x, y }: P,
29
29
| ^^^^^^^^^^
30
30
31
31
error: referencing function parameters is not allowed in naked functions
32
- --> $DIR/naked-functions.rs:29 :5
32
+ --> $DIR/naked-functions.rs:30 :5
33
33
|
34
34
LL | a + 1
35
35
| ^
36
36
|
37
37
= help: follow the calling convention in asm block to use parameters
38
38
39
39
warning: naked functions must contain a single asm block
40
- --> $DIR/naked-functions.rs:26 :1
40
+ --> $DIR/naked-functions.rs:27 :1
41
41
|
42
42
LL | / pub unsafe extern "C" fn inc(a: u32) -> u32 {
43
43
LL | |
@@ -53,15 +53,15 @@ LL | | }
53
53
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
54
54
55
55
error: referencing function parameters is not allowed in naked functions
56
- --> $DIR/naked-functions.rs:35 :31
56
+ --> $DIR/naked-functions.rs:36 :31
57
57
|
58
58
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
59
59
| ^
60
60
|
61
61
= help: follow the calling convention in asm block to use parameters
62
62
63
63
warning: only `const` and `sym` operands are supported in naked functions
64
- --> $DIR/naked-functions.rs:35 :23
64
+ --> $DIR/naked-functions.rs:36 :23
65
65
|
66
66
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
67
67
| ^^^^^^^^^
@@ -70,7 +70,7 @@ LL | asm!("/* {0} */", in(reg) a, options(noreturn));
70
70
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
71
71
72
72
warning: naked functions must contain a single asm block
73
- --> $DIR/naked-functions.rs:42 :1
73
+ --> $DIR/naked-functions.rs:43 :1
74
74
|
75
75
LL | / pub unsafe extern "C" fn inc_closure(a: u32) -> u32 {
76
76
LL | |
@@ -84,7 +84,7 @@ LL | | }
84
84
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
85
85
86
86
warning: only `const` and `sym` operands are supported in naked functions
87
- --> $DIR/naked-functions.rs:62 :10
87
+ --> $DIR/naked-functions.rs:63 :10
88
88
|
89
89
LL | in(reg) a,
90
90
| ^^^^^^^^^
@@ -102,7 +102,7 @@ LL | out(reg) e,
102
102
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
103
103
104
104
warning: asm in naked functions must use `noreturn` option
105
- --> $DIR/naked-functions.rs:59 :5
105
+ --> $DIR/naked-functions.rs:60 :5
106
106
|
107
107
LL | / asm!("/* {0} {1} {2} {3} {4} {5} {6} */",
108
108
LL | |
@@ -117,7 +117,7 @@ LL | | );
117
117
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
118
118
119
119
warning: naked functions must contain a single asm block
120
- --> $DIR/naked-functions.rs:49 :1
120
+ --> $DIR/naked-functions.rs:50 :1
121
121
|
122
122
LL | / pub unsafe extern "C" fn unsupported_operands() {
123
123
LL | |
@@ -141,7 +141,7 @@ LL | | }
141
141
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
142
142
143
143
warning: naked functions must contain a single asm block
144
- --> $DIR/naked-functions.rs:75 :1
144
+ --> $DIR/naked-functions.rs:76 :1
145
145
|
146
146
LL | / pub extern "C" fn missing_assembly() {
147
147
LL | |
@@ -153,7 +153,7 @@ LL | | }
153
153
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
154
154
155
155
warning: asm in naked functions must use `noreturn` option
156
- --> $DIR/naked-functions.rs:84 :5
156
+ --> $DIR/naked-functions.rs:85 :5
157
157
|
158
158
LL | asm!("");
159
159
| ^^^^^^^^^
@@ -162,7 +162,7 @@ LL | asm!("");
162
162
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
163
163
164
164
warning: asm in naked functions must use `noreturn` option
165
- --> $DIR/naked-functions.rs:87 :5
165
+ --> $DIR/naked-functions.rs:88 :5
166
166
|
167
167
LL | asm!("");
168
168
| ^^^^^^^^^
@@ -171,7 +171,7 @@ LL | asm!("");
171
171
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
172
172
173
173
warning: asm in naked functions must use `noreturn` option
174
- --> $DIR/naked-functions.rs:90 :5
174
+ --> $DIR/naked-functions.rs:91 :5
175
175
|
176
176
LL | asm!("");
177
177
| ^^^^^^^^^
@@ -180,7 +180,7 @@ LL | asm!("");
180
180
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
181
181
182
182
warning: naked functions must contain a single asm block
183
- --> $DIR/naked-functions.rs:81 :1
183
+ --> $DIR/naked-functions.rs:82 :1
184
184
|
185
185
LL | / pub extern "C" fn too_many_asm_blocks() {
186
186
LL | |
@@ -202,15 +202,15 @@ LL | | }
202
202
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
203
203
204
204
error: referencing function parameters is not allowed in naked functions
205
- --> $DIR/naked-functions.rs:101 :11
205
+ --> $DIR/naked-functions.rs:102 :11
206
206
|
207
207
LL | *&y
208
208
| ^
209
209
|
210
210
= help: follow the calling convention in asm block to use parameters
211
211
212
212
warning: naked functions must contain a single asm block
213
- --> $DIR/naked-functions.rs:98 :5
213
+ --> $DIR/naked-functions.rs:99 :5
214
214
|
215
215
LL | / pub extern "C" fn inner(y: usize) -> usize {
216
216
LL | |
@@ -225,7 +225,7 @@ LL | | }
225
225
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
226
226
227
227
warning: the LLVM-style inline assembly is unsupported in naked functions
228
- --> $DIR/naked-functions.rs:111 :5
228
+ --> $DIR/naked-functions.rs:112 :5
229
229
|
230
230
LL | llvm_asm!("");
231
231
| ^^^^^^^^^^^^^^
@@ -236,7 +236,7 @@ LL | llvm_asm!("");
236
236
= note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
237
237
238
238
warning: naked functions must contain a single asm block
239
- --> $DIR/naked-functions.rs:108 :1
239
+ --> $DIR/naked-functions.rs:109 :1
240
240
|
241
241
LL | / unsafe extern "C" fn llvm() -> ! {
242
242
LL | |
@@ -252,7 +252,7 @@ LL | | }
252
252
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
253
253
254
254
warning: asm options unsupported in naked functions: `nomem`, `preserves_flags`
255
- --> $DIR/naked-functions.rs:119 :5
255
+ --> $DIR/naked-functions.rs:120 :5
256
256
|
257
257
LL | asm!("", options(nomem, preserves_flags, noreturn));
258
258
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -261,7 +261,7 @@ LL | asm!("", options(nomem, preserves_flags, noreturn));
261
261
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
262
262
263
263
warning: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
264
- --> $DIR/naked-functions.rs:126 :5
264
+ --> $DIR/naked-functions.rs:127 :5
265
265
|
266
266
LL | asm!("", options(readonly, nostack), options(pure));
267
267
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -270,7 +270,7 @@ LL | asm!("", options(readonly, nostack), options(pure));
270
270
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
271
271
272
272
warning: asm in naked functions must use `noreturn` option
273
- --> $DIR/naked-functions.rs:126 :5
273
+ --> $DIR/naked-functions.rs:127 :5
274
274
|
275
275
LL | asm!("", options(readonly, nostack), options(pure));
276
276
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -279,21 +279,21 @@ LL | asm!("", options(readonly, nostack), options(pure));
279
279
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
280
280
281
281
warning: Rust ABI is unsupported in naked functions
282
- --> $DIR/naked-functions.rs:135 :15
282
+ --> $DIR/naked-functions.rs:136 :15
283
283
|
284
284
LL | pub unsafe fn default_abi() {
285
285
| ^^^^^^^^^^^
286
286
|
287
287
= note: `#[warn(undefined_naked_function_abi)]` on by default
288
288
289
289
warning: Rust ABI is unsupported in naked functions
290
- --> $DIR/naked-functions.rs:141 :29
290
+ --> $DIR/naked-functions.rs:142 :29
291
291
|
292
292
LL | pub unsafe extern "Rust" fn rust_abi() {
293
293
| ^^^^^^^^
294
294
295
295
warning: naked functions cannot be inlined
296
- --> $DIR/naked-functions.rs:175 :1
296
+ --> $DIR/naked-functions.rs:176 :1
297
297
|
298
298
LL | #[inline]
299
299
| ^^^^^^^^^
@@ -302,7 +302,7 @@ LL | #[inline]
302
302
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
303
303
304
304
warning: naked functions cannot be inlined
305
- --> $DIR/naked-functions.rs:183 :1
305
+ --> $DIR/naked-functions.rs:184 :1
306
306
|
307
307
LL | #[inline(always)]
308
308
| ^^^^^^^^^^^^^^^^^
@@ -311,7 +311,7 @@ LL | #[inline(always)]
311
311
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
312
312
313
313
warning: naked functions cannot be inlined
314
- --> $DIR/naked-functions.rs:191 :1
314
+ --> $DIR/naked-functions.rs:192 :1
315
315
|
316
316
LL | #[inline(never)]
317
317
| ^^^^^^^^^^^^^^^^
@@ -320,7 +320,7 @@ LL | #[inline(never)]
320
320
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
321
321
322
322
warning: naked functions cannot be inlined
323
- --> $DIR/naked-functions.rs:199 :1
323
+ --> $DIR/naked-functions.rs:200 :1
324
324
|
325
325
LL | #[inline]
326
326
| ^^^^^^^^^
@@ -329,7 +329,7 @@ LL | #[inline]
329
329
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
330
330
331
331
warning: naked functions cannot be inlined
332
- --> $DIR/naked-functions.rs:202 :1
332
+ --> $DIR/naked-functions.rs:203 :1
333
333
|
334
334
LL | #[inline(always)]
335
335
| ^^^^^^^^^^^^^^^^^
@@ -338,7 +338,7 @@ LL | #[inline(always)]
338
338
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
339
339
340
340
warning: naked functions cannot be inlined
341
- --> $DIR/naked-functions.rs:205 :1
341
+ --> $DIR/naked-functions.rs:206 :1
342
342
|
343
343
LL | #[inline(never)]
344
344
| ^^^^^^^^^^^^^^^^
0 commit comments