commit 133ebe0a919aea5e188564474a7bea7ba58a2f16
parent aa9d6b57fed162be8d5d1c59ef3fb0614e504bba
Author: Autumn! <autumnull@posteo.net>
Date: Wed, 3 May 2023 14:32:44 +0000
rt: add 'slice cap smaller than initializer' abort message
Signed-off-by: Autumn! <autumnull@posteo.net>
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/rt/abort+test.ha b/rt/abort+test.ha
@@ -14,6 +14,7 @@ const reasons: [_]str = [
"out of memory", // 2
"static insert/append exceeds slice capacity", // 3
"execution reached unreachable code (compiler bug)", // 4
+ "slice allocation capacity smaller than initializer" // 5
];
export @noreturn fn abort_fixed(loc: str, i: int) void = {
diff --git a/rt/abort.ha b/rt/abort.ha
@@ -12,6 +12,7 @@ const reasons: [_]str = [
"out of memory", // 2
"static insert/append exceeds slice capacity", // 3
"execution reached unreachable code (compiler bug)", // 4
+ "slice allocation capacity smaller than initializer" // 5
];
export @noreturn fn abort_fixed(loc: str, i: int) void = {