Skip to content

Commit fb1cca2

Browse files
committed
parser: Tiny refactoring
1 parent c586fe4 commit fb1cca2

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3735,7 +3735,7 @@ impl<'a> Parser<'a> {
37353735
}
37363736

37373737
pub(crate) fn mk_expr(&self, span: Span, kind: ExprKind) -> P<Expr> {
3738-
P(Expr { kind, span, attrs: AttrVec::new(), id: DUMMY_NODE_ID, tokens: None })
3738+
self.mk_expr_with_attrs(span, kind, AttrVec::new())
37393739
}
37403740

37413741
pub(super) fn mk_expr_err(&self, span: Span) -> P<Expr> {

0 commit comments

Comments
 (0)