-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Recursive delegation improvements #150347
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
Conversation
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
|
@rustbot ready |
|
r=me after squashing commits. |
|
Reminder, once the PR becomes ready for a review, use |
c218251 to
3f477dd
Compare
|
@rustbot ready |
|
@bors r+ |
|
☀️ Test successful - checks-actions |
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 63001d7 (parent) -> a47e39e (this PR) Test differencesShow 44 test diffsStage 1
Stage 2
Additionally, 38 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 a47e39ea2061c849fc9d3976d37d9e31b23ba531 --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 (a47e39e): 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 0.7%, secondary 2.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.4%, secondary -3.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 483.496s -> 482.784s (-0.15%) |
This PR fixes interaction of recently added recursive delegations with other features, such as generics inheritance and attributes inheritance. It fixes #150152 ICE, it is a part of the delegation feature #118212. This issue contains two examples with different causes of ICE:
trait_id.is_some()which in case of an unresolved trait wasNone, we should have usedof_traitfrom AST level for this purposeDelegationIdsstruct, now we provide different DefIds (either immediate delegee DefId or the root function DefId inlower_delegationmethodMoreover, this PR fixes how attributes inheritance work with recursive delegations, earlier we would have copied attributes from the root function, however now we inherit attributes from the actual delegee, for this purpose we store attributes to inherit for delegations too, in the same way they were stored for functions.
r? @petrochenkov