Skip to content

Commit 0b2920f

Browse files
authored
Merge pull request #644 from formal-land/guillaume-claret@upgrade-to-coq-8.20
ci: upgrade to Coq 8.20
2 parents 9e3c7c9 + 6864888 commit 0b2920f

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: git submodule update --init --recursive
2121
- uses: coq-community/docker-coq-action@v1
2222
with:
23-
custom_image: coqorg/coq:8.17-ocaml-4.14-flambda
23+
custom_image: coqorg/coq:8.20-ocaml-4.14-flambda
2424
custom_script: |
2525
startGroup "Install dependencies"
2626
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

CoqOfRust/RecordUpdate.v

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Ltac2 rec strip_foralls (t : constr) :=
1515

1616
Ltac2 app_arg_count (t : constr) :=
1717
match Constr.Unsafe.kind t with
18-
| Constr.Unsafe.App f args => Array.length args
18+
| Constr.Unsafe.App _ args => Array.length args
1919
| _ => 0
2020
end.
2121

@@ -31,7 +31,7 @@ Ltac2 field_names (ctor_ref : Std.reference) :=
3131

3232
Ltac2 constructor_of_record (t : constr) :=
3333
match Constr.Unsafe.kind t with
34-
| Constr.Unsafe.Ind ind inst =>
34+
| Constr.Unsafe.Ind ind _ =>
3535
Std.ConstructRef (Constr.Unsafe.constructor ind 0)
3636
| _ => Control.throw (Invalid_argument (Some (Message.of_constr t)))
3737
end.
@@ -44,7 +44,7 @@ Ltac2 record_with_set_val (ty : constr) (record : constr)
4444
let (h, args) :=
4545
match Constr.Unsafe.kind ty with
4646
| Constr.Unsafe.App h args => (h, args)
47-
| _ => (ty, Array.empty ())
47+
| _ => (ty, Array.empty)
4848
end in
4949
let ctor := constructor_of_record h in
5050
let getters := List.map (fun getterRef =>
@@ -72,8 +72,6 @@ Class Setter{R E: Type}(getter: R -> E): Type :=
7272
set : E -> R -> R.
7373

7474
Arguments set {R E} (getter) {Setter} (fieldUpdater) (r).
75-
(* Reduce when calling the [cbn] tactic *)
76-
Arguments set /.
7775

7876
Global Hint Extern 1 (@Setter ?R ?E ?getter) =>
7977
exact_setter R getter : typeclass_instances.

CoqOfRust/coq-of-rust.opam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ maintainer: "Guillaume Claret <dev@clarus.me>"
99
authors: [
1010
"Formal Land <contact@formal.land>"
1111
]
12-
license: "AGPL-3.0"
12+
license: "MIT"
1313
homepage: "https://formal.land/docs/coq-of-rust/introduction"
1414
bug-reports: "https://github.com/formal-land/coq-of-rust/issues"
1515
dev-repo: "git+https://github.com/formal-land/coq-of-rust.git"
1616
depends: [
17-
"ocaml" {>= "4.08"}
18-
"coq" {>= "8.17.1" & < "8.18"}
19-
"coq-hammer" {>= "1.3.2+8.17" & < "1.3.2+8.18"}
17+
"coq" {>= "8.20.0" & < "8.21"}
18+
"coq-hammer"
2019
"coq-coqutil" {>= "0.0.5"}
20+
"ocaml" {>= "4.08"}
2121
]
2222
build: [
2323
[make]

CoqOfRust/links/M.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Definition output_with_exception (Output : Set) `{Link Output} (output : Output
299299
end.
300300

301301
Module Run.
302-
Reserved Notation "{{ e ⇓ output_to_value }}" (at level 70, no associativity).
302+
Reserved Notation "{{ e ⇓ output_to_value }}" (no associativity).
303303

304304
(** The [Run.t] predicate to show that there exists a trace of execution for an expression [e]
305305
if we choose the right types/`to_value` functions and make a valid names and traits

CoqOfRust/move_sui/proofs/move_abstract_stack/lib.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Module AbstractStack.
349349
destruct AbstractStack.pop_any_n_helper as [values'|]; cbn; [|exact I].
350350
destruct IHvalues' as [items [H_items_len H_items_eq]].
351351
exists (List.repeat last (Z.to_nat count) ++ items); split.
352-
{ rewrite List.app_length, List.repeat_length, H_items_len.
352+
{ rewrite List.length_app, List.repeat_length, H_items_len.
353353
rewrite Z2Nat.inj_sub; lia.
354354
}
355355
{ rewrite <- List.app_assoc; f_equal.

CoqOfRust/simulations/M.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Module Result.
77
| Ok : A -> t A Error
88
| Err : Error -> t A Error.
99

10-
Arguments Ok {A Error}%type_scope.
11-
Arguments Err {A Error}%type_scope.
10+
Arguments Ok {A Error}%_type_scope.
11+
Arguments Err {A Error}%_type_scope.
1212

1313
Definition return_ {A Error : Set} (value : A) : t A Error := Ok value.
1414

0 commit comments

Comments
 (0)