-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency] Fix a few issues with Senable
and Any
#79382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…whether access is mutating or not Otherwise `inout` uses of declarations that require ABI safe conversions are going to be diagnosed as non-mutating.
…positions It should be possible to pass values with `any Sendable` as arguments to `inout` parameters that expect `Any`. This is pretty much the same as an l-value conversion. Resolves: swiftlang#79361 Resolves: rdar://144794132
…expressions This expands swiftlang#77510 to base expressions of calls, subscripts and members to make sure that if the base has `@preconcurrency` declaration at some level. Otherwise, the availability checker won't appropriately downgrade unavailable `Sendable` conformances for `@preconcurrency` declarations.
swiftlang/swift-foundation#1169 |
swiftlang/swift-foundation#1169 |
@jmschonfeld and @bnbarham looks like sourcekit-lsp has |
…ignments If destination is marked as `@preconcurrency` the Sendable conformance errors should be downgraded to warnings even in Swift 6 mode just like for member and subscript references.
Turns out I mixed that up with another situation where |
swiftlang/swift-foundation#1169 |
@swift-ci please test Windows platform |
1 similar comment
@swift-ci please test Windows platform |
…tion#1169 but not swiftlang/swift#79382. rdar://145669600
This fixes build failures for setups that have swiftlang/swift-foundation#1169 but not swiftlang/swift#79382. rdar://145669600
This fixes build failures for setups that have swiftlang/swift-foundation#1169 but not swiftlang/swift#79382. rdar://145669600
This fixes build failures for setups that have swiftlang/swift-foundation#1169 but not swiftlang/swift#79382. rdar://145669600
…e]` (#96) This fixes build failures for setups that have swiftlang/swift-foundation#1169 but not swiftlang/swift#79382. rdar://145669600
Sendable-to-Any: Allow conversion when in
inout
positionsIt should be possible to pass values with
any Sendable
as argumentsto
inout
parameters that expectAny
. This is pretty much the sameas an l-value conversion.
Make sure that @preconcurrency use is detected in base expressions
This expands [Concurrency] Handle self apply exprs when computing
@preconcurency
in the availability checker. #77510 to baseexpressions of calls, subscripts and members to make sure that if
the base has
@preconcurrency
declaration at some level. Otherwise,the availability checker won't appropriately downgrade unavailable
Sendable
conformances for@preconcurrency
declarations.Resolves: #79361
Resolves: rdar://144794132