diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2016-10-06 11:14:08 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2016-10-06 11:17:36 +0200 |
commit | d0dda9c419894460de952d4b9342ea6518d24f83 (patch) | |
tree | bd087afa6b337692e21e4c4d7823af349ed745d0 /interp/syntax_def.ml | |
parent | 82fe255fa41d22b07cee6ad65253707dbda7ce0b (diff) |
Remove the Set Verbose Compat option and turn the warning on by default.
These warnings can now be configured like any other, so we don't need
a specific option anymore.
Diffstat (limited to 'interp/syntax_def.ml')
-rw-r--r-- | interp/syntax_def.ml | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/interp/syntax_def.ml b/interp/syntax_def.ml index d2dcbd92a..b2b82cce3 100644 --- a/interp/syntax_def.ml +++ b/interp/syntax_def.ml @@ -84,11 +84,6 @@ let declare_syntactic_definition local id onlyparse pat = let pr_syndef kn = pr_qualid (shortest_qualid_of_syndef Id.Set.empty kn) -let verbose_compat_notations = ref true - -let is_verbose_compat () = - !verbose_compat_notations - let pr_compat_warning (kn, def, v) = let pp_def = match def with | [], NRef r -> spc () ++ str "is" ++ spc () ++ pr_global_env Id.Set.empty r @@ -102,7 +97,7 @@ let warn_compatibility_notation = ~category:"deprecated" pr_compat_warning let verbose_compat kn def = function - | Some v when is_verbose_compat () && Flags.version_strictly_greater v -> + | Some v when Flags.version_strictly_greater v -> warn_compatibility_notation (kn, def, v) | _ -> () @@ -113,12 +108,3 @@ let search_syntactic_definition kn = def open Goptions - -let set_verbose_compat_notations = - declare_bool_option - { optsync = true; - optdepr = false; - optname = "verbose compatibility notations"; - optkey = ["Verbose";"Compat";"Notations"]; - optread = (fun () -> !verbose_compat_notations); - optwrite = ((:=) verbose_compat_notations) } |