Skip to content

Commit 1858756

Browse files
committed
Rename proc_macro crate rules to avoid rule name conflict
Trying to avoid conflict with the `proc_macro` attribute rule. (Though that rule name may also change later.)
1 parent 541422c commit 1858756

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/procedural-macros.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ r[macro.proc.error]
4242
Procedural macros have two ways of reporting errors. The first is to panic. The
4343
second is to emit a [`compile_error`] macro invocation.
4444
45-
r[macro.proc.proc_macro]
45+
r[macro.proc.proc_macro-crate]
4646
## The `proc_macro` crate
4747
48-
r[macro.proc.proc_macro.intro]
48+
r[macro.proc.proc_macro-crate.intro]
4949
Procedural macro crates almost always will link to the compiler-provided
5050
[`proc_macro` crate]. The `proc_macro` crate provides types required for
5151
writing procedural macros and facilities to make it easier.
5252
53-
r[macro.proc.proc_macro.token-stream]
53+
r[macro.proc.proc_macro-crate.token-stream]
5454
This crate primarily contains a [`TokenStream`] type. Procedural macros operate
5555
over *token streams* instead of AST nodes, which is a far more stable interface
5656
over time for both the compiler and for procedural macros to target. A
@@ -59,7 +59,7 @@ can roughly be thought of as lexical token. For example `foo` is an `Ident`
5959
token, `.` is a `Punct` token, and `1.2` is a `Literal` token. The `TokenStream`
6060
type, unlike `Vec<TokenTree>`, is cheap to clone.
6161
62-
r[macro.proc.proc_macro.span]
62+
r[macro.proc.proc_macro-crate.span]
6363
All tokens have an associated `Span`. A `Span` is an opaque value that cannot
6464
be modified but can be manufactured. `Span`s represent an extent of source
6565
code within a program and are primarily used for error reporting. While you

0 commit comments

Comments
 (0)