diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-05 17:29:57 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2024-01-05 19:13:52 +0300 |
| commit | fb1cca29377d0ed227927e499d3ee6fe4b6af584 (patch) | |
| tree | 2bc64fe1e03821b84d9961212d0e39a2758e470f /compiler/rustc_parse/src/parser/expr.rs | |
| parent | c586fe40f1d1b136604250e7c0bd5d1e8bc41f5f (diff) | |
| download | rust-fb1cca29377d0ed227927e499d3ee6fe4b6af584.tar.gz rust-fb1cca29377d0ed227927e499d3ee6fe4b6af584.zip | |
parser: Tiny refactoring
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 0b24e784126..da57ce01a56 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -3735,7 +3735,7 @@ impl<'a> Parser<'a> { } pub(crate) fn mk_expr(&self, span: Span, kind: ExprKind) -> P<Expr> { - P(Expr { kind, span, attrs: AttrVec::new(), id: DUMMY_NODE_ID, tokens: None }) + self.mk_expr_with_attrs(span, kind, AttrVec::new()) } pub(super) fn mk_expr_err(&self, span: Span) -> P<Expr> { |
