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(...@@ -104,7 +104,6 @@ pub fn parse(
104 return error.InvalidCharacter;104 return error.InvalidCharacter;
105 },105 },
106 },106 },
107 else => unreachable,
108 }107 }
109 }108 }
110 unreachable;109 unreachable;
src-self-hosted/translate_c.zig-1
...@@ -2791,7 +2791,6 @@ fn transCharLiteral(...@@ -2791,7 +2791,6 @@ fn transCharLiteral(
2791 "TODO: support character literal kind {}",2791 "TODO: support character literal kind {}",
2792 .{kind},2792 .{kind},
2793 ),2793 ),
2794 else => unreachable,
2795 };2794 };
2796 if (suppress_as == .no_as) {2795 if (suppress_as == .no_as) {
2797 return maybeSuppressResult(rp, scope, result_used, int_lit_node);2796 return maybeSuppressResult(rp, scope, result_used, int_lit_node);
test/stage1/behavior/bugs/1111.zig-1
...@@ -7,6 +7,5 @@ test "issue 1111 fixed" {...@@ -7,6 +7,5 @@ test "issue 1111 fixed" {
77
8 switch (v) {8 switch (v) {
9 Foo.Bar => return,9 Foo.Bar => return,
10 else => return,
11 }10 }
12}11}