Skip to content

Conversation

Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Jun 17, 2025

Explanation: Shared references imported from C++ were not considered safe. This is a widely used feature and this fix is blocking the users from adopting strictly memory safe Swift.
Issue: rdar://151039766
Risk: Low, the fix only changes what declarations are considered safe.
Testing: Regression test added.
Original PR: #82203
Reviewer: @egorzhdan @fahadnayyar

Explanation: Shared references imported from C++ were not considered
safe. This is a widely used feature and this fix is blocking the users
from adopting strictly memory safe Swift.
Issue: rdar://151039766
Risk: Low, the fix only changes what declarations are considered safe.
Testing: Regression test added.
Original PR: #82203
Reviewer: @egorzhdan @fahadnayyar
@Xazax-hun Xazax-hun requested a review from a team as a code owner June 17, 2025 17:17
@Xazax-hun Xazax-hun added c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jun 17, 2025
@Xazax-hun Xazax-hun requested a review from airspeedswift June 17, 2025 17:20
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

Ah, thanks for doing this! I can't believe I forgot to check this case.

@Xazax-hun Xazax-hun merged commit 2f7ea38 into release/6.2 Jun 23, 2025
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/shared-references-are-safe-on-6.2 branch June 23, 2025 16:48
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++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants