1
1
error: asm with the `pure` option must have at least one output
2
- --> $DIR/naked-functions.rs:136 :14
2
+ --> $DIR/naked-functions.rs:124 :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:23 :5
8
+ --> $DIR/naked-functions.rs:21 :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:25 :5
14
+ --> $DIR/naked-functions.rs:23 :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:27 :6
20
+ --> $DIR/naked-functions.rs:25 :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:29 :5
26
+ --> $DIR/naked-functions.rs:27 :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:39 :5
32
+ --> $DIR/naked-functions.rs:37 :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:36 :1
40
+ --> $DIR/naked-functions.rs:34 :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:45 :31
56
+ --> $DIR/naked-functions.rs:43 :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:45 :23
64
+ --> $DIR/naked-functions.rs:43 :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:52 :1
73
+ --> $DIR/naked-functions.rs:50 :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:72 :10
87
+ --> $DIR/naked-functions.rs:70 :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:69 :5
105
+ --> $DIR/naked-functions.rs:67 :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:59 :1
120
+ --> $DIR/naked-functions.rs:57 :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:85 :1
144
+ --> $DIR/naked-functions.rs:83 :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:94 :5
156
+ --> $DIR/naked-functions.rs:92 :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:97 :5
165
+ --> $DIR/naked-functions.rs:95 :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:100 :5
174
+ --> $DIR/naked-functions.rs:98 :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:91 :1
183
+ --> $DIR/naked-functions.rs:89 :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:111 :11
205
+ --> $DIR/naked-functions.rs:109 :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:108 :5
213
+ --> $DIR/naked-functions.rs:106 :5
214
214
|
215
215
LL | / pub extern "C" fn inner(y: usize) -> usize {
216
216
LL | |
@@ -224,35 +224,8 @@ LL | | }
224
224
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
225
225
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
226
226
227
- warning: the LLVM-style inline assembly is unsupported in naked functions
228
- --> $DIR/naked-functions.rs:121:5
229
- |
230
- LL | llvm_asm!("");
231
- | ^^^^^^^^^^^^^
232
- |
233
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
234
- = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
235
- = help: use the new asm! syntax specified in RFC 2873
236
- = note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
237
-
238
- warning: naked functions must contain a single asm block
239
- --> $DIR/naked-functions.rs:118:1
240
- |
241
- LL | / unsafe extern "C" fn llvm() -> ! {
242
- LL | |
243
- LL | |
244
- LL | | llvm_asm!("");
245
- ... |
246
- LL | | core::hint::unreachable_unchecked();
247
- | | ------------------------------------ non-asm is unsupported in naked functions
248
- LL | | }
249
- | |_^
250
- |
251
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
252
- = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
253
-
254
227
warning: asm options unsupported in naked functions: `nomem`, `preserves_flags`
255
- --> $DIR/naked-functions.rs:129 :5
228
+ --> $DIR/naked-functions.rs:117 :5
256
229
|
257
230
LL | asm!("", options(nomem, preserves_flags, noreturn));
258
231
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -261,7 +234,7 @@ LL | asm!("", options(nomem, preserves_flags, noreturn));
261
234
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
262
235
263
236
warning: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
264
- --> $DIR/naked-functions.rs:136 :5
237
+ --> $DIR/naked-functions.rs:124 :5
265
238
|
266
239
LL | asm!("", options(readonly, nostack), options(pure));
267
240
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -270,7 +243,7 @@ LL | asm!("", options(readonly, nostack), options(pure));
270
243
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
271
244
272
245
warning: asm in naked functions must use `noreturn` option
273
- --> $DIR/naked-functions.rs:136 :5
246
+ --> $DIR/naked-functions.rs:124 :5
274
247
|
275
248
LL | asm!("", options(readonly, nostack), options(pure));
276
249
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -279,21 +252,21 @@ LL | asm!("", options(readonly, nostack), options(pure));
279
252
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
280
253
281
254
warning: Rust ABI is unsupported in naked functions
282
- --> $DIR/naked-functions.rs:145 :15
255
+ --> $DIR/naked-functions.rs:133 :15
283
256
|
284
257
LL | pub unsafe fn default_abi() {
285
258
| ^^^^^^^^^^^
286
259
|
287
260
= note: `#[warn(undefined_naked_function_abi)]` on by default
288
261
289
262
warning: Rust ABI is unsupported in naked functions
290
- --> $DIR/naked-functions.rs:151 :15
263
+ --> $DIR/naked-functions.rs:139 :15
291
264
|
292
265
LL | pub unsafe fn rust_abi() {
293
266
| ^^^^^^^^
294
267
295
268
warning: naked functions cannot be inlined
296
- --> $DIR/naked-functions.rs:191 :1
269
+ --> $DIR/naked-functions.rs:179 :1
297
270
|
298
271
LL | #[inline]
299
272
| ^^^^^^^^^
@@ -302,7 +275,7 @@ LL | #[inline]
302
275
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
303
276
304
277
warning: naked functions cannot be inlined
305
- --> $DIR/naked-functions.rs:199 :1
278
+ --> $DIR/naked-functions.rs:187 :1
306
279
|
307
280
LL | #[inline(always)]
308
281
| ^^^^^^^^^^^^^^^^^
@@ -311,7 +284,7 @@ LL | #[inline(always)]
311
284
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
312
285
313
286
warning: naked functions cannot be inlined
314
- --> $DIR/naked-functions.rs:207 :1
287
+ --> $DIR/naked-functions.rs:195 :1
315
288
|
316
289
LL | #[inline(never)]
317
290
| ^^^^^^^^^^^^^^^^
@@ -320,7 +293,7 @@ LL | #[inline(never)]
320
293
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
321
294
322
295
warning: naked functions cannot be inlined
323
- --> $DIR/naked-functions.rs:215 :1
296
+ --> $DIR/naked-functions.rs:203 :1
324
297
|
325
298
LL | #[inline]
326
299
| ^^^^^^^^^
@@ -329,7 +302,7 @@ LL | #[inline]
329
302
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
330
303
331
304
warning: naked functions cannot be inlined
332
- --> $DIR/naked-functions.rs:218 :1
305
+ --> $DIR/naked-functions.rs:206 :1
333
306
|
334
307
LL | #[inline(always)]
335
308
| ^^^^^^^^^^^^^^^^^
@@ -338,13 +311,13 @@ LL | #[inline(always)]
338
311
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
339
312
340
313
warning: naked functions cannot be inlined
341
- --> $DIR/naked-functions.rs:221 :1
314
+ --> $DIR/naked-functions.rs:209 :1
342
315
|
343
316
LL | #[inline(never)]
344
317
| ^^^^^^^^^^^^^^^^
345
318
|
346
319
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
347
320
= note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
348
321
349
- error: aborting due to 8 previous errors; 25 warnings emitted
322
+ error: aborting due to 8 previous errors; 23 warnings emitted
350
323
0 commit comments