Skip to content

Commit

Permalink
Update test suite to nightly-2024-12-19
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 19, 2024
1 parent 6adf9e5 commit 384516b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 384516b

Please sign in to comment.