diff options
| author | Ralf Jung <post@ralfj.de> | 2019-05-24 16:44:52 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-05-24 16:44:52 +0200 |
| commit | a90cdcca7eb189901a666cbee194f08719e10b94 (patch) | |
| tree | 78deda5aa2aae151c791b84cca2f6266ef666299 | |
| parent | d01ef7d9185a113fa5e089ce1ce71bb1fb6eac32 (diff) | |
this is for tidy
| -rw-r--r-- | src/librustc/mir/interpret/value.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index e3d016ff4e0..6b6f7f7a307 100644 --- a/src/librustc/mir/interpret/value.rs +++ b/src/librustc/mir/interpret/value.rs @@ -126,7 +126,7 @@ impl<Tag: fmt::Debug, Id: fmt::Debug> fmt::Debug for Scalar<Tag, Id> { assert_eq!(truncate(bits, Size::from_bytes(size as u64)), bits, "Scalar value {:#x} exceeds size of {} bytes", bits, size); // Format as hex number wide enough to fit any value of the given `size`. - // So e.g. bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014". + // So bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014". write!(f, "0x{:>0width$x}", bits, width=(size*2) as usize) } } |
