Remove always-on language feature flag: AdditionalTypeDirectedConversions
维护者通常 4 天内回复
评估
这个 Issue 还没有评估数据。
描述
LanguageFeature.AdditionalTypeDirectedConversions has shipped since F# 6.0 and is enabled for every selectable language version (the minimum accepted --langversion is 8.0). Its feature flag can therefore never be turned off, so it is dead configuration. This issue removes the flag and collapses the guarded code to its enabled behaviour.
What to remove
- The
AdditionalTypeDirectedConversionscase inLanguageFeatures.fsandLanguageFeatures.fsi - Its entry in the
featuresmap and itsGetFeatureStringarm - The
featureAdditionalImplicitConversionsstring inFSComp.txt - Every
SupportsFeature LanguageFeature.AdditionalTypeDirectedConversions/checkLanguageFeatureAndRecover … AdditionalTypeDirectedConversionsguard — keep only the enabled path and delete the legacy branch - Adjust affected tests and baselines accordingly
Consequence: --disableLanguageFeature:AdditionalTypeDirectedConversions is no longer a recognised feature name.
Version mapping
https://github.com/dotnet/fsharp/blob/ea778bb414648883fca4219bf7a69286bf82dd6b/src/Compiler/Facilities/LanguageFeatures.fs#L174
Feature string
https://github.com/dotnet/fsharp/blob/ea778bb414648883fca4219bf7a69286bf82dd6b/src/Compiler/FSComp.txt#L1584
Part of #20139
- 主要语言
- F#
- 星标
- 4.3k
- 派生
- 880
- 平均合并
- 4 天 14 小时
- 30 天内合并 PR
- 103
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/fsharp 的其他 Issue
-
Semantic classification cache for opened documents is never populated (written to the unopened-documents cache)可能已有人在做 @xperiandri 于 33 天前认领。 未关闭Needs-Triage
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 4 天内回复
-
Needs-Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
Bug Needs-Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
[aw] Repo Assist failed可能已有人在做 @T-Gro 于 1 天前认领。 未关闭agentic-workflows
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 4 天内回复
-
Runtime async throws InvalidProgramException when awaiting upcast Task可能已有人在做 @T-Gro 于 1 天前认领。 未关闭Bug Needs-Triage
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 4 天内回复