Files
swift-mirror/userdocs/diagnostics/upcoming-language-features.md
Ben Barham 5ee91339c3 [userdocs] Automatically generate doc indices
Add a tool for automatically generating the doc indices for notes,
groups, and features.
2025-07-07 13:59:09 -07:00

25 lines
871 B
Markdown

# Upcoming language features
<!-- This file is auto-generated via `swift swift/utils/generate-doc-index.swift` -->
Upcoming language features enable new (but potentially source breaking) functionality that be
enabled by default in an upcoming language mode.
## Overview
Upcoming language features allow the incremental adoption of language features that would otherwise
only be available in a new language mode, without having to fully migrate to that mode. They can be
enabled on the command line with `-enable-upcoming-feature <feature>`.
Some upcoming features have an additional "migration" mode, where the compiler will emit warnings
with fix-its to help migrate to that mode. This can be enabled with `-enable-upcoming-feature
<feature>:migrate`.
## Topics
- <doc:existential-any>
- <doc:member-import-visibility>
- <doc:nonisolated-nonsending-by-default>