File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -200,3 +200,9 @@ attributes.
200
200
to consistently support non-builtin unsafe attributes in the future, so the
201
201
RFC proposes to not do that yet. The current approach is forward-compatible
202
202
with allowing lists and nesting in the future.
203
+ - **Unsafe crates.** Some attributes' requirements cannot be fully discharged
204
+ locally. For instance, if a lib crate uses `no_mangle`, this really puts a
205
+ burden on *the author of the final binary* to ensure that the symbol dos not
206
+ conflict. In the future it would be better if rust tooling could automatically
207
+ surface a such requirements to downstream code, for example by an automatic
208
+ "unsafe attributes used" listing in a crate's generated rustdoc.
You can’t perform that action at this time.
0 commit comments