Skip to content

[region-isolation] Simplify the code for use after transfer errors. #72140

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 7, 2024

Specifically, we previously would generate a list of errors to emit and then have one centralized piece of code that went through the list and emitted them. Instead, we now have a low level emitter struct that is just used to emit the diagnostic at the immediate point where we would create previously an error record. This places the diagnostic emission next to the piece of code that triggered it being emitted making it easier to debug why an error was emitted using -Xllvm -swift-diagnostics-assert-on-*.

I am going to do the same for transfer non transferrable in a little bit once the async let patch has landed. It has some transfer non transferable error additions that I want to get in so I am going to wait on that.

NFCI.

Specifically, we previously would generate a list of errors to emit and then
have one centralized piece of code that went through the list and emitted them.
Instead, we now have a low level emitter struct that is just used to emit the
diagnostic at the immediate point where we would create previously an error
record. This places the diagnostic emission next to the piece of code that
triggered it being emitted making it easier to debug why an error was emitted
using -Xllvm -swift-diagnostics-assert-on-*.

I am going to do the same for transfer non transferrable in a little bit once
the async let patch has landed. It has some transfer non transferable error
additions that I want to get in so I am going to wait on that.

NFCI.
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 7, 2024

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge March 7, 2024 00:48
@gottesmm gottesmm merged commit c31d1e0 into swiftlang:main Mar 7, 2024
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