@@ -54,7 +54,7 @@ struct ObligationStorage<'db> {
5454 /// Obligations which resulted in an overflow in fulfillment itself.
5555 ///
5656 /// We cannot eagerly return these as error so we instead store them here
57- /// to avoid recomputing them each time `select_where_possible ` is called.
57+ /// to avoid recomputing them each time `try_evaluate_obligations ` is called.
5858 /// This also allows us to return the correct `FulfillmentError` for them.
5959 overflowed : Vec < PredicateObligation < ' db > > ,
6060 pending : PendingObligations < ' db > ,
@@ -95,7 +95,7 @@ impl<'db> ObligationStorage<'db> {
9595 // IMPORTANT: we must not use solve any inference variables in the obligations
9696 // as this is all happening inside of a probe. We use a probe to make sure
9797 // we get all obligations involved in the overflow. We pretty much check: if
98- // we were to do another step of `select_where_possible `, which goals would
98+ // we were to do another step of `try_evaluate_obligations `, which goals would
9999 // change.
100100 // FIXME: <https://github.com/Gankra/thin-vec/pull/66> is merged, this can be removed.
101101 self . overflowed . extend (
@@ -131,7 +131,7 @@ impl<'db> FulfillmentCtxt<'db> {
131131 infcx : & InferCtxt < ' db > ,
132132 obligation : PredicateObligation < ' db > ,
133133 ) {
134- // FIXME: See the comment in `select_where_possible ()`.
134+ // FIXME: See the comment in `try_evaluate_obligations ()`.
135135 // assert_eq!(self.usable_in_snapshot, infcx.num_open_snapshots());
136136 self . obligations . register ( obligation, None ) ;
137137 }
@@ -141,7 +141,7 @@ impl<'db> FulfillmentCtxt<'db> {
141141 infcx : & InferCtxt < ' db > ,
142142 obligations : impl IntoIterator < Item = PredicateObligation < ' db > > ,
143143 ) {
144- // FIXME: See the comment in `select_where_possible ()`.
144+ // FIXME: See the comment in `try_evaluate_obligations ()`.
145145 // assert_eq!(self.usable_in_snapshot, infcx.num_open_snapshots());
146146 obligations. into_iter ( ) . for_each ( |obligation| self . obligations . register ( obligation, None ) ) ;
147147 }
@@ -158,7 +158,7 @@ impl<'db> FulfillmentCtxt<'db> {
158158 . collect ( )
159159 }
160160
161- pub ( crate ) fn select_where_possible (
161+ pub ( crate ) fn try_evaluate_obligations (
162162 & mut self ,
163163 infcx : & InferCtxt < ' db > ,
164164 ) -> Vec < NextSolverError < ' db > > {
@@ -223,11 +223,11 @@ impl<'db> FulfillmentCtxt<'db> {
223223 errors
224224 }
225225
226- pub ( crate ) fn select_all_or_error (
226+ pub ( crate ) fn evaluate_obligations_error_on_ambiguity (
227227 & mut self ,
228228 infcx : & InferCtxt < ' db > ,
229229 ) -> Vec < NextSolverError < ' db > > {
230- let errors = self . select_where_possible ( infcx) ;
230+ let errors = self . try_evaluate_obligations ( infcx) ;
231231 if !errors. is_empty ( ) {
232232 return errors;
233233 }
0 commit comments