Where is this thread?
-
-
I've actually been wondering that too. It at least to LLVM is a hint that at least sizeof(T) many bytes are safely derefenceable, but idk if anything beyond that is strictly UB
-
It doesn't have a different memory repr, but it does have narrowed provenance for the pointer you get. That's why the as_ptr method for slices first makes *const [T] and then makes *const T, in that very specific ordering. Sounds stupid, but RalfJ assures me it's true.
- 11 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.