Skip to content

[6.0🍒] NCGenerics: add test for feature flag & force-enable all #73594

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

Conversation

kavon
Copy link
Member

@kavon kavon commented May 13, 2024

Explanation: Ensures that feature-guards in interfaces always evaluate to true for NoncopyableGenerics, BorrowingSwitch, and MoveOnlyPartialConsumption. This is sort of a part (2) of #73514 that can be merged independently and I think both should be included to call this issue resolved.
Scope: Important for people who start using the feature without the flag in their build configuration, so they actually emit correct swiftinterface files.
Issue: rdar://127701059
Original PR: #73522
Risk: Low.
Testing: test is included
Reviewer:

kavon added 2 commits May 13, 2024 09:17
Regardless of whether someone made it non-experimental, or deleted all
the checks in the compiler, really, truly, make sure the bit is set to
indicate we have the darn feature.

(cherry picked from commit 0d2fdad)
Ensure that when using noncopyable generics when building a module,
the compiler can re-ingest it and will pick the part guarded by
$NoncopyableGenerics.

verifies the concern in rdar://127701059

(cherry picked from commit 7799c4a)
@kavon kavon requested a review from a team as a code owner May 13, 2024 16:20
@kavon
Copy link
Member Author

kavon commented May 13, 2024

@swift-ci test

@kavon
Copy link
Member Author

kavon commented May 13, 2024

@swift-ci test

kavon added 2 commits May 13, 2024 13:12
We haven't yet solved the underlying issue in rdar://128013193 and the
workaround to make it conditionally use the better importing strategy of
Unsafe{Mutable}Pointer no longer will apply, since NoncopyableGenerics
is here.

(cherry picked from commit 1036031)
@kavon kavon force-pushed the 6.0-ncgeneric-coverage-rdar127701059 branch from 7c6dc94 to 99d417b Compare May 13, 2024 20:12
@kavon
Copy link
Member Author

kavon commented May 13, 2024

@swift-ci test

@krispymb krispymb self-requested a review May 13, 2024 20:41
@kavon kavon enabled auto-merge May 14, 2024 00:31
@kavon kavon merged commit c9e109e into swiftlang:release/6.0 May 14, 2024
5 checks passed
@kavon kavon deleted the 6.0-ncgeneric-coverage-rdar127701059 branch May 14, 2024 21:16
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