Ok, thank you very much!
Whoops: meant to reply to @RalfJung
Sorry for being too creative . I was just trying to suggest it’s better to be careful and suspect the worst from the compiler when unsafe code comes around and not to take even such „obvious“ assumptions for granted.
No, its good, I hadn’t thought of that
Since with 1.34,
NonZeroISize is stable, you can finally have optimized offsets for the
&mut _ case
rel-ptr is now updated to allow
NonZero* offsets, so you can have space optimizations for
RelPtr<_, NonZeroI*> have the same size as
Option<RelPtr<_, NonZeroI*>> on stable!