Skip to content
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

[6.0] Make SwiftValue == support unconditional #73604

Open
wants to merge 2 commits into
base: release/6.0
Choose a base branch
from

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented May 13, 2024

Description: PR #71620 made this behavior conditional as a way to help provide binary compatibility for legacy software that might be relying on the old behavior. However, it appears the only such problems arose from the SwiftObject behavior changes, not from SwiftValue behavior. So let's optimistically make the new SwiftValue behavior unconditional and simplify future maintenance. (This leaves the SwiftObject behavior conditional, as we know there is old code that inadvertently relied on the old behavior.)

Scope/Impact: Changes how certain Swift values appear when bridged to Objective-C. This only affects non-class types that implement Equatable but do not implement Hashable.

Risk: Medium. Although we don't know of any, it's possible some existing/legacy code is relying on the old behavior. In that case, we would have to restore the conditional logic here.

Testing: Unit tests updated to uniformly verify the new behavior.

Reviewed By: @mikeash

Radar: rdar://127839540

Make SwiftValue == support unconditional
@tbkka tbkka requested a review from a team as a code owner May 13, 2024 22:41
@tbkka
Copy link
Contributor Author

tbkka commented May 13, 2024

@swift-ci Please test

stdlib/public/runtime/SwiftValue.mm Outdated Show resolved Hide resolved
stdlib/public/runtime/SwiftValue.mm Outdated Show resolved Hide resolved
@tbkka
Copy link
Contributor Author

tbkka commented May 14, 2024

@swift-ci Please test

@tbkka
Copy link
Contributor Author

tbkka commented May 16, 2024

@swift-ci Please test macOS Platform

@tbkka
Copy link
Contributor Author

tbkka commented May 17, 2024

@swift-ci Please test

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.

None yet

2 participants