Skip to content

Implementation of "Restrict cross-module struct initializers to be delegating" #12352

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

jrose-apple
Copy link
Contributor

Initial implementation of https://github.com/jrose-apple/swift-evolution/blob/restrict-cross-module-struct-initializers/proposals/nnnn-restrict-cross-module-struct-initializers.md, which I plan to submit for swift-evolution review soon. Slava already had most of this in place as a prototype for the restrictions on what's currently spelled @_fixed_layout. Tidy it up and make it apply all the time across module boundaries.

This doesn't actually work yet because of the FIXMEs in the test cases; it turns out these very cases come up in the overlays. Slava's working on that separately; once that goes in I'll rebase this.

(The tweak in Serialization is because no one had tested -enable-resilience and -enable-testing at the same time. It's a backwards-compatible change, so no need to bump the module format.)

rdar://problem/34777878

@jrose-apple jrose-apple added the swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review label Oct 9, 2017
@Yongjin0919
Copy link

Yongjin0919 commented Oct 9, 2017 via email

Slava already had most of this in place as a prototype for the
restrictions on what's currently spelled '@_fixed_layout'. Tidy it up
and make it apply all the time across module boundaries.

rdar://problem/34777878
@jrose-apple jrose-apple force-pushed the restrict-cross-module-struct-initializers branch from c5ed41a to f175b07 Compare October 11, 2017 22:31
@jrose-apple jrose-apple changed the title [BLOCKED] Implementation of "Restrict cross-module struct initializers to be delegating" Implementation of "Restrict cross-module struct initializers to be delegating" Nov 10, 2017
@jrose-apple
Copy link
Contributor Author

Closing in favor of #12834.

@AnthonyLatsis AnthonyLatsis removed the swift evolution pending discussion Flag → feature: A feature that has a Swift evolution proposal currently in review label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants