diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-08 14:39:58 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-16 10:59:53 +0200 |
| commit | d160a4e4225eb5e310554316cba78efb2cbe6fa2 (patch) | |
| tree | 393f8bc408372eea7350331ed4bd60c7c3411f26 /src/libsyntax/parse/parser/expr.rs | |
| parent | 7ec38a9ae3c5e7b8eef0ec4696d058cd9e85583d (diff) | |
| download | rust-d160a4e4225eb5e310554316cba78efb2cbe6fa2.tar.gz rust-d160a4e4225eb5e310554316cba78efb2cbe6fa2.zip | |
syntax::parse: don't depend on syntax::ext
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
| -rw-r--r-- | src/libsyntax/parse/parser/expr.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<Attribute>) -> P<Expr> { P(Expr { kind, span, attrs, id: DUMMY_NODE_ID }) } + + pub(super) fn mk_expr_err(&self, span: Span) -> P<Expr> { + self.mk_expr(span, ExprKind::Err, ThinVec::new()) + } } |
