Migrate remaining exits to FATAL_*_ERROR calls (#704)

Adds FATAL for things that are most likely programming errors in executable_semantics.
This commit is contained in:
Jon Meow
2021-08-06 13:06:25 -07:00
committed by GitHub
parent 5749413b28
commit 2e9e4f4cb3
23 changed files with 99 additions and 150 deletions
@@ -1,2 +1,2 @@
RUNTIME ERROR: 12: : undefined behavior: access to dead value 1
RUNTIME ERROR: 12: undefined behavior: access to dead value 1
EXIT CODE: 255
+1 -1
View File
@@ -1,2 +1,2 @@
ERROR: 5: positional members must come before named members
PROGRAM ERROR: 5: positional members must come before named members
EXIT CODE: 255
@@ -1,2 +1,2 @@
10: error, could not deduce type argument for type parameter T
COMPILATION ERROR: 10: could not deduce type argument for type parameter T
EXIT CODE: 255
+1 -1
View File
@@ -1,2 +1,2 @@
RUNTIME ERROR: 8: : could not find `y`
RUNTIME ERROR: 8: could not find `y`
EXIT CODE: 255
+2 -2
View File
@@ -1,2 +1,2 @@
1.1: invalid character '\xFE' in source file.
EXIT CODE: 1
COMPILATION ERROR: 1: invalid character '\xFE' in source file.
EXIT CODE: 255
+1 -1
View File
@@ -1,2 +1,2 @@
executable_semantics/testdata/pattern_variable_fail.carbon:7: syntax error, unexpected :
COMPILATION ERROR: 7: syntax error, unexpected :
EXIT CODE: 255
+1 -1
View File
@@ -1,2 +1,2 @@
ERROR: 6: positional members must come before named members
PROGRAM ERROR: 6: positional members must come before named members
EXIT CODE: 255