delegation: fix cycles during delayed lowering#154368
delegation: fix cycles during delayed lowering#154368rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
What specific uses of |
|
This should really have a reviewer with a lot of query system experience. r? @Zoxc |
|
Failed to set assignee to
|
This comment has been minimized.
This comment has been minimized.
f32739b to
f50159f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f50159f to
5afd6e4
Compare
|
So the reason of this cycle was that this function wants to iterate over all free items, however they were not available during delayed lowering as it was executed before rust/compiler/rustc_middle/src/ty/print/pretty.rs Line 3393 in e3691a5 Next, there is one more problem in this function, which is maybe not that actual now, but it will be during supporting inherent impls, as during function resolution we will do coherence check, and in cases like: struct X<T> { t: T }
// No generics provided
impl X {
pub fn foo() {}
}
reuse X::foo;we would still come to rust/compiler/rustc_middle/src/ty/print/pretty.rs Line 3398 in e3691a5 @rustbot ready |
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
|
@bors try @rust-timer queue |
|
@rustbot ready |
|
r=me after squashing commits. |
|
Reminder, once the PR becomes ready for a review, use |
2314000 to
dac2e3e
Compare
|
@rustbot ready |
|
@bors r+ |
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 4c42051 (parent) -> a87c9b9 (this PR) Test differencesShow 28 test diffsStage 1
Stage 2
Additionally, 26 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard a87c9b96031d4d8698bb0cd6533e83bc6d77ddaa --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 (a87c9b9): comparison URL. Overall result: ❌✅ regressions and improvements - no action needed@rustbot label: -perf-regression 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 6.5%, secondary 5.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 489.441s -> 489.938s (0.10%) |
View all comments
This PR forces lowering of delayed owners after
hir_crate_items, as some diagnostics usehir_crate_itemswhich results in query cycle which is then hangs callingdef_path_stragain and again. Fixes #154169. Part of #118212.r? @petrochenkov