File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1745,7 +1745,7 @@ fn expandFuncMacro(
1745
1745
}
1746
1746
if (! pp .comp .langopts .standard .atLeast (.c23 )) break :res not_found ;
1747
1747
1748
- const attrs = std .StaticStringMap ([]const u8 ).initComptime (.{
1748
+ const attrs = comptime std .StaticStringMap ([]const u8 ).initComptime (.{
1749
1749
.{ "deprecated" , "201904L\n " },
1750
1750
.{ "fallthrough" , "201904L\n " },
1751
1751
.{ "maybe_unused" , "201904L\n " },
Original file line number Diff line number Diff line change @@ -1570,7 +1570,7 @@ pub const RequestOptions = struct {
1570
1570
};
1571
1571
1572
1572
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 (.{
1574
1574
.{ "http" , .plain },
1575
1575
.{ "ws" , .plain },
1576
1576
.{ "https" , .tls },
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ pub fn StaticStringMapAdvanced(
164
164
const testing = std .testing ;
165
165
166
166
test "comptime only value" {
167
- const map = StaticStringMap (type ).initComptime (.{
167
+ const map = comptime StaticStringMap (type ).initComptime (.{
168
168
.{ "a" , struct {
169
169
pub const foo = 1 ;
170
170
} },
@@ -183,7 +183,7 @@ test "comptime only value" {
183
183
}
184
184
185
185
test "get/has with edge cases" {
186
- const map = StaticStringMap (u32 ).initComptime (&.{
186
+ const map = comptime StaticStringMap (u32 ).initComptime (&.{
187
187
.{ "a" , 0 },
188
188
.{ "ab" , 3 },
189
189
.{ "abc" , 0 },
You can’t perform that action at this time.
0 commit comments