mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Refactor out name
arg from from_can
This commit is contained in:
parent
85ec1e0f72
commit
33a5f36d7c
2 changed files with 46 additions and 58 deletions
|
@ -331,7 +331,7 @@ pub fn build_expr<'a, 'ctx, 'env>(
|
|||
)
|
||||
}
|
||||
},
|
||||
AnonymousFunctionPointer(symbol, layout) => {
|
||||
FunctionPointer(symbol, layout) => {
|
||||
let fn_name = layout_ids
|
||||
.get(*symbol, layout)
|
||||
.to_symbol_string(*symbol, &env.interns);
|
||||
|
@ -344,11 +344,6 @@ pub fn build_expr<'a, 'ctx, 'env>(
|
|||
|
||||
BasicValueEnum::PointerValue(ptr)
|
||||
}
|
||||
NamedFunctionPointer(_) => {
|
||||
unreachable!(
|
||||
"Tried to build a NamedFunctionPointer that was never resolved into a CallByName."
|
||||
);
|
||||
}
|
||||
CallByPointer(sub_expr, args, _var) => {
|
||||
let mut arg_vals: Vec<BasicValueEnum> = Vec::with_capacity_in(args.len(), env.arena);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue