Set the default `BreakTy` to `!`

This commit is contained in:
LeSeulArtichaut 2020-11-14 21:46:39 +01:00
parent cbb6b1c338
commit 1b55cc79cc
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,8 @@ impl<'a, 'tcx> mir::visit::Visitor<'tcx> for PossibleBorrowerVisitor<'a, 'tcx> {
struct ContainsRegion;
impl TypeVisitor<'_> for ContainsRegion {
type BreakTy = ();
fn visit_region(&mut self, _: ty::Region<'_>) -> ControlFlow<Self::BreakTy> {
ControlFlow::BREAK
}