fn new_call_temp(
        &self,
        caller_body: &mut Body<'tcx>,
        callsite: &CallSite<'tcx>,
        ty: Ty<'tcx>,
    ) -> Local {
        let local = caller_body.local_decls.push(LocalDecl::new(ty, callsite.source_info.span));

        caller_body[callsite.block].statements.push(Statement {
            source_info: callsite.source_info,
            kind: StatementKind::StorageLive(local),
        });

        if let Some(block) = callsite.target {
            caller_body[block].statements.insert(
                0,
                Statement {
                    source_info: callsite.source_info,
                    kind: StatementKind::StorageDead(local),
                },
            );
        }

        local
    }
/// Introduces a new temporary into the caller body that is live for the duration of the call.
Introduces a new temporary into the caller body that is live for the duration of the call.
Introduces a new temporary into the caller body that is live for the duration of the call .
fn new_call_temp(
        &self,
        caller_body: &mut Body<'tcx>,
        callsite: &CallSite<'tcx>,
        ty: Ty<'tcx>,
    ) -> Local {
        let local = caller_body.local_decls.push(LocalDecl::new(ty, callsite.source_info.span));
        caller_body[callsite.block].statements.push(Statement {
            source_info: callsite.source_info,
            kind: StatementKind::StorageLive(local),
        });
        if let Some(block) = callsite.target {
            caller_body[block].statements.insert(
                0,
                Statement {
                    source_info: callsite.source_info,
                    kind: StatementKind::StorageDead(local),
                },
            );
        }
        local
    }
fn new_call_temp ( & self , caller_body : & mut Body < ' tcx > , callsite : & CallSite < ' tcx > , ty : Ty < ' tcx > , ) -> Local { let local = caller_body . local_decls . push ( LocalDecl :: new ( ty , callsite . source_info . span ) ) ; caller_body [ callsite . block ] . statements . push ( Statement { source_info : callsite . source_info , kind : StatementKind :: StorageLive ( local ) , } ) ; if let Some ( block ) = callsite . target { caller_body [ block ] . statements . insert ( 0 , Statement { source_info : callsite . source_info , kind : StatementKind :: StorageDead ( local ) , } , ) ; } local }
Introduces a new temporary into the caller body that is live for the duration of the call.
Introduces a new temporary into the caller body that is live for the duration of the call .
&self
caller_body
&mut Body<'tcx>
callsite
&CallSite<'tcx>
ty
Ty<'tcx>
&self
caller_body
&mut Body<'tcx>
callsite
&CallSite<'tcx>
ty
Ty<'tcx>