Skip to content

Conversation

hamishknight
Copy link
Contributor

Lift the limitation of a single active diagnostic, which was a pretty easy-to-hit footgun. We now maintain an array of active in-flight diagnostics, which gets flushed once all them have ended.

The ASTPrinter may kick requests that may emit diagnostics, make sure
we don't attempt to recursively print the decl since that would lead
to infinite recursion when diagnosing the cycle.
Lift the limitation of a single active diagnostic, which was a pretty
easy-to-hit footgun. We now maintain an array of active in-flight
diagnostics, which gets flushed once all them have ended.
@hamishknight hamishknight force-pushed the the-diags-never-stop-no branch from 29c9d83 to 89feb8f Compare August 17, 2025 10:48
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 7fb532e into swiftlang:main Sep 3, 2025
4 of 5 checks passed
@hamishknight hamishknight deleted the the-diags-never-stop-no branch September 3, 2025 18:59
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