Rust "unsafe" is not code the compiler doesn't understand
Rust "unsafe" is not code the compiler doesn't understand
Posted Dec 14, 2025 12:25 UTC (Sun) by malmedal (subscriber, #56172)In reply to: Rust "unsafe" is not code the compiler doesn't understand by sammythesnake
Parent article: Rust in Android: move fast and fix things (Google Security Blog)
> With UB, *all* transformations are "correct", including "return 0;" -> "emit_olfactory_fiends();"
Yes. However this is not a law of nature. Or inherent in the language itself. The committee *could* have made the opposite decision is they had wanted...
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
