Skip to content

[stdlib] fix some inconsistent declarations #75622

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

glessard
Copy link
Contributor

@glessard glessard commented Aug 1, 2024

private function declarations should never be allowed to carry the @_alwaysEmitIntoClient attribute. This has been allowed by mistake for a while, but newer compilers should make this an error. The strange consequence of this combination of keywords was that these private symbols were emitted into the swiftinterface file.

Also: opportunistically changed a bindMemory() usage to use temporary rebinding instead.

Addresses rdar://132941798

@glessard glessard requested a review from a team as a code owner August 1, 2024 16:29
@glessard
Copy link
Contributor Author

glessard commented Aug 1, 2024

@swift-ci please smoke test

Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

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

Yes please!

@glessard glessard force-pushed the rdar132941798-aEIC-private-consternation branch from c157777 to 1f11eec Compare August 1, 2024 20:59
@glessard
Copy link
Contributor Author

glessard commented Aug 1, 2024

@swift-ci please smoke test

@glessard glessard enabled auto-merge August 1, 2024 22:39
`private` declarations should never be allowed to carry the `@_alwaysEmitIntoClient` attribute. This has been allowed by mistake for a while, but newer compilers should make this an error.
@glessard glessard force-pushed the rdar132941798-aEIC-private-consternation branch from 1f11eec to dd854fa Compare August 1, 2024 23:40
@glessard glessard disabled auto-merge August 1, 2024 23:40
@glessard
Copy link
Contributor Author

glessard commented Aug 1, 2024

@swift-ci please test

@glessard
Copy link
Contributor Author

glessard commented Aug 6, 2024

@swift-ci please test linux platform

@glessard glessard merged commit 29a4b8a into swiftlang:main Aug 7, 2024
5 checks passed
@glessard glessard deleted the rdar132941798-aEIC-private-consternation branch August 8, 2024 16:51
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