Don't leak unnameable types in -> _ recover
This commit is contained in:
parent
78bc0a5656
commit
b09c177743
4 changed files with 37 additions and 17 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue