Skip to content

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