-
Notifications
You must be signed in to change notification settings - Fork 10.6k
SIL: The inner type of a SILMoveOnlyWrappedType is a lowered position #84771
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
|
@swift-ci Please smoke test |
|
@swift-ci Please test source compatibility |
1 similar comment
|
@swift-ci Please test source compatibility |
|
@swift-ci Please test Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| : value(ty.getPointer(), unsigned(category)) { | ||
| if (!ty) return; | ||
| assert(ty->isLegalSILType() && | ||
| ASSERT(ty->isLegalSILType() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
@swift-ci Please test Windows |
This PR adopts `Mutex` on all platforms except Darwin (where we still need to back-deploy further than `Mutex` is available.) Blocked by swiftlang/swift#84771. Reapplies #1351. Resolves #538. Resolves rdar://131832797. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
This wasn't handled properly, as a result specializing a
$@moveOnly Tdid not lower the substitutedT, causing an assertion failure if the substitutedTwas a function type.Fixes rdar://161968922.