Skip to content

Commit 09c8e4a

Browse files
committed
Remove normative cites to unsafe code guidelines doc
The unsafe code guidelines document describes itself currently as largely abandoned and indicates that those points that have found consensus are documented in the Reference. Let's not then normatively cite that other document. Let's also remove a line about "these rules do not apply..." where "these" changed meaning when this line was copied from elsewhere. In the original, "these" meant rules about `readonly` and `nomem`, whereas here, it would have seemed to refer to the rules in the UCG, and that wouldn't make sense.
1 parent c4d68c9 commit 09c8e4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/inline-assembly.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,6 @@ r[asm.rules.unwind]
12641264

12651265
r[asm.rules.mem-same-as-ffi]
12661266
- The set of memory locations that assembly code is allowed to read and write are the same as those allowed for an FFI function.
1267-
- Refer to the unsafe code guidelines for the exact rules.
12681267
- If the `readonly` option is set, then only memory reads are allowed.
12691268
- If the `nomem` option is set then no reads or writes to memory are allowed.
12701269
- These rules do not apply to memory which is private to the assembly code, such as stack space allocated within it.
@@ -1405,8 +1404,6 @@ r[asm.naked-rules.noreturn]
14051404

14061405
r[asm.naked-rules.mem-same-as-ffi]
14071406
- The set of memory locations that assembly code is allowed to read and write are the same as those allowed for an FFI function.
1408-
- Refer to the unsafe code guidelines for the exact rules.
1409-
- These rules do not apply to memory which is private to the assembly code, such as stack space allocated within the `naked_asm!` block.
14101407

14111408
r[asm.naked-rules.black-box]
14121409
- The compiler cannot assume that the instructions in the `naked_asm!` block are the ones that will actually be executed.

0 commit comments

Comments
 (0)