|
|
Log in / Subscribe / Register

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)

> Thank you, looks very much like an improvement,

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.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds