You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`noreturn`: The assembly code never returns, and its return type is defined as `!` (never).
1098
1098
Behavior is undefined if execution falls through past the end of the asm code.
1099
-
A `noreturn` asm block behaves just like a function which doesn't return; notably, local variables in scope are not dropped before it is invoked.
1099
+
A `noreturn` asm block with no `label` blocks behaves just like a function which doesn't return; notably, local variables in scope are not dropped before it is invoked.
1100
1100
- When any `label` blocks are present, `noreturn` means the execution of the assembly code never falls through; the assembly code may only exit by jumping to one of the specified blocks.
1101
1101
The entire `asm!` block will have unit type in this case, unless all `label` blocks diverge, in which case the return type is `!`.
0 commit comments