Rust "unsafe" is not code the compiler doesn't understand
Rust "unsafe" is not code the compiler doesn't understand
Posted Dec 14, 2025 15:25 UTC (Sun) by alx.manpages (subscriber, #145117)In reply to: Rust "unsafe" is not code the compiler doesn't understand by malmedal
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
Thanks! :)
> though I am confused by terms such as ghost and earthly demons :)
Writing standards proposals can be boring. Using these terms can make it more entertaining. These come from "nasal demons".
We started using "earthly demon" to refer to those cases of UB that can be perfectly determined at compile time, and thus can be transformed into constraints (mandatory diagnostics).
We later added the term "ghost" those cases that the standard specifies as UB, but which are impossible to trigger (because some other clause of the standard precludes the possibility entirely). These are just removed from the standard, as they are just incorrect text.
