diff options
| author | David Haig <david@ninjasource.com> | 2019-11-25 15:27:42 +0000 |
|---|---|---|
| committer | David Haig <david@ninjasource.com> | 2019-11-28 07:43:53 +0000 |
| commit | 88821ed54d2eacc35ccbf6ab056b6677f23c3e1a (patch) | |
| tree | c70da7b575f832d31b648c537d9a3f4410e34663 /src/librustc | |
| parent | fb0972dadf7b0c83519c88d5b5353d502feeef12 (diff) | |
| download | rust-88821ed54d2eacc35ccbf6ab056b6677f23c3e1a.tar.gz rust-88821ed54d2eacc35ccbf6ab056b6677f23c3e1a.zip | |
Fixed merge issue
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/mir/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index b2832c78ef4..67dc1da8a40 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -3048,6 +3048,16 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> { } } +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 { |
