Skip to content

Commit 6490801

Browse files
committed
---
yaml --- r: 177022 b: refs/heads/master c: 25a2797 h: refs/heads/master v: v3
1 parent e067690 commit 6490801

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 7d68250eb49e455ce84e762f2324510da288be45
2+
refs/heads/master: 25a27977fa1cbaddd4c2275881bee358eeaeb8a1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a45e117733b866302fa99390553d1c548508dcca
55
refs/heads/try: fde4472848b662a4d1236388c4cf15e2450237e6

trunk/src/librustc/middle/ty_fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub trait TypeFolder<'tcx> : Sized {
7171
fn exit_region_binder(&mut self) { }
7272

7373
fn fold_binder<T>(&mut self, t: &ty::Binder<T>) -> ty::Binder<T>
74-
where T : TypeFoldable<'tcx> + Repr<'tcx>
74+
where T : TypeFoldable<'tcx> + Repr<'tcx> + Clone
7575
{
7676
// FIXME(#20526) this should replace `enter_region_binder`/`exit_region_binder`.
7777
super_fold_binder(self, t)
@@ -186,7 +186,7 @@ impl<'tcx, T: TypeFoldable<'tcx>> TypeFoldable<'tcx> for Vec<T> {
186186
}
187187
}
188188

189-
impl<'tcx, T:TypeFoldable<'tcx>+Repr<'tcx>> TypeFoldable<'tcx> for ty::Binder<T> {
189+
impl<'tcx, T:TypeFoldable<'tcx>+Repr<'tcx>+Clone> TypeFoldable<'tcx> for ty::Binder<T> {
190190
fn fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> ty::Binder<T> {
191191
folder.fold_binder(self)
192192
}

0 commit comments

Comments
 (0)