mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
efa7a5ea4a
Clean up query-forcing functions This PR takes the `force_query` function, inlines it into its only caller `force_from_dep_node_inner`, and renames the resulting function to `force_query_dep_node`. Combining the functions became possible after the removal of `rustc_query_system`, because they are now in the same crate. There are two other notable cleanups along the way: - Removing an unhelpful assertion and its verbose comment - The removed comment was originally added in https://github.com/rust-lang/rust/commit/0454a41, but is too verbose to be worth preserving inline. - Removing a redundant cache lookup while forcing, as it is useless in the serial compiler and unnecessary (and probably unhelpful) in the parallel compiler r? nnethercote