4 ms·
transmute is marked as unsafe, so it can only be used in unsafe blocks or functions.
by fjh 12y ago
transmute is marked as unsafe, so it can only be used in unsafe blocks or functions.
- ch 12y agoMy mistake. I clicked through to the docs, and didn't see any annotation. http://static.rust-lang.org/doc/master/std/mem/fn.transmute.html http://static.rust-lang.org/doc/master/std/mem/fn.transmute....
- chrismorgan 12y agoErk—that’s a bug.
- ossreality 12y agoThat's because it's doc'd here: http://static.rust-lang.org/doc/master/core/intrinsics/ffi.transmute.html http://static.rust-lang.org/doc/master/core/intrinsics/ffi.t...