authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-18 20:04:49+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-06-18 20:04:49+03:00
log8f9b31af926e0635a82c30d0eb7b2942f78932e5
tree40fe81a159b00e37e44582da88dd72318f980046
parent33cf6ef621114daad63d14067b6ff374e664d410

value: handle slices in canMutateComptimeVarState


2 files changed, 1 insertions(+), 1 deletions(-)

lib/std/mem.zig-1
......@@ -2080,7 +2080,6 @@ fn testReadIntImpl() !void {
20802080}
20812081
20822082test "writeIntSlice" {
2083 if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO
20842083 try testWriteIntImpl();
20852084 comptime try testWriteIntImpl();
20862085}
src/value.zig+1
......@@ -2414,6 +2414,7 @@ pub const Value = extern union {
24142414 return false;
24152415 },
24162416 .@"union" => return val.cast(Payload.Union).?.data.val.canMutateComptimeVarState(),
2417 .slice => return val.castTag(.slice).?.data.ptr.canMutateComptimeVarState(),
24172418 else => return false,
24182419 }
24192420 }