Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/context_map.ml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ let check_ctx_map ?(unsafe = false) env evars map =
errorlabstrm
(str"Type error while building context map: " ++ pr_context_map env evars map ++
spc () ++ str"Invalid_argument: " ++ str s)
| e when is_anomaly e ->
| e when CErrors.is_sync_anomaly e ->
errorlabstrm
(str"Type error while building context map: " ++ pr_context_map env evars map ++
spc () ++ str"Anomaly: " ++ CErrors.print e)
Expand Down
3 changes: 1 addition & 2 deletions src/equations_common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ let collapse_term_qualities uctx c =
| Relevant | Irrelevant as r -> r
| RelevanceVar _ -> (* hack *) Relevant
with e ->
if CErrors.is_anomaly e then Relevant
if CErrors.is_sync_anomaly e then Relevant
else raise e
in
let nf_qvar q = match UState.nf_qvar uctx q with
Expand Down Expand Up @@ -1030,7 +1030,6 @@ let user_err_loc (loc, pp) =
CErrors.user_err ?loc pp
let error s = CErrors.user_err (str s)
let errorlabstrm msg = CErrors.user_err msg
let is_anomaly = CErrors.is_anomaly
let print_error e = CErrors.print e

let nf_betadeltaiota = nf_all
Expand Down
1 change: 0 additions & 1 deletion src/equations_common.mli
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ val pp : Pp.t -> unit
val user_err_loc : (Loc.t option * Pp.t) -> 'a
val error : string -> 'a
val errorlabstrm : Pp.t -> 'a
val is_anomaly : exn -> bool
val print_error : exn -> Pp.t
val anomaly : ?label:string -> Pp.t -> 'a

Expand Down