Skip to content

Commit 6b5d780

Browse files
ehusstraviscross
authored andcommitted
Add macro.decl.scope.macro_use.extern-crate-self
Closes #586
1 parent 5f2babc commit 6b5d780

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/macros-by-example.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ The `macro_use` attribute may be applied to modules or `extern crate`.
343343
> [!NOTE]
344344
> `rustc` currently warns in other positions, but this may be rejected in the future.
345345
346+
r[macro.decl.scope.macro_use.extern-crate-self]
347+
The `macro_use` attribute may not be used on [`extern crate self`].
348+
346349
r[macro.decl.scope.macro_use.duplicates]
347350
Duplicate instances of `macro_use` that are in the [MetaWord] syntax have no effect if there is already a `macro_use` with the [MetaWord] syntax.
348351

@@ -603,6 +606,7 @@ expansions, taking separators into account. This means:
603606

604607
For more detail, see the [formal specification].
605608

609+
[`extern crate self`]: items.extern-crate.self
606610
[`macro_use` prelude]: names/preludes.md#macro_use-prelude
607611
[block labels]: expressions/loop-expr.md#labelled-block-expressions
608612
[delimiters]: tokens.md#delimiters

0 commit comments

Comments
 (0)