Update Rust
This commit is contained in:
parent
ceb2bb544e
commit
3fab6b4637
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
use std::rc::Rc;
|
||||||
use syntax::ast::{Expr, ExprKind, Lit, LitKind, Stmt};
|
use syntax::ast::{Expr, ExprKind, Lit, LitKind, Stmt};
|
||||||
use syntax::ext::quote::rt::ToTokens;
|
use syntax::ext::quote::rt::ToTokens;
|
||||||
use syntax::codemap::Span;
|
use syntax::codemap::Span;
|
||||||
|
@ -398,12 +399,12 @@ impl<'cx, 'a, 'i> Parser<'cx, 'a, 'i> {
|
||||||
expr.push(tt.clone());
|
expr.push(tt.clone());
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
body.push(TokenTree::Delimited(sp, Delimited {
|
body.push(TokenTree::Delimited(sp, Rc::new(Delimited {
|
||||||
delim: DelimToken::Brace,
|
delim: DelimToken::Brace,
|
||||||
open_span: sp,
|
open_span: sp,
|
||||||
tts: expr,
|
tts: expr,
|
||||||
close_span: sp,
|
close_span: sp,
|
||||||
}));
|
})));
|
||||||
Ok(body)
|
Ok(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue