diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/icu_provider_macros/src | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/icu_provider_macros/src')
-rw-r--r-- | vendor/icu_provider_macros/src/lib.rs | 4 | ||||
-rw-r--r-- | vendor/icu_provider_macros/src/tests.rs | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/vendor/icu_provider_macros/src/lib.rs b/vendor/icu_provider_macros/src/lib.rs index 8d39f0f87..fee0c8afa 100644 --- a/vendor/icu_provider_macros/src/lib.rs +++ b/vendor/icu_provider_macros/src/lib.rs @@ -209,7 +209,7 @@ fn data_struct_impl(attr: AttributeArgs, input: DeriveInput) -> TokenStream2 { }; format!("Marker type for [`{}`]: \"{}\"\n\n- Fallback priority: {}\n- Extension keyword: {}", name, key_lit.value(), fallback_by_docs_str, extension_key_docs_str) } else { - format!("Marker type for [`{}`]", name) + format!("Marker type for [`{name}`]") }; result.extend(quote!( @@ -260,7 +260,7 @@ fn data_struct_impl(attr: AttributeArgs, input: DeriveInput) -> TokenStream2 { } result.extend(quote!( - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] #input )); diff --git a/vendor/icu_provider_macros/src/tests.rs b/vendor/icu_provider_macros/src/tests.rs index c7ca63530..32be158c7 100644 --- a/vendor/icu_provider_macros/src/tests.rs +++ b/vendor/icu_provider_macros/src/tests.rs @@ -19,6 +19,7 @@ fn check(attr: Vec<TokenStream2>, item: TokenStream2, expected: TokenStream2) { } #[test] +#[rustfmt::skip] // inserts a comma fn test_basic() { // #[data_struct] check( @@ -27,7 +28,7 @@ fn test_basic() { pub struct FooV1; ), quote!( - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] pub struct FooV1; ), ); @@ -47,7 +48,7 @@ fn test_data_marker() { impl icu_provider::DataMarker for FooV1Marker { type Yokeable = FooV1; } - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] pub struct FooV1; ), ); @@ -76,7 +77,7 @@ fn test_keyed_data_marker() { None )); } - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] pub struct FooV1; ), ); @@ -128,7 +129,7 @@ fn test_multi_named_keyed_data_marker() { None )); } - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] pub struct FooV1<'data>; ), ); @@ -159,7 +160,7 @@ fn test_databake() { None )); } - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] #[databake(path = test::path)] pub struct FooV1; ), @@ -203,7 +204,7 @@ fn test_attributes() { Some(icu_provider::FallbackSupplement::Collation) )); } - #[derive(yoke::Yokeable, zerofrom::ZeroFrom)] + #[derive(icu_provider::prelude::yoke::Yokeable, icu_provider::prelude::zerofrom::ZeroFrom)] pub struct FooV1<'data>; ), ); |