Uh oh!
There was an error while loading. Please reload this page.
Fix some simple associated const issues. - #25065
Conversation
rust-highfive
commented
May 3, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
May 3, 2015
nikomatsakis
commented
May 5, 2015
This all seems good to me modulo that one error message (which also happens to be pretty frequent). I think we should ensure it's phrased in as comprehensible a way as possible. I'm now thinking:
or, when not doing a method lookup,
|
quantheory
commented
May 5, 2015
@nikomatsakis Better? |
nikomatsakis
commented
May 11, 2015
@quantheory much. Sorry for being slow, was on partial vacation last week. @bors r+ |
bors
commented
May 11, 2015
📌 Commit a5e6075 has been approved by |
bors
commented
May 11, 2015
bors
commented
May 11, 2015
💔 Test failed - auto-linux-64-x-android-t |
alexcrichton
commented
May 11, 2015
Perhaps a rebase for this PR is in order? Failures like that generally don't turn out to be false negatives unfortunately. |
oli-obk
commented
May 11, 2015
i tried it locally, even with the rebase that line has to go. |
94c3e8a to
5beaeabComparequantheory
commented
May 11, 2015
I haven't had the chance to do a full |
quantheory
commented
May 12, 2015
The version here passed |
alexcrichton
commented
May 12, 2015
bors
commented
May 12, 2015
⌛ Testing commit 5beaeab with merge b5277ba... |
bors
commented
May 12, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
May 12, 2015
⌛ Testing commit 5beaeab with merge 543ef45... |
bors
commented
May 12, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
May 13, 2015
⌛ Testing commit 5beaeab with merge 4a5e4cd... |
bors
commented
May 13, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
May 13, 2015
⌛ Testing commit 5beaeab with merge 65ea478... |
bors
commented
May 13, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
May 13, 2015
⌛ Testing commit 5beaeab with merge bcc76d4... |
bors
commented
May 13, 2015
⛄ The build was interrupted to prioritize another pull request. |
bors
commented
May 13, 2015
☔ The latest upstream changes (presumably #24619) made this pull request unmergeable. Please resolve the merge conflicts. |
5beaeab to
29b31d0CompareAlso change several error messages to refer to "items" rather than "methods", since associated items that require resolution during type checking are not always methods.
29b31d0 to
b4bbf3aComparequantheory
commented
May 14, 2015
Rebased, passes |
alexcrichton
commented
May 14, 2015
bors
commented
May 14, 2015
⌛ Testing commit b4bbf3a with merge 1b5b639... |
…age, r=nikomatsakis This fixes#24922 and #25017, and reduces the number of error messages that talk about "methods" when associated constants rather than methods are involved. I will admit that I haven't thought very carefully about the error messages. My goal has been to make more of the messages technically correct in all situations, and to avoid ICEs. But in some cases we could probably talk specifically about "methods" rather than "items".
bors
commented
May 14, 2015
…omatsakis Closes#25046 (by rejecting the code that causes the ICE) and #24946. I haven't been able to deal with the array size or recursion issues yet for associated consts, though my hope was that the change I made for range match patterns might help with array sizes, too. This PR is pretty much orthogonal to #25065.
This fixes#24922 and #25017, and reduces the number of error messages that talk about "methods" when associated constants rather than methods are involved.
I will admit that I haven't thought very carefully about the error messages. My goal has been to make more of the messages technically correct in all situations, and to avoid ICEs. But in some cases we could probably talk specifically about "methods" rather than "items".