@@ -199,56 +199,62 @@ error[E0787]: asm in naked functions must use `noreturn` option
199199LL | asm!("", options(readonly, nostack), options(pure));
200200 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201201
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+
202208warning: Rust ABI is unsupported in naked functions
203- --> $DIR/naked-functions.rs:118 :15
209+ --> $DIR/naked-functions.rs:124 :15
204210 |
205211LL | pub unsafe fn default_abi() {
206212 | ^^^^^^^^^^^
207213 |
208214 = note: `#[warn(undefined_naked_function_abi)]` on by default
209215
210216warning: Rust ABI is unsupported in naked functions
211- --> $DIR/naked-functions.rs:124 :15
217+ --> $DIR/naked-functions.rs:130 :15
212218 |
213219LL | pub unsafe fn rust_abi() {
214220 | ^^^^^^^^
215221
216222error: naked functions cannot be inlined
217- --> $DIR/naked-functions.rs:164 :1
223+ --> $DIR/naked-functions.rs:170 :1
218224 |
219225LL | #[inline]
220226 | ^^^^^^^^^
221227
222228error: naked functions cannot be inlined
223- --> $DIR/naked-functions.rs:171 :1
229+ --> $DIR/naked-functions.rs:177 :1
224230 |
225231LL | #[inline(always)]
226232 | ^^^^^^^^^^^^^^^^^
227233
228234error: naked functions cannot be inlined
229- --> $DIR/naked-functions.rs:178 :1
235+ --> $DIR/naked-functions.rs:184 :1
230236 |
231237LL | #[inline(never)]
232238 | ^^^^^^^^^^^^^^^^
233239
234240error: naked functions cannot be inlined
235- --> $DIR/naked-functions.rs:185 :1
241+ --> $DIR/naked-functions.rs:191 :1
236242 |
237243LL | #[inline]
238244 | ^^^^^^^^^
239245
240246error: naked functions cannot be inlined
241- --> $DIR/naked-functions.rs:187 :1
247+ --> $DIR/naked-functions.rs:193 :1
242248 |
243249LL | #[inline(always)]
244250 | ^^^^^^^^^^^^^^^^^
245251
246252error: naked functions cannot be inlined
247- --> $DIR/naked-functions.rs:189 :1
253+ --> $DIR/naked-functions.rs:195 :1
248254 |
249255LL | #[inline(never)]
250256 | ^^^^^^^^^^^^^^^^
251257
252- error: aborting due to 29 previous errors; 2 warnings emitted
258+ error: aborting due to 30 previous errors; 2 warnings emitted
253259
254260For more information about this error, try `rustc --explain E0787`.
0 commit comments