File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,21 @@ The *`no_link` [attribute][attributes]* may be specified on an `extern crate` it
88
88
> other_crate::some_macro!();
89
89
> ```
90
90
91
+ r[items.extern-crate.no_link.syntax]
92
+ The `no_link` attribute uses the [MetaWord] syntax and thus does not take any inputs.
93
+
94
+ r[items.extern-crate.no_link.allowed-positions]
95
+ The `no_link` attribute may be specified on an `extern crate` declaration.
96
+
97
+ > [!NOTE]
98
+ > `rustc` currently warns on some positions where it is ignored, but this may become an error in the future.
99
+
100
+ r[items.extern-crate.no_link.duplicates]
101
+ Duplicate instances of the `no_link` attribute are ignored.
102
+
103
+ > [!NOTE]
104
+ > `rustc` currently warns about unused duplicate `no_link` attributes.
105
+
91
106
[identifier]: ../identifiers.md
92
107
[RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md
93
108
[`macro_use` attribute]: ../macros-by-example.md#the-macro_use-attribute
You can’t perform that action at this time.
0 commit comments