diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-03-29 01:55:01 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2017-06-26 02:06:31 +0000 |
| commit | 7d493bdd2a9f86ed51bc80a5c91cbb502aa3b3c4 (patch) | |
| tree | 1bc25f9a4588f4e41aa43a1e61d0d20350c11a20 /src/libsyntax/fold.rs | |
| parent | e42836b2085233323339bacb636ecf9c28e8422e (diff) | |
| download | rust-7d493bdd2a9f86ed51bc80a5c91cbb502aa3b3c4.tar.gz rust-7d493bdd2a9f86ed51bc80a5c91cbb502aa3b3c4.zip | |
Add `LazyTokenStream`.
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index ca4814397d8..1fc670ec9f7 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -22,7 +22,7 @@ use ast::*; use ast; use syntax_pos::Span; use codemap::{Spanned, respan}; -use parse::token; +use parse::token::{self, Token}; use ptr::P; use symbol::keywords; use tokenstream::*; @@ -586,7 +586,7 @@ pub fn noop_fold_token<T: Folder>(t: token::Token, fld: &mut T) -> token::Token Ok(nt) => nt, Err(nt) => (*nt).clone(), }; - token::Interpolated(Rc::new(fld.fold_interpolated(nt))) + Token::interpolated(fld.fold_interpolated(nt.0)) } _ => t } |
