Skip to content

Commit 37fa60b

Browse files
committed
pretty print u128 with display
1 parent 956f47c commit 37fa60b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

compiler/rustc_hir/src/attrs/pretty_printing.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ pub trait PrintAttribute {
2626
fn print_attribute(&self, p: &mut Printer);
2727
}
2828

29-
impl PrintAttribute for u128 {
30-
fn should_render(&self) -> bool {
31-
true
32-
}
33-
34-
fn print_attribute(&self, p: &mut Printer) {
35-
p.word(self.to_string())
36-
}
37-
}
38-
3929
impl<T: PrintAttribute> PrintAttribute for &T {
4030
fn should_render(&self) -> bool {
4131
T::should_render(self)
@@ -148,7 +138,7 @@ macro_rules! print_tup {
148138

149139
print_tup!(A B C D E F G H);
150140
print_skip!(Span, (), ErrorGuaranteed);
151-
print_disp!(u16, bool, NonZero<u32>, Limit);
141+
print_disp!(u16, u128, bool, NonZero<u32>, Limit);
152142
print_debug!(
153143
Symbol,
154144
Ident,

0 commit comments

Comments
 (0)