Make ClosureOutlivesRequirement not rely on an unresolved type
This commit is contained in:
@@ -185,7 +185,7 @@ impl<'tcx> ObligationCause<'tcx> {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn to_constraint_category(&self) -> ConstraintCategory<'tcx> {
|
||||
pub fn to_constraint_category(&self) -> ConstraintCategory {
|
||||
match self.code() {
|
||||
MatchImpl(cause, _) => cause.to_constraint_category(),
|
||||
AscribeUserTypeProvePredicate(predicate_span) => {
|
||||
|
||||
Reference in New Issue
Block a user