Skip to content

Commit 4cca41b

Browse files
committed
Display deref patterns distinct from box patterns in thir
1 parent 7400f95 commit 4cca41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/thir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ impl<'tcx> fmt::Display for Pat<'tcx> {
11681168
write!(f, "{subpattern}")
11691169
}
11701170
PatKind::DerefPattern { ref subpattern } => {
1171-
write!(f, "box {subpattern}")
1171+
write!(f, "k#deref {subpattern}")
11721172
}
11731173
PatKind::Constant { value } => write!(f, "{value}"),
11741174
PatKind::InlineConstant { def: _, ref subpattern } => {

0 commit comments

Comments
 (0)