Fix no_closure build.
This commit is contained in:
parent
f56c3fe9cb
commit
53adc58f63
@ -3650,8 +3650,8 @@ fn make_curry_from_externals(fn_expr: Expr, externals: StaticVec<Ident>, pos: Po
|
|||||||
});
|
});
|
||||||
|
|
||||||
#[cfg(feature = "no_closure")]
|
#[cfg(feature = "no_closure")]
|
||||||
externals.into_iter().for_each(|(var_name, pos)| {
|
externals.into_iter().for_each(|x| {
|
||||||
args.push(Expr::Variable(Box::new(((var_name, pos), None, 0, None))));
|
args.push(Expr::Variable(Box::new((x.clone(), None, 0, None))));
|
||||||
});
|
});
|
||||||
|
|
||||||
let hash = calc_fn_hash(empty(), KEYWORD_FN_PTR_CURRY, num_externals + 1, empty());
|
let hash = calc_fn_hash(empty(), KEYWORD_FN_PTR_CURRY, num_externals + 1, empty());
|
||||||
@ -3750,7 +3750,7 @@ fn parse_anon_fn(
|
|||||||
|
|
||||||
// External variables may need to be processed in a consistent order,
|
// External variables may need to be processed in a consistent order,
|
||||||
// so extract them into a list.
|
// so extract them into a list.
|
||||||
let externals: StaticVec<_> = {
|
let externals: StaticVec<Ident> = {
|
||||||
#[cfg(not(feature = "no_closure"))]
|
#[cfg(not(feature = "no_closure"))]
|
||||||
{
|
{
|
||||||
state
|
state
|
||||||
|
Loading…
Reference in New Issue
Block a user