don't UB on dangling ptr deref, instead check inbounds on projections
This commit is contained in:
@@ -218,8 +218,6 @@ pub enum InvalidProgramInfo<'tcx> {
|
||||
/// Details of why a pointer had to be in-bounds.
|
||||
#[derive(Debug, Copy, Clone, TyEncodable, TyDecodable, HashStable)]
|
||||
pub enum CheckInAllocMsg {
|
||||
/// We are dereferencing a pointer (i.e., creating a place).
|
||||
DerefTest,
|
||||
/// We are access memory.
|
||||
MemoryAccessTest,
|
||||
/// We are doing pointer arithmetic.
|
||||
|
||||
Reference in New Issue
Block a user