Skip to content

[Features] Move NoncopyableGenerics up. #73843

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

Merged
merged 1 commit into from
May 23, 2024

Conversation

nate-chandler
Copy link
Contributor

Some compilers have the NoncopyableGenerics feature enabled via interesting mechanisms but do not have ConformanceSuppression. To support such compilers, the NoncopyableGenerics feature must appear before ConformanceSuppression in the list of features. Otherwise, when parsing the portion of the swiftinterface corresponding to an entity which involves both features, the first check will be for NoncopyableGenerics (which that old compiler has) and the code inside will involve ConformanceSuppression (which that old compiler does not have).

rdar://128611158

Copy link
Contributor

@tshortli tshortli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -0,0 +1,16 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Mojuel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: there seems to be an extra space before these RUN lines

Some compilers have the NoncopyableGenerics feature enabled via
interesting mechanisms but do not have ConformanceSuppression.  To
support such compilers, the NoncopyableGenerics feature must appear
before ConformanceSuppression in the list of features.  Otherwise, when
parsing the portion of the swiftinterface corresponding to an entity
which involves both features, the first check will be for
NoncopyableGenerics (which that old compiler has) and the code inside
will involve ConformanceSuppression (which that old compiler does not
have).

rdar://128611158
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler enabled auto-merge May 23, 2024 17:12
@nate-chandler nate-chandler merged commit 33c76b6 into swiftlang:main May 23, 2024
4 of 5 checks passed
@nate-chandler nate-chandler deleted the rdar128611158 branch May 23, 2024 23:10
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.

2 participants