Simplify lookup of DepKind names in duplicate dep node check#151402
Simplify lookup of DepKind names in duplicate dep node check#151402rust-bors[bot] merged 3 commits intorust-lang:mainfrom
DepKind names in duplicate dep node check#151402Conversation
|
rustbot has assigned @petrochenkov. Use |
|
Back in #115920 I see some mention of allowing other crates to define dep kinds, but I can’t find any indication of why that’s desirable, or whether anything ever came of it. |
|
@bors try @rust-timer queue Just to be sure :) When working on derive proc-macro caching recently, I was quite confused by the depkind names are generated. Any simplifications are welcome 😁 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Simplify lookup of `DepKind` names in duplicate dep node check
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (7945977): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.0%, secondary -5.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.5%, secondary 4.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 473.092s -> 475.338s (0.47%) |
The dep names needed here are statically available from `rustc_middle`.
b756d97 to
395ca3b
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Removed the unnecessary @bors r=petrochenkov |
Rollup of 4 pull requests Successful merges: - #148637 (Replace `#[rustc_do_not_implement_via_object]` with `#[rustc_dyn_incompatible_trait]`) - #149209 (Move LTO to OngoingCodegen::join) - #151402 (Simplify lookup of `DepKind` names in duplicate dep node check) - #151437 (Roll bootstrap reviewers for `src/tools/build-manifest`) r? @ghost
Rollup merge of #151402 - dep-kind-name, r=petrochenkov Simplify lookup of `DepKind` names in duplicate dep node check This PR simplifies parts of the query system, by removing the `make_dep_kind_name_array!` macro, and removing much of the associated plumbing added by 68fd771. Instead, we now create a `DEP_KIND_NAMES` constant in `define_dep_nodes!`, and look up names in that instead.
This PR simplifies parts of the query system, by removing the
make_dep_kind_name_array!macro, and removing much of the associated plumbing added by 68fd771.Instead, we now create a
DEP_KIND_NAMESconstant indefine_dep_nodes!, and look up names in that instead.