diff options
| author | Carl Åstholm <carl@astholm.se> | 2023-10-07 21:53:10 +0200 |
|---|---|---|
| committer | Carl Åstholm <carl@astholm.se> | 2024-01-03 21:20:48 +0100 |
| commit | e5994f5f573a51de4e604824355cac28b5ab4eba (patch) | |
| tree | 750920f64a1c75bf07a521d1ad820c6b8be37946 /lib/std/BitStack.zig | |
| parent | 9a56228c2b90d94d01bb76784c77fdec5710cf0a (diff) | |
| download | zig-e5994f5f573a51de4e604824355cac28b5ab4eba.tar.gz zig-e5994f5f573a51de4e604824355cac28b5ab4eba.zip | |
Update `std.testing.expectEqual` and friends to use peer type resolution
This commit changes the type of the second parameter to `anytype`, which should make it easier to pass literals to these functions. This change shouldn't *silently* break existing code (the assertions themselves should retain the same behavior as before) but it may result in some new compile errors when struct/union/array literals or builtins like `@bitCast` are used for the second argument. These compile errors can be fixed by explicitly coercing these expressions to the correct type using `@as`.
Diffstat (limited to 'lib/std/BitStack.zig')
0 files changed, 0 insertions, 0 deletions
