diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-01 14:39:41 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-05-01 14:39:41 +0200 |
| commit | 1bab6a4db788abae8c06cfa3cb19b0027e9cd8bf (patch) | |
| tree | 830788484cbfc0bd0fd4f79bcf1a9628dbe36b0c /src | |
| parent | fd61d06772d17c6242265d860fbfb5eafd282caa (diff) | |
| download | rust-1bab6a4db788abae8c06cfa3cb19b0027e9cd8bf.tar.gz rust-1bab6a4db788abae8c06cfa3cb19b0027e9cd8bf.zip | |
fix Miri error message padding
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_middle/mir/interpret/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_middle/mir/interpret/error.rs b/src/librustc_middle/mir/interpret/error.rs index 40454ce3b2d..0ab14b53e1b 100644 --- a/src/librustc_middle/mir/interpret/error.rs +++ b/src/librustc_middle/mir/interpret/error.rs @@ -439,10 +439,10 @@ impl fmt::Display for UndefinedBehaviorInfo { DerefFunctionPointer(a) => write!(f, "accessing {} which contains a function", a), ValidationFailure(ref err) => write!(f, "type validation failed: {}", err), InvalidBool(b) => { - write!(f, "interpreting an invalid 8-bit value as a bool: 0x{:2x}", b) + write!(f, "interpreting an invalid 8-bit value as a bool: 0x{:02x}", b) } InvalidChar(c) => { - write!(f, "interpreting an invalid 32-bit value as a char: 0x{:8x}", c) + write!(f, "interpreting an invalid 32-bit value as a char: 0x{:08x}", c) } InvalidDiscriminant(val) => write!(f, "enum value has invalid discriminant: {}", val), InvalidFunctionPointer(p) => { |
