Now that the presence of provenance in Rust has been stabilized, we should document the effect that Register has on pointer provenance. Note that the current implementation sometimes attaches provenance when we don't want it to, which we can only fix when strict provenance is stabilized (which should happen in Rust 1.84).
This also fixes the implementation of From<usize> for Register, which relies on transmuting a usize to a pointer, which is not a stable guarantee, and makes a few other style improvements.
Now that the presence of provenance in Rust has been stabilized, we should document the effect that
Register
has on pointer provenance. Note that the current implementation sometimes attaches provenance when we don't want it to, which we can only fix when strict provenance is stabilized (which should happen in Rust 1.84).This also fixes the implementation of
From<usize> for Register
, which relies on transmuting a usize to a pointer, which is not a stable guarantee, and makes a few other style improvements.