Can Rust optimise away the bit-wise copy during move of an object someday?
Given that in Rust (unlike C or C++) the address of a value is not considered to matter, there is nothing in terms of language that prevents the elision of the copy. However, today rustc does not optimize anything: all optimizations are delegated to LLVM, and it seems you have hit a limitation of the … Read more