Remove always-on language feature flag: MatchNotAllowedForUnionCaseWithNoData
维护者通常 4 天内回复
评估
这个 Issue 还没有评估数据。
描述
LanguageFeature.MatchNotAllowedForUnionCaseWithNoData has shipped since F# 8.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
MatchNotAllowedForUnionCaseWithNoDatacase inLanguageFeatures.fsandLanguageFeatures.fsi - Its entry in the
featuresmap and itsGetFeatureStringarm - The
featureMatchNotAllowedForUnionCaseWithNoDatastring inFSComp.txt - Every
SupportsFeature LanguageFeature.MatchNotAllowedForUnionCaseWithNoData/checkLanguageFeatureAndRecover … MatchNotAllowedForUnionCaseWithNoDataguard — keep only the enabled path and delete the legacy branch - Adjust affected tests and baselines accordingly
Consequence: --disableLanguageFeature:MatchNotAllowedForUnionCaseWithNoData is no longer a recognised feature name.
Version mapping
https://github.com/dotnet/fsharp/blob/ea778bb414648883fca4219bf7a69286bf82dd6b/src/Compiler/Facilities/LanguageFeatures.fs#L200
Feature string
https://github.com/dotnet/fsharp/blob/ea778bb414648883fca4219bf7a69286bf82dd6b/src/Compiler/FSComp.txt#L1594
Part of #20139
- 主要语言
- F#
- 星标
- 4.3k
- 派生
- 880
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 106
环境准备
在浏览器里用你自己的 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 于 35 天前认领。 未关闭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 天内回复
-
Release-only wrong result in integer `for` loop: local bound inside loop range expression clobbers a local slot可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Bug Needs-Triage
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 4 天内回复
-
agentic-workflows
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 4 天内回复