Skip to content

Commit

Permalink
Update test suite to nightly-2023-11-18
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 18, 2023
1 parent b909fd6 commit 19fe4fe
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/common/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,15 @@ impl SpanlessEq for TokenKind {
_ => false,
},
(TokenKind::Interpolated(this), TokenKind::Interpolated(other)) => {
match (this.as_ref(), other.as_ref()) {
(Nonterminal::NtExpr(this), Nonterminal::NtExpr(other)) => {
SpanlessEq::eq(this, other)
let (this, this_span) = this.as_ref();
let (other, other_span) = other.as_ref();
SpanlessEq::eq(this_span, other_span)
&& match (this, other) {
(Nonterminal::NtExpr(this), Nonterminal::NtExpr(other)) => {
SpanlessEq::eq(this, other)
}
_ => this == other,
}
_ => this == other,
}
}
_ => self == other,
}
Expand Down Expand Up @@ -769,7 +772,7 @@ fn is_escaped_literal_token(token: &Token, unescaped: Symbol) -> bool {
Token {
kind: TokenKind::Interpolated(nonterminal),
span: _,
} => match nonterminal.as_ref() {
} => match &nonterminal.0 {
Nonterminal::NtExpr(expr) => match &expr.kind {
ExprKind::Lit(lit) => is_escaped_lit(lit, unescaped),
_ => false,
Expand Down

0 comments on commit 19fe4fe

Please sign in to comment.