Module rustc_mir_transform::nrvo
source ยท Expand description
See the docs for RenameReturnPlace
.
Structsยง
- IsReturnPlaceRead ๐
- 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
. - RenameToReturnPlace ๐
Functionsยง
- MIR that is eligible for the NRVO must fulfill two conditions: