Skip to content

[stdlib] fix accidental mutability in UTF8.ValidationError (redux) - #92501

Open
glessard wants to merge 2 commits into
swiftlang:mainfrom
glessard:rdar186327150-why-was-it-ever-mutable
Open

glessard wants to merge 2 commits into
swiftlang:mainfrom
glessard:rdar186327150-why-was-it-ever-mutable

Conversation

@glessard

@glessard glessard commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

ValidationError's stored properties were accidentally left mutable, invalidating the type's invariants in the process.

This PR removes the generated set and _modify accessors.

I attempted this earlier in #92404, but there was a link error when building for LSAN, not caught by PR testing. This is a second attempt.

Addresses rdar://186327150

@glessard
glessard requested a review from a team as a code owner September 22, 2026 00:56
@glessard

Copy link
Copy Markdown
Contributor Author

preset=buildbot_incremental_linux,lsan,tools=RDA,stdlib=DA
@swift-ci please test with preset Linux platform

@glessard

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

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