Skip to content

Use StringMap in EditorDiagConsumer #68550

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
merged 2 commits into from
Sep 15, 2023

Conversation

hamishknight
Copy link
Contributor

As noted by the comment, storing a StringRef is indeed brittle since the provided SourceManager is not guaranteed to live as long as the consumer. Update to use a StringMap. Also update JSONFixitWriter to not store a SourceManager.

rdar://111589090

As noted by the comment, storing a `StringRef` is
indeed brittle. Update to use a StringMap.

rdar://111589090
Switch to storing the necessary edit information
instead.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

Foot, meet gun. @xymus may also be interested in this.

@hamishknight hamishknight merged commit 3a49ee9 into swiftlang:main Sep 15, 2023
@hamishknight hamishknight deleted the pillar-of-garbage branch September 15, 2023 23: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.

2 participants