2 ms·
> Was Pin SUPPOSED to be resilient to unsafe code? Regardless, for a user to be able to trigger undefined behavior without using the `unsafe` keyword indicates
by kibwen 7y ago
> Was Pin SUPPOSED to be resilient to unsafe code?
Regardless, for a user to be able to trigger undefined behavior without using the `unsafe` keyword indicates a bug here that must be fixed at the level of the language or standard library.
- eximius 7y agoBut it does require unsafe? The implementation of DerefMut and Clone for the type being pinned require unsafe.