don't UB on dangling ptr deref, instead check inbounds on projections
This commit is contained in:
parent
a48396984a
commit
b1ebf002c3
102 changed files with 531 additions and 469 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue