Closed
Description
Term
and GenericArg
currently store pointers as NonZeroUsize
, which is not ideal:
rust/compiler/rustc_middle/src/ty/mod.rs
Line 846 in 92ad4b4
They should really work with NonNull
pointers and strict provenance APIs like .map_addr
, .mask
, etc.
See a PR fixing a similar issue for some context: #110243 (note: in that one I ended up rewriting the whole thing, I think this issue requires far less changes).
Metadata
Metadata
Assignees
Labels
Area: Strict provenance for raw pointersCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.
Activity
WaffleLapkin commentedon Dec 22, 2023
(I do plan to work on this, but if you want to work on this instead — feel free to
@rustbot claim
, I can mentor you)cc @RalfJung
kamalesh0406 commentedon Dec 22, 2023
Rajveer100 commentedon Dec 26, 2023
Rajveer100 commentedon Dec 26, 2023
fee1-dead commentedon Dec 26, 2023
Rajveer100 commentedon Dec 26, 2023
Noratrieb commentedon Dec 26, 2023
20 remaining items