| ... | ... | @@ -437,7 +437,7 @@ pub fn eql(a: var, b: @TypeOf(a)) bool { |
| 437 | 437 | }, |
| 438 | 438 | .Pointer => |info| { |
| 439 | 439 | return switch (info.size) { |
| 440 | | .One, .Many, .C, => a == b, |
| 440 | .One, .Many, .C => a == b, |
| 441 | 441 | .Slice => a.ptr == b.ptr and a.len == b.len, |
| 442 | 442 | }; |
| 443 | 443 | }, |
| ... | ... | @@ -559,7 +559,9 @@ pub fn fieldIndex(comptime T: type, comptime name: []const u8) ?comptime_int { |
| 559 | 559 | /// Given a type, reference all the declarations inside, so that the semantic analyzer sees them. |
| 560 | 560 | pub fn refAllDecls(comptime T: type) void { |
| 561 | 561 | if (!builtin.is_test) return; |
| 562 | | _ = declarations(T); |
| 562 | inline for (declarations(T)) |decl| { |
| 563 | _ = decl; |
| 564 | } |
| 563 | 565 | } |
| 564 | 566 | |
| 565 | 567 | /// Returns a slice of pointers to public declarations of a namespace. |