Skip to content

Commit fe0eb4c

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

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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 is_anomaly ~async:false 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 & 1 deletion
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_anomaly ~async:false e then Relevant
228228
else raise e
229229
in
230230
let nf_qvar q = match UState.nf_qvar uctx q with

src/equations_common.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ 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
378+
val is_anomaly : async:bool -> exn -> bool
379379
val print_error : exn -> Pp.t
380380
val anomaly : ?label:string -> Pp.t -> 'a
381381

0 commit comments

Comments
 (0)