Print TypeId as hex for debugging · model-checking/verify-rust-std@986dbd1 (original) (raw)
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -673,7 +673,7 @@ impl hash::Hash for TypeId { | ||
| 673 | 673 | #[stable(feature = "rust1", since = "1.0.0")] |
| 674 | 674 | impl fmt::Debug for TypeId { |
| 675 | 675 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { |
| 676 | -f.debug_tuple("TypeId").field(&self.as_u128()).finish() | |
| 676 | +write!(f, "TypeId({:#034x})", self.as_u128()) | |
| 677 | 677 | } |
| 678 | 678 | } |
| 679 | 679 |