Rust and UB
Rust and UB
Posted Aug 14, 2024 22:23 UTC (Wed) by deltragon (guest, #159552)In reply to: Rust and UB by khim
Parent article: Standards for use of unsafe Rust in the kernel
> > The Rust compiler doesn't want to be an adversary.
>
> That's an oversimplification. Rust complier doesn't have any wants or desires.
>
> And any optimizing compiler is an adversary.
>
> That's an oversimplification. Rust complier doesn't have any wants or desires.
>
> And any optimizing compiler is an adversary.
I understood this as "the Rust compiler developers and language designers, as a group, don't want to be adversaries".
