We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd0bacc commit 671bc08Copy full SHA for 671bc08
src/librustc_middle/mir/interpret/error.rs
@@ -400,8 +400,8 @@ impl fmt::Debug for UndefinedBehaviorInfo {
400
ptr.alloc_id,
401
allocation_size.bytes()
402
),
403
- InvalidIntPointerUsage(0) => write!(f, "invalid use of NULL pointer"),
404
- InvalidIntPointerUsage(i) => write!(f, "invalid use of {} as a pointer", i),
+ InvalidIntPointerUsage(0) => write!(f, "dereferencing NULL pointer"),
+ InvalidIntPointerUsage(i) => write!(f, "dereferencing dangling pointer to 0x{:x}", i),
405
AlignmentCheckFailed { required, has } => write!(
406
f,
407
"accessing memory with alignment {}, but alignment {} is required",
0 commit comments