Skip to content

Commit 00cc8a1

Browse files
committed
simplify parse_assoc_op_cast
1 parent 84f9bf1 commit 00cc8a1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/librustc_parse/parser/expr.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,7 @@ impl<'a> Parser<'a> {
596596
op_noun,
597597
);
598598
let span_after_type = parser_snapshot_after_type.token.span;
599-
let expr = mk_expr(
600-
self,
601-
P(Ty {
602-
span: path.span,
603-
kind: TyKind::Path(None, path),
604-
id: DUMMY_NODE_ID,
605-
}),
606-
);
599+
let expr = mk_expr(self, self.mk_ty(path.span, TyKind::Path(None, path)));
607600

608601
let expr_str = self
609602
.span_to_snippet(expr.span)

0 commit comments

Comments
 (0)