Uh oh!
There was an error while loading. Please reload this page.
Fix debug infinite loop - #41342
Conversation
rust-highfive
commented
Apr 17, 2017
r? @BurntSushi (rust_highfive has picked a reviewer for you, use r? to override) |
sfackler
commented
Apr 17, 2017
How is this going to fix things? Isn't it just going to recurse the same way? |
GuillaumeGomez
commented
Apr 17, 2017
You give me a doubt on the fact that I tested correctly. |
c437324 to
01e2f03CompareGuillaumeGomez
commented
Apr 17, 2017
Fixed for good this time. |
ollie27
left a comment
There was a problem hiding this comment.
Looking at #39002, the same mistake was made for the following types as well which need to be fixed:
enum_set::Iter
linked_list::Iter
linked_list::IterMut
linked_list::IntoIter
linked_list::FrontPlace
linked_list::BackPlace
vec_deque::Iter
vec_deque::IterMut
vec_deque::IntoIter
vec_deque::Drain
There was a problem hiding this comment.
It would be better to use f.debug_tuple("Difference").field(&self.a).field(&self.b).finish() but in this case as it's including every field, #[derive(Debug)] would suffice.
However, like other iterators in std this could use f.debug_list().entries(self.clone()).finish() to display a list of the items the iterator will return.
There was a problem hiding this comment.
This seems like a better idea. Updating and testing.
01e2f03 to
a850cdcCompareGuillaumeGomez
commented
Apr 19, 2017
Updated. |
alexcrichton
commented
Apr 20, 2017
@bors: r+ |
bors
commented
Apr 20, 2017
📌 Commit a850cdc has been approved by |
bors
commented
Apr 20, 2017
⌛ Testing commit a850cdc with merge 4eb85e2... |
bors
commented
Apr 20, 2017
💔 Test failed - status-appveyor |
alexcrichton
commented
Apr 20, 2017
@bors: retry |
bors
commented
Apr 20, 2017
…chton Fix debug infinite loop Fixes#41338.
bors
commented
Apr 21, 2017
☀️ Test successful - status-appveyor, status-travis |
Fixes#41338.