Skip to content

Commit e1e04a8

Browse files
committed
Document magic boolean
1 parent 8ac1a67 commit e1e04a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,9 @@ pub trait PrettyPrinter<'tcx>:
13961396
) -> Result<Self::Const, Self::Error> {
13971397
match scalar {
13981398
Scalar::Ptr(ptr, _size) => self.pretty_print_const_scalar_ptr(ptr, ty),
1399-
Scalar::Int(int) => self.pretty_print_const_scalar_int(int, ty, true),
1399+
Scalar::Int(int) => {
1400+
self.pretty_print_const_scalar_int(int, ty, /* print_ty */ true)
1401+
}
14001402
}
14011403
}
14021404

0 commit comments

Comments
 (0)