Expect clause more
This commit is contained in:
parent
46a650f4e0
commit
2fa796a3c7
4 changed files with 7 additions and 10 deletions
|
@ -173,7 +173,7 @@ impl<'tcx> Elaboratable<'tcx> for (ty::Clause<'tcx>, Span) {
|
|||
}
|
||||
|
||||
fn child(&self, predicate: ty::Predicate<'tcx>) -> Self {
|
||||
(predicate.as_clause().unwrap(), self.1)
|
||||
(predicate.expect_clause(), self.1)
|
||||
}
|
||||
|
||||
fn child_with_derived_cause(
|
||||
|
@ -183,7 +183,7 @@ impl<'tcx> Elaboratable<'tcx> for (ty::Clause<'tcx>, Span) {
|
|||
_parent_trait_pred: ty::PolyTraitPredicate<'tcx>,
|
||||
_index: usize,
|
||||
) -> Self {
|
||||
(predicate.as_clause().unwrap(), self.1)
|
||||
(predicate.expect_clause(), self.1)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ impl<'tcx> Elaboratable<'tcx> for ty::Clause<'tcx> {
|
|||
}
|
||||
|
||||
fn child(&self, predicate: ty::Predicate<'tcx>) -> Self {
|
||||
predicate.as_clause().unwrap()
|
||||
predicate.expect_clause()
|
||||
}
|
||||
|
||||
fn child_with_derived_cause(
|
||||
|
@ -203,7 +203,7 @@ impl<'tcx> Elaboratable<'tcx> for ty::Clause<'tcx> {
|
|||
_parent_trait_pred: ty::PolyTraitPredicate<'tcx>,
|
||||
_index: usize,
|
||||
) -> Self {
|
||||
predicate.as_clause().unwrap()
|
||||
predicate.expect_clause()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue