1
Fork 0

Don't leak unnameable types in -> _ recover

This commit is contained in:
Michael Goulet 2024-04-14 11:36:37 -04:00
parent 78bc0a5656
commit b09c177743
4 changed files with 37 additions and 17 deletions

View file

@ -236,7 +236,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
}
ty::FnDef(..) | ty::Coroutine(..) | ty::Closure(..) | ty::CoroutineClosure(..) => {
bug!("Unexpected coroutine/closure type in variance computation");
bug!("Unexpected unnameable type in variance computation: {ty}");
}
ty::Ref(region, ty, mutbl) => {