Use TypeVisitor::BreakTy in UnresolvedTypeFinder

This commit is contained in:
LeSeulArtichaut
2020-11-06 18:28:41 +01:00
parent 44f7d8fcf6
commit df6e87cc85
2 changed files with 4 additions and 11 deletions

View File

@@ -1,5 +1,3 @@
//! See the Book for more information.
pub use self::freshen::TypeFreshener;
pub use self::LateBoundRegionConversionTime::*;
pub use self::RegionVariableOrigin::*;
@@ -1334,9 +1332,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
where
T: TypeFoldable<'tcx>,
{
let mut r = resolve::UnresolvedTypeFinder::new(self);
value.visit_with(&mut r);
r.first_unresolved
value.visit_with(&mut resolve::UnresolvedTypeFinder::new(self)).break_value()
}
pub fn probe_const_var(