Module rustc_mir_transform::nrvo
source ยท Expand description
See the docs for RenameReturnPlace
.
Structsยง
- IsReturn
Place ๐Read - This pass looks for MIR that always copies the same local into the return place and eliminates the copy by renaming all uses of that local to
_0
. - Rename
ToReturn ๐Place
Functionsยง
- MIR that is eligible for the NRVO must fulfill two conditions: