do not emit overlap errors for impls failing the orphan check by lcnr · Pull Req...
source link: https://github.com/rust-lang/rust/pull/89550
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
this should finally allow us to merge #86986, see #86986 (comment) for more details.
r? @nikomatsakis cc @eddyb
Awaiting bors try build completion.
@rustbot label: +S-waiting-on-perf
This comment has been hidden.
Try build successful - checks-actions
Build commit: 1c8704c (1c8704cd0aa20806f32471eb07a5af01fa99f8d0
)
Try build successful - checks-actions
Build commit: 1c8704c (1c8704cd0aa20806f32471eb07a5af01fa99f8d0
)
ok, const-and-non-const-impl.rs
now has three more "type annotations needed" errors. The reason they were hidden before is a use of err_count()
which is pretty fundamentally broken wrt the query system.
before we had
x = new InferCtxt
...
specialization_graph_of() // this errors and increases the error count
...
x.is_tainted_by_errors() // returns `true`
but we now have
orphan_check_impl() // this errors and increases the error count
...
x = new InferCtxt
...
specialization_graph_of() // this doesn't error because of the error in `orphan_check_impl` above
...
x.is_tainted_by_errors() // now returns `false`
Don't think that that should block this PR and believe that we stop using err_count
like this long term.
Finished benchmarking commit (1c8704c): comparison url.
Summary: This change led to large relevant mixed results in compiler performance.
- Small improvement in instruction counts (up to -0.6% on
incr-unchanged
builds oftuple-stress
) - Large regression in instruction counts (up to 2.4% on
full
builds ofinflate
)
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
Awaiting bors try build completion.
@rustbot label: +S-waiting-on-perf
Try build successful - checks-actions
Build commit: 244bc66 (244bc66664402a4b88605f32a857fa71310bcc1d
)
Finished benchmarking commit (244bc66): comparison url.
Summary: This change led to large relevant mixed results in compiler performance.
- Small improvement in instruction counts (up to -0.7% on
incr-unchanged
builds oftuple-stress
) - Large regression in instruction counts (up to 2.4% on
full
builds ofinflate
)
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
alright, sure love a 2.4 % perf regression to be noise xx
should now be ready for merge i guess
The latest upstream changes (presumably #86041) made this pull request unmergeable. Please resolve the merge conflicts.
@bors r+
Commit f55ff41 has been approved by nikomatsakis
Test timed out
@bors retry
Test successful - checks-actions
Approved by: nikomatsakis
Pushing 1d34cb4 to master...
Finished benchmarking commit (1d34cb4): comparison url.
Summary: This change led to moderate relevant mixed results in compiler performance.
- Small improvement in instruction counts (up to -0.5% on
incr-unchanged
builds ofhelloworld
) - Moderate regression in instruction counts (up to 0.5% on
incr-patched: println
builds ofstyle-servo
)
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.
Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged
along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged
label to this PR.
@rustbot label: +perf-regression
Perf "regressions" disappeared when the next PR was merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK