Skip to content

Commit a9caa85

Browse files
committed
adapt to rocq 9.1
1 parent b52e23d commit a9caa85

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/rocq_elpi_builtins.ml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,19 @@ let apply_proof ~name ~poly env tac pf =
15621562
[%%endif]
15631563

15641564

1565+
[%%if coq = "9.0"]
1566+
let section_close_section x =
1567+
let a,b,_,_ = Section.close_section x in
1568+
a, b
1569+
[%%elif coq = "9.1"]
1570+
let section_close_section x =
1571+
let a,b,_ = Section.close_section x in
1572+
a, b
1573+
[%%else]
1574+
let section_close_section x =
1575+
let a,b,_,_ = Section.close_section x in
1576+
a, b
1577+
[%%endif]
15651578

15661579

15671580

@@ -2154,7 +2167,7 @@ Supported attributes:
21542167
match section with
21552168
| None -> []
21562169
| Some s ->
2157-
let section,l,_,_ = Section.close_section s in
2170+
let section,l = section_close_section s in
21582171
List.concat_map (function
21592172
| Section.SecDefinition c -> [GlobRef.ConstRef c]
21602173
| Section.SecInductive m ->

0 commit comments

Comments
 (0)