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/infer/resolve.rs | |
| parent | 30e49a9ead550551e879af64ba91a0316da1c422 (diff) | |
| download | rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.tar.gz rust-e0f3119103b79df190324e8d72a5827e4d0cd52d.zip | |
Introduce `TypeVisitor::BreakTy`
Diffstat (limited to 'compiler/rustc_infer/src/infer/resolve.rs')
| -rw-r--r-- | compiler/rustc_infer/src/infer/resolve.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/resolve.rs b/compiler/rustc_infer/src/infer/resolve.rs index fe4ba5aa4e8..e2531dc7ad9 100644 --- a/compiler/rustc_infer/src/infer/resolve.rs +++ b/compiler/rustc_infer/src/infer/resolve.rs @@ -123,7 +123,7 @@ impl<'a, 'tcx> UnresolvedTypeFinder<'a, 'tcx> { } impl<'a, 'tcx> TypeVisitor<'tcx> for UnresolvedTypeFinder<'a, 'tcx> { - fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<()> { + fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy> { let t = self.infcx.shallow_resolve(t); if t.has_infer_types() { if let ty::Infer(infer_ty) = *t.kind() { |
