2 ms·
One misconception is also that in unsafe block everything goes and all checks for memory are disabled. This just isn't true. Unsafe rust allows you to make oper
by constantcrying 3y ago
One misconception is also that in unsafe block everything goes and all checks for memory are disabled. This just isn't true.
Unsafe rust allows you to make operations which could invalidate all of rusts memory guarantees by granting you access to raw pointers, but that is (almost) it. It doesn't mean that rust suddenly does not enforce any of its rules.
I also can not believe that that much code actually needs raw pointer operations if the developer considers alternatives.