Skip to content

Commit 384516b

Browse files
committed
Update test suite to nightly-2024-12-19
1 parent 6adf9e5 commit 384516b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/common/eq.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ impl SpanlessEq for TokenKind {
722722

723723
impl SpanlessEq for TokenStream {
724724
fn eq(&self, other: &Self) -> bool {
725-
let mut this_trees = self.trees();
726-
let mut other_trees = other.trees();
725+
let mut this_trees = self.iter();
726+
let mut other_trees = other.iter();
727727
loop {
728728
let this = match this_trees.next() {
729729
None => return other_trees.next().is_none(),
@@ -781,7 +781,7 @@ fn doc_comment<'a>(
781781
Some(TokenTree::Delimited(_span, _spacing, Delimiter::Bracket, stream)) => stream,
782782
_ => return false,
783783
};
784-
let mut trees = stream.trees();
784+
let mut trees = stream.iter();
785785
match trees.next() {
786786
Some(TokenTree::Token(
787787
Token {

0 commit comments

Comments
 (0)