Reject may_unwind option in naked functions
This commit is contained in:
parent
888332fee4
commit
beeba4bcea
3 changed files with 23 additions and 10 deletions
|
@ -251,6 +251,7 @@ impl<'tcx> CheckInlineAssembly<'tcx> {
|
|||
}
|
||||
|
||||
let unsupported_options: Vec<&'static str> = [
|
||||
(InlineAsmOptions::MAY_UNWIND, "`may_unwind`"),
|
||||
(InlineAsmOptions::NOMEM, "`nomem`"),
|
||||
(InlineAsmOptions::NOSTACK, "`nostack`"),
|
||||
(InlineAsmOptions::PRESERVES_FLAGS, "`preserves_flags`"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue