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:
parent
2ee89144e2
commit
ebb8ff9edf
2 changed files with 13 additions and 25 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue