-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Create QuerySideEffects
and use it for diagnostics
#87416
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
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 89cc7b5da823e6322fc6df30b17cb4e7ac55f999 with merge 8da7cd35c07e3102223f370de2274c9234cf349c... |
☀️ Try build successful - checks-actions |
Queued 8da7cd35c07e3102223f370de2274c9234cf349c with parent 4a1f419, future comparison URL. |
Finished benchmarking try commit (8da7cd35c07e3102223f370de2274c9234cf349c): comparison url. Summary: This change led to significant regressions 😿 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @bors rollup=never |
89cc7b5
to
68c35e4
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 68c35e4eaf058dfb492d8580ced9e13009a4af6f with merge 0cee03201c63f955fddcddfd7d96eb25569ca877... |
☀️ Try build successful - checks-actions |
Queued 0cee03201c63f955fddcddfd7d96eb25569ca877 with parent f9b95f9, future comparison URL. |
Finished benchmarking try commit (0cee03201c63f955fddcddfd7d96eb25569ca877): comparison url. Summary: This benchmark run did not return any significant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. @bors rollup=never |
68c35e4
to
8ed6349
Compare
QuerySideEffects
and use it for diagnosticsQuerySideEffects
and use it for diagnostics
@cjgillot This is now ready for review |
{ | ||
break; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this modification cause us to emit the diagnostic twice for parallel_compiler runs?
(And if it does, is it a big deal?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - only the thread that inserts into processed
first will process the side effects.
This PR is about wrapping the diagnostic load/save inside a more general QuerySideEffect abstraction. Most is straightforward renaming. |
8ed6349
to
87740ba
Compare
@bors r+ |
📌 Commit 87740ba has been approved by |
☀️ Test successful - checks-actions |
The code for saving and loading diagnostics during execution is generalized to handle a new
QuerySideEffects
struct. Currently, this struct just holds diagnostics - in a follow-up PR, I plan to add support for storing attriutes marked as used during query execution.This is a pure refactor, with no intended behavior changes.