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日 14時間
- マージ済み PR(30日)
- 103
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
dotnet/fsharp#20265 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
Bug Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
[aw] Repo Assist failed対応中かも @T-Gro が今日担当しました。 オープンagentic-workflows
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
dotnet/fsharp#20693 · コメント 4 件 ·
メンテナーはふだん 4 日以内に返信
-
Runtime async throws InvalidProgramException when awaiting upcast Task対応中かも @T-Gro が今日担当しました。 オープンBug Needs-Triage
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
dotnet/fsharp#20686 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信