authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2020-06-24 19:02:31+02:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2020-06-24 19:03:32+02:00
loge60be3082499ff19078699675044b993f6921ad0
treee97d1a97318e3feee2e288a44ad21e7deafde51d
parentfd50696359ec86abd238993930e979433a31db9a

Remove unreachable else prongs


3 files changed, 0 insertions(+), 3 deletions(-)

lib/std/zig/string_literal.zig-1
......@@ -104,7 +104,6 @@ pub fn parse(
104104 return error.InvalidCharacter;
105105 },
106106 },
107 else => unreachable,
108107 }
109108 }
110109 unreachable;
src-self-hosted/translate_c.zig-1
......@@ -2791,7 +2791,6 @@ fn transCharLiteral(
27912791 "TODO: support character literal kind {}",
27922792 .{kind},
27932793 ),
2794 else => unreachable,
27952794 };
27962795 if (suppress_as == .no_as) {
27972796 return maybeSuppressResult(rp, scope, result_used, int_lit_node);
test/stage1/behavior/bugs/1111.zig-1
......@@ -7,6 +7,5 @@ test "issue 1111 fixed" {
77
88 switch (v) {
99 Foo.Bar => return,
10 else => return,
1110 }
1211}