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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store/pretty.rs b/crates/hir-def/src/expr_store/pretty.rs
index 6a0b1e5197..c28cfb2452 100644
--- a/crates/hir-def/src/expr_store/pretty.rs
+++ b/crates/hir-def/src/expr_store/pretty.rs
@@ -656,11 +656,11 @@ impl Printer<'_> {
}
Pat::Range { start, end } => {
if let Some(start) = start {
- self.print_literal_or_const(start);
+ self.print_expr(*start);
}
w!(self, "..=");
if let Some(end) = end {
- self.print_literal_or_const(end);
+ self.print_expr(*end);
}
}
Pat::Slice { prefix, slice, suffix } => {