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

Emit impl difference error for GenericBoundFailure too #89914

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

jackh726
Copy link
Member

Fixes #86787

r? @estebank

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 15, 2021
LL | / type TRef<'a>
LL | |
LL | |
LL | | where
LL | | <Left as HasChildrenOf>::T: 'a,
LL | | <Right as HasChildrenOf>::T: 'a
| | - help: consider adding a where clause: `, <Left as HasChildrenOf>::T: 'a`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna say "I'm sad about the missing suggestion" but a glance shows that the suggestion was wrong in the first place :-/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pattern is unrepresentable even with GATs, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the suggested clause already exists, but even if it didn't, we can't have clauses on an impl that weren't there in the trait.

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Oct 15, 2021

📌 Commit c4f9eb1 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 15, 2021
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 15, 2021
…=estebank

Emit impl difference error for GenericBoundFailure too

Fixes rust-lang#86787

r? `@estebank`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 15, 2021
…=estebank

Emit impl difference error for GenericBoundFailure too

Fixes rust-lang#86787

r? ``@estebank``
jackh726 added a commit to jackh726/rust that referenced this pull request Oct 16, 2021
…=estebank

Emit impl difference error for GenericBoundFailure too

Fixes rust-lang#86787

r? ```@estebank```
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 16, 2021
…askrgr

Rollup of 10 pull requests

Successful merges:

 - rust-lang#89509 (Stabilize `unreachable_unchecked` as `const fn`)
 - rust-lang#89898 (Remove alloc::prelude)
 - rust-lang#89902 (Restrict the aarch64 outline atomics test to Linux)
 - rust-lang#89906 (Moved format-version constant to rustdoc-json-types)
 - rust-lang#89912 (emitter: current substitution can be multi-line)
 - rust-lang#89914 (Emit impl difference error for GenericBoundFailure too)
 - rust-lang#89915 (Some outlives cleanup)
 - rust-lang#89918 (Add some GATs related regression tests)
 - rust-lang#89921 ([fuchsia] Update process info struct)
 - rust-lang#89925 (updating docs to mention usage of AtomicBool)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e8efe09 into rust-lang:master Oct 16, 2021
@rustbot rustbot added this to the 1.57.0 milestone Oct 16, 2021
@jackh726 jackh726 deleted the gat_genericboundfailure branch October 16, 2021 13:33
@jackh726 jackh726 restored the gat_genericboundfailure branch March 12, 2022 18:30
@jackh726 jackh726 deleted the gat_genericboundfailure branch March 12, 2022 18:36
@jackh726 jackh726 restored the gat_genericboundfailure branch March 12, 2022 18:42
@jackh726 jackh726 deleted the gat_genericboundfailure branch March 12, 2022 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slightly confusing error message when using where with GATs
5 participants