mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix error message for incorrect panic handler fn signature
closes #1353
This commit is contained in:
parent
6c064cfd88
commit
3a02ba9b82
@ -3035,7 +3035,7 @@ static bool scope_is_root_decls(Scope *scope) {
|
||||
|
||||
static void wrong_panic_prototype(CodeGen *g, AstNode *proto_node, TypeTableEntry *fn_type) {
|
||||
add_node_error(g, proto_node,
|
||||
buf_sprintf("expected 'fn([]const u8, ?&builtin.StackTrace) unreachable', found '%s'",
|
||||
buf_sprintf("expected 'fn([]const u8, ?*builtin.StackTrace) noreturn', found '%s'",
|
||||
buf_ptr(&fn_type->name)));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user