Skip to content

Commit 9157f19

Browse files
committed
fixup: Compatibility with 9.1
1 parent 4b1e05d commit 9157f19

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

template-rocq/src/ast_quoter.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ struct
103103
let quote_qvar q =
104104
match Sorts.QVar.repr q with
105105
| Sorts.QVar.Var i -> BasicAst.QVar.var (quote_int i)
106+
| Sorts.QVar.Global _ -> CErrors.anomaly Pp.(str "Global sort variables cannot be quoted yet.")
106107
| Sorts.QVar.Unif _ -> CErrors.anomaly (Pp.str "Cannot quote a non-instantiated quality variable")
107108

108109
let quote_quality q =
@@ -216,7 +217,7 @@ struct
216217
let quote_abstract_univ_context uctx : quoted_abstract_univ_context =
217218
let {UVars.quals = qnames; UVars.univs = unames} = UVars.AbstractContext.names uctx in
218219
let qnames = CArray.map_to_list quote_name qnames in
219-
let levels = CArray.map_to_list quote_name unames in
220+
let unames = CArray.map_to_list quote_name unames in
220221
let constraints = UVars.UContext.constraints (UVars.AbstractContext.repr uctx) in
221222
(Universes0.mk_bound_names qnames unames, quote_univ_constraints constraints)
222223

template-rocq/src/constr_quoter.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ struct
237237
let quote_qvar q =
238238
match Sorts.QVar.repr q with
239239
| Sorts.QVar.Var i -> constr_mkApp (qvVar, [| quote_int i |])
240-
| Sorts.QVar.Unif _ -> CErrors.anomaly (str "Non-instanciated quality variables cannot be quoted.")
240+
| Sorts.QVar.Global _ -> CErrors.anomaly (str "Global sort variables cannot be quoted yet.")
241+
| Sorts.QVar.Unif _ -> CErrors.anomaly (str "Non-instantiated quality variables cannot be quoted.")
241242

242243
let quote_quality q =
243244
let open Sorts.Quality in

template-rocq/theories/AstUtils.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,14 @@ Section Lookups.
759759
| _ => None
760760
end.
761761

762-
Definition lookup_ind_type ind i (u : list Level.t) :=
762+
Definition lookup_ind_type ind i u :=
763763
match lookup_ind_decl ind i with
764764
|None => None
765765
|Some res =>
766766
Some (subst_instance u (snd res).(ind_type))
767767
end.
768768

769-
Definition lookup_ind_type_cstrs ind i (u : list Level.t) :=
769+
Definition lookup_ind_type_cstrs ind i u :=
770770
match lookup_ind_decl ind i with
771771
|None => None
772772
|Some res =>

0 commit comments

Comments
 (0)