From bafad892ff04a486b67d8980519391c9fd1f2ed5 Mon Sep 17 00:00:00 2001 From: g-w1 Date: Sat, 26 Dec 2020 10:18:23 -0500 Subject: [PATCH] fix tests after rebasing with upstream/master * makes each missing switch case its own error --- test/stage2/test.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/stage2/test.zig b/test/stage2/test.zig index c1fa2300f46b..9bd37c4dca89 100644 --- a/test/stage2/test.zig +++ b/test/stage2/test.zig @@ -373,7 +373,11 @@ pub fn addCases(ctx: *TestContext) !void { \\ } \\ unreachable; // because it will give error above \\} - , &[_][]const u8{":5:5: error: switch must handle all possibilities"}); + , &[_][]const u8{ + ":5:5: error: error.A not handled in switch", + ":5:5: error: error.C not handled in switch", + ":5:5: error: error.D not handled in switch", + }); case.addError( \\export fn _start() noreturn { \\ const T = error{ A, B, C, D };