remove diverging type variables from fn check
The comment seems incorrect. Testing revealed that the examples in question still work (as well as some variants) even without the special casing here.
This commit is contained in:
committed by
Mark Rousskov
parent
2ee89144e2
commit
ebb8ff9edf
@@ -129,7 +129,11 @@ pub enum TypeVariableOriginKind {
|
||||
SubstitutionPlaceholder,
|
||||
AutoDeref,
|
||||
AdjustmentType,
|
||||
DivergingFn,
|
||||
|
||||
/// In type check, when we are type checking a function that
|
||||
/// returns `-> dyn Foo`, we substitute a type variable for the
|
||||
/// return type for diagnostic purposes.
|
||||
DynReturnFn,
|
||||
LatticeVariable,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user