Compilation fails with no helpful clues on Swift 6, with certain upcoming feature flags #76764
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Compilation fails with no helpful clues on Swift 6 when a previously-valid upcoming feature flag is used in
Package.swift
, which is now enabled by default in Swift 6.I was able figure out the "why", because on Linux test CI it was just actually mentioning the problem and asking to remove those upcoming feature flags:
Reproduction
Clone Vapor's PennyBot. Checkout
b976b803a3867279abad4edba5d482a126fcd254
.then set these env vars:
then invoke
swift-frontend
:This succeeds.
Now add
-enable-upcoming-feature InferSendableFromCaptures
to the command.Observe that it fails with non-zero
"exit-status": 1
.You could also just try to build the package in Xcode and see if it throws build errors for you as well or not.
Expected behavior
"exit-status": 0
.Environment
Xcode 16.1 beta 2
Additional information
No response
The text was updated successfully, but these errors were encountered: