@@ -575,11 +575,11 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
575
575
// we can be sure it does not.
576
576
577
577
/// Evaluates whether the obligation `obligation` can be satisfied (by any means).
578
- pub fn evaluate_obligation ( & mut self ,
579
- obligation : & PredicateObligation < ' tcx > )
580
- -> bool
578
+ pub fn predicate_may_hold_fatal ( & mut self ,
579
+ obligation : & PredicateObligation < ' tcx > )
580
+ -> bool
581
581
{
582
- debug ! ( "evaluate_obligation ({:?})" ,
582
+ debug ! ( "predicate_may_hold_fatal ({:?})" ,
583
583
obligation) ;
584
584
585
585
match self . evaluate_obligation_recursively ( obligation) {
@@ -588,22 +588,6 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
588
588
}
589
589
}
590
590
591
- /// Evaluates whether the obligation `obligation` can be satisfied,
592
- /// and returns `false` if not certain. However, this is not entirely
593
- /// accurate if inference variables are involved.
594
- pub fn evaluate_obligation_conservatively ( & mut self ,
595
- obligation : & PredicateObligation < ' tcx > )
596
- -> bool
597
- {
598
- debug ! ( "evaluate_obligation_conservatively({:?})" ,
599
- obligation) ;
600
-
601
- match self . evaluate_obligation_recursively ( obligation) {
602
- Ok ( result) => result == EvaluatedToOk ,
603
- Err ( OverflowError ( o) ) => self . infcx ( ) . report_overflow_error ( & o, true )
604
- }
605
- }
606
-
607
591
/// Evaluates whether the obligation `obligation` can be satisfied and returns
608
592
/// an `EvaluationResult`.
609
593
pub fn evaluate_obligation_recursively ( & mut self ,
0 commit comments