Skip to content

Commit

Permalink
Remove "Include Type" in g_vernac.mlg
Browse files Browse the repository at this point in the history
  • Loading branch information
Villetaneuse committed Jan 10, 2024
1 parent 50ca6d5 commit 24bd2a7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions vernac/g_vernac.mlg
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,6 @@ let starredidentreflist_to_expr l =
| [] -> SsEmpty
| x :: xs -> List.fold_right (fun i acc -> SsUnion(i,acc)) xs x

let warn_deprecated_include_type =
CWarnings.create ~name:"deprecated-include-type" ~category:Deprecation.Version.v8_3
(fun () -> strbrk "Include Type is deprecated; use Include instead")

let warn_deprecated_as_ident_kind =
CWarnings.create ~name:"deprecated-as-ident-kind" ~category:Deprecation.Version.v8_14
(fun () -> strbrk "grammar kind \"as ident\" no longer accepts \"_\"; use \"as name\" instead to accept \"_\", too, or silence the warning if you actually intended to accept only identifiers.")
Expand Down Expand Up @@ -649,10 +645,7 @@ GRAMMAR EXTEND Gram
| IDENT "Export"; cats = OPT import_categories; qidl = LIST1 filtered_import ->
{ VernacSynterp (VernacImport ((Export,cats),qidl)) }
| IDENT "Include"; e = module_type_inl; l = LIST0 ext_module_expr ->
{ VernacSynterp (VernacInclude(e::l)) }
| IDENT "Include"; "Type"; e = module_type_inl; l = LIST0 ext_module_type ->
{ warn_deprecated_include_type ~loc ();
VernacSynterp (VernacInclude(e::l)) } ] ]
{ VernacSynterp (VernacInclude(e::l)) } ] ]
;
import_categories:
[ [ negative = OPT "-"; "("; cats = LIST1 qualid SEP ","; ")" ->
Expand Down

0 comments on commit 24bd2a7

Please sign in to comment.