1
Fork 0

Emit impl difference error for GenericBoundFailure too

This commit is contained in:
jackh726 2021-10-05 17:43:45 -04:00
parent 1dafe6d1c3
commit c4f9eb1e5a
5 changed files with 22 additions and 17 deletions

View file

@ -46,7 +46,9 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
}
}
}
if let RegionResolutionError::ConcreteFailure(origin, _, _) = error.clone() {
if let RegionResolutionError::ConcreteFailure(origin, _, _)
| RegionResolutionError::GenericBoundFailure(origin, _, _) = error.clone()
{
if let SubregionOrigin::CompareImplTypeObligation {
span,
item_name,