aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-03-05 19:26:36 +0100
committerpennae <github@quasiparticle.net>2022-04-21 21:25:17 +0200
commit90b5c0a1a67c31a3f2553fef110417e4ba1b635d (patch)
tree0297b37a3707da563d0c19e9c5e1f68506d48f01 /src/libexpr/nixexpr.cc
parent3b9d31b88c95e591c28f3a7423f83c40b9788781 (diff)
turn primop names into strings
we don't *need* symbols here. the only advantage they have over strings is making call-counting slightly faster, but that's a diagnostic feature and thus needn't be optimized. this also fixes a move bug that previously didn't show up: PrimOp structs were accessed after being moved from, which technically invalidates them. previously the names remained valid because Symbol copies on move, but strings are invalidated. we now copy the entire primop struct instead of moving since primop registration happen once and are not performance-sensitive.
Diffstat (limited to 'src/libexpr/nixexpr.cc')
0 files changed, 0 insertions, 0 deletions