Skip to content

Null and enum-discriminant runtime checks in debug builds #262

Open
@nikomatsakis

Description

@nikomatsakis
Metadata
Point of contact @1c3t3a
Team(s) compiler, lang, opsem
Goal document 2025h1/null-enum-discriminant-debug-checks

Summary

Add runtime checks to rustc that check for null pointers on pointer access and
invalid enum discriminants. Similar to integer overflow and pointer alignment
checks, this will only be enabled in debug builds.

Tasks and status

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Project goal

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions