diff options
| author | Gaëtan Gilbert | 2020-05-18 10:54:15 +0200 |
|---|---|---|
| committer | Théo Zimmermann | 2020-05-29 16:41:19 +0200 |
| commit | 083ab9fb9ac3b63d741e342cfb2a847968a6784e (patch) | |
| tree | 4b247e2e146c84459b4a6f151957e193e86dc85d /vernac | |
| parent | d75b889948fbfd5600d505ab823a0e6da2195af6 (diff) | |
Require in Section: warning is now about fragility not deprecation.
Diffstat (limited to 'vernac')
| -rw-r--r-- | vernac/vernacentries.ml | 7 |
1 files changed, 3 insertions, 4 deletions
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 (); |
