From d4012a778ea980dc8aab8bc1697ba04800e80a71 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 23 Dec 2023 20:55:12 -0800 Subject: [PATCH] Update test suite to nightly-2023-12-24 --- tests/common/eq.rs | 2 ++ tests/test_round_trip.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/common/eq.rs b/tests/common/eq.rs index 9742a61702..8d8e83e757 100644 --- a/tests/common/eq.rs +++ b/tests/common/eq.rs @@ -111,6 +111,7 @@ use rustc_ast::ast::Param; use rustc_ast::ast::ParenthesizedArgs; use rustc_ast::ast::Pat; use rustc_ast::ast::PatField; +use rustc_ast::ast::PatFieldsRest; use rustc_ast::ast::PatKind; use rustc_ast::ast::Path; use rustc_ast::ast::PathSegment; @@ -569,6 +570,7 @@ spanless_eq_enum!(MacStmtStyle; Semicolon Braces NoBraces); spanless_eq_enum!(ModKind; Loaded(0 1 2) Unloaded); spanless_eq_enum!(Movability; Static Movable); spanless_eq_enum!(Mutability; Mut Not); +spanless_eq_enum!(PatFieldsRest; Rest None); spanless_eq_enum!(RangeEnd; Included(0) Excluded); spanless_eq_enum!(RangeLimits; HalfOpen Closed); spanless_eq_enum!(StmtKind; Local(0) Item(0) Expr(0) Semi(0) Empty MacCall(0)); diff --git a/tests/test_round_trip.rs b/tests/test_round_trip.rs index 63ce3169a2..8a336416ea 100644 --- a/tests/test_round_trip.rs +++ b/tests/test_round_trip.rs @@ -165,7 +165,7 @@ fn translate_message(diagnostic: &Diagnostic) -> Cow<'static, str> { }; } - let message = &diagnostic.message[0].0; + let message = &diagnostic.messages[0].0; let args = translation::to_fluent_args(diagnostic.args()); let (identifier, attr) = match message { @@ -175,11 +175,11 @@ fn translate_message(diagnostic: &Diagnostic) -> Cow<'static, str> { FLUENT_BUNDLE.with(|fluent_bundle| { let message = fluent_bundle - .get_message(identifier) + .get_message(&identifier) .expect("missing diagnostic in fluent bundle"); let value = match attr { Some(attr) => message - .get_attribute(attr) + .get_attribute(&attr) .expect("missing attribute in fluent message") .value(), None => message.value().expect("missing value in fluent message"),