Patrick Walton wrote:
This is already done. The Rust ABI specifies that when large structures are passed by move, a pointer is implicitly passed instead.
As an aside, I've been thinking that we can optimize the trans code further for non-drop types that are located in immutable variables which are not moved. In that case, we currently make a second copy, but there is no reason to do so.


Niko
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to