Skip to content

Commit ae3f6b0

Browse files
committed
dropck: remove unnecessary call to cloned()
1 parent 818ed69 commit ae3f6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/traits/query/dropck_outlives.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ pub fn trivial_dropck_outlives<'tcx>(tcx: TyCtxt<'_, '_, 'tcx>, ty: Ty<'tcx>) ->
227227

228228
// (T1..Tn) and closures have same properties as T1..Tn --
229229
// check if *any* of those are trivial.
230-
ty::Tuple(ref tys) => tys.iter().cloned().all(|t| trivial_dropck_outlives(tcx, t)),
230+
ty::Tuple(ref tys) => tys.iter().all(|t| trivial_dropck_outlives(tcx, t)),
231231
ty::Closure(def_id, ref substs) => substs
232232
.upvar_tys(def_id, tcx)
233233
.all(|t| trivial_dropck_outlives(tcx, t)),

0 commit comments

Comments
 (0)