Hacker News new | ask | show | jobs
by mswphd 17 days ago
Rust's goal is no UB in safe Rust. That includes in (incorrect) impls of safe traits.

Note that incorrect code can still cause

1. incorrect outputs, or

2. arbitrary performance degredations

safe rust doesn't have to work magic. All it must do is prevent UB.