Skip to content

LoggingScope's task local APIs had incorrect sendable annotations#43

Merged
ktoso merged 1 commit into
mainfrom
wip-fix-tl-use
Apr 9, 2026
Merged

LoggingScope's task local APIs had incorrect sendable annotations#43
ktoso merged 1 commit into
mainfrom
wip-fix-tl-use

Conversation

@ktoso

@ktoso ktoso commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

These functions must not be Sendable, this will start failing in future builds.

Related to rdar://174026465

These functions must not be Sendable, this will start failing in future
builds.

Related to rdar://174026465
@owenv

owenv commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Isn't it a source break if we change the task local APIs this way?

@ktoso

ktoso commented Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

It's being discussed how to handle this transition, the annotation was incorrectly accepted and allowed wrong semantics. So far we're leaning to make the change and take the risk of compatibility impact in very few spots.

@rintaro

rintaro commented Apr 8, 2026

Copy link
Copy Markdown
Member

@ktoso Does the corresponding breaking change in swift already have a PR up?

@ktoso

ktoso commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

Yeah it will be swiftlang/swift#87612

We've been trying to land this for a while now, I need to update the pr

@rintaro

rintaro commented Apr 9, 2026

Copy link
Copy Markdown
Member

Just wanted to have the link in this PR, thanks.
Even if the compiler change is breaking, whether to accept that breakage is not something we should be discussing here.
If our code is wrong, it makes sense to fix it regardless.

@ktoso ktoso merged commit bd52b89 into main Apr 9, 2026
51 checks passed
@ktoso ktoso deleted the wip-fix-tl-use branch April 9, 2026 12:49
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.

4 participants