Skip to content

Commit

Permalink
Merge PR coq#19935: Bypass warning override when possible
Browse files Browse the repository at this point in the history
Reviewed-by: ppedrot
Co-authored-by: ppedrot <[email protected]>
  • Loading branch information
coqbot-app[bot] and ppedrot authored Dec 16, 2024
2 parents 0508d64 + 47a4ad9 commit 9e82aef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vernac/declare.ml
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,9 @@ let declare_possibly_mutual_definitions ~info ~cinfo ~obls ?(is_telescope=false)
let () =
(* For the recursive case, we override the temporary notations used while proving, now using the global names *)
let local = info.scope=Locality.Discharge in
CWarnings.with_warn ("-"^Notation.warning_overridden_name)
(List.iter (Metasyntax.add_notation_interpretation ~local (Global.env()))) ntns
if ntns <> [] then
CWarnings.with_warn ("-"^Notation.warning_overridden_name)
(List.iter (Metasyntax.add_notation_interpretation ~local (Global.env()))) ntns
in
refs

Expand Down

0 comments on commit 9e82aef

Please sign in to comment.