about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-01-17 03:14:16 +0100
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-01-17 03:14:16 +0100
commit7889e99b553840de211482e4c86b2a145a968432 (patch)
tree7ebe20b4e1e5381294f1517fabb492d7fa8ab97a /compiler/rustc_ast_lowering/src
parent6ed31aba1a889b5d5e5362f1cdde316fb0b571d1 (diff)
downloadrust-7889e99b553840de211482e4c86b2a145a968432.tar.gz
rust-7889e99b553840de211482e4c86b2a145a968432.zip
Add `PatKind::Err`
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/pat.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/pat.rs b/compiler/rustc_ast_lowering/src/pat.rs
index 1c405fac7e4..0af141ff99a 100644
--- a/compiler/rustc_ast_lowering/src/pat.rs
+++ b/compiler/rustc_ast_lowering/src/pat.rs
@@ -109,6 +109,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
                     // return inner to be processed in next loop
                     PatKind::Paren(inner) => pattern = inner,
                     PatKind::MacCall(_) => panic!("{:?} shouldn't exist here", pattern.span),
+                    PatKind::Err(guar) => break hir::PatKind::Err(*guar),
                 }
             };