10

do not emit overlap errors for impls failing the orphan check by lcnr · Pull Req...

 2 years ago
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.
neoserver,ios ssh client

Conversation

Copy link

Contributor

lcnr commented on Oct 5

this should finally allow us to merge #86986, see #86986 (comment) for more details.

r? @nikomatsakis cc @eddyb

lcnr

changed the title do not emit overlap errors from impls failing the orphan check

do not emit overlap errors for impls failing the orphan check

on Oct 5

Copy link

Contributor

Author

lcnr commented on Oct 21

Copy link

Collaborator

rust-timer commented on Oct 21

Awaiting bors try build completion.

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

Copy link

Contributor

bors commented on Oct 21

hourglass Trying commit 7d5a76d with merge 1c8704c...

This comment has been hidden.

Copy link

Contributor

bors commented on Oct 21

sunny Try build successful - checks-actions
Build commit: 1c8704c (1c8704cd0aa20806f32471eb07a5af01fa99f8d0)

Copy link

Collaborator

rust-timer commented on Oct 21

Copy link

Contributor

bors commented on Oct 21

sunny Try build successful - checks-actions
Build commit: 1c8704c (1c8704cd0aa20806f32471eb07a5af01fa99f8d0)

Copy link

Contributor

Author

lcnr commented on Oct 21

edited

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.

Copy link

Collaborator

rust-timer commented on Oct 21

Finished benchmarking commit (1c8704c): comparison url.

Summary: This change led to large relevant mixed results shrug in compiler performance.

  • Small improvement in instruction counts (up to -0.6% on incr-unchanged builds of tuple-stress)
  • Large regression in instruction counts (up to 2.4% 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

Copy link

Contributor

Author

lcnr commented on Oct 21

Copy link

Collaborator

rust-timer commented on Oct 21

Awaiting bors try build completion.

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

Copy link

Contributor

bors commented on Oct 21

hourglass Trying commit 9eb21cf with merge 244bc66...

Copy link

Contributor

bors commented on Oct 21

sunny Try build successful - checks-actions
Build commit: 244bc66 (244bc66664402a4b88605f32a857fa71310bcc1d)

Copy link

Collaborator

rust-timer commented on Oct 21

Copy link

Collaborator

rust-timer commented on Oct 21

Finished benchmarking commit (244bc66): comparison url.

Summary: This change led to large relevant mixed results shrug in compiler performance.

  • Small improvement in instruction counts (up to -0.7% on incr-unchanged builds of tuple-stress)
  • Large regression in instruction counts (up to 2.4% 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

Copy link

Contributor

Author

lcnr commented on Oct 23

Copy link

Contributor

Author

lcnr commented 16 days ago

alright, sure love a 2.4 % perf regression to be noise xx

should now be ready for merge i guess sweat_smile

Copy link

Contributor

bors commented 13 days ago

umbrella The latest upstream changes (presumably #86041) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link

Contributor

nikomatsakis commented 12 days ago

@bors r+

Copy link

Contributor

bors commented 12 days ago

pushpin Commit f55ff41 has been approved by nikomatsakis

Copy link

Contributor

bors commented 12 days ago

hourglass Testing commit f55ff41 with merge 1e3c735...

Copy link

Contributor

bors commented 12 days ago

boom Test timed out

Copy link

Collaborator

rust-log-analyzer commented 12 days ago

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

Copy link

Contributor

Author

lcnr commented 12 days ago

@bors retry

Copy link

Contributor

bors commented 11 days ago

hourglass Testing commit f55ff41 with merge 1d34cb4...

Copy link

Contributor

bors commented 11 days ago

sunny Test successful - checks-actions
Approved by: nikomatsakis
Pushing 1d34cb4 to master...

bors

merged commit 1d34cb4 into

rust-lang:master 11 days ago

11 checks passed

rustbot

added this to the 1.58.0 milestone

11 days ago

lcnr

deleted the coherence-specialization branch

11 days ago

Copy link

Collaborator

rust-timer commented 11 days ago

Finished benchmarking commit (1d34cb4): comparison url.

Summary: This change led to moderate relevant mixed results shrug in compiler performance.

  • Small improvement in instruction counts (up to -0.5% on incr-unchanged builds of helloworld)
  • Moderate regression in instruction counts (up to 0.5% on incr-patched: println builds of style-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

Copy link

Contributor

matthewjasper commented 8 days ago

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

Projects

None yet

Milestone

1.58.0

Linked issues

Successfully merging this pull request may close these issues.

None yet

10 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK