Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevossen5 committed Sep 30, 2020
1 parent 5032674 commit dffb9d6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions compiler/rustc_middle/src/ty/print/pretty.rs
Expand Up @@ -1012,20 +1012,12 @@ pub trait PrettyPrinter<'tcx>:
(Scalar::Raw { data, .. }, ty::Uint(ui)) => {
let size = Integer::from_attr(&self.tcx(), UnsignedInt(*ui)).size();
let int = ConstInt::new(data, size, false, ty.is_ptr_sized_integral());
if print_ty {
p!(write("{:#?}", int))
} else {
p!(write("{:?}", int))
}
if print_ty { p!(write("{:#?}", int)) } else { p!(write("{:?}", int)) }
}
(Scalar::Raw { data, .. }, ty::Int(i)) => {
let size = Integer::from_attr(&self.tcx(), SignedInt(*i)).size();
let int = ConstInt::new(data, size, true, ty.is_ptr_sized_integral());
if print_ty {
p!(write("{:#?}", int))
} else {
p!(write("{:?}", int))
}
if print_ty { p!(write("{:#?}", int)) } else { p!(write("{:?}", int)) }
}
// Char
(Scalar::Raw { data, .. }, ty::Char) if char::from_u32(data as u32).is_some() => {
Expand Down

0 comments on commit dffb9d6

Please sign in to comment.