You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix InternalImportsByDefault diagnostics in _AsyncFileSystem (#7895)
Address some `InternalImportsByDefault` diagnostics in the
`_AsyncFileSystem` which have crept in because the Swift 6 toolchain
isn't enforcing
`.enableExperimentalFeature("InternalImportsByDefault")`.
### Motivation:
Both the `StrictConcurrency` and `InternalImportsByDefault` features
became "upcoming" features instead of "experimental" features in the
Swift 6 compiler. This means that specifying those features with
`.enableExperimentalFeature()` no longer works with newer toolchains,
and therefore these settings in SwiftPM's `Package.swift` have become
inactive. I'm making the compiler more lenient, so that
`-enable-experimental-feature` will enable the corresponding upcoming
feature if relevant (swiftlang/swift#75962) but
in the meantime it appears that some of the code in SwiftPM needs some
fixes to continue to be accepted by the compiler with these features on.
### Modifications:
Adjusted access level on a number of import statements in files
belonging to the `_AsyncFileSystem` target.
### Result:
`_AsyncFileSystem` builds successfully when `InternalImportsByDefault`
is actually enabled with the Swift 6 toolchain.
0 commit comments