Uh oh!
There was an error while loading. Please reload this page.
Errors with the same span print the span once - #5798
Conversation
recrack
commented
Apr 9, 2013
before: after:
before: after: |
bstrie
commented
Apr 9, 2013
Awesome! Though I'd like to get a dev in here to confirm that they like this change wrt how notes get pushed to the end. In particular, how does this change handle borrowing errors, where the error itself is followed by a note like "loan of foo granted here" ? I hadn't considered this when I originally opened #4569, it may not even have been implemented back then. |
graydon
commented
Apr 10, 2013
I generally like this a lot. I'm not sure, as @bstrie mentions, how well this plays with borrow-check errors. Can you try a couple of those to see? |
recrack
commented
Apr 10, 2013
Do you mean kind of this test? before after ( note: prior loan as mutable granted here )
before after ( note: prior loan as mutable granted here ) |
bstrie
commented
Apr 10, 2013
Hm, that definitely seems problematic. Is it difficult to have those notes printed after the errors rather than before them? |
graydon
commented
Apr 10, 2013
Yeah. Maybe I don't understand the structure of the patch, but I wonder the same question: can notes come after errors? Or does that undermine the whole logic of consolidating messages? |
recrack
commented
Apr 11, 2013
recrack
commented
Apr 12, 2013
what kind of error message style do you want?
|
recrack
commented
Apr 12, 2013
I changed the order. like this.(Style 2) |
recrack
commented
Apr 17, 2013
r? @brson |
brson
commented
Apr 17, 2013
Thanks @recrack. Sorry for the delay. |
recrack
commented
Apr 18, 2013
@brson re-r? Fixed. Compile-test fail case.
|
Add test for `needless_range_loop` issue Closesrust-lang#2277 This was fixed when we fixedrust-lang#2542. changelog: none
5798: Introduce Label r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Fix#4569.