caller-context comptime preservation
This commit is contained in:
@@ -27,13 +27,7 @@ init func($V type, $N usize, $entries [N]Pair(V)) StaticStringMap(V) {
|
||||
compile_error!("static string map key is too long")
|
||||
}
|
||||
for (usize(0))..i |prior| {
|
||||
other :: entries[prior].0
|
||||
equal bool = entry.0.len == other.len
|
||||
byte_index usize = 0
|
||||
while equal and byte_index < entry.0.len : byte_index += 1 {
|
||||
equal = entry.0[byte_index] == other[byte_index]
|
||||
}
|
||||
if equal {
|
||||
if mem.eql(u8, entry.0, entries[prior].0) {
|
||||
compile_error!("duplicate static string map key")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user