diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-12-18 19:33:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-18 19:33:15 +0200 |
| commit | 40ed6ae8469fd599f0524d294f38365c3bb8a825 (patch) | |
| tree | 6e37bbb58fef1ca3aae06e65e179dfa017cb7929 /lib/std/testing.zig | |
| parent | e9e804edc899d8392c9f93a19b92be603c26df79 (diff) | |
| parent | 2a5e1426aa9469fadb78e837d0100d689213b034 (diff) | |
| download | zig-40ed6ae8469fd599f0524d294f38365c3bb8a825.tar.gz zig-40ed6ae8469fd599f0524d294f38365c3bb8a825.zip | |
Merge pull request #13930 from r00ster91/renamings
std.builtin: renamings
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 72f3ba2d9e..53877967c9 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -802,7 +802,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime const ArgsTuple = std.meta.ArgsTuple(@TypeOf(test_fn)); const fn_args_fields = @typeInfo(ArgsTuple).Struct.fields; - if (fn_args_fields.len == 0 or fn_args_fields[0].field_type != std.mem.Allocator) { + if (fn_args_fields.len == 0 or fn_args_fields[0].type != std.mem.Allocator) { @compileError("The provided function must have an " ++ @typeName(std.mem.Allocator) ++ " as its first argument"); } const expected_args_tuple_len = fn_args_fields.len - 1; |
