4 ms·
That answer is from 5.5 years ago. Rust was barely 1.0 then. A lot has changed in 5.5 years. See my godbolt link in the other reply for verification that it doe
by afranchuk 5y ago
That answer is from 5.5 years ago. Rust was barely 1.0 then. A lot has changed in 5.5 years. See my godbolt link in the other reply for verification that it does optimize the moves away.
Besides LLVM improvements, I suspect the moves might be optimized out at the MIR level, though that's just a hunch.