9 ms·
Don't points 2 & 3 together imply that anything that uses built-ins, which I assume are implemented with C FFI, is `unsafe`?
by valtron 13y ago
Don't points 2 & 3 together imply that anything that uses built-ins, which I assume are implemented with C FFI, is `unsafe`?
- steveklabnik 13y agoI'm not 100% sure exactly what you mean by 'built-ins', but Rust is almost entirely written in Rust. I don't think there's anything major implemented via C FFI in the compiler itself.
- anon_d 13y agoJust to clarify, using a `unsafe` block in a function does NOT mean that you have to tag that function as unsafe.
- evincarofautumn 13y agoNo, “unsafe” means “evaluate this unsafe block as though it were safe”. This enables Modula-style safe interfaces for unsafe implementations.