require specifier for arrayish types

This commit is contained in:
Jonathan Marler
2021-01-03 02:20:37 -07:00
committed by Andrew Kelley
parent 6a5a6386c6
commit 1480c42806
8 changed files with 71 additions and 46 deletions

View File

@@ -2400,7 +2400,7 @@ fn getAnonTypeName(self: *Module, scope: *Scope, base_token: std.zig.ast.TokenIn
else => unreachable,
};
const loc = tree.tokenLocationLoc(0, tree.token_locs[base_token]);
return std.fmt.allocPrint(self.gpa, "{}:{}:{}", .{ base_name, loc.line, loc.column });
return std.fmt.allocPrint(self.gpa, "{s}:{}:{}", .{ base_name, loc.line, loc.column });
}
fn getNextAnonNameIndex(self: *Module) usize {