fn optimize_use_clone<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
cx: &'a Bx::CodegenCx,
mir: Body<'tcx>,
) -> Body<'tcx>Expand description
Replace clone calls that come from use statements with direct copies if possible.
fn optimize_use_clone<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
cx: &'a Bx::CodegenCx,
mir: Body<'tcx>,
) -> Body<'tcx>Replace clone calls that come from use statements with direct copies if possible.