-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
be886cd
to
c4f9eb1
Compare
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` |
There was a problem hiding this comment.
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 :-/
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@bors r+ |
📌 Commit c4f9eb1 has been approved by |
…=estebank Emit impl difference error for GenericBoundFailure too Fixes rust-lang#86787 r? `@estebank`
…=estebank Emit impl difference error for GenericBoundFailure too Fixes rust-lang#86787 r? ``@estebank``
…=estebank Emit impl difference error for GenericBoundFailure too Fixes rust-lang#86787 r? ```@estebank```
…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
Fixes #86787
r? @estebank