Skip to content

Commit 1d2e2be

Browse files
committed
Update test suite to nightly-2025-04-03
1 parent 2400946 commit 1d2e2be

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

tests/common/eq.rs

+1-23
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ use rustc_ast::ast::WherePredicateKind;
169169
use rustc_ast::ast::WhereRegionPredicate;
170170
use rustc_ast::ast::YieldKind;
171171
use rustc_ast::ptr::P;
172-
use rustc_ast::token::{
173-
self, CommentKind, Delimiter, IdentIsRaw, Lit, Nonterminal, Token, TokenKind,
174-
};
172+
use rustc_ast::token::{self, CommentKind, Delimiter, IdentIsRaw, Lit, Token, TokenKind};
175173
use rustc_ast::tokenstream::{
176174
AttrTokenStream, AttrTokenTree, AttrsTarget, DelimSpacing, DelimSpan, LazyAttrTokenStream,
177175
Spacing, TokenStream, TokenTree,
@@ -713,16 +711,6 @@ impl SpanlessEq for TokenKind {
713711
TokenKind::DotDotEq | TokenKind::DotDotDot => true,
714712
_ => false,
715713
},
716-
(TokenKind::Interpolated(this), TokenKind::Interpolated(other)) => {
717-
let this = this.as_ref();
718-
let other = other.as_ref();
719-
match (this, other) {
720-
(Nonterminal::NtExpr(this), Nonterminal::NtExpr(other)) => {
721-
SpanlessEq::eq(this, other)
722-
}
723-
_ => this == other,
724-
}
725-
}
726714
_ => self == other,
727715
}
728716
}
@@ -827,16 +815,6 @@ fn is_escaped_literal_token(token: &Token, unescaped: Symbol) -> bool {
827815
Ok(lit) => is_escaped_literal_meta_item_lit(&lit, unescaped),
828816
Err(_) => false,
829817
},
830-
Token {
831-
kind: TokenKind::Interpolated(nonterminal),
832-
span: _,
833-
} => match nonterminal.as_ref() {
834-
Nonterminal::NtExpr(expr) => match &expr.kind {
835-
ExprKind::Lit(lit) => is_escaped_lit(lit, unescaped),
836-
_ => false,
837-
},
838-
_ => false,
839-
},
840818
_ => false,
841819
}
842820
}

0 commit comments

Comments
 (0)