File tree 2 files changed +3
-3
lines changed
rustc_mir_build/src/builder
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ mod llvm_enzyme {
604
604
return body;
605
605
}
606
606
607
- let mut exprs: P < ast:: Expr > = primal_call. clone ( ) ;
607
+ let mut exprs: P < ast:: Expr > = primal_call;
608
608
let d_ret_ty = match d_sig. decl . output {
609
609
FnRetTy :: Ty ( ref ty) => ty. clone ( ) ,
610
610
FnRetTy :: Default ( span) => {
@@ -622,7 +622,7 @@ mod llvm_enzyme {
622
622
// type due to the Const return activity.
623
623
exprs = ecx. expr_call ( new_decl_span, bb_call_expr, thin_vec ! [ exprs] ) ;
624
624
} else {
625
- let q = QSelf { ty : d_ret_ty. clone ( ) , path_span : span, position : 0 } ;
625
+ let q = QSelf { ty : d_ret_ty, path_span : span, position : 0 } ;
626
626
let y =
627
627
ExprKind :: Path ( Some ( P ( q) ) , ecx. path_ident ( span, Ident :: from_str ( "default" ) ) ) ;
628
628
let default_call_expr = ecx. expr ( span, y) ;
Original file line number Diff line number Diff line change @@ -1530,7 +1530,7 @@ fn build_scope_drops<'tcx>(
1530
1530
// path, then don't generate the drop. (We only take this into
1531
1531
// account for non-unwind paths so as not to disturb the
1532
1532
// caching mechanism.)
1533
- if scope. moved_locals . iter ( ) . any ( | & o| o == local) {
1533
+ if scope. moved_locals . contains ( & local) {
1534
1534
continue ;
1535
1535
}
1536
1536
You can’t perform that action at this time.
0 commit comments