Skip to content

Commit 9dee6b6

Browse files
committed
some clarifications
1 parent 7cc6692 commit 9dee6b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

text/0000-unsafe-attributes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ Unsafe attributes that are added in the future can hard-require `unsafe` from
8686
the start since the backwards compatibility concern does not apply to them.
8787

8888
Syntactically, for each unsafe attribute `attr`, we now also accept
89-
`unsafe(attr)` anywhere that `attr` can be used. `unsafe` cannot be nested,
90-
cannot contain `cfg_attr`, and cannot contain any other (non-unsafe) attributes.
89+
`unsafe(attr)` anywhere that `attr` can be used (in particular, inside
90+
`cfg_attr`). `unsafe` cannot be nested, cannot contain `cfg_attr`, and cannot
91+
contain any other (non-unsafe) attributes. Only a single attribute can be used
92+
inside `unsafe`, i.e., `unsafe(foo, bar)` is invalid.
9193

9294
The `deny(unsafe_code)` lint denies the use of unsafe attributes both inside and
9395
outside of `unsafe(...)` blocks. (That lint currently has special handling to

0 commit comments

Comments
 (0)