11error: asm with the `pure` option must have at least one output
2- --> $DIR/naked-functions.rs:111 :14
2+ --> $DIR/naked-functions.rs:110 :14
33 |
44LL | asm!("", options(readonly, nostack), options(pure));
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
66
77error: patterns not allowed in naked function parameters
8- --> $DIR/naked-functions.rs:21 :5
8+ --> $DIR/naked-functions.rs:20 :5
99 |
1010LL | mut a: u32,
1111 | ^^^^^
1212
1313error: patterns not allowed in naked function parameters
14- --> $DIR/naked-functions.rs:23 :5
14+ --> $DIR/naked-functions.rs:22 :5
1515 |
1616LL | &b: &i32,
1717 | ^^
1818
1919error: patterns not allowed in naked function parameters
20- --> $DIR/naked-functions.rs:25 :6
20+ --> $DIR/naked-functions.rs:24 :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:27 :5
26+ --> $DIR/naked-functions.rs:26 :5
2727 |
2828LL | P { x, y }: P,
2929 | ^^^^^^^^^^
3030
3131error: referencing function parameters is not allowed in naked functions
32- --> $DIR/naked-functions.rs:36 :5
32+ --> $DIR/naked-functions.rs:35 :5
3333 |
3434LL | a + 1
3535 | ^
3636 |
3737 = help: follow the calling convention in asm block to use parameters
3838
3939error[E0787]: naked functions must contain a single asm block
40- --> $DIR/naked-functions.rs:34 :1
40+ --> $DIR/naked-functions.rs:33 :1
4141 |
4242LL | / pub unsafe extern "C" fn inc(a: u32) -> u32 {
4343LL | |
@@ -48,21 +48,21 @@ LL | | }
4848 | |_^
4949
5050error: referencing function parameters is not allowed in naked functions
51- --> $DIR/naked-functions.rs:42 :31
51+ --> $DIR/naked-functions.rs:41 :31
5252 |
5353LL | asm!("/* {0} */", in(reg) a, options(noreturn));
5454 | ^
5555 |
5656 = help: follow the calling convention in asm block to use parameters
5757
5858error[E0787]: only `const` and `sym` operands are supported in naked functions
59- --> $DIR/naked-functions.rs:42 :23
59+ --> $DIR/naked-functions.rs:41 :23
6060 |
6161LL | asm!("/* {0} */", in(reg) a, options(noreturn));
6262 | ^^^^^^^^^
6363
6464error[E0787]: naked functions must contain a single asm block
65- --> $DIR/naked-functions.rs:48 :1
65+ --> $DIR/naked-functions.rs:47 :1
6666 |
6767LL | / pub unsafe extern "C" fn inc_closure(a: u32) -> u32 {
6868LL | |
@@ -72,7 +72,7 @@ LL | | }
7272 | |_^
7373
7474error[E0787]: only `const` and `sym` operands are supported in naked functions
75- --> $DIR/naked-functions.rs:65 :10
75+ --> $DIR/naked-functions.rs:64 :10
7676 |
7777LL | in(reg) a,
7878 | ^^^^^^^^^
@@ -87,7 +87,7 @@ LL | out(reg) e,
8787 | ^^^^^^^^^^
8888
8989error[E0787]: asm in naked functions must use `noreturn` option
90- --> $DIR/naked-functions.rs:63 :5
90+ --> $DIR/naked-functions.rs:62 :5
9191 |
9292LL | / asm!("/* {0} {1} {2} {3} {4} {5} {6} */",
9393LL | |
@@ -99,7 +99,7 @@ LL | | );
9999 | |_____^
100100
101101error[E0787]: naked functions must contain a single asm block
102- --> $DIR/naked-functions.rs:54 :1
102+ --> $DIR/naked-functions.rs:53 :1
103103 |
104104LL | / pub unsafe extern "C" fn unsupported_operands() {
105105LL | |
@@ -119,33 +119,33 @@ LL | | }
119119 | |_^
120120
121121error[E0787]: naked functions must contain a single asm block
122- --> $DIR/naked-functions.rs:77 :1
122+ --> $DIR/naked-functions.rs:76 :1
123123 |
124124LL | / pub extern "C" fn missing_assembly() {
125125LL | |
126126LL | | }
127127 | |_^
128128
129129error[E0787]: asm in naked functions must use `noreturn` option
130- --> $DIR/naked-functions.rs:84 :5
130+ --> $DIR/naked-functions.rs:83 :5
131131 |
132132LL | asm!("");
133133 | ^^^^^^^^
134134
135135error[E0787]: asm in naked functions must use `noreturn` option
136- --> $DIR/naked-functions.rs:86 :5
136+ --> $DIR/naked-functions.rs:85 :5
137137 |
138138LL | asm!("");
139139 | ^^^^^^^^
140140
141141error[E0787]: asm in naked functions must use `noreturn` option
142- --> $DIR/naked-functions.rs:88 :5
142+ --> $DIR/naked-functions.rs:87 :5
143143 |
144144LL | asm!("");
145145 | ^^^^^^^^
146146
147147error[E0787]: naked functions must contain a single asm block
148- --> $DIR/naked-functions.rs:82 :1
148+ --> $DIR/naked-functions.rs:81 :1
149149 |
150150LL | / pub extern "C" fn too_many_asm_blocks() {
151151LL | |
@@ -163,15 +163,15 @@ LL | | }
163163 | |_^
164164
165165error: referencing function parameters is not allowed in naked functions
166- --> $DIR/naked-functions.rs:97 :11
166+ --> $DIR/naked-functions.rs:96 :11
167167 |
168168LL | *&y
169169 | ^
170170 |
171171 = help: follow the calling convention in asm block to use parameters
172172
173173error[E0787]: naked functions must contain a single asm block
174- --> $DIR/naked-functions.rs:95 :5
174+ --> $DIR/naked-functions.rs:94 :5
175175 |
176176LL | / pub extern "C" fn inner(y: usize) -> usize {
177177LL | |
@@ -182,75 +182,75 @@ LL | | }
182182 | |_____^
183183
184184error[E0787]: asm options unsupported in naked functions: `nomem`, `preserves_flags`
185- --> $DIR/naked-functions.rs:105 :5
185+ --> $DIR/naked-functions.rs:104 :5
186186 |
187187LL | asm!("", options(nomem, preserves_flags, noreturn));
188188 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
189189
190190error[E0787]: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
191- --> $DIR/naked-functions.rs:111 :5
191+ --> $DIR/naked-functions.rs:110 :5
192192 |
193193LL | asm!("", options(readonly, nostack), options(pure));
194194 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195
196196error[E0787]: asm in naked functions must use `noreturn` option
197- --> $DIR/naked-functions.rs:111 :5
197+ --> $DIR/naked-functions.rs:110 :5
198198 |
199199LL | asm!("", options(readonly, nostack), options(pure));
200200 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201201
202202error[E0787]: asm options unsupported in naked functions: `may_unwind`
203- --> $DIR/naked-functions.rs:119 :5
203+ --> $DIR/naked-functions.rs:118 :5
204204 |
205205LL | asm!("", options(noreturn, may_unwind));
206206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207207
208208warning: Rust ABI is unsupported in naked functions
209- --> $DIR/naked-functions.rs:124 :15
209+ --> $DIR/naked-functions.rs:123 :15
210210 |
211211LL | pub unsafe fn default_abi() {
212212 | ^^^^^^^^^^^
213213 |
214214 = note: `#[warn(undefined_naked_function_abi)]` on by default
215215
216216warning: Rust ABI is unsupported in naked functions
217- --> $DIR/naked-functions.rs:130 :15
217+ --> $DIR/naked-functions.rs:129 :15
218218 |
219219LL | pub unsafe fn rust_abi() {
220220 | ^^^^^^^^
221221
222222error: naked functions cannot be inlined
223- --> $DIR/naked-functions.rs:170 :1
223+ --> $DIR/naked-functions.rs:169 :1
224224 |
225225LL | #[inline]
226226 | ^^^^^^^^^
227227
228228error: naked functions cannot be inlined
229- --> $DIR/naked-functions.rs:177 :1
229+ --> $DIR/naked-functions.rs:176 :1
230230 |
231231LL | #[inline(always)]
232232 | ^^^^^^^^^^^^^^^^^
233233
234234error: naked functions cannot be inlined
235- --> $DIR/naked-functions.rs:184 :1
235+ --> $DIR/naked-functions.rs:183 :1
236236 |
237237LL | #[inline(never)]
238238 | ^^^^^^^^^^^^^^^^
239239
240240error: naked functions cannot be inlined
241- --> $DIR/naked-functions.rs:191 :1
241+ --> $DIR/naked-functions.rs:190 :1
242242 |
243243LL | #[inline]
244244 | ^^^^^^^^^
245245
246246error: naked functions cannot be inlined
247- --> $DIR/naked-functions.rs:193 :1
247+ --> $DIR/naked-functions.rs:192 :1
248248 |
249249LL | #[inline(always)]
250250 | ^^^^^^^^^^^^^^^^^
251251
252252error: naked functions cannot be inlined
253- --> $DIR/naked-functions.rs:195 :1
253+ --> $DIR/naked-functions.rs:194 :1
254254 |
255255LL | #[inline(never)]
256256 | ^^^^^^^^^^^^^^^^
0 commit comments