-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add diagnostics for E0172, fix inline message for E0139 #27127
Conversation
So sorry, I already did this in Manishearth@850e9be . I'll update the spreadsheet to give myself a global lock over librustc |
If you think that one can be improved or this one is better, let me know and we can merge them :) |
Ah that's a shame :(. Oh well - is E0172 still okay? I could pull that out into a separate PR. On 139, I think yours is a better explanation of more common scenarios to hit this problem. That said, I think the short error message may be a little off? It talks about type parameters in its interior, but for the following example, I wouldn't really call the parameter 'interior':
|
Sure, in fact just amending the commit in this PR would work too. Hmm. "Interior" might be alluding to situations where there are no explicit type params involved. E.g.
But this isn't an important distinction, really. "contaisn unsubstituted type parameters" or some such might be better. (Feel free to make the change to the inline error in this same PR) |
47a4ea0
to
09c3580
Compare
OK, I think that should do it! |
``` | ||
|
||
The code is trying to specify that we want to receive a signed 32-bit integer | ||
which also implements Display. This doesn't make sense: when we pass `i32`, 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.
nit: backticks around Display
LGTM modulo nit |
09c3580
to
686d326
Compare
Added the nit-fix, and squashed. |
@bors r+ rollup |
📌 Commit 686d326 has been approved by |
@AlisdairO: If you wanna see what error code remains, take a look at the spreadsheet available here : #24407. |
@GuillaumeGomez Thanks a lot - I've been going through and marking them off in the spreadsheet, but I think we just hit an unfortunate coincidence :-) |
On which one ? |
On E0139. |
What's about E0139 ? It was marked as merged ? |
I don't think so - at least, as I see the spreadsheet I'm still marked as the assignee. I see from the issue that I'm supposed to comment in there too, which I haven't been doing, so I'll do that in future! |
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
…arth As title :-) Part of rust-lang#24407. r? @Manishearth
As title :-)
Part of #24407.