Skip to content

Commit

Permalink
Document magic boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 5, 2023
1 parent 8ac1a67 commit e1e04a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_middle/src/ty/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,9 @@ pub trait PrettyPrinter<'tcx>:
) -> Result<Self::Const, Self::Error> {
match scalar {
Scalar::Ptr(ptr, _size) => self.pretty_print_const_scalar_ptr(ptr, ty),
Scalar::Int(int) => self.pretty_print_const_scalar_int(int, ty, true),
Scalar::Int(int) => {
self.pretty_print_const_scalar_int(int, ty, /* print_ty */ true)
}
}
}

Expand Down

0 comments on commit e1e04a8

Please sign in to comment.