diff options
| author | bors <bors@rust-lang.org> | 2022-04-07 12:52:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-07 12:52:32 +0000 |
| commit | fa723160318fac5f3fa6f4141cfc41c0606a3008 (patch) | |
| tree | a41085f587d3243ca62065f0ee2555d9dd892a41 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | ed6c958ee4bf081deec951996ace9c508360c1d9 (diff) | |
| parent | d9592c2d9f0db851b090c10c0cc3560b87fc7789 (diff) | |
| download | rust-fa723160318fac5f3fa6f4141cfc41c0606a3008.tar.gz rust-fa723160318fac5f3fa6f4141cfc41c0606a3008.zip | |
Auto merge of #95715 - nnethercote:shrink-Nonterminal, r=davidtwco
Shrink `Nonterminal` Small consistency and performance improvements. r? `@petrochenkov`
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 7978a1a7f5f..7efc0ca2da2 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -41,7 +41,7 @@ macro_rules! maybe_whole_expr { return Ok(e); } token::NtPath(path) => { - let path = path.clone(); + let path = (**path).clone(); $p.bump(); return Ok($p.mk_expr( $p.prev_token.span, |
