Remove def_id_for_ty_in_cycle#153867
Conversation
|
rustbot has assigned @dingxiangfei2009. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| let diag = search_for_cycle_permutation( | ||
| &cycle_error.cycle, | ||
| |cycle| { | ||
| if cycle[0].frame.dep_kind == DepKind::layout_of |
There was a problem hiding this comment.
This makes me wonder if QueryStackFrame needs dep_kind when it also has tagged_key.
There was a problem hiding this comment.
Yeah, it should be fairly straightforward to reconstruct a DepKind from a TaggedQueryKey if one is needed.
| if info.frame.dep_kind == DepKind::check_representability_adt_ty | ||
| && let Some(def_id) = info.frame.def_id_for_ty_in_cycle | ||
| && let Some(def_id) = def_id.as_local() | ||
| if let TaggedQueryKey::check_representability_adt_ty(key) = info.frame.tagged_key |
There was a problem hiding this comment.
This took me a minute to parse because of the snake_case enum variant name. Likewise for the layout_of ones below. Seems hard to avoid, though.
|
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 03749d6 (parent) -> 9f0615c (this PR) Test differencesShow 2 test diffs2 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 9f0615c4301206eeba76468f78d34876c4a2997e --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (9f0615c): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary -2.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 482.982s -> 484.991s (0.42%) |
Remove redundant fields from `QueryStackFrame` - Follow-up to rust-lang#153867 (comment) --- Now that QueryStackFrame holds a TaggedQueryKey, it turns out that all of its other fields are redundant and can be removed: - An explicit dep-kind is redundant here. If we want to find the query name, or check for specific queries, we can inspect the `TaggedQueryKey` instead. - Similarly, in cases where the key is some kind of `DepId`, we can extract it directly from the `TaggedQueryKey`. r? nnethercote
This removes
QueryKey::def_id_for_ty_in_cycleandQueryStackFrame.def_id_for_ty_in_cycleby computing it instead fromTaggedQueryKey.