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.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir-def/src/expr_store/pretty.rs b/crates/hir-def/src/expr_store/pretty.rs
index 5d90191503..3bf6a8c6a0 100644
--- a/crates/hir-def/src/expr_store/pretty.rs
+++ b/crates/hir-def/src/expr_store/pretty.rs
@@ -1031,6 +1031,11 @@ impl Printer<'_> {
w!(self, "box ");
self.print_pat(*inner);
}
+ Pat::Deref { inner } => {
+ w!(self, "deref!(");
+ self.print_pat(*inner);
+ w!(self, ")");
+ }
Pat::ConstBlock(c) => {
w!(self, "const ");
self.print_expr(*c);