Ryan Liptak 43770c0103 Fix checkAllAllocationFailures being too strict when checking arg types
Before this would fail to compile:

```
fn testFn(alloc: std.mem.Allocator, arr: []const u8) !void {
    _ = alloc;
    _ = arr;
}

test "checkAll" {
    var arr = [_]u8{ 1, 2, 3 };
    try std.testing.checkAllAllocationFailures(std.testing.allocator, testFn, .{arr[0..]});
}
```

with the error `error: Unexpected type for extra argument at index 0: expected []const u8, found *[3]u8`

By removing this strict equality check, we allow the type checking to be done during the `@field(args, arg_i_str) = @field(extra_args, field.name);` instead, which then allows for things like type coercion to work, but still will give a compile error if the types are incorrect. So, after this change, the above succeeds (because `*[3]u8` can be coerced to `[]const u8`).

The new compile error when providing an incorrect type that can't be coerced looks like this:

```
zig/lib/std/testing.zig:639:35: error: expected type '[]const u8', found '*[3]u32'
        @field(args, arg_i_str) = @field(extra_args, field.name);
                                  ^
```
2022-07-16 12:32:20 +03:00
..
2022-07-15 10:16:31 +03:00
2022-07-15 14:39:21 +03:00
2022-04-24 23:01:06 -04:00
2022-07-01 21:35:19 -07:00
2022-07-15 13:04:21 +03:00
2022-05-13 16:43:59 -04:00
2022-03-08 20:38:12 +02:00
2022-07-15 14:39:21 +03:00
2022-04-20 17:18:06 -07:00
2022-01-07 00:06:06 -05:00
2022-06-03 20:21:20 +03:00
2022-04-14 10:12:45 -07:00
2022-07-09 15:19:03 +03:00
2022-06-03 20:21:20 +03:00
2022-06-07 21:27:07 +03:00
2022-07-15 14:39:21 +03:00
2022-05-26 21:58:19 -07:00
2022-07-11 18:47:29 +03:00
2022-07-01 21:35:19 -07:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00