11error: 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
33 |
44LL | asm!("", options(readonly, nostack), options(pure));
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
66
77error: patterns not allowed in naked function parameters
8- --> $DIR/naked-functions.rs:13 :5
8+ --> $DIR/naked-functions.rs:14 :5
99 |
1010LL | mut a: u32,
1111 | ^^^^^
1212
1313error: patterns not allowed in naked function parameters
14- --> $DIR/naked-functions.rs:15 :5
14+ --> $DIR/naked-functions.rs:16 :5
1515 |
1616LL | &b: &i32,
1717 | ^^
1818
1919error: patterns not allowed in naked function parameters
20- --> $DIR/naked-functions.rs:17 :6
20+ --> $DIR/naked-functions.rs:18 :6
2121 |
2222LL | (None | Some(_)): Option<std::ptr::NonNull<u8>>,
2323 | ^^^^^^^^^^^^^^
2424
2525error: patterns not allowed in naked function parameters
26- --> $DIR/naked-functions.rs:19 :5
26+ --> $DIR/naked-functions.rs:20 :5
2727 |
2828LL | P { x, y }: P,
2929 | ^^^^^^^^^^
3030
3131error: referencing function parameters is not allowed in naked functions
32- --> $DIR/naked-functions.rs:29 :5
32+ --> $DIR/naked-functions.rs:30 :5
3333 |
3434LL | a + 1
3535 | ^
3636 |
3737 = help: follow the calling convention in asm block to use parameters
3838
3939warning: naked functions must contain a single asm block
40- --> $DIR/naked-functions.rs:26 :1
40+ --> $DIR/naked-functions.rs:27 :1
4141 |
4242LL | / pub unsafe extern "C" fn inc(a: u32) -> u32 {
4343LL | |
@@ -53,15 +53,15 @@ LL | | }
5353 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
5454
5555error: referencing function parameters is not allowed in naked functions
56- --> $DIR/naked-functions.rs:35 :31
56+ --> $DIR/naked-functions.rs:36 :31
5757 |
5858LL | asm!("/* {0} */", in(reg) a, options(noreturn));
5959 | ^
6060 |
6161 = help: follow the calling convention in asm block to use parameters
6262
6363warning: only `const` and `sym` operands are supported in naked functions
64- --> $DIR/naked-functions.rs:35 :23
64+ --> $DIR/naked-functions.rs:36 :23
6565 |
6666LL | asm!("/* {0} */", in(reg) a, options(noreturn));
6767 | ^^^^^^^^^
@@ -70,7 +70,7 @@ LL | asm!("/* {0} */", in(reg) a, options(noreturn));
7070 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
7171
7272warning: naked functions must contain a single asm block
73- --> $DIR/naked-functions.rs:42 :1
73+ --> $DIR/naked-functions.rs:43 :1
7474 |
7575LL | / pub unsafe extern "C" fn inc_closure(a: u32) -> u32 {
7676LL | |
@@ -84,7 +84,7 @@ LL | | }
8484 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
8585
8686warning: only `const` and `sym` operands are supported in naked functions
87- --> $DIR/naked-functions.rs:62 :10
87+ --> $DIR/naked-functions.rs:63 :10
8888 |
8989LL | in(reg) a,
9090 | ^^^^^^^^^
@@ -102,7 +102,7 @@ LL | out(reg) e,
102102 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
103103
104104warning: asm in naked functions must use `noreturn` option
105- --> $DIR/naked-functions.rs:59 :5
105+ --> $DIR/naked-functions.rs:60 :5
106106 |
107107LL | / asm!("/* {0} {1} {2} {3} {4} {5} {6} */",
108108LL | |
@@ -117,7 +117,7 @@ LL | | );
117117 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
118118
119119warning: naked functions must contain a single asm block
120- --> $DIR/naked-functions.rs:49 :1
120+ --> $DIR/naked-functions.rs:50 :1
121121 |
122122LL | / pub unsafe extern "C" fn unsupported_operands() {
123123LL | |
@@ -141,7 +141,7 @@ LL | | }
141141 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
142142
143143warning: naked functions must contain a single asm block
144- --> $DIR/naked-functions.rs:75 :1
144+ --> $DIR/naked-functions.rs:76 :1
145145 |
146146LL | / pub extern "C" fn missing_assembly() {
147147LL | |
@@ -153,7 +153,7 @@ LL | | }
153153 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
154154
155155warning: asm in naked functions must use `noreturn` option
156- --> $DIR/naked-functions.rs:84 :5
156+ --> $DIR/naked-functions.rs:85 :5
157157 |
158158LL | asm!("");
159159 | ^^^^^^^^^
@@ -162,7 +162,7 @@ LL | asm!("");
162162 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
163163
164164warning: asm in naked functions must use `noreturn` option
165- --> $DIR/naked-functions.rs:87 :5
165+ --> $DIR/naked-functions.rs:88 :5
166166 |
167167LL | asm!("");
168168 | ^^^^^^^^^
@@ -171,7 +171,7 @@ LL | asm!("");
171171 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
172172
173173warning: asm in naked functions must use `noreturn` option
174- --> $DIR/naked-functions.rs:90 :5
174+ --> $DIR/naked-functions.rs:91 :5
175175 |
176176LL | asm!("");
177177 | ^^^^^^^^^
@@ -180,7 +180,7 @@ LL | asm!("");
180180 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
181181
182182warning: naked functions must contain a single asm block
183- --> $DIR/naked-functions.rs:81 :1
183+ --> $DIR/naked-functions.rs:82 :1
184184 |
185185LL | / pub extern "C" fn too_many_asm_blocks() {
186186LL | |
@@ -202,15 +202,15 @@ LL | | }
202202 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
203203
204204error: referencing function parameters is not allowed in naked functions
205- --> $DIR/naked-functions.rs:101 :11
205+ --> $DIR/naked-functions.rs:102 :11
206206 |
207207LL | *&y
208208 | ^
209209 |
210210 = help: follow the calling convention in asm block to use parameters
211211
212212warning: naked functions must contain a single asm block
213- --> $DIR/naked-functions.rs:98 :5
213+ --> $DIR/naked-functions.rs:99 :5
214214 |
215215LL | / pub extern "C" fn inner(y: usize) -> usize {
216216LL | |
@@ -225,7 +225,7 @@ LL | | }
225225 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
226226
227227warning: the LLVM-style inline assembly is unsupported in naked functions
228- --> $DIR/naked-functions.rs:111 :5
228+ --> $DIR/naked-functions.rs:112 :5
229229 |
230230LL | llvm_asm!("");
231231 | ^^^^^^^^^^^^^^
@@ -236,7 +236,7 @@ LL | llvm_asm!("");
236236 = note: this warning originates in the macro `llvm_asm` (in Nightly builds, run with -Z macro-backtrace for more info)
237237
238238warning: naked functions must contain a single asm block
239- --> $DIR/naked-functions.rs:108 :1
239+ --> $DIR/naked-functions.rs:109 :1
240240 |
241241LL | / unsafe extern "C" fn llvm() -> ! {
242242LL | |
@@ -252,7 +252,7 @@ LL | | }
252252 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
253253
254254warning: asm options unsupported in naked functions: `nomem`, `preserves_flags`
255- --> $DIR/naked-functions.rs:119 :5
255+ --> $DIR/naked-functions.rs:120 :5
256256 |
257257LL | asm!("", options(nomem, preserves_flags, noreturn));
258258 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -261,7 +261,7 @@ LL | asm!("", options(nomem, preserves_flags, noreturn));
261261 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
262262
263263warning: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
264- --> $DIR/naked-functions.rs:126 :5
264+ --> $DIR/naked-functions.rs:127 :5
265265 |
266266LL | asm!("", options(readonly, nostack), options(pure));
267267 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -270,7 +270,7 @@ LL | asm!("", options(readonly, nostack), options(pure));
270270 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
271271
272272warning: asm in naked functions must use `noreturn` option
273- --> $DIR/naked-functions.rs:126 :5
273+ --> $DIR/naked-functions.rs:127 :5
274274 |
275275LL | asm!("", options(readonly, nostack), options(pure));
276276 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -279,21 +279,21 @@ LL | asm!("", options(readonly, nostack), options(pure));
279279 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
280280
281281warning: Rust ABI is unsupported in naked functions
282- --> $DIR/naked-functions.rs:135 :15
282+ --> $DIR/naked-functions.rs:136 :15
283283 |
284284LL | pub unsafe fn default_abi() {
285285 | ^^^^^^^^^^^
286286 |
287287 = note: `#[warn(undefined_naked_function_abi)]` on by default
288288
289289warning: Rust ABI is unsupported in naked functions
290- --> $DIR/naked-functions.rs:141 :29
290+ --> $DIR/naked-functions.rs:142 :29
291291 |
292292LL | pub unsafe extern "Rust" fn rust_abi() {
293293 | ^^^^^^^^
294294
295295warning: naked functions cannot be inlined
296- --> $DIR/naked-functions.rs:175 :1
296+ --> $DIR/naked-functions.rs:176 :1
297297 |
298298LL | #[inline]
299299 | ^^^^^^^^^
@@ -302,7 +302,7 @@ LL | #[inline]
302302 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
303303
304304warning: naked functions cannot be inlined
305- --> $DIR/naked-functions.rs:183 :1
305+ --> $DIR/naked-functions.rs:184 :1
306306 |
307307LL | #[inline(always)]
308308 | ^^^^^^^^^^^^^^^^^
@@ -311,7 +311,7 @@ LL | #[inline(always)]
311311 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
312312
313313warning: naked functions cannot be inlined
314- --> $DIR/naked-functions.rs:191 :1
314+ --> $DIR/naked-functions.rs:192 :1
315315 |
316316LL | #[inline(never)]
317317 | ^^^^^^^^^^^^^^^^
@@ -320,7 +320,7 @@ LL | #[inline(never)]
320320 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
321321
322322warning: naked functions cannot be inlined
323- --> $DIR/naked-functions.rs:199 :1
323+ --> $DIR/naked-functions.rs:200 :1
324324 |
325325LL | #[inline]
326326 | ^^^^^^^^^
@@ -329,7 +329,7 @@ LL | #[inline]
329329 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
330330
331331warning: naked functions cannot be inlined
332- --> $DIR/naked-functions.rs:202 :1
332+ --> $DIR/naked-functions.rs:203 :1
333333 |
334334LL | #[inline(always)]
335335 | ^^^^^^^^^^^^^^^^^
@@ -338,7 +338,7 @@ LL | #[inline(always)]
338338 = note: for more information, see issue #32408 <https://github.com/rust-lang/rust/issues/32408>
339339
340340warning: naked functions cannot be inlined
341- --> $DIR/naked-functions.rs:205 :1
341+ --> $DIR/naked-functions.rs:206 :1
342342 |
343343LL | #[inline(never)]
344344 | ^^^^^^^^^^^^^^^^
0 commit comments