Don't create an empty LazyTokenStream
This commit is contained in:
parent
37b25e8a49
commit
920bed1213
5 changed files with 25 additions and 19 deletions
|
@ -1116,7 +1116,7 @@ impl<'a> Parser<'a> {
|
|||
) -> PResult<'a, P<Expr>> {
|
||||
if needs_tokens {
|
||||
let (mut expr, tokens) = self.collect_tokens(f)?;
|
||||
expr.tokens = Some(tokens);
|
||||
expr.tokens = tokens;
|
||||
Ok(expr)
|
||||
} else {
|
||||
f(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue