diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-15 07:45:22 +0900 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2020-02-18 11:29:39 -0600 |
| commit | c401f8f8556fdcc17fc9296c00a65a04da988568 (patch) | |
| tree | f46feef3e4d6e07dcd46fe5f1ccf8e9e1056d5dd /src/doc/rustc-dev-guide | |
| parent | 8c9d8893d0be174fc7d54a30b10081efcc743c88 (diff) | |
| download | rust-c401f8f8556fdcc17fc9296c00a65a04da988568.tar.gz rust-c401f8f8556fdcc17fc9296c00a65a04da988568.zip | |
Update section following current state
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/macro-expansion.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/macro-expansion.md b/src/doc/rustc-dev-guide/src/macro-expansion.md index 0c7a7a2e345..bc3b9dc5ce6 100644 --- a/src/doc/rustc-dev-guide/src/macro-expansion.md +++ b/src/doc/rustc-dev-guide/src/macro-expansion.md @@ -69,14 +69,13 @@ defined in [`src/librustc_expand/mbe/macro_parser.rs`][code_mp]. The interface of the macro parser is as follows (this is slightly simplified): ```rust,ignore -fn parse( - sess: ParserSession, - tts: TokenStream, - ms: &[TokenTree] +fn parse_tt( + parser: &mut Cow<Parser>, + ms: &[TokenTree], ) -> NamedParseResult ``` -In this interface: +We use these items in macro parser: - `sess` is a "parsing session", which keeps track of some metadata. Most notably, this is used to keep track of errors that are generated so they can |
