Skip to content

Commit 67be2df

Browse files
committed
remove unnecessary constructor argument
1 parent 34f780d commit 67be2df

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/libexpr-tests/value/print.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TEST_F(ValuePrintingTests, vLambda)
111111
auto posIdx = state.positions.add(origin, 0);
112112
auto body = ExprInt(0);
113113

114-
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
114+
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
115115

116116
Value vLambda;
117117
vLambda.mkLambda(&env, &eLambda);
@@ -500,7 +500,7 @@ TEST_F(ValuePrintingTests, ansiColorsLambda)
500500
auto posIdx = state.positions.add(origin, 0);
501501
auto body = ExprInt(0);
502502

503-
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
503+
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
504504

505505
Value vLambda;
506506
vLambda.mkLambda(&env, &eLambda);

src/libexpr/include/nix/expr/nixexpr.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public:
551551
std::ranges::copy(formals.formals, formalsStart);
552552
};
553553

554-
ExprLambda(std::pmr::polymorphic_allocator<char> & alloc, PosIdx pos, Symbol arg, Expr * body)
554+
ExprLambda(PosIdx pos, Symbol arg, Expr * body)
555555
: pos(pos)
556556
, arg(arg)
557557
, hasFormals(false)

src/libexpr/parser.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ expr: expr_function;
179179

180180
expr_function
181181
: ID ':' expr_function
182-
{ auto me = new ExprLambda(state->alloc, CUR_POS, state->symbols.create($1), $3);
182+
{ auto me = new ExprLambda(CUR_POS, state->symbols.create($1), $3);
183183
$$ = me;
184184
SET_DOC_POS(me, @1);
185185
}

0 commit comments

Comments
 (0)