I agree. *const T and *mut T are equivalent in terms of UB.
However, as @ExpHP wrote
Using *const T could lead to people thinking they can pass in an &T, and that would be UB.
I agree. *const T and *mut T are equivalent in terms of UB.
However, as @ExpHP wrote
Using *const T could lead to people thinking they can pass in an &T, and that would be UB.