logoalt Hacker News

devmor • today at 1:11 PM • 1 reply • view on HN

> If a compiled safe Rust program has unsound behavior, the compiler needs to be fixed

Can you provide an example of such a program that can’t be fixed at the program level like a C++ example?


Replies

_flux • today at 1:13 PM

Sure, usually the program can be changed to avoid the issue, but the key here is that the Rust compiler is wrong and needs to be fixed. Once fixed, the actual program fix also falls in place, as it cannot be compiled anymore.

➕ show 1 reply