1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

remove unnecessary constructor argument

This commit is contained in:
Taeer Bar-Yam 2025-10-31 16:33:02 +01:00
parent 34f780d747
commit 67be2df174
3 changed files with 4 additions and 4 deletions

View file

@ -111,7 +111,7 @@ TEST_F(ValuePrintingTests, vLambda)
auto posIdx = state.positions.add(origin, 0);
auto body = ExprInt(0);
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
Value vLambda;
vLambda.mkLambda(&env, &eLambda);
@ -500,7 +500,7 @@ TEST_F(ValuePrintingTests, ansiColorsLambda)
auto posIdx = state.positions.add(origin, 0);
auto body = ExprInt(0);
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
Value vLambda;
vLambda.mkLambda(&env, &eLambda);

View file

@ -551,7 +551,7 @@ public:
std::ranges::copy(formals.formals, formalsStart);
};
ExprLambda(std::pmr::polymorphic_allocator<char> & alloc, PosIdx pos, Symbol arg, Expr * body)
ExprLambda(PosIdx pos, Symbol arg, Expr * body)
: pos(pos)
, arg(arg)
, hasFormals(false)

View file

@ -179,7 +179,7 @@ expr: expr_function;
expr_function
: ID ':' expr_function
{ auto me = new ExprLambda(state->alloc, CUR_POS, state->symbols.create($1), $3);
{ auto me = new ExprLambda(CUR_POS, state->symbols.create($1), $3);
$$ = me;
SET_DOC_POS(me, @1);
}