EvaluatedToUnknown -> EvaluatedToAmbigStackDependent, EvaluatedToRecur -> EvaluatedToErrStackDependent
This commit is contained in:
parent
f32d29837d
commit
d732c3b756
3 changed files with 14 additions and 14 deletions
|
@ -29,7 +29,7 @@ pub trait InferCtxtExt<'tcx> {
|
|||
/// - the parameter environment
|
||||
///
|
||||
/// Invokes `evaluate_obligation`, so in the event that evaluating
|
||||
/// `Ty: Trait` causes overflow, EvaluatedToRecur (or EvaluatedToUnknown)
|
||||
/// `Ty: Trait` causes overflow, EvaluatedToErrStackDependent (or EvaluatedToAmbigStackDependent)
|
||||
/// will be returned.
|
||||
fn type_implements_trait(
|
||||
&self,
|
||||
|
|
|
@ -222,8 +222,8 @@ pub enum TreatInductiveCycleAs {
|
|||
impl From<TreatInductiveCycleAs> for EvaluationResult {
|
||||
fn from(treat: TreatInductiveCycleAs) -> EvaluationResult {
|
||||
match treat {
|
||||
TreatInductiveCycleAs::Ambig => EvaluatedToUnknown,
|
||||
TreatInductiveCycleAs::Recur => EvaluatedToRecur,
|
||||
TreatInductiveCycleAs::Ambig => EvaluatedToAmbigStackDependent,
|
||||
TreatInductiveCycleAs::Recur => EvaluatedToErrStackDependent,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1231,7 +1231,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
})
|
||||
{
|
||||
debug!("evaluate_stack --> unbound argument, recursive --> giving up",);
|
||||
return Ok(EvaluatedToUnknown);
|
||||
return Ok(EvaluatedToAmbigStackDependent);
|
||||
}
|
||||
|
||||
match self.candidate_from_obligation(stack) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue