summaryrefslogtreecommitdiffstats
path: root/vendor/icu_provider_macros
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/icu_provider_macros
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-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')
-rw-r--r--vendor/icu_provider_macros/.cargo-checksum.json2
-rw-r--r--vendor/icu_provider_macros/Cargo.toml5
-rw-r--r--vendor/icu_provider_macros/src/lib.rs4
-rw-r--r--vendor/icu_provider_macros/src/tests.rs13
4 files changed, 12 insertions, 12 deletions
diff --git a/vendor/icu_provider_macros/.cargo-checksum.json b/vendor/icu_provider_macros/.cargo-checksum.json
index 67fb422f7..b33f9def3 100644
--- a/vendor/icu_provider_macros/.cargo-checksum.json
+++ b/vendor/icu_provider_macros/.cargo-checksum.json
@@ -1 +1 @@
-{"files":{"Cargo.toml":"8f35af4529f0a10bf10dc6ba2ad5fffcfb78d29c78d1e3d4e1d737839480f7a1","LICENSE":"4ad7541d66a407234e2c84902124cef325c29f3e966353efdb800bedb8b8da21","README.md":"f9f95075851c9c3b7d0559c25794ebcad5dee957c7fb27c343418a3324f15b8a","src/lib.rs":"c6675b847fb5a2fd0a686460598c4e76b55eff51df792da0386be9b02156db5f","src/tests.rs":"c0f93af328a3e15e93ca5914a14adacf73274eff821f2f849c5b96ce884547b1"},"package":"9ddb07844c2ffc4c28840e799e9e54ff054393cf090740decf25624e9d94b93a"} \ No newline at end of file
+{"files":{"Cargo.toml":"8c8bf034fddb240e039b17b73842d93216c87c0f8a0d3486302187a004bcb461","LICENSE":"4ad7541d66a407234e2c84902124cef325c29f3e966353efdb800bedb8b8da21","README.md":"f9f95075851c9c3b7d0559c25794ebcad5dee957c7fb27c343418a3324f15b8a","src/lib.rs":"1376fd3fb06bc354eb24c97b1bf47f80b0d408644f1aa5885db3f374aa39f74a","src/tests.rs":"3a34d070c375eade0808b7dbe11157450bc62d5a6f056c38ac129104487d8ea9"},"package":"dd8b728b9421e93eff1d9f8681101b78fa745e0748c95c655c83f337044a7e10"} \ No newline at end of file
diff --git a/vendor/icu_provider_macros/Cargo.toml b/vendor/icu_provider_macros/Cargo.toml
index 289aad854..fae6f93aa 100644
--- a/vendor/icu_provider_macros/Cargo.toml
+++ b/vendor/icu_provider_macros/Cargo.toml
@@ -10,9 +10,9 @@
# See Cargo.toml.orig for the original contents.
[package]
-edition = "2018"
+edition = "2021"
name = "icu_provider_macros"
-version = "1.1.0"
+version = "1.2.0"
authors = ["The ICU4X Project Developers"]
include = [
"src/**/*",
@@ -28,7 +28,6 @@ readme = "README.md"
categories = ["internationalization"]
license = "Unicode-DFS-2016"
repository = "https://github.com/unicode-org/icu4x"
-resolver = "2"
[lib]
path = "src/lib.rs"
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>;
),
);