Files
swift-mirror/userdocs/diagnostics/strict-language-features.md
Ben Barham 32ec5a61b7 Add groupings for the various diagnostics
Also make the titles and one line summaries a little more consistent (at
least for diagnsotic groups and upcoming language features, haven't gone
through the educational notes).
2025-06-05 15:49:46 -07:00

14 lines
598 B
Markdown

# Strict language feature enablement (StrictLanguageFeatures)
Warnings for unrecognized feature names in `-enable-upcoming-feature` or
`enable-experimental-feature`.
## Overview
By default, if an unrecognized feature name is specified with the `-enable-upcoming-feature` or
`-enable-experimental-feature` flags, the compiler will ignore it without emitting a diagnostic
since some projects must be simultaneously compatible with multiple versions of the language and
toolchain. This can, however, lead to misspecified features. To diagnose these cases instead, enable
`StrictLanguageFeatures`.