Merge pull request #10742 from ziglang/ArrayHashMapEql

std: make ArrayHashMap eql function accept an additional param
This commit is contained in:
Andrew Kelley
2022-02-01 13:20:28 -05:00
committed by GitHub
8 changed files with 364 additions and 28 deletions

View File

@@ -157,8 +157,9 @@ pub const Type = extern union {
_ = self;
return @truncate(u32, t.hashShallow());
}
pub fn eql(self: @This(), a: Type, b: Type) bool {
pub fn eql(self: @This(), a: Type, b: Type, b_index: usize) bool {
_ = self;
_ = b_index;
return a.eqlShallow(b);
}
};