Skip to content

Commit

Permalink
Merge pull request #2950 from TWal/twal_change_fatal_errors
Browse files Browse the repository at this point in the history
Allow '@' on fatal errors in --warn_error
  • Loading branch information
mtzguido authored May 31, 2023
2 parents a374a3e + c6d496a commit 8c96e5b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
38 changes: 28 additions & 10 deletions ocaml/fstar-lib/generated/FStar_Errors.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/basic/FStar.Errors.fst
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,14 @@ let update_flags (l:list (error_flag * string))
raise (Invalid_warn_error_setting
(BU.format1 "cannot silence error %s"
(BU.string_of_int i)))
| (_, CFatal) ->
| (CSilent, CFatal)
| (CWarning, CFatal)
| (CError, CFatal) ->
raise (Invalid_warn_error_setting
(BU.format1 "cannot change the error level of fatal error %s"
(BU.string_of_int i)))
| (CAlwaysError, CFatal) ->
CFatal
| _ -> flag
in
let set_flag_for_range (flag, range) =
Expand Down

0 comments on commit 8c96e5b

Please sign in to comment.