commit d86fd9ef552cd8fa12207dfdfb9e6818a6342dce
parent 7a76e39ea69965791db3991b3b9a6bdf4bbf2f2b
Author: Sebastian <sebastian@sebsite.pw>
Date: Sun, 10 Mar 2024 19:47:30 -0400
debug: fix inexhaustive match
export fn main() void = {
abort(); // aaaaaaaaaaaaaaa... (line is over 1024 chars)
};
Running the above program will result in an infinite backtrace loop (and
eventually stack overflow). Fixing the inexhaustive match fixes this.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debug/backtrace.ha b/debug/backtrace.ha
@@ -114,7 +114,7 @@ fn printframe(
match (bufio::scan_line(&scan)) {
case let s: const str =>
context = s;
- case io::EOF =>
+ case =>
printframe_with_symbol(&sym, name, path, (line, col), pc);
return;
};