]> git.lizzy.rs Git - rust.git/blobdiff - library/proc_macro/src/lib.rs
Auto merge of #101074 - JohnTitor:rollup-zwznihq, r=JohnTitor
[rust.git] / library / proc_macro / src / lib.rs
index 08b45ac11a14c2b06f427874f96210f755bcbccf..8e478cd7bc8a2f9ade1430d59e247a4edbc295ce 100644 (file)
@@ -382,6 +382,14 @@ fn next(&mut self) -> Option<TokenTree> {
                 bridge::TokenTree::Literal(tt) => TokenTree::Literal(Literal(tt)),
             })
         }
+
+        fn size_hint(&self) -> (usize, Option<usize>) {
+            self.0.size_hint()
+        }
+
+        fn count(self) -> usize {
+            self.0.count()
+        }
     }
 
     #[stable(feature = "proc_macro_lib2", since = "1.29.0")]