Skip to content

Commit 84d2a48

Browse files
JohnTitormark-i-m
authored andcommitted
Update section following current state
1 parent 39dd586 commit 84d2a48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/macro-expansion.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,13 @@ defined in [`src/librustc_expand/mbe/macro_parser.rs`][code_mp].
6969
The interface of the macro parser is as follows (this is slightly simplified):
7070

7171
```rust,ignore
72-
fn parse(
73-
sess: ParserSession,
74-
tts: TokenStream,
75-
ms: &[TokenTree]
72+
fn parse_tt(
73+
parser: &mut Cow<Parser>,
74+
ms: &[TokenTree],
7675
) -> NamedParseResult
7776
```
7877

79-
In this interface:
78+
We use these items in macro parser:
8079

8180
- `sess` is a "parsing session", which keeps track of some metadata. Most
8281
notably, this is used to keep track of errors that are generated so they can

0 commit comments

Comments
 (0)