1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix failing tests-sanitize-address-clang step for vlib/toml/tests/spaced_keys_test.v

This commit is contained in:
Delyan Angelov 2021-12-11 19:03:47 +02:00
parent b3287f8159
commit cde0cbd5ad
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -928,8 +928,7 @@ pub fn (mut p Parser) double_array_of_tables(mut table map[string]ast.Value) ? {
nm = &(table[first.str()] as map[string]ast.Value) nm = &(table[first.str()] as map[string]ast.Value)
} else { } else {
util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.') util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'implicit allocation of map for `$first` in dotted key `$dotted_key`.')
new := map[string]ast.Value{} nm = &map[string]ast.Value{}
nm = &new
// We register this implicit allocation as *explicit* to be able to catch // We register this implicit allocation as *explicit* to be able to catch
// special cases like: // special cases like:
// https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml // https://github.com/BurntSushi/toml-test/blob/576db852/tests/invalid/table/array-implicit.toml