Commit 40132af3ad

Mateusz Poliwczak <mpoliwczak34@gmail.com>
2025-11-06 17:11:48
std.zig.AstRlAnnotate: remove pointless switch
This switch has the same cases as the outer one.
1 parent 4937aef
Changed files (1)
lib
lib/std/zig/AstRlAnnotate.zig
@@ -340,14 +340,7 @@ fn expr(astrl: *AstRlAnnotate, node: Ast.Node.Index, block: ?*Block, ri: ResultI
             for (full.ast.params) |param_node| {
                 _ = try astrl.expr(param_node, block, ResultInfo.type_only);
             }
-            return switch (tree.nodeTag(node)) {
-                .call_one,
-                .call_one_comma,
-                .call,
-                .call_comma,
-                => false, // TODO: once function calls are passed result locations this will change
-                else => unreachable,
-            };
+            return false; // TODO: once function calls are passed result locations this will change
         },
 
         .@"return" => {