aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes3
-rw-r--r--.gitlab-ci.yml13
-rw-r--r--tactics/tactics.ml16
-rw-r--r--test-suite/bugs/closed/6631.v7
4 files changed, 23 insertions, 16 deletions
diff --git a/.gitattributes b/.gitattributes
index db179c8d20..e087e17379 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -19,6 +19,7 @@ tools/CoqMakefile.in whitespace=trailing-space
*.css whitespace=trailing-space,tab-in-indent
*.dtd whitespace=trailing-space,tab-in-indent
*.el whitespace=trailing-space,tab-in-indent
+*.g whitespace=trailing-space,tab-in-indent
*.h whitespace=trailing-space,tab-in-indent
*.html whitespace=trailing-space,tab-in-indent
*.hva whitespace=trailing-space,tab-in-indent
@@ -37,9 +38,11 @@ tools/CoqMakefile.in whitespace=trailing-space
*.nsh whitespace=trailing-space,tab-in-indent
*.nsi whitespace=trailing-space,tab-in-indent
*.py whitespace=trailing-space,tab-in-indent
+*.rst whitespace=trailing-space,tab-in-indent
*.sh whitespace=trailing-space,tab-in-indent
*.sty whitespace=trailing-space,tab-in-indent
*.tex whitespace=trailing-space,tab-in-indent
+*.tokens whitespace=trailing-space,tab-in-indent
*.txt whitespace=trailing-space,tab-in-indent
*.v whitespace=trailing-space,tab-in-indent
*.xml whitespace=trailing-space,tab-in-indent
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 03e001f4a9..f0d7463fc9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,10 +85,6 @@ before_script:
- echo 'end:coq.install'
- set +e
- variables: &build-variables
- EXTRA_CONF: "-native-compiler yes -coqide opt"
- EXTRA_PACKAGES: "$COQIDE_PACKAGES"
- EXTRA_OPAM: "$COQIDE_OPAM"
.warnings-template: &warnings-template
# keep warnings in test stage so we can test things even when warnings occur
@@ -151,9 +147,9 @@ before_script:
build:
<<: *build-template
variables:
- EXTRA_CONF: "-with-doc yes"
- EXTRA_PACKAGES: "$COQDOC_PACKAGES"
- EXTRA_OPAM: "$COQDOC_OPAM"
+ EXTRA_CONF: "-native-compiler yes -coqide opt -with-doc yes"
+ EXTRA_PACKAGES: "$COQIDE_PACKAGES $COQDOC_PACKAGES"
+ EXTRA_OPAM: "$COQIDE_OPAM $COQDOC_OPAM"
PIP_PACKAGES: "$SPHINX_PACKAGES"
# no coqide for 32bit: libgtk installation problems
@@ -167,9 +163,10 @@ build:32bit:
build:bleeding-edge:
<<: *build-template
variables:
- <<: *build-variables
+ EXTRA_CONF: "-native-compiler yes -coqide opt"
COMPILER: "$COMPILER_BLEEDING_EDGE"
CAMLP5_VER: "$CAMLP5_VER_BLEEDING_EDGE"
+ EXTRA_PACKAGES: "$COQIDE_PACKAGES"
EXTRA_OPAM: "$COQIDE_OPAM_BE"
warnings:
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 834d73bdda..0d9f3d8216 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -4987,15 +4987,15 @@ let anon_id = Id.of_string "anonymous"
let name_op_to_name name_op object_kind suffix =
let open Proof_global in
let default_gk = (Global, false, object_kind) in
+ let name, gk = match Proof_global.V82.get_current_initial_conclusions () with
+ | (id, (_, gk)) -> Some id, gk
+ | exception NoCurrentProof -> None, default_gk
+ in
match name_op with
- | Some s ->
- (try let _, gk, _ = Pfedit.current_proof_statement () in s, gk
- with NoCurrentProof -> s, default_gk)
- | None ->
- let name, gk =
- try let name, gk, _ = Pfedit.current_proof_statement () in name, gk
- with NoCurrentProof -> anon_id, default_gk in
- add_suffix name suffix, gk
+ | Some s -> s, gk
+ | None ->
+ let name = Option.default anon_id name in
+ add_suffix name suffix, gk
let tclABSTRACT ?(opaque=true) name_op tac =
let s, gk = if opaque
diff --git a/test-suite/bugs/closed/6631.v b/test-suite/bugs/closed/6631.v
new file mode 100644
index 0000000000..100dc13fc8
--- /dev/null
+++ b/test-suite/bugs/closed/6631.v
@@ -0,0 +1,7 @@
+Require Import Coq.derive.Derive.
+
+Derive f SuchThat (f = 1 + 1) As feq.
+Proof.
+ transitivity 2; [refine (eq_refl 2)|].
+ transitivity 2.
+ 2:abstract exact (eq_refl 2).