Delete unnecessary specialize_types tests

This commit is contained in:
Richard Feldman 2024-11-17 00:37:07 -05:00
parent 2e8ea853f7
commit 7832a7f16f
No known key found for this signature in database
GPG key ID: DAC334802F365236
2 changed files with 5 additions and 4905 deletions

View file

@ -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