apply Vexu's suggestion to use failing_allocator for now

This commit is contained in:
Jakub Konka 2022-05-26 16:55:31 +02:00
parent d1e4600675
commit 5ce9c878cf

View File

@ -36,13 +36,12 @@ fn parseFree(comptime T: type, value: T, allocator: std.mem.Allocator) void {
}
pub export fn entry() void {
const allocator = std.testing.allocator_instance.allocator();
const allocator = std.testing.failing_allocator;
_ = parse(std.StringArrayHashMap(bool), allocator) catch return;
}
// error
// backend=llvm
// target=x86_64-linux,aarch64-linux,arm-linux,x86_64-macos,aarch64-macos
//
// :11:22: error: comparison of 'void' with null
// :25:51: error: unable to resolve comptime value