diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-10-22 10:09:08 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-10-22 10:09:08 -0400 |
| commit | 920bed121337538e4dbf58a73750157f5666cb72 (patch) | |
| tree | 211a5af6f78ac01932eaa42a18adb53d58dccd82 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 37b25e8a4940406e53486e81446b6c6545d5e0ed (diff) | |
| download | rust-920bed121337538e4dbf58a73750157f5666cb72.tar.gz rust-920bed121337538e4dbf58a73750157f5666cb72.zip | |
Don't create an empty `LazyTokenStream`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 698a7e7d9cd..a026353d825 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -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) |
