mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Remove LambdaName::from_non_multimorphic
This commit is contained in:
parent
9714376b64
commit
1903ce4db9
3 changed files with 16 additions and 38 deletions
|
@ -915,11 +915,6 @@ impl LambdaName {
|
|||
matches!(self.0, LambdaNameInner::Multimorphic { .. })
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn from_non_multimorphic(name: Symbol) -> Self {
|
||||
Self(LambdaNameInner::Name(name))
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn thunk(name: Symbol) -> Self {
|
||||
Self(LambdaNameInner::Name(name))
|
||||
|
@ -3436,7 +3431,7 @@ mod test {
|
|||
#[test]
|
||||
fn width_and_alignment_union_empty_struct() {
|
||||
let lambda_set = LambdaSet {
|
||||
set: &[(LambdaName::from_non_multimorphic(Symbol::LIST_MAP), &[])],
|
||||
set: &[(LambdaName::only_receiver(Symbol::LIST_MAP), &[])],
|
||||
representation: &Layout::UNIT,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue