From 384516b057cc8291001d62b128492314d376c554 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 18 Dec 2024 22:27:07 -0800 Subject: [PATCH] Update test suite to nightly-2024-12-19 --- tests/common/eq.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/common/eq.rs b/tests/common/eq.rs index 384b9eaff..f857f6485 100644 --- a/tests/common/eq.rs +++ b/tests/common/eq.rs @@ -722,8 +722,8 @@ impl SpanlessEq for TokenKind { impl SpanlessEq for TokenStream { fn eq(&self, other: &Self) -> bool { - let mut this_trees = self.trees(); - let mut other_trees = other.trees(); + let mut this_trees = self.iter(); + let mut other_trees = other.iter(); loop { let this = match this_trees.next() { None => return other_trees.next().is_none(), @@ -781,7 +781,7 @@ fn doc_comment<'a>( Some(TokenTree::Delimited(_span, _spacing, Delimiter::Bracket, stream)) => stream, _ => return false, }; - let mut trees = stream.trees(); + let mut trees = stream.iter(); match trees.next() { Some(TokenTree::Token( Token {