@@ -199,56 +199,62 @@ error[E0787]: asm in naked functions must use `noreturn` option
199
199
LL | asm!("", options(readonly, nostack), options(pure));
200
200
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201
201
202
+ error[E0787]: asm options unsupported in naked functions: `may_unwind`
203
+ --> $DIR/naked-functions.rs:119:5
204
+ |
205
+ LL | asm!("", options(noreturn, may_unwind));
206
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
+
202
208
warning: Rust ABI is unsupported in naked functions
203
- --> $DIR/naked-functions.rs:118 :15
209
+ --> $DIR/naked-functions.rs:124 :15
204
210
|
205
211
LL | pub unsafe fn default_abi() {
206
212
| ^^^^^^^^^^^
207
213
|
208
214
= note: `#[warn(undefined_naked_function_abi)]` on by default
209
215
210
216
warning: Rust ABI is unsupported in naked functions
211
- --> $DIR/naked-functions.rs:124 :15
217
+ --> $DIR/naked-functions.rs:130 :15
212
218
|
213
219
LL | pub unsafe fn rust_abi() {
214
220
| ^^^^^^^^
215
221
216
222
error: naked functions cannot be inlined
217
- --> $DIR/naked-functions.rs:164 :1
223
+ --> $DIR/naked-functions.rs:170 :1
218
224
|
219
225
LL | #[inline]
220
226
| ^^^^^^^^^
221
227
222
228
error: naked functions cannot be inlined
223
- --> $DIR/naked-functions.rs:171 :1
229
+ --> $DIR/naked-functions.rs:177 :1
224
230
|
225
231
LL | #[inline(always)]
226
232
| ^^^^^^^^^^^^^^^^^
227
233
228
234
error: naked functions cannot be inlined
229
- --> $DIR/naked-functions.rs:178 :1
235
+ --> $DIR/naked-functions.rs:184 :1
230
236
|
231
237
LL | #[inline(never)]
232
238
| ^^^^^^^^^^^^^^^^
233
239
234
240
error: naked functions cannot be inlined
235
- --> $DIR/naked-functions.rs:185 :1
241
+ --> $DIR/naked-functions.rs:191 :1
236
242
|
237
243
LL | #[inline]
238
244
| ^^^^^^^^^
239
245
240
246
error: naked functions cannot be inlined
241
- --> $DIR/naked-functions.rs:187 :1
247
+ --> $DIR/naked-functions.rs:193 :1
242
248
|
243
249
LL | #[inline(always)]
244
250
| ^^^^^^^^^^^^^^^^^
245
251
246
252
error: naked functions cannot be inlined
247
- --> $DIR/naked-functions.rs:189 :1
253
+ --> $DIR/naked-functions.rs:195 :1
248
254
|
249
255
LL | #[inline(never)]
250
256
| ^^^^^^^^^^^^^^^^
251
257
252
- error: aborting due to 29 previous errors; 2 warnings emitted
258
+ error: aborting due to 30 previous errors; 2 warnings emitted
253
259
254
260
For more information about this error, try `rustc --explain E0787`.
0 commit comments