diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-12-19 16:41:15 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-12-19 16:41:15 +0100 |
| commit | ae3f6b015ec3f76e2d784fe7cb23b8bbb91faa43 (patch) | |
| tree | 2b0a51c0994868332b3fb1a7ef42a1762652a6fa /src | |
| parent | 818ed6935dc10f450f5c230b19465b1a323b07ea (diff) | |
| download | rust-ae3f6b015ec3f76e2d784fe7cb23b8bbb91faa43.tar.gz rust-ae3f6b015ec3f76e2d784fe7cb23b8bbb91faa43.zip | |
dropck: remove unnecessary call to cloned()
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/traits/query/dropck_outlives.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/traits/query/dropck_outlives.rs b/src/librustc/traits/query/dropck_outlives.rs index b993dd6080b..f506c47371c 100644 --- a/src/librustc/traits/query/dropck_outlives.rs +++ b/src/librustc/traits/query/dropck_outlives.rs @@ -227,7 +227,7 @@ pub fn trivial_dropck_outlives<'tcx>(tcx: TyCtxt<'_, '_, 'tcx>, ty: Ty<'tcx>) -> // (T1..Tn) and closures have same properties as T1..Tn -- // check if *any* of those are trivial. - ty::Tuple(ref tys) => tys.iter().cloned().all(|t| trivial_dropck_outlives(tcx, t)), + ty::Tuple(ref tys) => tys.iter().all(|t| trivial_dropck_outlives(tcx, t)), ty::Closure(def_id, ref substs) => substs .upvar_tys(def_id, tcx) .all(|t| trivial_dropck_outlives(tcx, t)), |
