mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This makes the code easier to write and also prevents any lifetime issues from a
diagnostic outliving the SmallString due to diagnostic transactions.
(cherry picked from commit 010fa39f31)