Skip to content

Remove unneeded null pointer asserts in ptr2int casts#97188

Merged
bors merged 1 commit intorust-lang:masterfrom
carbotaniuman:remove-null-assert
May 20, 2022
Merged

Remove unneeded null pointer asserts in ptr2int casts#97188
bors merged 1 commit intorust-lang:masterfrom
carbotaniuman:remove-null-assert

Conversation

@carbotaniuman
Copy link
Contributor

This removes an assert that a pointer with address 0 has no provenance. This change is needed to support permissive provenance work in Miri, and seems justified by ptr.with_addr(0) working and a discussion on Zulip regarding LLVM semantics.

r? @RalfJung

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants