diff options
| author | Emilio Jesus Gallego Arias | 2020-06-02 13:43:26 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-06-02 13:43:26 +0200 |
| commit | d495815dfc5b4113c2ebcd83b4319dc4dabc3f66 (patch) | |
| tree | 84a7912dadb51cd19d31ddc3ee7e8372e4dd7a63 | |
| parent | a1fa186fc8314e395a0813bb23c2c73d738b7572 (diff) | |
| parent | 083ab9fb9ac3b63d741e342cfb2a847968a6784e (diff) | |
Merge PR #11974: Require in Section: warning is now about fragility not deprecation.
Reviewed-by: Zimmi48
Reviewed-by: ejgallego
| -rw-r--r-- | doc/changelog/07-commands-and-options/11972-fix-require-in-section.rst | 5 | ||||
| -rw-r--r-- | vernac/vernacentries.ml | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/doc/changelog/07-commands-and-options/11972-fix-require-in-section.rst b/doc/changelog/07-commands-and-options/11972-fix-require-in-section.rst new file mode 100644 index 0000000000..7e34c4a0ff --- /dev/null +++ b/doc/changelog/07-commands-and-options/11972-fix-require-in-section.rst @@ -0,0 +1,5 @@ +- **Changed:** The warning when using :cmd:`Require` inside a section + moved from the ``deprecated`` category to the ``fragile`` category, + because there is no plan to remove the functionality at this time. + (`#11972 <https://github.com/coq/coq/pull/11972>`_, by Gaëtan + Gilbert). diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml index 106fed124e..9a1d935928 100644 --- a/vernac/vernacentries.ml +++ b/vernac/vernacentries.ml @@ -1081,10 +1081,9 @@ let vernac_end_segment ({v=id} as lid) = (* Libraries *) let warn_require_in_section = - let name = "require-in-section" in - let category = "deprecated" in - CWarnings.create ~name ~category - (fun () -> strbrk "Use of “Require” inside a section is deprecated.") + CWarnings.create ~name:"require-in-section" ~category:"fragile" + (fun () -> strbrk "Use of “Require” inside a section is fragile." ++ spc() ++ + strbrk "It is not recommended to use this functionality in finished proof scripts.") let vernac_require from import qidl = if Global.sections_are_opened () then warn_require_in_section (); |
