mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
chalk
This commit is contained in:
@@ -126,9 +126,8 @@ fn lower_into(
|
||||
| ty::Predicate::ObjectSafe(..)
|
||||
| ty::Predicate::ClosureKind(..)
|
||||
| ty::Predicate::Subtype(..)
|
||||
| ty::Predicate::ConstEvaluatable(..) => {
|
||||
bug!("unexpected predicate {}", predicate)
|
||||
}
|
||||
| ty::Predicate::ConstEvaluatable(..)
|
||||
| ty::Predicate::ConstEquate(..) => bug!("unexpected predicate {}", predicate),
|
||||
}
|
||||
}
|
||||
ChalkEnvironmentClause::TypeFromEnv(ty) => Some(
|
||||
@@ -192,9 +191,8 @@ fn lower_into(self, interner: &RustInterner<'tcx>) -> chalk_ir::GoalData<RustInt
|
||||
Predicate::ObjectSafe(..)
|
||||
| Predicate::ClosureKind(..)
|
||||
| Predicate::Subtype(..)
|
||||
| Predicate::ConstEvaluatable(..) => {
|
||||
chalk_ir::GoalData::All(chalk_ir::Goals::new(interner))
|
||||
}
|
||||
| Predicate::ConstEvaluatable(..)
|
||||
| Predicate::ConstEquate(..) => chalk_ir::GoalData::All(chalk_ir::Goals::new(interner)),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -459,7 +457,8 @@ fn lower_into(
|
||||
Predicate::ObjectSafe(..)
|
||||
| Predicate::ClosureKind(..)
|
||||
| Predicate::Subtype(..)
|
||||
| Predicate::ConstEvaluatable(..) => bug!("unexpected predicate {}", &self),
|
||||
| Predicate::ConstEvaluatable(..)
|
||||
| Predicate::ConstEquate(..) => bug!("unexpected predicate {}", &self),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user