Skip to content

Commit 773cc4f

Browse files
syvbjoshtriplett
andauthored
Mention possible future rejections
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent fdb6bda commit 773cc4f

File tree

1 file changed

+1
-1
lines changed
  • src/doc/unstable-book/src/library-features

1 file changed

+1
-1
lines changed

src/doc/unstable-book/src/library-features/asm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,6 @@ The compiler performs some additional checks on options:
886886
- The set of memory locations that you may access is the intersection of those allowed by the `asm!` blocks you entered and exited.
887887
- You cannot assume that an `asm!` block will appear exactly once in the output binary. The compiler is allowed to instantiate multiple copies of the `asm!` block, for example when the function containing it is inlined in multiple places.
888888
- On x86, inline assembly must not end with an instruction prefix (such as `LOCK`) that would apply to instructions generated by the compiler.
889-
- The compiler is currently unable to detect this due to the way inline assembly is compiled.
889+
- The compiler is currently unable to detect this due to the way inline assembly is compiled, but may catch and reject this in the future.
890890

891891
> **Note**: As a general rule, the flags covered by `preserves_flags` are those which are *not* preserved when performing a function call.

0 commit comments

Comments
 (0)