We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39dd586 commit 84d2a48Copy full SHA for 84d2a48
src/macro-expansion.md
@@ -69,14 +69,13 @@ defined in [`src/librustc_expand/mbe/macro_parser.rs`][code_mp].
69
The interface of the macro parser is as follows (this is slightly simplified):
70
71
```rust,ignore
72
-fn parse(
73
- sess: ParserSession,
74
- tts: TokenStream,
75
- ms: &[TokenTree]
+fn parse_tt(
+ parser: &mut Cow<Parser>,
+ ms: &[TokenTree],
76
) -> NamedParseResult
77
```
78
79
-In this interface:
+We use these items in macro parser:
80
81
- `sess` is a "parsing session", which keeps track of some metadata. Most
82
notably, this is used to keep track of errors that are generated so they can
0 commit comments