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_infer/src/traits/structural_impls.rs | |
| parent | 30e49a9ead550551e879af64ba91a0316da1c422 (diff) | |
| download | rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.tar.gz rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.zip | |
Introduce `TypeVisitor::BreakTy`
Diffstat (limited to 'compiler/rustc_infer/src/traits/structural_impls.rs')
| -rw-r--r-- | compiler/rustc_infer/src/traits/structural_impls.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/traits/structural_impls.rs b/compiler/rustc_infer/src/traits/structural_impls.rs index 1a1c2637a6f..d6500f62e78 100644 --- a/compiler/rustc_infer/src/traits/structural_impls.rs +++ b/compiler/rustc_infer/src/traits/structural_impls.rs @@ -69,7 +69,7 @@ impl<'tcx, O: TypeFoldable<'tcx>> TypeFoldable<'tcx> for traits::Obligation<'tcx } } - fn super_visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> ControlFlow<()> { + fn super_visit_with<V: TypeVisitor<'tcx>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> { self.predicate.visit_with(visitor) } } |
