Skip to content
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

fix non_blanket_impls iteration order #88718

Closed
wants to merge 2 commits into from

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Sep 7, 2021

We sometimes iterate over all non_blanket_impls, not sure if this is observable outside
of error messages (i.e. as incremental bugs), but it hopefully fixes the underlying issue of #86986.

It does not fix the issue of #86986, as the iteration order still isn't stable between different targets

r? @nikomatsakis @Aaron1011

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 7, 2021
@lcnr
Copy link
Contributor Author

lcnr commented Sep 7, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 7, 2021
@bors
Copy link
Contributor

bors commented Sep 7, 2021

⌛ Trying commit 5ebbb28 with merge 9aa59c4f07da2a73629023de08a2231a65e25965...

@bors
Copy link
Contributor

bors commented Sep 7, 2021

☀️ Try build successful - checks-actions
Build commit: 9aa59c4f07da2a73629023de08a2231a65e25965 (9aa59c4f07da2a73629023de08a2231a65e25965)

@rust-timer
Copy link
Collaborator

Queued 9aa59c4f07da2a73629023de08a2231a65e25965 with parent 385f8e2, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9aa59c4f07da2a73629023de08a2231a65e25965): comparison url.

Summary: This change led to large relevant regressions 😿 in compiler performance.

  • Large regression in instruction counts (up to 2.8% on full builds of inflate)

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf +perf-regression

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Sep 7, 2021
@lcnr
Copy link
Contributor Author

lcnr commented Sep 7, 2021

that doesn't seem like an acceptable regression here, will have to do this differently

@nikomatsakis
Copy link
Contributor

OK. Closing this PR, then.

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 23, 2021
…s,michaelwoerister

fix non_blanket_impls iteration order

We sometimes iterate over all `non_blanket_impls`, not sure if this is observable outside
of error messages (i.e. as incremental bugs). This should fix the underlying issue of rust-lang#86986.

second attempt of rust-lang#88718

r? `@nikomatsakis`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants