Skip to content

Commit 6a60bd2

Browse files
committed
Remove unused permitFsharpKeywords switch
1 parent 9d00338 commit 6a60bd2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/fsharp/CompileOptions.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ let compilingFsLib20Flag (tcConfigB : TcConfigBuilder) =
891891
let compilingFsLib40Flag (tcConfigB : TcConfigBuilder) =
892892
CompilerOption("compiling-fslib-40", tagNone, OptionUnit (fun () -> tcConfigB.compilingFslib40 <- true; ), Some(InternalCommandLineOption("--compiling-fslib-40", rangeCmdArgs)), None)
893893
let mlKeywordsFlag =
894-
CompilerOption("ml-keywords", tagNone, OptionUnit (fun () -> Lexhelp.Keywords.permitFsharpKeywords <- false), Some(DeprecatedCommandLineOptionNoDescription("--ml-keywords", rangeCmdArgs)), None)
894+
CompilerOption("ml-keywords", tagNone, OptionUnit (fun () -> ()), Some(DeprecatedCommandLineOptionNoDescription("--ml-keywords", rangeCmdArgs)), None)
895895

896896
let gnuStyleErrorsFlag tcConfigB =
897897
CompilerOption("gnu-style-errors", tagNone, OptionUnit (fun () -> tcConfigB.errorStyle <- ErrorStyle.EmacsErrors), Some(DeprecatedCommandLineOptionNoDescription("--gnu-style-errors", rangeCmdArgs)), None)

src/fsharp/lexhelp.fsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,4 @@ module Keywords =
6767
val KeywordOrIdentifierToken : lexargs -> UnicodeLexing.Lexbuf -> string -> Parser.token
6868
val IdentifierToken : lexargs -> UnicodeLexing.Lexbuf -> string -> Parser.token
6969
val QuoteIdentifierIfNeeded : string -> string
70-
val mutable permitFsharpKeywords : bool
7170
val keywordNames : string list

0 commit comments

Comments
 (0)