-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Move rustc_query_system code, part 3
#152516
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
base: main
Are you sure you want to change the base?
Conversation
From `rustc_query_state` to `rustc_middle`.
This includes the types `QueryInfo`, `QueryJob`, `QueryJobId`, `QueryWaiter`, `QueryLatch`, and `QueryLatchInfo`. `CycleError` and `QueryStack*` had to come along too, due to type interdependencies. The `QueryStack*` types are put into a new submodule `rustc_middle::query::stack`.
This one is straightforward.
From `rustc_query_system` to `rustc_middle`.
From `rustc_query_system::query::plumbing` to `rustc_middle::query::plumbing`.
Most of the files within the `dep_graph` module can be moved wholesale into `rustc_middle`. But two of them (`mod.rs` and `dep_node.rs`) have the same name as existing files in `rustc_middle`, so for those I just copied the contents into the existing files. The commit also moves `QueryContext` and `incremental_verify_ich*` because they are tightly intertwined with the dep graph code. And a couple of error structs moved as well.
|
|
|
This PR moves most of what's left in |
|
|
||
| #[inline] | ||
| #[instrument(skip(tcx, dep_graph_data, result, hash_result, format_value), level = "debug")] | ||
| pub fn incremental_verify_ich<Tcx, V>( |
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.
Suggestion: Since we’re moving it anyway, this whole incremental_verify_ich chunk looks like a good candidate for its own submodule.
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.
rustc_query_system has a submodule ich and I was wondering about that, but to keep things simple I mostly moved things to modules of the same name when they existed.
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.
(I haven't gotten around to moving ich to rustc_middle yet.)
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.
From what I can tell, the ich module is the definition of StableHashingContext (used in many places), whereas incremental_verify_ich is some plumbing code that happens to use StableHashingContext. So I suspect that they are more-or-less separate from a module grouping perspective.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Following on from #152419.
r? @Zalathar