diff options
| author | hyd-dev <yd-huang@outlook.com> | 2021-05-04 18:27:02 +0800 |
|---|---|---|
| committer | hyd-dev <yd-huang@outlook.com> | 2021-05-04 18:27:02 +0800 |
| commit | ee7a6c6acc01560895796f2d5206f38955e3768c (patch) | |
| tree | db6b8365a4675285b1795e7f3d503f9f4ceb2883 | |
| parent | c20c9219dae5ea56ce9bf1c211fafdc7da8700b9 (diff) | |
| download | rust-ee7a6c6acc01560895796f2d5206f38955e3768c.tar.gz rust-ee7a6c6acc01560895796f2d5206f38955e3768c.zip | |
Remove `rustc_middle::mir::interpret::CheckInAllocMsg::NullPointerTest`
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/error.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/error.rs b/compiler/rustc_middle/src/mir/interpret/error.rs index d4970a4f532..e452463fbf5 100644 --- a/compiler/rustc_middle/src/mir/interpret/error.rs +++ b/compiler/rustc_middle/src/mir/interpret/error.rs @@ -171,7 +171,6 @@ impl fmt::Display for InvalidProgramInfo<'_> { #[derive(Debug, Copy, Clone, TyEncodable, TyDecodable, HashStable)] pub enum CheckInAllocMsg { MemoryAccessTest, - NullPointerTest, PointerArithmeticTest, InboundsTest, } @@ -185,7 +184,6 @@ impl fmt::Display for CheckInAllocMsg { "{}", match *self { CheckInAllocMsg::MemoryAccessTest => "memory access", - CheckInAllocMsg::NullPointerTest => "null pointer test", CheckInAllocMsg::PointerArithmeticTest => "pointer arithmetic", CheckInAllocMsg::InboundsTest => "inbounds test", } @@ -308,9 +306,6 @@ impl fmt::Display for UndefinedBehaviorInfo<'_> { ptr.alloc_id, allocation_size.bytes() ), - DanglingIntPointer(_, CheckInAllocMsg::NullPointerTest) => { - write!(f, "null pointer is not allowed for this operation") - } DanglingIntPointer(i, msg) => { write!(f, "{} failed: 0x{:x} is not a valid pointer", msg, i) } |
