aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Condition.zig
diff options
context:
space:
mode:
authorCarl Åstholm <carl@astholm.se>2023-10-07 21:53:10 +0200
committerCarl Åstholm <carl@astholm.se>2024-01-03 21:20:48 +0100
commite5994f5f573a51de4e604824355cac28b5ab4eba (patch)
tree750920f64a1c75bf07a521d1ad820c6b8be37946 /lib/std/Thread/Condition.zig
parent9a56228c2b90d94d01bb76784c77fdec5710cf0a (diff)
downloadzig-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/Thread/Condition.zig')
0 files changed, 0 insertions, 0 deletions