diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-09-22 19:17:30 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-09-22 20:37:59 +0300 |
| commit | 9fd75f52877a3e23a7b9a6a9675f37a42340a428 (patch) | |
| tree | b61049a88481ac78c3fcad7294c1097edbd8083b /src/libsyntax/tokenstream.rs | |
| parent | 636b3543c27e1eba301605afd2143fc96fd14431 (diff) | |
| download | rust-9fd75f52877a3e23a7b9a6a9675f37a42340a428.tar.gz rust-9fd75f52877a3e23a7b9a6a9675f37a42340a428.zip | |
pull mbe token tree definition up
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
| -rw-r--r-- | src/libsyntax/tokenstream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs index d46e38f53d5..fd87f8a1f67 100644 --- a/src/libsyntax/tokenstream.rs +++ b/src/libsyntax/tokenstream.rs @@ -14,7 +14,7 @@ //! ownership of the original. use crate::ext::base; -use crate::ext::mbe::{macro_parser, quoted}; +use crate::ext::mbe::{self, macro_parser}; use crate::parse::Directory; use crate::parse::token::{self, DelimToken, Token, TokenKind}; use crate::print::pprust; @@ -64,7 +64,7 @@ where impl TokenTree { /// Use this token tree as a matcher to parse given tts. - crate fn parse(cx: &base::ExtCtxt<'_>, mtch: &[quoted::TokenTree], tts: TokenStream) + crate fn parse(cx: &base::ExtCtxt<'_>, mtch: &[mbe::TokenTree], tts: TokenStream) -> macro_parser::NamedParseResult { // `None` is because we're not interpolating let directory = Directory { |
