Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/hir.rs')
-rw-r--r--crates/hir-def/src/hir.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir-def/src/hir.rs b/crates/hir-def/src/hir.rs
index 6eba859264..4c8d835ad7 100644
--- a/crates/hir-def/src/hir.rs
+++ b/crates/hir-def/src/hir.rs
@@ -717,6 +717,7 @@ pub enum Pat {
Deref {
inner: PatId,
},
+ NotNull,
ConstBlock(ExprId),
/// An expression inside a pattern. That can only occur inside assignments.
///
@@ -734,7 +735,8 @@ impl Pat {
| Pat::Wild
| Pat::Missing
| Pat::Rest
- | Pat::Expr(_) => {}
+ | Pat::Expr(_)
+ | Pat::NotNull => {}
Pat::Bind { subpat, .. } => {
subpat.iter().copied().for_each(f);
}