aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>2023-11-05 13:36:06 +0300
committerGitHub <noreply@github.com>2023-11-05 12:36:06 +0200
commite9a6197a8ea38c228e2683d82cfbdbad8e7d912a (patch)
treea35378edac7d399d7752e987b3cd55806e391666 /src
parent33644546a0c17e48f0a3f7b59d9bd0a749666173 (diff)
downloadzig-e9a6197a8ea38c228e2683d82cfbdbad8e7d912a.tar.gz
zig-e9a6197a8ea38c228e2683d82cfbdbad8e7d912a.zip
Sema: fix error notes with wrong extern type
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index a90e55550b..4f557d33ac 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -25573,7 +25573,7 @@ fn explainWhyTypeIsNotExtern(
try mod.errNoteNonLazy(src_loc, msg, "pointer to comptime-only type '{}'", .{pointee_ty.fmt(sema.mod)});
try sema.explainWhyTypeIsComptime(msg, src_loc, ty);
}
- try sema.explainWhyTypeIsNotExtern(msg, src_loc, pointee_ty, position);
+ try sema.explainWhyTypeIsNotExtern(msg, src_loc, pointee_ty, .other);
}
},
.Void => try mod.errNoteNonLazy(src_loc, msg, "'void' is a zero bit type; for C 'void' use 'anyopaque'", .{}),