remove E0280 and ICE instead
This commit is contained in:
parent
3254bef9a7
commit
f75eb24f4f
4 changed files with 52 additions and 49 deletions
|
@ -1102,15 +1102,19 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||
}
|
||||
|
||||
ty::PredicateKind::Clause(ty::Clause::RegionOutlives(..))
|
||||
| ty::PredicateKind::Clause(ty::Clause::Projection(..))
|
||||
| ty::PredicateKind::Clause(ty::Clause::TypeOutlives(..)) => {
|
||||
let predicate = self.resolve_vars_if_possible(obligation.predicate);
|
||||
struct_span_err!(
|
||||
self.tcx.sess,
|
||||
span_bug!(
|
||||
span,
|
||||
E0280,
|
||||
"the requirement `{}` is not satisfied",
|
||||
predicate
|
||||
"outlives clauses should not error outside borrowck. obligation: `{:?}`",
|
||||
obligation
|
||||
)
|
||||
}
|
||||
|
||||
ty::PredicateKind::Clause(ty::Clause::Projection(..)) => {
|
||||
span_bug!(
|
||||
span,
|
||||
"projection clauses should be implied from elsewhere. obligation: `{:?}`",
|
||||
obligation
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue