提交 671bc08e 编写于 作者: R Ralf Jung

tweak InvalidIntPointerUsage message

上级 bd0bacc6
......@@ -400,8 +400,8 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
ptr.alloc_id,
allocation_size.bytes()
),
InvalidIntPointerUsage(0) => write!(f, "invalid use of NULL pointer"),
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),
AlignmentCheckFailed { required, has } => write!(
f,
"accessing memory with alignment {}, but alignment {} is required",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册