File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_middle/mir/interpret Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -437,10 +437,10 @@ impl fmt::Display for UndefinedBehaviorInfo {
437
437
DerefFunctionPointer ( a) => write ! ( f, "accessing {} which contains a function" , a) ,
438
438
ValidationFailure ( ref err) => write ! ( f, "type validation failed: {}" , err) ,
439
439
InvalidBool ( b) => {
440
- write ! ( f, "interpreting an invalid 8-bit value as a bool: 0x{:2x }" , b)
440
+ write ! ( f, "interpreting an invalid 8-bit value as a bool: 0x{:02x }" , b)
441
441
}
442
442
InvalidChar ( c) => {
443
- write ! ( f, "interpreting an invalid 32-bit value as a char: 0x{:8x }" , c)
443
+ write ! ( f, "interpreting an invalid 32-bit value as a char: 0x{:08x }" , c)
444
444
}
445
445
InvalidDiscriminant ( val) => write ! ( f, "enum value has invalid discriminant: {}" , val) ,
446
446
InvalidFunctionPointer ( p) => {
You can’t perform that action at this time.
0 commit comments