Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/pretty.rs')
-rw-r--r--crates/hir-def/src/expr_store/pretty.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/hir-def/src/expr_store/pretty.rs b/crates/hir-def/src/expr_store/pretty.rs
index 34cedbd728..4dc7ebebbb 100644
--- a/crates/hir-def/src/expr_store/pretty.rs
+++ b/crates/hir-def/src/expr_store/pretty.rs
@@ -906,6 +906,7 @@ impl Printer<'_> {
Pat::Missing => w!(self, "�"),
Pat::Rest => w!(self, ".."),
Pat::Wild => w!(self, "_"),
+ Pat::NotNull => w!(self, "!null"),
Pat::Tuple { args, ellipsis } => {
w!(self, "(");
for (i, pat) in args.iter().enumerate() {
@@ -1346,6 +1347,11 @@ impl Printer<'_> {
w!(self, "dyn ");
self.print_type_bounds(bounds);
}
+ TypeRef::PatternType(ty, pat) => {
+ self.print_type_ref(*ty);
+ w!(self, " is ");
+ self.print_pat(*pat);
+ }
}
}