From d160a4e4225eb5e310554316cba78efb2cbe6fa2 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 8 Oct 2019 14:39:58 +0200 Subject: syntax::parse: don't depend on syntax::ext --- src/libsyntax/parse/parser/expr.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libsyntax/parse/parser/expr.rs') diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs index 2e6b9de7693..bf9526dece2 100644 --- a/src/libsyntax/parse/parser/expr.rs +++ b/src/libsyntax/parse/parser/expr.rs @@ -1946,4 +1946,8 @@ impl<'a> Parser<'a> { crate fn mk_expr(&self, span: Span, kind: ExprKind, attrs: ThinVec) -> P { P(Expr { kind, span, attrs, id: DUMMY_NODE_ID }) } + + pub(super) fn mk_expr_err(&self, span: Span) -> P { + self.mk_expr(span, ExprKind::Err, ThinVec::new()) + } } -- cgit 1.4.1-3-g733a5