mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Delete unnecessary specialize_types tests
This commit is contained in:
parent
2e8ea853f7
commit
7832a7f16f
2 changed files with 5 additions and 4905 deletions
|
@ -227,14 +227,6 @@ fn lower_var<P: Push<Problem>>(
|
|||
FlatType::EmptyTuple |
|
||||
FlatType::EmptyTagUnion => None,
|
||||
},
|
||||
Content::RangedNumber(_) // RangedNumber goes in Num's type parameter slot, so monomorphize it to []
|
||||
| Content::FlexVar(_)
|
||||
| Content::RigidVar(_)
|
||||
| Content::FlexAbleVar(_, _)
|
||||
| Content::RigidAbleVar(_, _)
|
||||
| Content::RecursionVar { .. } => Content::Structure(FlatType::EmptyTagUnion),
|
||||
Content::LambdaSet(lambda_set) => Content::LambdaSet(lambda_set),
|
||||
Content::ErasedLambda => Content::ErasedLambda,
|
||||
Content::Error => Content::Error,
|
||||
*/
|
||||
},
|
||||
|
@ -269,6 +261,11 @@ fn lower_var<P: Push<Problem>>(
|
|||
// The only way we should reach this branch is in something like a `crash`.
|
||||
MonoTypeId::CRASH
|
||||
}
|
||||
Content::ErasedLambda | Content::LambdaSet(_) => {
|
||||
unreachable!(
|
||||
"This new monomorphization implementation must not do anything with lambda sets, because they'll be handled later!"
|
||||
);
|
||||
}
|
||||
content => {
|
||||
todo!("specialize this Content: {content:?}");
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue