about summary refs log tree commit diff
path: root/src/libcollections/enum_set.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-04-17 18:06:43 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2017-04-19 18:50:01 +0200
commita850cdcb7ec82cc5eaec76ee90b6ee1794a6da9b (patch)
tree802d2d01ac7cf8a22e7ab09736d54bac776b07ef /src/libcollections/enum_set.rs
parent5997806a6a4f1e57491bd9f24c7ac07619bf38d2 (diff)
downloadrust-a850cdcb7ec82cc5eaec76ee90b6ee1794a6da9b.tar.gz
rust-a850cdcb7ec82cc5eaec76ee90b6ee1794a6da9b.zip
Fix debug infinite loop
Diffstat (limited to 'src/libcollections/enum_set.rs')
-rw-r--r--src/libcollections/enum_set.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs
index ebee75d1a1a..aaee567bf1d 100644
--- a/src/libcollections/enum_set.rs
+++ b/src/libcollections/enum_set.rs
@@ -225,7 +225,8 @@ pub struct Iter<E> {
 impl<E: fmt::Debug> fmt::Debug for Iter<E> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         f.debug_tuple("Iter")
-         .field(&self.clone())
+         .field(&self.index)
+         .field(&self.bits)
          .finish()
     }
 }