From d4b499e3907295a7173fbc6f8ca34388583795f6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 17 Feb 2024 01:29:09 -0800 Subject: [PATCH] Update test suite to nightly-2024-02-17 --- tests/common/eq.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/common/eq.rs b/tests/common/eq.rs index 304d5b7d5..f77c0a041 100644 --- a/tests/common/eq.rs +++ b/tests/common/eq.rs @@ -618,8 +618,8 @@ spanless_eq_enum!(PatKind; Wild Ident(0 1 2) Struct(0 1 2 3) TupleStruct(0 1 2) Never Paren(0) MacCall(0) Err(0)); spanless_eq_enum!(TyKind; Slice(0) Array(0 1) Ptr(0) Ref(0 1) BareFn(0) Never Tup(0) AnonStruct(0 1) AnonUnion(0 1) Path(0 1) TraitObject(0 1) - ImplTrait(0 1) Paren(0) Typeof(0) Infer ImplicitSelf MacCall(0) Err - CVarArgs); + ImplTrait(0 1) Paren(0) Typeof(0) Infer ImplicitSelf MacCall(0) CVarArgs + Dummy Err(0)); impl SpanlessEq for Ident { fn eq(&self, other: &Self) -> bool { @@ -655,8 +655,8 @@ impl SpanlessEq for Param { } = other; SpanlessEq::eq(id, id2) && SpanlessEq::eq(is_placeholder, is_placeholder2) - && (matches!(ty.kind, TyKind::Err) - || matches!(ty2.kind, TyKind::Err) + && (matches!(ty.kind, TyKind::Err(_)) + || matches!(ty2.kind, TyKind::Err(_)) || SpanlessEq::eq(attrs, attrs2) && SpanlessEq::eq(ty, ty2) && SpanlessEq::eq(pat, pat2))