File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 285
285
[ ` #[export_name = ...] ` ] ( https://doc.rust-lang.org/reference/abi.html#the-export_name-attribute )
286
286
attributes provides a similar level of details.)
287
287
288
- > ** Note** : The proposal in this RFC has been prototyped in
289
- > https://github.com/anforowicz/rust/tree/export-visibility
288
+ A few additional notes attempt to clarify the intended behavior of the proposed
289
+ behavior beyond what is described in the guide-level explanation above:
290
+
291
+ * The ` #[export_visibility = ...] ` attribute may only be applied to item
292
+ definitions with an "extern" indicator as checked by
293
+ [ ` fn contains_extern_indicator ` ] ( https://github.com/rust-lang/rust/blob/3bc767e1a215c4bf8f099b32e84edb85780591b1/compiler/rustc_middle/src/middle/codegen_fn_attrs.rs#L174-L184 ) .
294
+ Therefore it may only be applied to items to which
295
+ ` #[no_mangle] ` , ` #[export_name = ...] ` , and similar already-existing
296
+ attributes may be already applied.
297
+ * The proposal in this RFC has been prototyped in
298
+ https://github.com/anforowicz/rust/tree/export-visibility
290
299
291
300
# Drawbacks
292
301
[ drawbacks ] : #drawbacks
You can’t perform that action at this time.
0 commit comments