]> git.lizzy.rs Git - rust.git/commitdiff
Fixed merge issue
authorDavid Haig <david@ninjasource.com>
Mon, 25 Nov 2019 15:27:42 +0000 (15:27 +0000)
committerDavid Haig <david@ninjasource.com>
Thu, 28 Nov 2019 07:43:53 +0000 (07:43 +0000)
src/librustc/mir/mod.rs

index b2832c78ef4ab059aa35943f991367ff5c879e84..67dc1da8a40e47e4b6d69ea2f5a4bbc75d77395b 100644 (file)
@@ -3048,6 +3048,16 @@ fn super_visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> bool {
     }
 }
 
+impl<'tcx> TypeFoldable<'tcx> for GeneratorKind {
+    fn super_fold_with<F: TypeFolder<'tcx>>(&self, _: &mut F) -> Self {
+        *self
+    }
+
+    fn super_visit_with<V: TypeVisitor<'tcx>>(&self, _: &mut V) -> bool {
+        false
+    }
+}
+
 impl<'tcx> TypeFoldable<'tcx> for Place<'tcx> {
     fn super_fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> Self {
         Place {