Skip to content

Commit

Permalink
Backport PR coq#16252: note since when the things recommended in a de…
Browse files Browse the repository at this point in the history
…precation note are supported
  • Loading branch information
ppedrot committed Jul 4, 2022
2 parents ffcc588 + 49875ff commit 1534e3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tactics/autorewrite.ml
Expand Up @@ -263,7 +263,7 @@ let warn_deprecated_hint_rewrite_without_locality =
without specifying an explicit locality attribute is therefore deprecated. It is \
recommended to use \"export\" whenever possible. Use the attributes \
#[local], #[global] and #[export] depending on your choice. For example: \
\"#[export] Hint Rewrite foo : bar.\"")
\"#[export] Hint Rewrite foo : bar.\" This is supported since Coq 8.14.")

let default_hint_rewrite_locality () =
if Global.sections_are_opened () then Hints.Local
Expand Down
3 changes: 2 additions & 1 deletion vernac/classes.ml
Expand Up @@ -40,7 +40,8 @@ let warn_deprecated_tc_transparency_without_locality =
sections without specifying an explicit locality attribute is \
therefore deprecated. It is recommended to use \"export\" whenever \
possible. Use the attributes #[local], #[global] and #[export] \
depending on your choice. For example: \"#[export] Typeclasses Transparent foo.\"")
depending on your choice. For example: \"#[export] Typeclasses Transparent foo.\". \
This is supported since Coq 8.15.")

let default_tc_transparency_locality () =
if Global.sections_are_opened () then Hints.Local
Expand Down

0 comments on commit 1534e3f

Please sign in to comment.