-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Point at where clauses where the associated item was restricted #65994
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
Conversation
I would also like to also handle the case in |
This comment has been minimized.
This comment has been minimized.
LL | type Assoc; | ||
| ----- associated type defined here | ||
... | ||
LL | impl Bat for () { |
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 think the error would be clearer if this part came first, followed by the explanation of the origin of the requirement.
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 is borne of a limitation we have today, we can't have subdiagnostics with multiple span labels, so it's either this or the more verbose "one subdiagnostic per span" output, which I try to avoid.
@bors r+ |
📌 Commit 9534b58 has been approved by |
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
Point at where clauses where the associated item was restricted CC rust-lang#57663. r? @nikomatsakis
Rollup of 6 pull requests Successful merges: - #65949 (Move promotion into its own pass) - #65994 (Point at where clauses where the associated item was restricted) - #66050 (Fix C aggregate-passing ABI on powerpc) - #66134 (Point at formatting descriptor string when it is invalid) - #66172 (Stabilize @file command line arguments) - #66226 (add link to unstable book for asm! macro) Failed merges: r? @ghost
CC #57663.
r? @nikomatsakis