Skip to content

Commit a3d52bc

Browse files
committed
Adapt to rocq-prover/rocq#21254 (stop catching async exceptions)
1 parent 3431cc5 commit a3d52bc

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/context_map.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ let check_ctx_map ?(unsafe = false) env evars map =
223223
errorlabstrm
224224
(str"Type error while building context map: " ++ pr_context_map env evars map ++
225225
spc () ++ str"Invalid_argument: " ++ str s)
226-
| e when is_anomaly e ->
226+
| e when CErrors.is_sync_anomaly e ->
227227
errorlabstrm
228228
(str"Type error while building context map: " ++ pr_context_map env evars map ++
229229
spc () ++ str"Anomaly: " ++ CErrors.print e)

src/equations_common.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ let collapse_term_qualities uctx c =
224224
| Relevant | Irrelevant as r -> r
225225
| RelevanceVar _ -> (* hack *) Relevant
226226
with e ->
227-
if CErrors.is_anomaly e then Relevant
227+
if CErrors.is_sync_anomaly e then Relevant
228228
else raise e
229229
in
230230
let nf_qvar q = match UState.nf_qvar uctx q with
@@ -1030,7 +1030,6 @@ let user_err_loc (loc, pp) =
10301030
CErrors.user_err ?loc pp
10311031
let error s = CErrors.user_err (str s)
10321032
let errorlabstrm msg = CErrors.user_err msg
1033-
let is_anomaly = CErrors.is_anomaly
10341033
let print_error e = CErrors.print e
10351034

10361035
let nf_betadeltaiota = nf_all

src/equations_common.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ val pp : Pp.t -> unit
375375
val user_err_loc : (Loc.t option * Pp.t) -> 'a
376376
val error : string -> 'a
377377
val errorlabstrm : Pp.t -> 'a
378-
val is_anomaly : exn -> bool
379378
val print_error : exn -> Pp.t
380379
val anomaly : ?label:string -> Pp.t -> 'a
381380

0 commit comments

Comments
 (0)