diff options
| author | Ralf Jung <post@ralfj.de> | 2023-08-01 17:11:00 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-10-15 18:12:46 +0200 |
| commit | b1ebf002c38241da4f6f3e8357a662a6e5797c35 (patch) | |
| tree | 8e2923890ac8f4610675f119355ea3edb4a7df39 /compiler/rustc_const_eval/src/errors.rs | |
| parent | a48396984ae7637aa6cbcfad645ef6a48a00f088 (diff) | |
| download | rust-b1ebf002c38241da4f6f3e8357a662a6e5797c35.tar.gz rust-b1ebf002c38241da4f6f3e8357a662a6e5797c35.zip | |
don't UB on dangling ptr deref, instead check inbounds on projections
Diffstat (limited to 'compiler/rustc_const_eval/src/errors.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/errors.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/errors.rs b/compiler/rustc_const_eval/src/errors.rs index b1599dd6894..96575c31c08 100644 --- a/compiler/rustc_const_eval/src/errors.rs +++ b/compiler/rustc_const_eval/src/errors.rs @@ -459,7 +459,6 @@ fn bad_pointer_message(msg: CheckInAllocMsg, handler: &Handler) -> String { use crate::fluent_generated::*; let msg = match msg { - CheckInAllocMsg::DerefTest => const_eval_deref_test, CheckInAllocMsg::MemoryAccessTest => const_eval_memory_access_test, CheckInAllocMsg::PointerArithmeticTest => const_eval_pointer_arithmetic_test, CheckInAllocMsg::OffsetFromTest => const_eval_offset_from_test, |
