use std.meta.eql for equality

This commit is contained in:
jaina heartles 2022-12-13 02:28:37 -08:00
parent 620608964f
commit 434b0e07d0

View file

@ -273,7 +273,7 @@ fn evaluateExpression(
return std.mem.eql(u8, lhs, rhs); return std.mem.eql(u8, lhs, rhs);
} else if (comptime std.meta.trait.isContainer(T) and @hasDecl(T, "eql")) { } else if (comptime std.meta.trait.isContainer(T) and @hasDecl(T, "eql")) {
return T.eql(lhs, rhs); return T.eql(lhs, rhs);
} else return lhs == rhs; } else return std.meta.eql(lhs, rhs);
}, },
.builtin => |call| switch (call.*) { .builtin => |call| switch (call.*) {
.isTag => |hdr| { .isTag => |hdr| {