Hacker News new | ask | show | jobs
by JonChesterfield 436 days ago
If your translator is correct, the rust front end enforces the semantics of rust then C implements them. It's as safe as any other implementation.

If that feels uncomfortable, consider that x64 machine code has no approximation to rust safety checks, and you trust rust binaries running on x64.

"Correct" is doing some heavy lifting here but generally people seem willing to believe that their toolchain is bug free.

1 comments

They are discussing C to Rust, not the topic of the post. Rust would need to guess the semantics of the original C.