@@ -180,8 +180,8 @@ pub enum SelectionCandidate<'tcx> {
180180///
181181/// The evaluation results are ordered:
182182/// - `EvaluatedToOk` implies `EvaluatedToOkModuloRegions`
183- /// implies `EvaluatedToAmbig` implies `EvaluatedToUnknown `
184- /// - `EvaluatedToErr` implies `EvaluatedToRecur `
183+ /// implies `EvaluatedToAmbig` implies `EvaluatedToAmbigStackDependent `
184+ /// - `EvaluatedToErr` implies `EvaluatedToErrStackDependent `
185185/// - the "union" of evaluation results is equal to their maximum -
186186/// all the "potential success" candidates can potentially succeed,
187187/// so they are noops when unioned with a definite error, and within
@@ -199,16 +199,16 @@ pub enum EvaluationResult {
199199 /// Evaluation is known to be ambiguous -- it *might* hold for some
200200 /// assignment of inference variables, but it might not.
201201 ///
202- /// While this has the same meaning as `EvaluatedToUnknown ` -- we can't
202+ /// While this has the same meaning as `EvaluatedToAmbigStackDependent ` -- we can't
203203 /// know whether this obligation holds or not -- it is the result we
204204 /// would get with an empty stack, and therefore is cacheable.
205205 EvaluatedToAmbig ,
206206 /// Evaluation failed because of recursion involving inference
207207 /// variables. We are somewhat imprecise there, so we don't actually
208208 /// know the real result.
209209 ///
210- /// This can't be trivially cached for the same reason as `EvaluatedToRecur `.
211- EvaluatedToUnknown ,
210+ /// This can't be trivially cached for the same reason as `EvaluatedToErrStackDependent `.
211+ EvaluatedToAmbigStackDependent ,
212212 /// Evaluation failed because we encountered an obligation we are already
213213 /// trying to prove on this branch.
214214 ///
@@ -247,12 +247,12 @@ pub enum EvaluationResult {
247247 /// does not hold, because of the bound (which can indeed be satisfied
248248 /// by `SomeUnsizedType` from another crate).
249249 //
250- // FIXME: when an `EvaluatedToRecur ` goes past its parent root, we
250+ // FIXME: when an `EvaluatedToErrStackDependent ` goes past its parent root, we
251251 // ought to convert it to an `EvaluatedToErr`, because we know
252252 // there definitely isn't a proof tree for that obligation. Not
253253 // doing so is still sound -- there isn't any proof tree, so the
254254 // branch still can't be a part of a minimal one -- but does not re-enable caching.
255- EvaluatedToRecur ,
255+ EvaluatedToErrStackDependent ,
256256 /// Evaluation failed.
257257 EvaluatedToErr ,
258258}
@@ -276,15 +276,15 @@ impl EvaluationResult {
276276 | EvaluatedToOk
277277 | EvaluatedToOkModuloRegions
278278 | EvaluatedToAmbig
279- | EvaluatedToUnknown => true ,
279+ | EvaluatedToAmbigStackDependent => true ,
280280
281- EvaluatedToErr | EvaluatedToRecur => false ,
281+ EvaluatedToErr | EvaluatedToErrStackDependent => false ,
282282 }
283283 }
284284
285285 pub fn is_stack_dependent ( self ) -> bool {
286286 match self {
287- EvaluatedToUnknown | EvaluatedToRecur => true ,
287+ EvaluatedToAmbigStackDependent | EvaluatedToErrStackDependent => true ,
288288
289289 EvaluatedToOkModuloOpaqueTypes
290290 | EvaluatedToOk
0 commit comments