mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
Insert null checks for pointer dereferences when debug assertions are enabled
Similar to how the alignment is already checked, this adds a check for null pointer dereferences in debug mode. It is implemented similarly to the alignment check as a MirPass. This is related to a 2025H1 project goal for better UB checks in debug mode: https://github.com/rust-lang/rust-project-goals/pull/177.
This commit is contained in:
parent
d473536c8e
commit
8196d260e8
2 changed files with 2 additions and 0 deletions
|
|
@ -363,6 +363,7 @@ define_symbols! {
|
|||
panic_location,
|
||||
panic_misaligned_pointer_dereference,
|
||||
panic_nounwind,
|
||||
panic_null_pointer_dereference,
|
||||
panic,
|
||||
Param,
|
||||
parse,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue