Add ErrorGuaranteed to ast::ExprKind::Err

This commit is contained in:
Lieselotte 2024-02-25 22:22:11 +01:00
parent 7d82dd0d31
commit 1bbfb76993
2 changed files with 2 additions and 2 deletions

View file

@ -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