File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
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 @@ -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