diff options
| author | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-11-05 17:30:39 +0100 |
|---|---|---|
| committer | LeSeulArtichaut <leseulartichaut@gmail.com> | 2020-11-14 20:25:27 +0100 |
| commit | e0f3119103b79df190324e8d72a5827e4d0cd52d (patch) | |
| tree | 143c0a738920c72019b6304f073ee690da445927 /compiler/rustc_middle/src/macros.rs | |
| parent | 30e49a9ead550551e879af64ba91a0316da1c422 (diff) | |
| download | rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.tar.gz rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.zip | |
Introduce `TypeVisitor::BreakTy`
Diffstat (limited to 'compiler/rustc_middle/src/macros.rs')
| -rw-r--r-- | compiler/rustc_middle/src/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/macros.rs b/compiler/rustc_middle/src/macros.rs index 921086366be..057f2615a44 100644 --- a/compiler/rustc_middle/src/macros.rs +++ b/compiler/rustc_middle/src/macros.rs @@ -62,7 +62,7 @@ macro_rules! CloneTypeFoldableImpls { fn super_visit_with<F: $crate::ty::fold::TypeVisitor<$tcx>>( &self, _: &mut F) - -> ::std::ops::ControlFlow<()> + -> ::std::ops::ControlFlow<F::BreakTy> { ::std::ops::ControlFlow::CONTINUE } @@ -105,7 +105,7 @@ macro_rules! EnumTypeFoldableImpl { fn super_visit_with<V: $crate::ty::fold::TypeVisitor<$tcx>>( &self, visitor: &mut V, - ) -> ::std::ops::ControlFlow<()> { + ) -> ::std::ops::ControlFlow<V::BreakTy> { EnumTypeFoldableImpl!(@VisitVariants(self, visitor) input($($variants)*) output()) } } |
