Uh oh!
There was an error while loading. Please reload this page.
typeck: limit number of candidates shown for a single error - #33338
Conversation
rust-highfive
commented
May 2, 2016
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
Manishearth
commented
May 2, 2016
LGTM. I'd like someone else (@jonathandturner?) to rubber-stamp the number 10 as well, though 😄 |
sophiajt
commented
May 2, 2016
How difficult would it be to show an elision? Something like: FWIW, I'm fine stopping at 10, but I think it'd be good to let the user know there were others, they just aren't shown. |
birkenfeld
commented
May 2, 2016
@jonathandturner it should already say "N more candidates not shown" at the end. I just found another example in rust/src/librustc/traits/error_reporting.rs Line 209 in 90318b8 |
sophiajt
commented
May 2, 2016
Great, I missed that. If it has the message, I'm fine stopping even sooner than 10. 4 sounds good. |
Manishearth
commented
May 2, 2016
sgtm either way. I'd like to switch to "and N others" though, let's keep things uniform. @bors delegate+ |
bors
commented
May 2, 2016
✌️ @birkenfeld can now approve this pull request |
birkenfeld
commented
May 3, 2016
@bors r=Manishearth |
bors
commented
May 3, 2016
📌 Commit 9508180 has been approved by |
bors
commented
May 3, 2016
⌛ Testing commit 9508180 with merge db2531f... |
Manishearth
commented
May 3, 2016
@bors clean force |
Manishearth
commented
May 3, 2016
@bors r- clean force (something's wrong with the queue) |
Manishearth
commented
May 3, 2016
@bors r+ clean |
bors
commented
May 3, 2016
📌 Commit 9508180 has been approved by |
alexcrichton
commented
May 3, 2016
@bors: retry force clean |
steveklabnik
commented
May 3, 2016
Is the travis failure here legitimate? |
birkenfeld
commented
May 3, 2016
Yes; the diagnostics API changed on master. I'll fix it soon. |
bors
commented
May 11, 2016
☔ The latest upstream changes (presumably #33425) made this pull request unmergeable. Please resolve the merge conflicts. |
Limit of 4 taken consistent with limit for "similar impl candidates" in rustc::traits::error_reporting. Fixes: rust-lang#25356
birkenfeld
commented
May 12, 2016
Rebased. |
jseyfried
commented
May 12, 2016
@bors r+ |
bors
commented
May 12, 2016
📌 Commit 6ab93d7 has been approved by |
bors
commented
May 12, 2016
typeck: limit number of candidates shown for a single error No idea if 10/11 is a good limit. Are there any other such limits in rustc currently? Fixes: #25356
No idea if 10/11 is a good limit. Are there any other such limits in rustc currently?
Fixes: #25356