authorgravatar for mpoliwczak34@gmail.comMateusz Poliwczak <mpoliwczak34@gmail.com> 2025-11-06 17:11:48+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-11-06 23:57:16+00:00
log40132af3ad8e3c3eb74be935393a4c45830c3861
tree64d888344689ba3eb7c3e24e09382ac99a391692
parent4937aeff8448a512f5b305ac1c3f9c35354b5659

std.zig.AstRlAnnotate: remove pointless switch

This switch has the same cases as the outer one.

1 files changed, 1 insertions(+), 8 deletions(-)

lib/std/zig/AstRlAnnotate.zig+1-8
...@@ -340,14 +340,7 @@ fn expr(astrl: *AstRlAnnotate, node: Ast.Node.Index, block: ?*Block, ri: ResultI...@@ -340,14 +340,7 @@ fn expr(astrl: *AstRlAnnotate, node: Ast.Node.Index, block: ?*Block, ri: ResultI
340 for (full.ast.params) |param_node| {340 for (full.ast.params) |param_node| {
341 _ = try astrl.expr(param_node, block, ResultInfo.type_only);341 _ = try astrl.expr(param_node, block, ResultInfo.type_only);
342 }342 }
343 return switch (tree.nodeTag(node)) {343 return false; // TODO: once function calls are passed result locations this will change
344 .call_one,
345 .call_one_comma,
346 .call,
347 .call_comma,
348 => false, // TODO: once function calls are passed result locations this will change
349 else => unreachable,
350 };
351 },344 },
352345
353 .@"return" => {346 .@"return" => {