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
@preconcurrency imports need to come before future modules that also export them (without @preconcurrency). swift-format avoids reordering these, except if they are behind compiler guards. In particular:
#if canImport(Glibc)@preconcurrency import Glibc
#endif
import Foundation
When formatting, swift-format will move Foundation first:
import Foundation
#if canImport(Glibc)@preconcurrency import Glibc
#endif
This breaks the effect of @preconcurrency, so we shouldn't do this transformation.
The text was updated successfully, but these errors were encountered:
@preconcurrency
imports need to come before future modules that also export them (without@preconcurrency
). swift-format avoids reordering these, except if they are behind compiler guards. In particular:When formatting, swift-format will move Foundation first:
This breaks the effect of
@preconcurrency
, so we shouldn't do this transformation.The text was updated successfully, but these errors were encountered: