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.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/crates/hir-def/src/expr_store/pretty.rs b/crates/hir-def/src/expr_store/pretty.rs
index 70ea54c734..fdd0654508 100644
--- a/crates/hir-def/src/expr_store/pretty.rs
+++ b/crates/hir-def/src/expr_store/pretty.rs
@@ -668,10 +668,7 @@ impl Printer<'_> {
}
}
Expr::RecordLit { path, fields, spread } => {
- match path {
- Some(path) => self.print_path(path),
- None => w!(self, "�"),
- }
+ self.print_path(path);
w!(self, "{{");
let edition = self.edition;
@@ -923,10 +920,7 @@ impl Printer<'_> {
w!(self, ")");
}
Pat::Record { path, args, ellipsis } => {
- match path {
- Some(path) => self.print_path(path),
- None => w!(self, "�"),
- }
+ self.print_path(path);
w!(self, " {{");
let edition = self.edition;
@@ -1004,10 +998,7 @@ impl Printer<'_> {
}
}
Pat::TupleStruct { path, args, ellipsis } => {
- match path {
- Some(path) => self.print_path(path),
- None => w!(self, "�"),
- }
+ self.print_path(path);
w!(self, "(");
for (i, arg) in args.iter().enumerate() {
if i != 0 {