Skip to content

[cxx-interop] Fix hashable-enums test #77053

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
Oct 16, 2024
Merged

Conversation

j-hui
Copy link
Contributor

@j-hui j-hui commented Oct 16, 2024

The hash of enum values are different from that of their underlying rawValue due to the implementation details of Int on 64-bit platform which are not true on 32-bit platforms. This commit removes the tests that rely on this behavior.

rdar://138032645

The hash of enum values are different from that of their underlying
rawValue due to the implementation details of Int on 64-bit platform
which are not true on 32-bit platforms. This commit removes the tests
that rely on this behavior.

rdar://138032645
@j-hui
Copy link
Contributor Author

j-hui commented Oct 16, 2024

@swift-ci Please smoke test

@j-hui j-hui enabled auto-merge (squash) October 16, 2024 17:27
@j-hui j-hui disabled auto-merge October 16, 2024 17:27
Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

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

LGTM!

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Oct 16, 2024
@j-hui j-hui changed the title Fix hashable-enums test [cxx-interop] Fix hashable-enums test Oct 16, 2024
@j-hui j-hui enabled auto-merge (squash) October 16, 2024 20:44
@j-hui j-hui merged commit 493d37e into swiftlang:main Oct 16, 2024
3 checks passed
@j-hui j-hui deleted the fix-hashable-enums branch October 17, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants