diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2018-04-16 09:09:44 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2018-04-16 09:09:44 +0200 |
commit | 8fdfbdbcb4156571a43db7445dea6cd6cec58a53 (patch) | |
tree | c14e2d109112f1fef9cf19b293ddd275ad79cbfe /tactics | |
parent | ea08600edd8796bc8d2782a1750c628c2f64f3d6 (diff) | |
parent | 2243c25c79ab19876ad74452c9cecc7dcc88c67c (diff) |
Merge PR #7200: [ltac] Deprecate nameless fix/cofix.
Diffstat (limited to 'tactics')
-rw-r--r-- | tactics/tactics.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index efb46e7d9..aae4bc088 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -557,8 +557,13 @@ let mutual_fix f n rest j = Proofview.Goal.enter begin fun gl -> end end +let warning_nameless_fix = + CWarnings.create ~name:"nameless-fix" ~category:"deprecated" Pp.(fun () -> + str "fix/cofix without a name are deprecated, please use the named version.") + let fix ido n = match ido with | None -> + warning_nameless_fix (); Proofview.Goal.enter begin fun gl -> let name = Proof_global.get_current_proof_name () in let id = new_fresh_id Id.Set.empty name gl in @@ -610,6 +615,7 @@ end let cofix ido = match ido with | None -> + warning_nameless_fix (); Proofview.Goal.enter begin fun gl -> let name = Proof_global.get_current_proof_name () in let id = new_fresh_id Id.Set.empty name gl in |