Skip to content

Commit ee17c3b

Browse files
committed
Don't demand &Box<Pat> in print_pat
1 parent 4a43094 commit ee17c3b

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_build/src/thir

1 file changed

+2
-2
lines changed

Diff for: compiler/rustc_mir_build/src/thir/print.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ impl<'a, 'tcx> ThirPrinter<'a, 'tcx> {
643643
print_indented!(self, "}", depth_lvl);
644644
}
645645

646-
fn print_pat(&mut self, pat: &Box<Pat<'tcx>>, depth_lvl: usize) {
647-
let Pat { ty, span, kind } = &**pat;
646+
fn print_pat(&mut self, pat: &Pat<'tcx>, depth_lvl: usize) {
647+
let &Pat { ty, span, ref kind } = pat;
648648

649649
print_indented!(self, "Pat: {", depth_lvl);
650650
print_indented!(self, format!("ty: {:?}", ty), depth_lvl + 1);

0 commit comments

Comments
 (0)