about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-02-25 22:22:11 +0100
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-02-25 22:24:31 +0100
commit1bbfb76993eafc9828af62588f13fe68eaeb4e1a (patch)
tree1520818e17256533d90e20eb5dfe59d8f6216fa4 /src
parent7d82dd0d31b426afaf88d307cc3fb7deddb44552 (diff)
downloadrust-1bbfb76993eafc9828af62588f13fe68eaeb4e1a.tar.gz
rust-1bbfb76993eafc9828af62588f13fe68eaeb4e1a.zip
Add `ErrorGuaranteed` to `ast::ExprKind::Err`
Diffstat (limited to 'src')
-rw-r--r--src/expr.rs2
-rw-r--r--src/utils.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs
index d46d7c53bdb..c500b30b998 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -404,7 +404,7 @@ pub(crate) fn format_expr(
             // 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
diff --git a/src/utils.rs b/src/utils.rs
index b6b37e492e9..d4218cff75a 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -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(..)