mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Add ErrorGuaranteed to ast::ExprKind::Err
This commit is contained in:
+1
-1
@@ -404,7 +404,7 @@ fn needs_space_after_range(rhs: &ast::Expr) -> bool {
|
||||
// These do not occur in the AST because macros aren't expanded.
|
||||
unreachable!()
|
||||
}
|
||||
ast::ExprKind::Err | ast::ExprKind::Dummy => None,
|
||||
ast::ExprKind::Err(_) | ast::ExprKind::Dummy => None,
|
||||
};
|
||||
|
||||
expr_rw
|
||||
|
||||
+1
-1
@@ -498,7 +498,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
|
||||
| ast::ExprKind::Cast(..)
|
||||
| ast::ExprKind::Continue(..)
|
||||
| ast::ExprKind::Dummy
|
||||
| ast::ExprKind::Err
|
||||
| ast::ExprKind::Err(_)
|
||||
| ast::ExprKind::Field(..)
|
||||
| ast::ExprKind::IncludedBytes(..)
|
||||
| ast::ExprKind::InlineAsm(..)
|
||||
|
||||
Reference in New Issue
Block a user