Skip to content

Conversation

@DougGregor
Copy link
Member

String interpolations can end up being unsafe in the call to appendInterpolation when it's provided with unsafe types. Move the location of the proposed "unsafe" out to the string interpolation itself in these cases, which properly suppresses the warning.

Fixes rdar://151799777.

…ions

String interpolations can end up being unsafe in the call to
appendInterpolation when it's provided with unsafe types. Move the
location of the proposed "unsafe" out to the string interpolation
itself in these cases, which properly suppresses the warning.

Fixes rdar://151799777.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge June 2, 2025 19:39
@DougGregor DougGregor merged commit bfa991d into swiftlang:main Jun 3, 2025
3 checks passed
@DougGregor DougGregor deleted the unsafe-string-interpolation branch June 3, 2025 02:09
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.

1 participant