Skip to content

Commit 67e31c5

Browse files
committed
fix compile errors
1 parent 56b7655 commit 67e31c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/compiler/aro/aro/Preprocessor.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ fn expandFuncMacro(
17451745
}
17461746
if (!pp.comp.langopts.standard.atLeast(.c23)) break :res not_found;
17471747

1748-
const attrs = std.StaticStringMap([]const u8).initComptime(.{
1748+
const attrs = comptime std.StaticStringMap([]const u8).initComptime(.{
17491749
.{ "deprecated", "201904L\n" },
17501750
.{ "fallthrough", "201904L\n" },
17511751
.{ "maybe_unused", "201904L\n" },

lib/std/http/Client.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ pub const RequestOptions = struct {
15701570
};
15711571

15721572
fn validateUri(uri: Uri, arena: Allocator) !struct { Connection.Protocol, Uri } {
1573-
const protocol_map = std.StaticStringMap(Connection.Protocol).initComptime(.{
1573+
const protocol_map = comptime std.StaticStringMap(Connection.Protocol).initComptime(.{
15741574
.{ "http", .plain },
15751575
.{ "ws", .plain },
15761576
.{ "https", .tls },

lib/std/static_string_map.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn StaticStringMapAdvanced(
164164
const testing = std.testing;
165165

166166
test "comptime only value" {
167-
const map = StaticStringMap(type).initComptime(.{
167+
const map = comptime StaticStringMap(type).initComptime(.{
168168
.{ "a", struct {
169169
pub const foo = 1;
170170
} },
@@ -183,7 +183,7 @@ test "comptime only value" {
183183
}
184184

185185
test "get/has with edge cases" {
186-
const map = StaticStringMap(u32).initComptime(&.{
186+
const map = comptime StaticStringMap(u32).initComptime(&.{
187187
.{ "a", 0 },
188188
.{ "ab", 3 },
189189
.{ "abc", 0 },

0 commit comments

Comments
 (0)