Skip to content

Commit 88821ed

Browse files
author
David Haig
committed
Fixed merge issue
1 parent fb0972d commit 88821ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/librustc/mir/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,6 +3048,16 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> {
30483048
}
30493049
}
30503050

3051+
impl<'tcx> TypeFoldable<'tcx> for GeneratorKind {
3052+
fn super_fold_with<F: TypeFolder<'tcx>>(&self, _: &mut F) -> Self {
3053+
*self
3054+
}
3055+
3056+
fn super_visit_with<V: TypeVisitor<'tcx>>(&self, _: &mut V) -> bool {
3057+
false
3058+
}
3059+
}
3060+
30513061
impl<'tcx> TypeFoldable<'tcx> for Place<'tcx> {
30523062
fn super_fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Self {
30533063
Place {

0 commit comments

Comments
 (0)