There might be a small advantage brought in by Rust. The Rust memory model (R^W, no aliasing) does mean that some compiler optimizations are broadly applicable in Rust, but only apply in C/++ where the developer has taken the care to signal those constraints to the compiler.