Update to zig master

Redundant comptime, unused locals, unused function params, unused captures

As issue with @"type" resolving to the keyword type
This commit is contained in:
Lee Cannon
2021-06-24 11:38:01 +01:00
parent bcfd7c6392
commit ac4b198869
8 changed files with 81 additions and 62 deletions

View File

@@ -39,6 +39,8 @@ pub fn labelReferences(
context: anytype,
comptime handler: anytype,
) !void {
_ = arena;
std.debug.assert(decl.decl.* == .label_decl);
const handle = decl.handle;
const tree = handle.tree;
@@ -529,7 +531,7 @@ pub fn symbolReferences(
}
switch (decl_handle.decl.*) {
.ast_node => |decl_node| {
.ast_node => {
try symbolReferencesInternal(arena, store, .{ .node = 0, .handle = curr_handle }, decl_handle, encoding, context, handler);
var imports = std.ArrayList(*DocumentStore.Handle).init(&arena.allocator);
@@ -600,6 +602,7 @@ pub fn symbolReferences(
log.warn("Could not find param decl's function", .{});
return;
};
_ = fn_node;
},
.pointer_payload, .switch_payload, .array_payload, .array_index => {
try symbolReferencesInternal(arena, store, .{ .node = 0, .handle = curr_handle }, decl_handle, encoding, context, handler);