Commit c3db6d59513 for nodejs
commit c3db6d595139a9bec1e25127fa550376dd4208f1
Author: Chengzhong Wu <legendecas@gmail.com>
Date: Tue Nov 17 09:16:18 2026 -0500
deps: update Rust crates for V8 15.8.62.44
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
PR-URL: https://github.com/nodejs/node/pull/67070
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
diff --git a/deps/crates/Cargo.lock b/deps/crates/Cargo.lock
index 2dc90a16afb..b39204c5051 100644
--- a/deps/crates/Cargo.lock
+++ b/deps/crates/Cargo.lock
@@ -32,12 +32,12 @@ dependencies = [
"diplomat_core",
"proc-macro2",
"quote",
- "syn 3.0.5",
+ "syn",
]
[[package]]
name = "diplomat-runtime"
-version = "0.15.2"
+version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
@@ -50,7 +50,7 @@ dependencies = [
"serde",
"smallvec",
"strck",
- "syn 3.0.5",
+ "syn",
]
[[package]]
@@ -60,19 +60,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.5",
+ "syn",
]
[[package]]
name = "icu_calendar"
-version = "2.2.1"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"calendrical_calculations",
"displaydoc",
"icu_calendar_data",
- "icu_locale",
"icu_locale_core",
+ "icu_locale_fallback",
"icu_provider",
"tinystr",
"zerovec",
@@ -80,30 +80,29 @@ dependencies = [
[[package]]
name = "icu_calendar_data"
-version = "2.2.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
-name = "icu_collections"
-version = "2.2.0"
+name = "icu_locale_core"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"displaydoc",
- "potential_utf",
- "utf8_iter",
- "yoke",
- "zerofrom",
+ "litemap",
+ "serde",
+ "tinystr",
+ "writeable",
"zerovec",
]
[[package]]
-name = "icu_locale"
-version = "2.2.0"
+name = "icu_locale_fallback"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
- "icu_collections",
"icu_locale_core",
- "icu_locale_data",
+ "icu_locale_fallback_data",
"icu_provider",
"potential_utf",
"tinystr",
@@ -111,26 +110,13 @@ dependencies = [
]
[[package]]
-name = "icu_locale_core"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-dependencies = [
- "displaydoc",
- "litemap",
- "serde",
- "tinystr",
- "writeable",
- "zerovec",
-]
-
-[[package]]
-name = "icu_locale_data"
-version = "2.2.0"
+name = "icu_locale_fallback_data"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "icu_provider"
-version = "2.3.1"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"displaydoc",
@@ -146,7 +132,7 @@ dependencies = [
[[package]]
name = "ixdtf"
-version = "0.6.6"
+version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
@@ -161,12 +147,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "node_crates"
-version = "15.6.75"
+version = "15.8.62"
dependencies = [
- "icu_locale",
"icu_locale_core",
"icu_provider",
- "syn 3.0.5",
+ "syn",
"temporal_capi",
"temporal_rs",
]
@@ -238,12 +223,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.5",
+ "syn",
]
[[package]]
name = "smallvec"
-version = "1.16.1"
+version = "1.16.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
@@ -261,17 +246,7 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.119"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "syn"
-version = "3.0.5"
+version = "3.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
@@ -281,12 +256,12 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn",
]
[[package]]
@@ -334,7 +309,7 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"displaydoc",
@@ -344,12 +319,7 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
+version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
@@ -359,7 +329,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"stable_deref_trait",
@@ -369,12 +339,12 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn",
"synstructure",
]
@@ -388,12 +358,12 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn",
"synstructure",
]
@@ -408,7 +378,7 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.8"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"serde",
@@ -419,12 +389,12 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.6"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.5",
+ "syn",
]
[[package]]
diff --git a/deps/crates/Cargo.toml b/deps/crates/Cargo.toml
index 1152cae0839..74ad1a87893 100644
--- a/deps/crates/Cargo.toml
+++ b/deps/crates/Cargo.toml
@@ -3,23 +3,18 @@
[package]
edition = "2021"
name = "node_crates"
-version = "15.6.75"
+version = "15.8.62"
rust-version = "1.88"
[lib]
crate-type = [ "staticlib" ]
-[dependencies.icu_locale]
-version = "2.2.0"
-default-features = false
-features = [ "compiled_data" ]
-
[dependencies.icu_locale_core]
-version = "2.2.0"
+version = "2.4.0"
default-features = false
[dependencies.icu_provider]
-version = "2.2.0"
+version = "2.4.0"
default-features = false
[dependencies.syn]
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/.cargo_vcs_info.json b/deps/crates/vendor/diplomat-runtime-v0_15/.cargo_vcs_info.json
deleted file mode 100644
index a0c309d129a..00000000000
--- a/deps/crates/vendor/diplomat-runtime-v0_15/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "702b1b2289f40ae45c01068eabb9c229b70827e7"
- },
- "path_in_vcs": "runtime"
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/rust_interop.rs b/deps/crates/vendor/diplomat-runtime-v0_15/src/rust_interop.rs
deleted file mode 100644
index d1b20122e92..00000000000
--- a/deps/crates/vendor/diplomat-runtime-v0_15/src/rust_interop.rs
+++ /dev/null
@@ -1,79 +0,0 @@
-//! Types for interfacing with Diplomat FFI APIs from Rust.
-//!
-//! By and large, Diplomat helps you produce a Rust-written library that can be called from other
-//! languages. You write the library in Rust, but interact with the Diplomat-wrapped library
-//! in a non-Rust language.
-//!
-//! However, either for debugging purposes, or for extending the library in custom ways, you may find
-//! yourself wanting to work with the Diplomat-wrapped library from Rust. This module contains
-//! utilities for doing that.
-
-use crate::diplomat_buffer_write_create;
-use crate::diplomat_buffer_write_destroy;
-use crate::DiplomatWrite;
-use core::borrow::Borrow;
-
-/// A [`DiplomatWrite`] backed by a `Vec`, for convenient use in Rust.
-pub struct RustWriteVec {
- /// Safety Invariant: must have been created by diplomat_buffer_write_create()
- ptr: *mut DiplomatWrite,
-}
-
-impl RustWriteVec {
- /// Creates a new [`RustWriteVec`] with the given initial buffer capacity.
- pub fn with_capacity(cap: usize) -> Self {
- Self {
- ptr: diplomat_buffer_write_create(cap),
- }
- }
-
- /// Borrows the underlying [`DiplomatWrite`].
- #[allow(clippy::should_implement_trait)] // the trait is also implemented
- pub fn borrow(&self) -> &DiplomatWrite {
- // Safety: the pointer is valid because the Drop impl hasn't been called yet.
- unsafe { &*self.ptr }
- }
-
- /// Mutably borrows the underlying [`DiplomatWrite`].
- ///
- /// # Safety
- /// The contents of the returned pointer MUST NOT be swapped with another instance
- /// of [`DiplomatWrite`] that may have been created from a different source. This
- /// requirement is satisfied if this is the only instance of [`DiplomatWrite`]
- /// in scope.
- ///
- /// For more information, see [`DiplomatWrite`].
- pub unsafe fn borrow_mut(&mut self) -> &mut DiplomatWrite {
- // Safety: the pointer is valid because the Drop impl hasn't been called yet.
- unsafe { &mut *self.ptr }
- }
-}
-
-impl Borrow<DiplomatWrite> for RustWriteVec {
- fn borrow(&self) -> &DiplomatWrite {
- self.borrow()
- }
-}
-
-impl Drop for RustWriteVec {
- fn drop(&mut self) {
- // Safety: by invariant, ptr was created by diplomat_buffer_write_create()
- unsafe { diplomat_buffer_write_destroy(self.ptr) }
- }
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
- use core::fmt::Write;
-
- #[test]
- fn test_rust_write() {
- let mut buffer = RustWriteVec::with_capacity(5);
- // Safety: this is the only instance of `DiplomatWrite` in scope.
- unsafe { buffer.borrow_mut() }
- .write_str("Hello World")
- .unwrap();
- assert_eq!(buffer.borrow().as_bytes(), b"Hello World");
- }
-}
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/.cargo-checksum.json b/deps/crates/vendor/diplomat-runtime-v0_16/.cargo-checksum.json
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/.cargo-checksum.json
rename to deps/crates/vendor/diplomat-runtime-v0_16/.cargo-checksum.json
diff --git a/deps/crates/vendor/diplomat-runtime-v0_16/.cargo_vcs_info.json b/deps/crates/vendor/diplomat-runtime-v0_16/.cargo_vcs_info.json
new file mode 100644
index 00000000000..1322e829c0b
--- /dev/null
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/.cargo_vcs_info.json
@@ -0,0 +1,6 @@
+{
+ "git": {
+ "sha1": "0cca8412630402302b4bd720842101b144a3e18d"
+ },
+ "path_in_vcs": "runtime"
+}
\ No newline at end of file
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.lock b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.lock
similarity index 99%
rename from deps/crates/vendor/diplomat-runtime-v0_15/Cargo.lock
rename to deps/crates/vendor/diplomat-runtime-v0_16/Cargo.lock
index 7ac421c665e..e98610440d8 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.lock
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.lock
@@ -26,7 +26,7 @@ dependencies = [
[[package]]
name = "diplomat-runtime"
-version = "0.15.2"
+version = "0.16.1"
dependencies = [
"jni",
"log",
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml
similarity index 98%
rename from deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml
rename to deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml
index bbe1eb243e8..f1dd6070f02 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.88"
name = "diplomat-runtime"
-version = "0.15.2"
+version = "0.16.1"
authors = [
"Shadaj Laddad <shadaj@users.noreply.github.com>",
"Manish Goregaokar <manishsmail@gmail.com>",
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml.orig b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml.orig
similarity index 97%
rename from deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml.orig
rename to deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml.orig
index 917c213c882..07a1874feec 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/Cargo.toml.orig
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/Cargo.toml.orig
@@ -3,7 +3,7 @@ name = "diplomat-runtime"
description = "Common runtime utilities used by diplomat codegen"
# We are working on decoupling diplomat-runtime's version from the rest
# https://github.com/rust-diplomat/diplomat/issues/958
-version = "0.15.2"
+version = "0.16.1"
rust-version.workspace = true
authors.workspace = true
categories.workspace = true
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/LICENSE-APACHE b/deps/crates/vendor/diplomat-runtime-v0_16/LICENSE-APACHE
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/LICENSE-APACHE
rename to deps/crates/vendor/diplomat-runtime-v0_16/LICENSE-APACHE
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/LICENSE-MIT b/deps/crates/vendor/diplomat-runtime-v0_16/LICENSE-MIT
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/LICENSE-MIT
rename to deps/crates/vendor/diplomat-runtime-v0_16/LICENSE-MIT
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/OWNERS b/deps/crates/vendor/diplomat-runtime-v0_16/OWNERS
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/OWNERS
rename to deps/crates/vendor/diplomat-runtime-v0_16/OWNERS
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/README.md b/deps/crates/vendor/diplomat-runtime-v0_16/README.md
similarity index 98%
rename from deps/crates/vendor/diplomat-runtime-v0_15/README.md
rename to deps/crates/vendor/diplomat-runtime-v0_16/README.md
index 1495091108a..01cc1a2e2fa 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/README.md
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/README.md
@@ -20,8 +20,8 @@ $ cargo install diplomat-tool
Then, add the Diplomat macro and runtime as dependencies to your project:
```toml
-diplomat = "0.10.0"
-diplomat-runtime = "0.10.0"
+diplomat = "0.17.0"
+diplomat-runtime = "0.16.1"
```
## Getting Started
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/callback.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/callback.rs
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/callback.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/callback.rs
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/lib.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/lib.rs
similarity index 65%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/lib.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/lib.rs
index ea7ae826a55..32e1777a2c6 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/src/lib.rs
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/src/lib.rs
@@ -6,11 +6,23 @@
//! Include this in any crate that also depends on `diplomat`, since `#[diplomat::bridge]`
//! will generate code that relies on types from here.
//!
-//! This crate contains a fair number of `DiplomatFoo` types. Some, like
-//! [`DiplomatOption`], are FFI-safe versions of Rust types that can be put in
-//! a struct and passed safely over FFI. Others, like [`DiplomatChar`], are simple
-//! type aliases that signal to the Diplomat tool that particular semantics are desired
-//! on the C++ side.
+//! # Type Overview
+//!
+//! - **Option and Result**: [`DiplomatResult<T, E>`] (FFI-safe `Result`) and [`DiplomatOption<T>`] (type alias for [`DiplomatResult<T, ()>`]).
+//! - **Slices**: [`DiplomatSlice<'a, T>`] (`&'a [T]`), [`DiplomatSliceMut<'a, T>`] (`&'a mut [T]`), and [`DiplomatOwnedSlice<T>`] (`Box<[T]>`).
+//! - **String input**: These all map to appropriate string types across FFI.
+//! - Unvalidated UTF-8: [`DiplomatStrSlice<'a>`] (`&'a [u8]`), [`DiplomatOwnedStrSlice`] (`Box<[u8]>`)
+//! - Unvalidated UTF-16: [`DiplomatStr16Slice<'a>`] (`&'a [u16]`), [`DiplomatOwnedStr16Slice`] (`Box<[u16]>`)
+//! - Validated UTF-8: [`DiplomatUtf8StrSlice<'a>`] (`&'a str`), [`DiplomatOwnedUTF8StrSlice`] (`Box<str>`)
+//! - Unvalidated stringy DSTs: [`DiplomatStr`] (`[u8]`), [`DiplomatStr16`] (`[u16]`), for convenient use with `&` and `Box` as function parameters.
+//! - **String output**: [`DiplomatWrite`] and [`DiplomatWrite16`]
+//! - **Primitive buffer output**: [`DiplomatWriteGeneric<T>`]
+//! - **Callbacks**: [`DiplomatCallback<ReturnType>`] (FFI-safe callback handle).
+//! - **Scalars**: [`DiplomatChar`] (`u32`) and [`DiplomatByte`] (`u8`).
+//!
+//! Note that many of these are type aliases; using these types instead of the type alias signals that Diplomat is expected to
+//! generate the equivalent type on the other side. For example, using `DiplomatChar` will signal that a language's `char` type is
+//! to be used, even if the actual type seen by rust is an unvalidated `u32`.
//!
//! # Features
//!
@@ -18,6 +30,7 @@
//!
//! The `jvm-callback-support` feature should be enabled if building Diplomat for use in the JVM, for
//! a Diplomat-based library that uses callbacks.
+
extern crate alloc;
use alloc::alloc::Layout;
@@ -26,8 +39,10 @@ use alloc::alloc::Layout;
mod wasm_glue;
mod write;
-pub use write::DiplomatWrite;
-pub use write::{diplomat_buffer_write_create, diplomat_buffer_write_destroy};
+pub use write::{
+ diplomat_buffer_write_create, diplomat_buffer_write_destroy, diplomat_simple_write,
+ DiplomatAbiCompatible, DiplomatWrite, DiplomatWrite16, DiplomatWriteGeneric,
+};
mod slices;
pub use slices::{
DiplomatOwnedSlice, DiplomatOwnedStr16Slice, DiplomatOwnedStrSlice, DiplomatOwnedUTF8StrSlice,
@@ -54,6 +69,11 @@ pub type DiplomatChar = u32;
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// [`DiplomatStrSlice`] is equivalent to `&DiplomatStr`: both are provided since
+/// `&DiplomatStr` is more convenient but not allowed in Diplomat structs (since it
+/// is not directly FFI safe). Instead, this type can be conveniently used in function
+/// parameter lists.
pub type DiplomatStr = [u8];
/// Like `Wstr`, but unvalidated.
@@ -62,6 +82,11 @@ pub type DiplomatStr = [u8];
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// [`DiplomatStr16Slice`] is equivalent to `&DiplomatStr16`: both are provided since
+/// `&DiplomatStr16` is more convenient but not allowed in Diplomat structs (since it
+/// is not directly FFI safe). Instead, this type can be conveniently used in function
+/// parameter lists.
pub type DiplomatStr16 = [u16];
/// Like [`u8`], but interpreted explicitly as a raw byte as opposed to a numerical value.
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/result.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/result.rs
similarity index 86%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/result.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/result.rs
index 5f20930d790..21a64809e0a 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/src/result.rs
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/src/result.rs
@@ -13,16 +13,33 @@ union DiplomatResultValue<T, E> {
#[repr(C)]
pub struct DiplomatResult<T, E> {
value: DiplomatResultValue<T, E>,
+ /// Whether the result is `Ok`.
+ ///
+ /// Note: Mutating this field directly in Rust is unsound, and this field will become
+ /// private in `diplomat-runtime` 1.0 ([#1239](https://github.com/rust-diplomat/diplomat/issues/1239)).
+ /// Prefer calling [`DiplomatResult::is_ok()`] or [`DiplomatResult::is_err()`].
pub is_ok: bool,
}
-/// A type to represent Option<T> over FFI.
+/// A type to represent `Option<T>` over FFI.
///
/// Used internally to handle `Option<T>` arguments and return types, and needs to be
/// used explicitly for optional struct fields.
pub type DiplomatOption<T> = DiplomatResult<T, ()>;
impl<T, E> DiplomatResult<T, E> {
+ /// Returns `true` if the result is `Ok`.
+ #[inline]
+ pub const fn is_ok(&self) -> bool {
+ self.is_ok
+ }
+
+ /// Returns `true` if the result is `Err`.
+ #[inline]
+ pub const fn is_err(&self) -> bool {
+ !self.is_ok
+ }
+
pub fn as_ref(&self) -> Result<&T, &E> {
// Safety: we're only accessing the union variants when the flag is correct
unsafe {
diff --git a/deps/crates/vendor/diplomat-runtime-v0_16/src/rust_interop.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/rust_interop.rs
new file mode 100644
index 00000000000..5461ee60ee8
--- /dev/null
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/src/rust_interop.rs
@@ -0,0 +1,228 @@
+//! Types for interfacing with Diplomat FFI APIs from Rust.
+//!
+//! By and large, Diplomat helps you produce a Rust-written library that can be called from other
+//! languages. You write the library in Rust, but interact with the Diplomat-wrapped library
+//! in a non-Rust language.
+//!
+//! However, either for debugging purposes, or for extending the library in custom ways, you may find
+//! yourself wanting to work with the Diplomat-wrapped library from Rust. This module contains
+//! utilities for doing that.
+
+use crate::diplomat_buffer_write_create;
+use crate::diplomat_buffer_write_destroy;
+use crate::DiplomatAbiCompatible;
+use crate::DiplomatWrite;
+use crate::DiplomatWriteGeneric;
+use alloc::vec::Vec;
+use core::borrow::Borrow;
+use core::marker::PhantomData;
+use core::mem::ManuallyDrop;
+use core::ptr;
+
+/// A [`DiplomatWrite`] backed by a `Vec`, for convenient use in Rust.
+pub struct RustWriteVec {
+ /// Safety Invariant: must have been created by diplomat_buffer_write_create()
+ ptr: *mut DiplomatWrite,
+}
+
+impl RustWriteVec {
+ /// Creates a new [`RustWriteVec`] with the given initial buffer capacity.
+ pub fn with_capacity(cap: usize) -> Self {
+ Self {
+ ptr: diplomat_buffer_write_create(cap),
+ }
+ }
+
+ /// Borrows the underlying [`DiplomatWrite`].
+ #[allow(clippy::should_implement_trait)] // the trait is also implemented
+ pub fn borrow(&self) -> &DiplomatWrite {
+ // Safety: the pointer is valid because the Drop impl hasn't been called yet.
+ unsafe { &*self.ptr }
+ }
+
+ /// Mutably borrows the underlying [`DiplomatWrite`].
+ ///
+ /// # Safety
+ /// The contents of the returned pointer MUST NOT be swapped with another instance
+ /// of [`DiplomatWrite`] that may have been created from a different source. This
+ /// requirement is satisfied if this is the only instance of [`DiplomatWrite`]
+ /// in scope.
+ ///
+ /// For more information, see [`DiplomatWrite`].
+ pub unsafe fn borrow_mut(&mut self) -> &mut DiplomatWrite {
+ // Safety: the pointer is valid because the Drop impl hasn't been called yet.
+ unsafe { &mut *self.ptr }
+ }
+}
+
+impl Borrow<DiplomatWrite> for RustWriteVec {
+ fn borrow(&self) -> &DiplomatWrite {
+ self.borrow()
+ }
+}
+
+impl Drop for RustWriteVec {
+ fn drop(&mut self) {
+ // Safety: by invariant, ptr was created by diplomat_buffer_write_create()
+ unsafe { diplomat_buffer_write_destroy(self.ptr) }
+ }
+}
+
+/// A [`DiplomatWriteGeneric<T>`] backed by a `Vec<T>`, for convenient use in Rust.
+pub struct RustWriteVecGeneric<T: DiplomatAbiCompatible> {
+ // Safety invariant: `inner.raw`'s `buf`, `len`, and `cap` correspond to a valid
+ // `Vec<T>` allocation with `len = inner.raw.len / size_of::<T>()` and
+ // `cap = inner.raw.cap / size_of::<T>()`.
+ inner: DiplomatWriteGeneric<T>,
+}
+
+// Note: `this` must be `*mut DiplomatWrite` rather than `&mut DiplomatWrite` to match
+// the `extern "C" fn(*mut DiplomatWrite, usize) -> bool` signature of `DiplomatWrite::grow`.
+extern "C" fn grow_vec<T: DiplomatAbiCompatible>(
+ this: *mut DiplomatWrite,
+ new_cap_bytes: usize,
+) -> bool {
+ // SAFETY:
+ // 1. `this` is a valid pointer to a `DiplomatWrite` constructed by `RustWriteVecGeneric::with_capacity`.
+ // 2. `this.buf` was allocated by `Vec::<T>` with `old_len_elems` initialized elements and `old_cap_elems` capacity.
+ unsafe {
+ let this = this.as_mut().unwrap();
+ let elem_size = core::mem::size_of::<T>();
+ if elem_size == 0 {
+ return true;
+ }
+ let new_cap_elems = new_cap_bytes.div_ceil(elem_size);
+ let old_len_elems = this.len / elem_size;
+ let old_cap_elems = this.cap / elem_size;
+
+ let mut vec = Vec::<T>::from_raw_parts(this.buf as *mut T, old_len_elems, old_cap_elems);
+ vec.reserve(new_cap_elems.saturating_sub(old_len_elems));
+ this.cap = vec.capacity() * elem_size;
+ this.buf = vec.as_mut_ptr() as *mut u8;
+ core::mem::forget(vec);
+ }
+ true
+}
+
+impl<T: DiplomatAbiCompatible> RustWriteVecGeneric<T> {
+ /// Creates a new [`RustWriteVecGeneric`] with the given initial element capacity.
+ pub fn with_capacity(cap: usize) -> Self {
+ extern "C" fn flush(_: *mut DiplomatWrite) {}
+ let mut vec = Vec::<T>::with_capacity(cap);
+ let raw = DiplomatWrite {
+ context: ptr::null_mut(),
+ buf: vec.as_mut_ptr() as *mut u8,
+ len: 0,
+ grow_failed: false,
+ cap: vec.capacity() * core::mem::size_of::<T>(),
+ flush,
+ grow: grow_vec::<T>,
+ };
+ core::mem::forget(vec);
+ Self {
+ inner: DiplomatWriteGeneric {
+ raw,
+ _marker: PhantomData,
+ },
+ }
+ }
+
+ /// Borrows the underlying [`DiplomatWriteGeneric<T>`].
+ #[allow(clippy::should_implement_trait)] // the trait is also implemented
+ pub fn borrow(&self) -> &DiplomatWriteGeneric<T> {
+ &self.inner
+ }
+
+ /// Mutably borrows the underlying [`DiplomatWriteGeneric<T>`].
+ ///
+ /// # Safety
+ /// The contents of the returned reference MUST NOT be swapped with another instance
+ /// of [`DiplomatWriteGeneric<T>`] that may have been created from a different source.
+ pub unsafe fn borrow_mut(&mut self) -> &mut DiplomatWriteGeneric<T> {
+ &mut self.inner
+ }
+
+ /// Returns a slice of the elements written so far.
+ pub fn as_slice(&self) -> &[T] {
+ self.inner.as_slice()
+ }
+
+ /// Consumes the wrapper and returns the filled `Vec<T>`.
+ pub fn into_vec(self) -> Vec<T> {
+ let this = ManuallyDrop::new(self);
+ let elem_size = core::mem::size_of::<T>();
+ let len_elems = this.inner.raw.len.checked_div(elem_size).unwrap_or(0);
+ let cap_elems = this.inner.raw.cap.checked_div(elem_size).unwrap_or(0);
+ // SAFETY:
+ // 1. By `self.inner`'s safety invariant, `this.inner.raw.buf` was allocated by `Vec<T>`
+ // with `len_elems` initialized elements and `cap_elems` capacity.
+ // 2. Wrapping `self` in `ManuallyDrop` prevents `Drop` from reconstructing and freeing
+ // the `Vec<T>` a second time.
+ unsafe { Vec::<T>::from_raw_parts(this.inner.raw.buf as *mut T, len_elems, cap_elems) }
+ }
+}
+
+impl<T: DiplomatAbiCompatible> Borrow<DiplomatWriteGeneric<T>> for RustWriteVecGeneric<T> {
+ fn borrow(&self) -> &DiplomatWriteGeneric<T> {
+ self.borrow()
+ }
+}
+
+impl<T: DiplomatAbiCompatible> Drop for RustWriteVecGeneric<T> {
+ fn drop(&mut self) {
+ let elem_size = core::mem::size_of::<T>();
+ let len_elems = self.inner.raw.len.checked_div(elem_size).unwrap_or(0);
+ let cap_elems = self.inner.raw.cap.checked_div(elem_size).unwrap_or(0);
+ // SAFETY: By `self.inner`'s safety invariant, `self.inner.raw.buf` was allocated by `Vec<T>`
+ // with `len_elems` initialized elements and `cap_elems` capacity.
+ unsafe {
+ let _ = Vec::<T>::from_raw_parts(self.inner.raw.buf as *mut T, len_elems, cap_elems);
+ }
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use core::fmt::Write;
+
+ #[test]
+ fn test_rust_write() {
+ let mut buffer = RustWriteVec::with_capacity(5);
+ // Safety: this is the only instance of `DiplomatWrite` in scope.
+ unsafe { buffer.borrow_mut() }
+ .write_str("Hello World")
+ .unwrap();
+ assert_eq!(buffer.borrow().as_bytes(), b"Hello World");
+ }
+
+ #[test]
+ fn test_rust_write_generic() {
+ let mut buffer = RustWriteVecGeneric::<u32>::with_capacity(2);
+ // SAFETY: this is the only instance of `DiplomatWriteGeneric<u32>` in scope.
+ let writer = unsafe { buffer.borrow_mut() };
+ writer.push(10);
+ writer.push(20);
+ writer.push(30); // triggers grow
+ writer.write_slice(&[40, 50]);
+ writer.extend([60, 70]);
+ assert_eq!(writer.len(), 7);
+ assert_eq!(buffer.as_slice(), &[10, 20, 30, 40, 50, 60, 70]);
+ assert_eq!(buffer.into_vec(), alloc::vec![10, 20, 30, 40, 50, 60, 70]);
+ }
+
+ #[test]
+ fn test_rust_write_16() {
+ let mut buffer = RustWriteVecGeneric::<u16>::with_capacity(2);
+ // SAFETY: this is the only instance of `DiplomatWrite16` in scope.
+ let writer: &mut crate::DiplomatWrite16 = unsafe { buffer.borrow_mut() };
+ writer.write_char_as_utf16('A');
+ writer.write_char_as_utf16('𐐷'); // surrogate pair: 0xD801, 0xDC37
+ assert_eq!(writer.len(), 3);
+ assert_eq!(buffer.as_slice(), &[0x0041, 0xD801, 0xDC37]);
+ assert_eq!(
+ alloc::string::String::from_utf16(buffer.as_slice()).unwrap(),
+ "A𐐷"
+ );
+ }
+}
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/slices.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/slices.rs
similarity index 91%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/slices.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/slices.rs
index 1c7638aa0d7..a6b60e86527 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/src/slices.rs
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/src/slices.rs
@@ -269,23 +269,35 @@ impl Deref for DiplomatOwnedUTF8StrSlice {
}
}
-/// This like `&str`, but unvalidated and safe to use over FFI
+/// This is like `&str`, but unvalidated and safe to use over FFI
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// Using this type on a function signature is equivalent to using `&DiplomatStr`,
+/// however this type is FFI-safe and therefore also allowed inside Diplomat structs.
pub type DiplomatStrSlice<'a> = DiplomatSlice<'a, u8>;
-/// This like `Box<str>`, but unvalidated and safe to use over FFI
+/// This is like `Box<str>`, but unvalidated and safe to use over FFI
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// Using this type on a function signature is equivalent to using `Box<DiplomatStr>`,
+/// however this type is FFI-safe and therefore also allowed inside Diplomat structs.
pub type DiplomatOwnedStrSlice = DiplomatOwnedSlice<u8>;
/// An unvalidated UTF-16 string that is safe to use over FFI
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// Using this type on a function signature is equivalent to using `&DiplomatStr16`,
+/// however this type is FFI-safe and therefore also allowed inside Diplomat structs.
pub type DiplomatStr16Slice<'a> = DiplomatSlice<'a, u16>;
/// An unvalidated, owned UTF-16 string that is safe to use over FFI
///
/// This type will usually map to some string type in the target language, and
/// you will not need to worry about the safety of mismatched string invariants.
+///
+/// Using this type on a function signature is equivalent to using `Box<DiplomatStr16>`,
+/// however this type is FFI-safe and therefore also allowed inside Diplomat structs.
pub type DiplomatOwnedStr16Slice<'a> = DiplomatOwnedSlice<u16>;
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/wasm_glue.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/wasm_glue.rs
similarity index 100%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/wasm_glue.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/wasm_glue.rs
diff --git a/deps/crates/vendor/diplomat-runtime-v0_15/src/write.rs b/deps/crates/vendor/diplomat-runtime-v0_16/src/write.rs
similarity index 53%
rename from deps/crates/vendor/diplomat-runtime-v0_15/src/write.rs
rename to deps/crates/vendor/diplomat-runtime-v0_16/src/write.rs
index 1d6400680d2..c4996bc1f9a 100644
--- a/deps/crates/vendor/diplomat-runtime-v0_15/src/write.rs
+++ b/deps/crates/vendor/diplomat-runtime-v0_16/src/write.rs
@@ -30,7 +30,7 @@ use core::{fmt, ptr};
///
/// 1. [`diplomat_simple_write()`] to write to a fixed-size buffer.
/// 2. [`diplomat_buffer_write_create()`] to write to a Vec allocated by Rust.
-/// A wrapper is provided: [`RustWriteVec`](rust_interop::RustWriteVec).
+/// A wrapper is provided: [`RustWriteVec`](crate::rust_interop::RustWriteVec).
///
/// Backends may have additional constructors for writing to various shapes of buffer.
///
@@ -49,10 +49,10 @@ use core::{fmt, ptr};
/// ```
///
/// As a result, any function that returns an owned `DiplomatWrite` or a `&mut DiplomatWrite`
-/// must be `unsafe`. For an example, see [`RustWriteVec::borrow_mut`].
+/// must be `unsafe`. For an example, see [`RustWriteVec::borrow_mut`](crate::rust_interop::RustWriteVec::borrow_mut).
///
/// Diplomat backends guarantee they will only ever hand the same type of `DiplomatWrite` object to Rust
-/// code; this is only something you need to worry about if using [`RustWriteVec`](rust_interop::RustWriteVec),
+/// code; this is only something you need to worry about if using [`RustWriteVec`](crate::rust_interop::RustWriteVec),
/// or `DiplomatWrite` objects manually created in Rust via APIs like `diplomat_simple_write`.
///
/// # Safety invariants:
@@ -72,22 +72,22 @@ pub struct DiplomatWrite {
///
/// The pointer may reference structured data on the foreign side,
/// such as C++ std::string, used to reallocate buf.
- context: *mut c_void,
+ pub(crate) context: *mut c_void,
/// The raw string buffer, which will be mutated on the Rust side.
- buf: *mut u8,
+ pub(crate) buf: *mut u8,
/// The current filled size of the buffer
- len: usize,
+ pub(crate) len: usize,
/// The current capacity of the buffer
- cap: usize,
+ pub(crate) cap: usize,
/// Set to true if `grow` ever fails.
- grow_failed: bool,
+ pub(crate) grow_failed: bool,
/// Called by Rust to indicate that there is no more data to write.
///
/// May be called multiple times.
///
/// Arguments:
/// - `self` (`*mut DiplomatWrite`): This `DiplomatWrite`
- flush: extern "C" fn(*mut DiplomatWrite),
+ pub(crate) flush: extern "C" fn(*mut DiplomatWrite),
/// Called by Rust to request more capacity in the buffer. The implementation should allocate a new
/// buffer and copy the contents of the old buffer into the new buffer, updating `self.buf` and `self.cap`
///
@@ -96,7 +96,7 @@ pub struct DiplomatWrite {
/// - `capacity` (`usize`): The requested capacity.
///
/// Returns: `true` if the allocation succeeded. Should not update any state if it failed.
- grow: extern "C" fn(*mut DiplomatWrite, usize) -> bool,
+ pub(crate) grow: extern "C" fn(*mut DiplomatWrite, usize) -> bool,
}
impl DiplomatWrite {
@@ -151,7 +151,7 @@ impl fmt::Write for DiplomatWrite {
/// Once done, this will append a null terminator to the written string.
///
/// This is largely used internally by Diplomat-generated FFI code, and should not need to be constructed
-/// manually outside of that context. See [`RustWriteVec`](rust_interop::RustWriteVec) if you need this in Rust.
+/// manually outside of that context. See [`RustWriteVec`](crate::rust_interop::RustWriteVec) if you need this in Rust.
///
/// # Safety
///
@@ -186,7 +186,7 @@ pub unsafe extern "C" fn diplomat_simple_write(buf: *mut u8, buf_size: usize) ->
/// The pointer is valid until that function is called.
///
/// This is largely used internally by Diplomat-generated FFI code, and should not need to be constructed
-/// manually outside of that context. See [`RustWriteVec`](rust_interop::RustWriteVec) if you need this in Rust.
+/// manually outside of that context. See [`RustWriteVec`](crate::rust_interop::RustWriteVec) if you need this in Rust.
///
/// The grow impl never sets `grow_failed`, although it is possible for it to panic.
#[no_mangle]
@@ -268,3 +268,237 @@ pub unsafe extern "C" fn diplomat_buffer_write_destroy(this: *mut DiplomatWrite)
drop(vec);
drop(this);
}
+
+mod sealed {
+ pub trait Sealed {}
+}
+
+/// Marker trait for types that have a stable, shared C ABI layout and can be written
+/// directly into a [`DiplomatWriteGeneric`].
+///
+/// This trait is currently sealed and implemented only for scalar primitive types.
+///
+/// # Safety
+/// Implementors must:
+/// - Be `Copy` and Plain Old Data (POD).
+/// - Have a fixed, shared layout across the FFI boundary.
+/// - Contain no pointers, references, or custom `Drop` glue.
+pub unsafe trait DiplomatAbiCompatible: Copy + sealed::Sealed {}
+
+macro_rules! impl_abi_compatible {
+ ($($ty:ty),* $(,)?) => {
+ $(
+ impl sealed::Sealed for $ty {}
+ // SAFETY: Scalar primitives are Copy, POD, have no pointers or Drop glue,
+ // and share a fixed C ABI layout across FFI.
+ unsafe impl DiplomatAbiCompatible for $ty {}
+ )*
+ };
+}
+
+impl_abi_compatible!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize, usize, f32, f64);
+
+/// An object that can write a sequence of primitive values of type `T` across FFI.
+///
+/// This wraps an underlying [`DiplomatWrite`] with a type-safe API for pushing elements,
+/// writing slices, and extending from iterators.
+///
+/// # Safety invariants
+/// - All safety invariants of [`DiplomatWrite`] hold on `self.raw`.
+/// - `self.raw.len` and `self.raw.cap` are measured in bytes, and `self.raw.len` is always
+/// a multiple of `size_of::<T>()`.
+/// - `self.raw.buf` points to `self.raw.len / size_of::<T>()` consecutive properly initialized
+/// values of `T`.
+#[repr(transparent)]
+pub struct DiplomatWriteGeneric<T: DiplomatAbiCompatible> {
+ pub(crate) raw: DiplomatWrite,
+ pub(crate) _marker: core::marker::PhantomData<T>,
+}
+
+impl<T: DiplomatAbiCompatible> DiplomatWriteGeneric<T> {
+ /// Pushes a single element into the buffer.
+ #[inline]
+ pub fn push(&mut self, val: T) {
+ if self.raw.grow_failed {
+ return;
+ }
+ let elem_size = core::mem::size_of::<T>();
+ if elem_size == 0 {
+ return;
+ }
+ let Some(needed_bytes) = self.raw.len.checked_add(elem_size) else {
+ self.raw.grow_failed = true;
+ return;
+ };
+ if needed_bytes > self.raw.cap {
+ let success = (self.raw.grow)(&mut self.raw, needed_bytes);
+ if !success {
+ self.raw.grow_failed = true;
+ return;
+ }
+ }
+ debug_assert!(needed_bytes <= self.raw.cap);
+ // SAFETY:
+ // 1. `self.raw.buf` is valid for at least `needed_bytes` bytes (`<= self.raw.cap`).
+ // 2. `write_unaligned` is used so no alignment assumption on `self.raw.buf` is required.
+ unsafe {
+ ptr::write_unaligned(self.raw.buf.add(self.raw.len) as *mut T, val);
+ }
+ // Maintains safety invariant: `self.raw.len <= self.raw.cap` and `len` is a multiple of `size_of::<T>()`.
+ self.raw.len = needed_bytes;
+ }
+
+ /// Appends a contiguous slice of elements into the buffer.
+ #[inline]
+ pub fn write_slice(&mut self, slice: &[T]) {
+ if self.raw.grow_failed || slice.is_empty() {
+ return;
+ }
+ let elem_size = core::mem::size_of::<T>();
+ if elem_size == 0 {
+ return;
+ }
+ let Some(byte_len) = slice.len().checked_mul(elem_size) else {
+ self.raw.grow_failed = true;
+ return;
+ };
+ let Some(needed_bytes) = self.raw.len.checked_add(byte_len) else {
+ self.raw.grow_failed = true;
+ return;
+ };
+ if needed_bytes > self.raw.cap {
+ let success = (self.raw.grow)(&mut self.raw, needed_bytes);
+ if !success {
+ self.raw.grow_failed = true;
+ return;
+ }
+ }
+ debug_assert!(needed_bytes <= self.raw.cap);
+ // SAFETY:
+ // 1. `slice.as_ptr()` is valid for `byte_len` bytes.
+ // 2. `self.raw.buf.add(self.raw.len)` is valid for `byte_len` bytes (`needed_bytes <= self.raw.cap`).
+ // 3. The two memory regions do not overlap because `&mut self` exclusively borrows the write buffer.
+ unsafe {
+ ptr::copy_nonoverlapping(
+ slice.as_ptr() as *const u8,
+ self.raw.buf.add(self.raw.len),
+ byte_len,
+ );
+ }
+ // Maintains safety invariant: `self.raw.len <= self.raw.cap` and `len` is a multiple of `size_of::<T>()`.
+ self.raw.len = needed_bytes;
+ }
+
+ /// Extends the buffer with elements from an iterator.
+ pub fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
+ let iter = iter.into_iter();
+ let (lower, _) = iter.size_hint();
+ if lower > 0 {
+ self.reserve(lower);
+ }
+ for item in iter {
+ self.push(item);
+ }
+ }
+
+ /// Reserves capacity for at least `additional` more elements of type `T`.
+ ///
+ /// Returns `true` if the reservation succeeded, or `false` if allocation failed.
+ pub fn reserve(&mut self, additional: usize) -> bool {
+ if self.raw.grow_failed {
+ return false;
+ }
+ let elem_size = core::mem::size_of::<T>();
+ let Some(additional_bytes) = additional.checked_mul(elem_size) else {
+ self.raw.grow_failed = true;
+ return false;
+ };
+ let Some(needed_bytes) = self.raw.len.checked_add(additional_bytes) else {
+ self.raw.grow_failed = true;
+ return false;
+ };
+ if needed_bytes > self.raw.cap {
+ let success = (self.raw.grow)(&mut self.raw, needed_bytes);
+ if !success {
+ self.raw.grow_failed = true;
+ return false;
+ }
+ }
+ true
+ }
+
+ /// Returns the number of elements of type `T` written so far.
+ #[inline]
+ pub fn len(&self) -> usize {
+ self.raw
+ .len
+ .checked_div(core::mem::size_of::<T>())
+ .unwrap_or(0)
+ }
+
+ /// Returns `true` if no elements have been written.
+ #[inline]
+ pub fn is_empty(&self) -> bool {
+ self.len() == 0
+ }
+
+ /// Returns the current capacity in elements of type `T`.
+ #[inline]
+ pub fn capacity(&self) -> usize {
+ self.raw
+ .cap
+ .checked_div(core::mem::size_of::<T>())
+ .unwrap_or(0)
+ }
+
+ /// Returns a slice of the elements written so far if the underlying buffer is aligned for `T`.
+ ///
+ /// If growth has failed, this returns what has been written so far.
+ pub fn as_slice(&self) -> &[T] {
+ if self.raw.buf.is_null() || self.raw.len == 0 {
+ return &[];
+ }
+ let elem_size = core::mem::size_of::<T>();
+ if elem_size == 0 {
+ return &[];
+ }
+ let count = self.raw.len / elem_size;
+ if !(self.raw.buf as usize).is_multiple_of(core::mem::align_of::<T>()) {
+ return &[];
+ }
+ debug_assert!(self.raw.len <= self.raw.cap);
+ // SAFETY:
+ // 1. `self.raw.buf` is non-null and aligned to `align_of::<T>()` (checked above).
+ // 2. By `DiplomatWriteGeneric<T>`'s safety invariants, `self.raw.buf` points to `count`
+ // consecutive properly initialized values of `T` with total size `<= isize::MAX`.
+ // 3. The buffer will not be mutated while `&self` is borrowed.
+ unsafe { core::slice::from_raw_parts(self.raw.buf as *const T, count) }
+ }
+
+ /// Call this function before releasing the buffer to C.
+ pub fn flush(&mut self) {
+ self.raw.flush();
+ }
+}
+
+impl<T: DiplomatAbiCompatible> Extend<T> for DiplomatWriteGeneric<T> {
+ fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
+ DiplomatWriteGeneric::extend(self, iter);
+ }
+}
+
+/// An object that can one-shot write a UTF-16 string.
+///
+/// Over FFI, this acts just like [`DiplomatWrite`], except that the underlying
+/// buffer contains `u16` code units and is converted into a string by backends
+/// that support `utf16_writeables`.
+pub type DiplomatWrite16 = DiplomatWriteGeneric<u16>;
+
+impl DiplomatWriteGeneric<u16> {
+ /// Encodes `c` as UTF-16 (1 or 2 `u16` code units) and appends it to the buffer.
+ #[inline]
+ pub fn write_char_as_utf16(&mut self, c: char) {
+ let mut buf = [0u16; 2];
+ self.write_slice(c.encode_utf16(&mut buf));
+ }
+}
diff --git a/deps/crates/vendor/icu_calendar-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_calendar-v2/.cargo_vcs_info.json
index 3b5a9e97d12..071f26eec28 100644
--- a/deps/crates/vendor/icu_calendar-v2/.cargo_vcs_info.json
+++ b/deps/crates/vendor/icu_calendar-v2/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "6f32890b737485e86b712777edb7001d2f31c9c8"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "components/calendar"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_calendar-v2/Cargo.lock b/deps/crates/vendor/icu_calendar-v2/Cargo.lock
index 4f6b937bd7a..4a861836abe 100644
--- a/deps/crates/vendor/icu_calendar-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_calendar-v2/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
[[package]]
name = "aho-corasick"
-version = "1.1.4"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
dependencies = [
"memchr",
]
@@ -31,9 +31,9 @@ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
[[package]]
name = "autocfg"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "base64"
@@ -43,21 +43,21 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "bitflags"
-version = "2.11.0"
+version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
[[package]]
name = "bumpalo"
-version = "3.20.2"
+version = "3.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
[[package]]
name = "bytes"
-version = "1.11.1"
+version = "1.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
[[package]]
name = "calendrical_calculations"
@@ -78,9 +78,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
-version = "1.2.57"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423"
+checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838"
dependencies = [
"find-msvc-tools",
"shlex",
@@ -88,15 +88,15 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "chrono"
-version = "0.4.44"
+version = "0.4.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
dependencies = [
"num-traits",
]
@@ -130,18 +130,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -149,9 +149,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -173,14 +173,13 @@ dependencies = [
[[package]]
name = "console"
-version = "0.15.11"
+version = "0.16.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8"
+checksum = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3"
dependencies = [
"encode_unicode",
"libc",
- "once_cell",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -194,9 +193,9 @@ dependencies = [
[[package]]
name = "crc32fast"
-version = "1.5.0"
+version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
+checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
dependencies = [
"cfg-if",
]
@@ -239,9 +238,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.6"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -249,18 +248,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.18"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.21"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -281,41 +280,38 @@ dependencies = [
[[package]]
name = "databake-derive"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
+checksum = "495503291b258422ea2bb9863d9f4e31eadbc5bcbdbe8b721769fa2c98dc4d41"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "deranged"
-version = "0.5.5"
+version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"
-dependencies = [
- "powerfmt",
-]
+checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
[[package]]
name = "displaydoc"
-version = "0.2.5"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "either"
-version = "1.15.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "encode_unicode"
@@ -346,24 +342,25 @@ dependencies = [
[[package]]
name = "fastrand"
-version = "2.3.0"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
[[package]]
name = "find-msvc-tools"
-version = "0.1.9"
+version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
+checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
[[package]]
name = "flate2"
-version = "1.1.9"
+version = "1.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
+checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
dependencies = [
"crc32fast",
"miniz_oxide",
+ "zlib-rs",
]
[[package]]
@@ -401,15 +398,15 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "http"
-version = "1.4.0"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
dependencies = [
"bytes",
"itoa",
@@ -423,7 +420,7 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "icu_calendar"
-version = "2.2.1"
+version = "2.4.0"
dependencies = [
"calendrical_calculations",
"chrono",
@@ -431,8 +428,8 @@ dependencies = [
"databake",
"displaydoc",
"icu_calendar_data",
- "icu_locale",
"icu_locale_core",
+ "icu_locale_fallback",
"icu_provider",
"insta",
"itertools 0.14.0",
@@ -449,33 +446,33 @@ dependencies = [
[[package]]
name = "icu_calendar_data"
-version = "2.2.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "118577bcf3a0fa7c6ac0a7d6e951814da84ee56b9b1f68fb4d8d10b08cefaf4d"
+checksum = "514da54e79efa36b5976232d5b3d1d8ee1b47b19ab658f1b1ebe39221696c2d8"
[[package]]
-name = "icu_collections"
-version = "2.2.0"
+name = "icu_locale_core"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
dependencies = [
+ "databake",
"displaydoc",
- "potential_utf",
- "utf8_iter",
- "yoke",
- "zerofrom",
+ "litemap",
+ "serde",
+ "tinystr",
+ "writeable",
"zerovec",
]
[[package]]
-name = "icu_locale"
-version = "2.2.0"
+name = "icu_locale_fallback"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26"
+checksum = "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c"
dependencies = [
- "icu_collections",
"icu_locale_core",
- "icu_locale_data",
+ "icu_locale_fallback_data",
"icu_provider",
"potential_utf",
"tinystr",
@@ -483,30 +480,16 @@ dependencies = [
]
[[package]]
-name = "icu_locale_core"
-version = "2.2.0"
+name = "icu_locale_fallback_data"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
-dependencies = [
- "displaydoc",
- "litemap",
- "serde",
- "tinystr",
- "writeable",
- "zerovec",
-]
-
-[[package]]
-name = "icu_locale_data"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
+checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c"
[[package]]
name = "icu_provider"
-version = "2.2.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
dependencies = [
"databake",
"displaydoc",
@@ -524,9 +507,9 @@ dependencies = [
[[package]]
name = "insta"
-version = "1.46.3"
+version = "1.49.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e82db8c87c7f1ccecb34ce0c24399b8a73081427f3c7c50a5d597925356115e4"
+checksum = "b67d3d2e287e4b86c10b3f3b641033d1f89b74bdb39d05f34952e2b9a6fe21cd"
dependencies = [
"console",
"once_cell",
@@ -571,15 +554,15 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "ixdtf"
-version = "0.6.5"
+version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ceaf4c6c48465bead8cb6a0b7c4ee0c86ecbb31239032b9c66ab9a08d2f3ee1"
+checksum = "4754a1731458af0443709c9667302793d3f63cc90ec4ba4c8259f2b9515478e5"
[[package]]
name = "jiff"
-version = "0.2.23"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a3546dc96b6d42c5f24902af9e2538e82e39ad350b0c766eb3fbf2d8f3d8359"
+checksum = "49cce2b81f2098e7e3efc35bc2e0a6b7abec9d34128283d7a26fa8f32a6dbb35"
dependencies = [
"jiff-static",
"portable-atomic",
@@ -588,20 +571,20 @@ dependencies = [
[[package]]
name = "jiff-static"
-version = "0.2.23"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a8c8b344124222efd714b73bb41f8b5120b27a7cc1c75593a6ff768d9d05aa4"
+checksum = "980af8b43c3ad5d8d349ace167ec8170839f753a42d233ba19e08afe1850fa69"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.119",
]
[[package]]
name = "js-sys"
-version = "0.3.91"
+version = "0.3.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c"
+checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -609,9 +592,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.183"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "libm"
@@ -627,27 +610,27 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "litemap"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
[[package]]
name = "log"
-version = "0.4.29"
+version = "0.4.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
[[package]]
name = "memchr"
-version = "2.8.0"
+version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
name = "miniz_oxide"
-version = "0.8.9"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
dependencies = [
"adler2",
"simd-adler32",
@@ -655,9 +638,9 @@ dependencies = [
[[package]]
name = "num-conv"
-version = "0.1.0"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
[[package]]
name = "num-traits"
@@ -725,15 +708,15 @@ dependencies = [
[[package]]
name = "portable-atomic"
-version = "1.13.1"
+version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
[[package]]
name = "portable-atomic-util"
-version = "0.2.6"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "091397be61a01d4be58e7841595bd4bfedb15f1cd54977d79b8271e94ed799a3"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
dependencies = [
"portable-atomic",
]
@@ -750,9 +733,9 @@ dependencies = [
[[package]]
name = "potential_utf"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
dependencies = [
"serde_core",
"writeable",
@@ -767,18 +750,18 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
@@ -811,9 +794,9 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.12.3"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
dependencies = [
"aho-corasick",
"memchr",
@@ -823,9 +806,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.14"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
"aho-corasick",
"memchr",
@@ -834,9 +817,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.10"
+version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "ring"
@@ -854,9 +837,9 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.1.4"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
dependencies = [
"bitflags",
"errno",
@@ -867,9 +850,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.37"
+version = "0.23.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4"
+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
dependencies = [
"log",
"once_cell",
@@ -882,18 +865,18 @@ dependencies = [
[[package]]
name = "rustls-pki-types"
-version = "1.14.0"
+version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"
+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
dependencies = [
"zeroize",
]
[[package]]
name = "rustls-webpki"
-version = "0.103.10"
+version = "0.103.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
+checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
dependencies = [
"ring",
"rustls-pki-types",
@@ -902,9 +885,9 @@ dependencies = [
[[package]]
name = "rustversion"
-version = "1.0.22"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
[[package]]
name = "same-file"
@@ -917,9 +900,9 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
@@ -927,29 +910,29 @@ dependencies = [
[[package]]
name = "serde_core"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.149"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -960,15 +943,15 @@ dependencies = [
[[package]]
name = "shlex"
-version = "1.3.0"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
[[package]]
name = "simd-adler32"
-version = "0.3.8"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
[[package]]
name = "similar"
@@ -978,9 +961,9 @@ checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
[[package]]
name = "simple_logger"
-version = "5.1.0"
+version = "5.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "291bee647ce7310b0ea721bfd7e0525517b4468eb7c7e15eb8bd774343179702"
+checksum = "c7038d0e96661bf9ce647e1a6f6ef6d6f3663f66d9bf741abf14ba4876071c17"
dependencies = [
"colored",
"log",
@@ -1002,9 +985,20 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "syn"
-version = "2.0.117"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -1013,13 +1007,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
@@ -1037,32 +1031,31 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
+checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
+checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "time"
-version = "0.3.45"
+version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9e442fc33d7fdb45aa9bfeb312c095964abdf596f7567261062b2a7107aaabd"
+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
dependencies = [
"deranged",
- "itoa",
"libc",
"num-conv",
"num_threads",
@@ -1074,15 +1067,15 @@ dependencies = [
[[package]]
name = "time-core"
-version = "0.1.7"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b36ee98fd31ec7426d599183e8fe26932a8dc1fb76ddb6214d05493377d34ca"
+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
[[package]]
name = "time-macros"
-version = "0.2.25"
+version = "0.2.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71e552d1249bf61ac2a52db88179fd0673def1e1ad8243a00d9ec9ed71fee3dd"
+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
dependencies = [
"num-conv",
"time-core",
@@ -1090,9 +1083,9 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.8.3"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
dependencies = [
"databake",
"displaydoc",
@@ -1118,9 +1111,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "untrusted"
@@ -1163,12 +1156,6 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8c0a043c9540bae7c578c88f91dda8bd82e59ae27c21baca69c8b191aaf5a6e"
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
-
[[package]]
name = "walkdir"
version = "2.5.0"
@@ -1196,9 +1183,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e"
+checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0"
dependencies = [
"cfg-if",
"once_cell",
@@ -1209,9 +1196,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6"
+checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -1219,31 +1206,31 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3"
+checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.119",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16"
+checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b"
dependencies = [
"unicode-ident",
]
[[package]]
name = "web-sys"
-version = "0.3.91"
+version = "0.3.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9"
+checksum = "cd70027e39b12f0849461e08ffc50b9cd7688d942c1c8e3c7b22273236b4dd0a"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -1251,9 +1238,9 @@ dependencies = [
[[package]]
name = "webpki-roots"
-version = "1.0.6"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed"
+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
dependencies = [
"rustls-pki-types",
]
@@ -1282,15 +1269,6 @@ dependencies = [
"windows-targets",
]
-[[package]]
-name = "windows-sys"
-version = "0.59.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
-dependencies = [
- "windows-targets",
-]
-
[[package]]
name = "windows-sys"
version = "0.61.2"
@@ -1372,15 +1350,15 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "writeable"
-version = "0.6.2"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
[[package]]
name = "yoke"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -1389,34 +1367,34 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "zerofrom"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
dependencies = [
"zerofrom-derive",
]
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
@@ -1428,9 +1406,9 @@ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
[[package]]
name = "zerotrie"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
dependencies = [
"displaydoc",
"zerovec",
@@ -1438,9 +1416,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.6"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"databake",
"serde",
@@ -1451,17 +1429,23 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.3"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
[[package]]
name = "zmij"
-version = "1.0.21"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
diff --git a/deps/crates/vendor/icu_calendar-v2/Cargo.toml b/deps/crates/vendor/icu_calendar-v2/Cargo.toml
index d274f60e292..99c5e94078c 100644
--- a/deps/crates/vendor/icu_calendar-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_calendar-v2/Cargo.toml
@@ -10,10 +10,10 @@
# See Cargo.toml.orig for the original contents.
[package]
-edition = "2021"
-rust-version = "1.86"
+edition = "2024"
+rust-version = "1.88"
name = "icu_calendar"
-version = "2.2.1"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -48,6 +48,7 @@ categories = [
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
+resolver = "2"
[package.metadata.docs.rs]
all-features = true
@@ -66,8 +67,8 @@ alloc = [
]
compiled_data = [
"dep:icu_calendar_data",
- "dep:icu_locale",
- "icu_locale?/compiled_data",
+ "dep:icu_locale_fallback",
+ "icu_locale_fallback?/compiled_data",
"icu_provider/baked",
]
datagen = [
@@ -77,6 +78,7 @@ datagen = [
"tinystr/databake",
"alloc",
"icu_provider/export",
+ "icu_locale_core/databake",
]
default = [
"compiled_data",
@@ -89,6 +91,7 @@ serde = [
"zerovec/serde",
"tinystr/serde",
"icu_provider/serde",
+ "icu_locale_core/serde",
]
unstable = []
unstable_chrono_0_4 = ["dep:chrono"]
@@ -126,6 +129,11 @@ name = "date"
path = "benches/date.rs"
harness = false
+[[bench]]
+name = "preferred"
+path = "benches/preferred.rs"
+harness = false
+
[[bench]]
name = "until"
path = "benches/until.rs"
@@ -151,25 +159,25 @@ version = "0.2.3"
default-features = false
[dependencies.icu_calendar_data]
-version = "~2.2.0"
+version = "~2.4.0"
optional = true
default-features = false
-[dependencies.icu_locale]
-version = "~2.2.0"
-optional = true
+[dependencies.icu_locale_core]
+version = "2.4.0"
default-features = false
-[dependencies.icu_locale_core]
-version = "2.2.0"
+[dependencies.icu_locale_fallback]
+version = "~2.4.0"
+optional = true
default-features = false
[dependencies.icu_provider]
-version = "2.2.0"
+version = "2.4.0"
default-features = false
[dependencies.ixdtf]
-version = "0.6.5"
+version = "0.6.7"
optional = true
default-features = false
@@ -190,17 +198,17 @@ optional = true
default-features = false
[dependencies.tinystr]
-version = "0.8.3"
+version = "0.8.5"
features = ["zerovec"]
default-features = false
[dependencies.zerovec]
-version = "0.11.6"
+version = "0.11.9"
features = ["derive"]
default-features = false
[dev-dependencies.insta]
-version = "1.38.0"
+version = "1.43.2"
[dev-dependencies.itertools]
version = "0.14.0"
@@ -231,8 +239,9 @@ version = "3.0.0"
version = "0.5.0"
[lints.clippy]
-alloc-instead-of-core = "warn"
-branches-sharing-code = "warn"
+alloc_instead_of_core = "warn"
+bool_assert_comparison = "allow"
+branches_sharing_code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
@@ -247,7 +256,7 @@ mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
-or-fun-call = "warn"
+or_fun_call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
@@ -258,7 +267,7 @@ transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
+unnecessary_wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
@@ -275,6 +284,7 @@ priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
+ "cfg(icu4x_nightly_tests)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]
diff --git a/deps/crates/vendor/icu_calendar-v2/Cargo.toml.orig b/deps/crates/vendor/icu_calendar-v2/Cargo.toml.orig
index 8d7d5e8faf0..721b86a1860 100644
--- a/deps/crates/vendor/icu_calendar-v2/Cargo.toml.orig
+++ b/deps/crates/vendor/icu_calendar-v2/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "icu_calendar"
description = "Date APIs for Gregorian and non-Gregorian calendars"
-version = "2.2.1"
+version.workspace = true
categories.workspace = true
keywords = ["unicode", "formatting", "date"]
@@ -36,7 +36,7 @@ databake = { workspace = true, features = ["derive"], optional = true }
serde = { workspace = true, features = ["derive"], optional = true }
icu_calendar_data = { workspace = true, optional = true }
-icu_locale = { workspace = true, optional = true }
+icu_locale_fallback = { workspace = true, optional = true }
chrono = { workspace = true, optional = true }
jiff = { workspace = true, optional = true }
@@ -50,7 +50,7 @@ serde = { workspace = true, features = ["derive", "alloc"] }
serde_json = { workspace = true }
simple_logger = { workspace = true }
ureq = { workspace = true }
-insta = "1.38.0"
+insta = { workspace = true }
time = { workspace = true, features = ["large-dates"]}
@@ -62,9 +62,9 @@ criterion = { workspace = true }
default = ["compiled_data", "ixdtf"]
ixdtf = ["dep:ixdtf"]
logging = ["calendrical_calculations/logging"]
-serde = ["dep:serde", "zerovec/serde", "tinystr/serde", "icu_provider/serde"]
-datagen = ["serde", "dep:databake", "zerovec/databake", "tinystr/databake", "alloc", "icu_provider/export"]
-compiled_data = ["dep:icu_calendar_data", "dep:icu_locale", "icu_locale?/compiled_data", "icu_provider/baked"]
+serde = ["dep:serde", "zerovec/serde", "tinystr/serde", "icu_provider/serde", "icu_locale_core/serde"]
+datagen = ["serde", "dep:databake", "zerovec/databake", "tinystr/databake", "alloc", "icu_provider/export", "icu_locale_core/databake"]
+compiled_data = ["dep:icu_calendar_data", "dep:icu_locale_fallback", "icu_locale_fallback?/compiled_data", "icu_provider/baked"]
unstable = []
unstable_jiff_0_2 = ["dep:jiff"]
unstable_chrono_0_4 = ["dep:chrono"]
@@ -84,6 +84,10 @@ harness = false
name = "convert"
harness = false
+[[bench]]
+name = "preferred"
+harness = false
+
[[test]]
name = "arithmetic"
required-features = ["ixdtf"]
diff --git a/deps/crates/vendor/icu_calendar-v2/README.md b/deps/crates/vendor/icu_calendar-v2/README.md
index 857bddb2a15..c4449646250 100644
--- a/deps/crates/vendor/icu_calendar-v2/README.md
+++ b/deps/crates/vendor/icu_calendar-v2/README.md
@@ -27,7 +27,7 @@ for working with dates, encompassing information about the day, month, year,
as well as the calendar type.
```rust
-use icu::calendar::{types::Weekday, Date};
+use icu::calendar::{Date, types::Weekday};
// Creating ISO date: 1992-09-02.
let mut date_iso = Date::try_new_iso(1992, 9, 2)
@@ -46,8 +46,8 @@ assert_eq!(date_iso.days_in_month(), 30);
Example of converting an ISO date across Indian and Buddhist calendars.
```rust
-use icu::calendar::cal::{Buddhist, Indian};
use icu::calendar::Date;
+use icu::calendar::cal::{Buddhist, Indian};
// Creating ISO date: 1992-09-02.
let mut date_iso = Date::try_new_iso(1992, 9, 2)
diff --git a/deps/crates/vendor/icu_calendar-v2/benches/convert.rs b/deps/crates/vendor/icu_calendar-v2/benches/convert.rs
index d8d07e79697..e1959891b85 100644
--- a/deps/crates/vendor/icu_calendar-v2/benches/convert.rs
+++ b/deps/crates/vendor/icu_calendar-v2/benches/convert.rs
@@ -3,7 +3,7 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use criterion::{
- black_box, criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
+ BenchmarkGroup, Criterion, black_box, criterion_group, criterion_main, measurement::WallTime,
};
use icu_calendar::{Calendar, Date};
diff --git a/deps/crates/vendor/icu_calendar-v2/benches/date.rs b/deps/crates/vendor/icu_calendar-v2/benches/date.rs
index 4cf99b524e1..6b8eb6b93ca 100644
--- a/deps/crates/vendor/icu_calendar-v2/benches/date.rs
+++ b/deps/crates/vendor/icu_calendar-v2/benches/date.rs
@@ -18,11 +18,12 @@ struct Test {
}
use criterion::{
- black_box, criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
+ BenchmarkGroup, Criterion, black_box, criterion_group, criterion_main, measurement::WallTime,
};
use icu_calendar::{
+ AsCalendar, Calendar, Date,
options::{DateAddOptions, Overflow},
- types, AsCalendar, Calendar, Date,
+ types,
};
fn bench_date<A: AsCalendar>(date: &mut Date<A>) {
diff --git a/deps/crates/vendor/icu_calendar-v2/benches/preferred.rs b/deps/crates/vendor/icu_calendar-v2/benches/preferred.rs
new file mode 100644
index 00000000000..8532901386c
--- /dev/null
+++ b/deps/crates/vendor/icu_calendar-v2/benches/preferred.rs
@@ -0,0 +1,28 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top level of the ICU4X source tree
+// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+
+use criterion::{Criterion, black_box, criterion_group, criterion_main};
+use icu::calendar::AnyCalendarKind;
+use icu::calendar::preferences::CalendarPreferences;
+use icu::locale::locale;
+
+/// Loading the preferred calendar is an operation often in the critical path
+/// for datetime formatting. We want to keep it from regressing. See #8375.
+fn preferred_benches(c: &mut Criterion) {
+ let prefs = &[
+ CalendarPreferences::from(locale!("en")),
+ CalendarPreferences::from(locale!("fa")),
+ CalendarPreferences::from(locale!("ar-EG")),
+ CalendarPreferences::from(locale!("ar-SA-u-ca-islamic")),
+ CalendarPreferences::from(locale!("he-u-ca-hebrew")),
+ ];
+ let mut group = c.benchmark_group("preferred");
+ group.bench_function("try_new", |b| {
+ b.iter(|| black_box(&prefs).map(AnyCalendarKind::try_new))
+ });
+ group.finish();
+}
+
+criterion_group!(benches, preferred_benches);
+criterion_main!(benches);
diff --git a/deps/crates/vendor/icu_calendar-v2/benches/until.rs b/deps/crates/vendor/icu_calendar-v2/benches/until.rs
index 31828575098..cde609c3e9b 100644
--- a/deps/crates/vendor/icu_calendar-v2/benches/until.rs
+++ b/deps/crates/vendor/icu_calendar-v2/benches/until.rs
@@ -3,7 +3,7 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use criterion::{
- black_box, criterion_group, criterion_main, measurement::WallTime, BenchmarkGroup, Criterion,
+ BenchmarkGroup, Criterion, black_box, criterion_group, criterion_main, measurement::WallTime,
};
use icu_calendar::options::{DateDifferenceOptions, DateDurationUnit};
use icu_calendar::types::RataDie;
diff --git a/deps/crates/vendor/icu_calendar-v2/src/any_calendar.rs b/deps/crates/vendor/icu_calendar-v2/src/any_calendar.rs
index 2cb820d6bcc..16a4b64bc0b 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/any_calendar.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/any_calendar.rs
@@ -7,6 +7,7 @@
#![allow(clippy::unit_arg)]
use crate::cal::*;
+use crate::provider::CalendarPreferredV1;
use crate::{AsCalendar, Calendar, Date, Ref};
use crate::preferences::{CalendarAlgorithm, CalendarPreferences, HijriCalendarAlgorithm};
@@ -75,7 +76,7 @@ macro_rules! make_any_calendar {
) -> Result<Self::DateInner, $crate::error::DateNewError> {
Ok(match self {
$(
- &Self::$variant(ref c) => $any_date_ident::$variant(c.new_date(year, month, day)?),
+ &Self::$variant(c) => $any_date_ident::$variant(c.new_date(year, month, day)?),
)+
})
}
@@ -87,7 +88,7 @@ macro_rules! make_any_calendar {
) -> Result<Self::DateInner, $crate::error::DateFromFieldsError> {
Ok(match self {
$(
- &Self::$variant(ref c) => $any_date_ident::$variant(c.from_fields(fields, options)?),
+ &Self::$variant(c) => $any_date_ident::$variant(c.from_fields(fields, options)?),
)+
})
}
@@ -95,7 +96,7 @@ macro_rules! make_any_calendar {
fn has_cheap_iso_conversion(&self) -> bool {
match self {
$(
- Self::$variant(ref c) => c.has_cheap_iso_conversion(),
+ Self::$variant(c) => c.has_cheap_iso_conversion(),
)+
}
}
@@ -103,7 +104,7 @@ macro_rules! make_any_calendar {
fn from_iso(&self, iso: <$crate::Iso as $crate::Calendar>::DateInner) -> Self::DateInner {
match self {
$(
- &Self::$variant(ref c) => $any_date_ident::$variant(c.from_iso(iso)),
+ &Self::$variant(c) => $any_date_ident::$variant(c.from_iso(iso)),
)+
}
}
@@ -111,7 +112,7 @@ macro_rules! make_any_calendar {
fn to_iso(&self, date: &Self::DateInner) -> <$crate::Iso as $crate::Calendar>::DateInner {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.to_iso(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.to_iso(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -121,7 +122,7 @@ macro_rules! make_any_calendar {
fn from_rata_die(&self, rd: $crate::types::RataDie) -> Self::DateInner {
match self {
$(
- &Self::$variant(ref c) => $any_date_ident::$variant(c.from_rata_die(rd)),
+ &Self::$variant(c) => $any_date_ident::$variant(c.from_rata_die(rd)),
)+
}
}
@@ -129,7 +130,7 @@ macro_rules! make_any_calendar {
fn to_rata_die(&self, date: &Self::DateInner) -> $crate::types::RataDie {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.to_rata_die(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.to_rata_die(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -139,7 +140,7 @@ macro_rules! make_any_calendar {
fn months_in_year(&self, date: &Self::DateInner) -> u8 {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.months_in_year(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.months_in_year(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -149,7 +150,7 @@ macro_rules! make_any_calendar {
fn days_in_year(&self, date: &Self::DateInner) -> u16 {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.days_in_year(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.days_in_year(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -159,7 +160,7 @@ macro_rules! make_any_calendar {
fn days_in_month(&self, date: &Self::DateInner) -> u8 {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.days_in_month(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.days_in_month(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -169,7 +170,7 @@ macro_rules! make_any_calendar {
fn year_info(&self, date: &Self::DateInner) -> $crate::types::YearInfo {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.year_info(&d).into(),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.year_info(&d).into(),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -180,7 +181,7 @@ macro_rules! make_any_calendar {
fn is_in_leap_year(&self, date: &Self::DateInner) -> bool {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.is_in_leap_year(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.is_in_leap_year(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -191,7 +192,7 @@ macro_rules! make_any_calendar {
fn month(&self, date: &Self::DateInner) -> $crate::types::MonthInfo {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.month(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.month(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -202,7 +203,7 @@ macro_rules! make_any_calendar {
fn day_of_month(&self, date: &Self::DateInner) -> $crate::types::DayOfMonth {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.day_of_month(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.day_of_month(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -213,7 +214,7 @@ macro_rules! make_any_calendar {
fn day_of_year(&self, date: &Self::DateInner) -> $crate::types::DayOfYear {
match (self, date) {
$(
- (&Self::$variant(ref c), &$any_date_ident::$variant(d)) => c.day_of_year(&d),
+ (&Self::$variant(c), &$any_date_ident::$variant(d)) => c.day_of_year(&d),
)+
// This is only reached from misuse of from_raw, a semi-internal api
_ => panic!(concat!(stringify!($any_calendar_ident), " with mismatched date type")),
@@ -229,7 +230,7 @@ macro_rules! make_any_calendar {
let mut date = *date;
match (self, &mut date) {
$(
- (&Self::$variant(ref c), $any_date_ident::$variant(ref mut d)) => {
+ (&Self::$variant(c), $any_date_ident::$variant(d)) => {
*d = c.add(d, duration, options)?;
},
)+
@@ -247,7 +248,7 @@ macro_rules! make_any_calendar {
) -> $crate::types::DateDuration {
match (self, date1, date2) {
$(
- (Self::$variant(ref c), $any_date_ident::$variant(d1), $any_date_ident::$variant(d2)) => {
+ (Self::$variant(c), $any_date_ident::$variant(d1), $any_date_ident::$variant(d2)) => {
c.until(d1, d2, options)
}
)+
@@ -259,7 +260,7 @@ macro_rules! make_any_calendar {
fn check_date_compatibility(&self, other: &Self) -> Result<(), Self::DateCompatibilityError> {
match (self, other) {
$(
- (Self::$variant(ref c1), Self::$variant(ref c2)) if c1.check_date_compatibility(c2).is_ok() => {
+ (Self::$variant(c1), Self::$variant(c2)) if c1.check_date_compatibility(c2).is_ok() => {
Ok(())
}
)+
@@ -278,7 +279,7 @@ macro_rules! make_any_calendar {
fn calendar_algorithm(&self) -> Option<CalendarAlgorithm> {
match self {
$(
- Self::$variant(ref c) => c.calendar_algorithm(),
+ Self::$variant(c) => c.calendar_algorithm(),
)+
}
}
@@ -352,6 +353,8 @@ make_any_calendar!(
///
/// There are many ways of constructing an [`AnyCalendar`]'d date:
/// ```
+ /// # #![allow(clippy::eq_op)]
+ /// # #![allow(clippy::neg_cmp_op_on_partial_ord)]
/// use icu::calendar::{AnyCalendar, AnyCalendarKind, Date, cal::{Japanese, Gregorian}, types::MonthCode};
/// use icu::locale::locale;
/// use tinystr::tinystr;
@@ -359,7 +362,7 @@ make_any_calendar!(
///
/// let locale = locale!("en-u-ca-japanese"); // English with the Japanese calendar
///
- /// let calendar = AnyCalendar::new(AnyCalendarKind::new(locale.into()));
+ /// let calendar = AnyCalendar::new(AnyCalendarKind::try_new(locale.into()).unwrap());
///
/// // This is a Date<AnyCalendar>
/// let any_japanese_date = Date::try_new_gregorian(2020, 9, 1)
@@ -403,6 +406,7 @@ make_any_calendar!(
Japanese(Japanese),
#[deprecated(since = "2.2.0", note = "see `Japanese`")]
JapaneseExtended(Japanese),
+ Julian(Julian),
Persian(Persian),
Roc(Roc),
);
@@ -420,6 +424,7 @@ make_any_calendar_impls!(
Indian(Indian),
Iso(Iso),
Japanese(Japanese),
+ Julian(Julian),
Persian(Persian),
Roc(Roc),
HijriSimulated(Hijri<hijri::AstronomicalSimulation>),
@@ -471,6 +476,7 @@ impl AnyCalendar {
AnyCalendarKind::Japanese | AnyCalendarKind::JapaneseExtended => {
AnyCalendar::Japanese(Japanese::new())
}
+ AnyCalendarKind::Julian => AnyCalendar::Julian(Julian),
AnyCalendarKind::Persian => AnyCalendar::Persian(Persian),
AnyCalendarKind::Roc => AnyCalendar::Roc(Roc),
}
@@ -523,6 +529,7 @@ impl AnyCalendar {
AnyCalendarKind::Japanese | AnyCalendarKind::JapaneseExtended => {
AnyCalendar::Japanese(Japanese::try_new_with_buffer_provider(provider)?)
}
+ AnyCalendarKind::Julian => AnyCalendar::Julian(Julian),
AnyCalendarKind::Persian => AnyCalendar::Persian(Persian),
AnyCalendarKind::Roc => AnyCalendar::Roc(Roc),
})
@@ -571,6 +578,7 @@ impl AnyCalendar {
AnyCalendarKind::Japanese | AnyCalendarKind::JapaneseExtended => {
AnyCalendar::Japanese(Japanese::try_new_unstable(provider)?)
}
+ AnyCalendarKind::Julian => AnyCalendar::Julian(Julian),
AnyCalendarKind::Persian => AnyCalendar::Persian(Persian),
AnyCalendarKind::Roc => AnyCalendar::Roc(Roc),
})
@@ -618,6 +626,7 @@ impl AnyCalendar {
AnyCalendarKind::Japanese | AnyCalendarKind::JapaneseExtended => {
AnyCalendar::Japanese(Japanese::default())
}
+ AnyCalendarKind::Julian => AnyCalendar::Julian(Julian),
AnyCalendarKind::Persian => AnyCalendar::Persian(Persian),
AnyCalendarKind::Roc => AnyCalendar::Roc(Roc),
}
@@ -653,6 +662,7 @@ impl AnyCalendar {
Self::Iso(_) => AnyCalendarKind::Iso,
#[allow(deprecated)]
Self::Japanese(_) | Self::JapaneseExtended(_) => AnyCalendarKind::Japanese,
+ Self::Julian(_) => AnyCalendarKind::Julian,
Self::Persian(_) => AnyCalendarKind::Persian,
Self::Roc(_) => AnyCalendarKind::Roc,
}
@@ -726,6 +736,8 @@ pub enum AnyCalendarKind {
/// Deprecated, use `Japanese`.
#[deprecated(since = "2.2.0", note = "use `Japanese`")]
JapaneseExtended,
+ /// The kind of a [`Julian`] calendar
+ Julian,
/// The kind of a [`Persian`] calendar
///
/// This corresponds to the `"persian"` [CLDR calendar](https://unicode.org/reports/tr35/#UnicodeCalendarIdentifier).
@@ -737,13 +749,77 @@ pub enum AnyCalendarKind {
}
impl AnyCalendarKind {
+ #[deprecated(since = "2.2.0", note = "use `AnyCalendarKind::try_new`")]
/// Selects the [`AnyCalendarKind`] appropriate for the given [`CalendarPreferences`].
pub fn new(prefs: CalendarPreferences) -> Self {
+ #[allow(deprecated)]
prefs
.resolved_algorithm()
.try_into()
.unwrap_or(Self::Gregorian)
}
+
+ icu_provider::gen_buffer_data_constructors!(
+ (prefs: CalendarPreferences) -> error: DataError,
+ /// Selects the [`AnyCalendarKind`] appropriate for the given [`CalendarPreferences`].
+ ///
+ /// # Example
+ ///
+ /// ```
+ /// use icu::calendar::{AnyCalendarKind, preferences::{CalendarPreferences, HijriCalendarAlgorithm}};
+ /// use icu::locale::locale;
+ ///
+ /// assert_eq!(AnyCalendarKind::try_new(locale!("und").into()).unwrap(), AnyCalendarKind::Gregorian);
+ /// assert_eq!(AnyCalendarKind::try_new(locale!("und-US-u-ca-hebrew").into()).unwrap(), AnyCalendarKind::Hebrew);
+ /// assert_eq!(AnyCalendarKind::try_new(locale!("und-AF").into()).unwrap(), AnyCalendarKind::Persian);
+ /// assert_eq!(AnyCalendarKind::try_new(locale!("fa").into()).unwrap(), AnyCalendarKind::Persian);
+ /// assert_eq!(AnyCalendarKind::try_new(locale!("und-US-u-rg-thxxxx").into()).unwrap(), AnyCalendarKind::Buddhist);
+ /// assert_eq!(
+ /// AnyCalendarKind::try_new(locale!("und-US-u-ca-islamic").into()).unwrap(),
+ /// AnyCalendarKind::HijriTabularTypeIIFriday
+ /// );
+ /// # assert_eq!(AnyCalendarKind::try_new("und-US-u-ca-islamic-rgsa".parse::<icu::locale::Locale>().unwrap().into()).unwrap(),
+ /// # AnyCalendarKind::HijriTabularTypeIIFriday
+ /// # );
+ /// # assert_eq!(AnyCalendarKind::try_new("und-US-u-ca-islamic-foo".parse::<icu::locale::Locale>().unwrap().into()).unwrap(),
+ /// # AnyCalendarKind::Gregorian
+ /// # );
+ /// # assert_eq!(AnyCalendarKind::try_new("und-US-u-ca-hebrew-foo".parse::<icu::locale::Locale>().unwrap().into()).unwrap(),
+ /// # AnyCalendarKind::Gregorian
+ /// # );
+ /// ```
+ );
+
+ #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::try_new)]
+ pub fn try_new_unstable<P: DataProvider<CalendarPreferredV1>>(
+ provider: &P,
+ mut prefs: CalendarPreferences,
+ ) -> Result<Self, DataError> {
+ if prefs.calendar_algorithm
+ == Some(CalendarAlgorithm::Hijri(Some(HijriCalendarAlgorithm::Rgsa)))
+ {
+ // Resolve islamic-rgsa to the region's Hijri default.
+ prefs.calendar_algorithm = Some(CalendarAlgorithm::Hijri(None));
+ }
+
+ let algorithm = match prefs.calendar_algorithm {
+ Some(algorithm) if !matches!(algorithm, CalendarAlgorithm::Hijri(None)) => algorithm,
+ unresolved => DataProvider::<CalendarPreferredV1>::load(
+ &provider,
+ DataRequest {
+ id: DataIdentifierBorrowed::for_locale(&CalendarPreferredV1::make_locale(
+ prefs.locale_preferences,
+ )),
+ metadata: Default::default(),
+ },
+ )?
+ .payload
+ .get()
+ .resolve(unresolved),
+ };
+
+ Ok(algorithm.try_into().unwrap_or(Self::Gregorian))
+ }
}
impl TryFrom<CalendarAlgorithm> for AnyCalendarKind {
@@ -850,9 +926,9 @@ impl<C: IntoAnyCalendar> Date<C> {
#[cfg(test)]
mod tests {
use super::*;
+ use crate::Ref;
use crate::error::DateNewError;
use crate::types::{Month, YearInput};
- use crate::Ref;
#[track_caller]
fn single_test_roundtrip(
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/abstract_gregorian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/abstract_gregorian.rs
index db75cbae8bc..8d7b4fea530 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/abstract_gregorian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/abstract_gregorian.rs
@@ -11,7 +11,7 @@ use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::preferences::CalendarAlgorithm;
use crate::types::EraYear;
-use crate::{types, Calendar};
+use crate::{Calendar, types};
use calendrical_calculations::rata_die::RataDie;
#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
@@ -22,7 +22,7 @@ pub(crate) trait GregorianYears: Clone + core::fmt::Debug {
const EXTENDED_YEAR_OFFSET: i32 = 0;
fn extended_from_era_year(&self, era: Option<&[u8]>, year: i32)
- -> Result<i32, UnknownEraError>;
+ -> Result<i32, UnknownEraError>;
fn era_year_from_extended(&self, extended_year: i32, month: u8, day: u8) -> EraYear;
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/buddhist.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/buddhist.rs
index cc54c03c3a8..3055511c665 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/buddhist.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/buddhist.rs
@@ -6,9 +6,10 @@ use crate::cal::abstract_gregorian::AbstractGregorian;
use crate::error::UnknownEraError;
use crate::preferences::CalendarAlgorithm;
use crate::{
- cal::abstract_gregorian::{impl_with_abstract_gregorian, GregorianYears},
+ Date, RangeError,
+ cal::abstract_gregorian::{GregorianYears, impl_with_abstract_gregorian},
calendar_arithmetic::ArithmeticDate,
- types, Date, RangeError,
+ types,
};
use tinystr::tinystr;
@@ -272,4 +273,24 @@ mod test {
check_test_case(case);
}
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Buddhist);
+ let reconstructed = Date::try_new_buddhist(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Buddhist failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/coptic.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/coptic.rs
index 742989e1ec9..1e61d61e8f6 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/coptic.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/coptic.rs
@@ -9,7 +9,7 @@ use crate::error::{
};
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
-use crate::{types, Calendar, Date, RangeError};
+use crate::{Calendar, Date, RangeError, types};
use calendrical_calculations::rata_die::RataDie;
use tinystr::tinystr;
@@ -228,11 +228,7 @@ impl Calendar for Coptic {
}
fn days_in_year(&self, date: &Self::DateInner) -> u16 {
- if self.is_in_leap_year(date) {
- 366
- } else {
- 365
- }
+ if self.is_in_leap_year(date) { 366 } else { 365 }
}
fn days_in_month(&self, date: &Self::DateInner) -> u8 {
@@ -351,4 +347,24 @@ mod tests {
let date = Date::try_from_fields(fields, options, Coptic).unwrap();
assert_eq!(date.day_of_month().0, 6, "Day was successfully constrained");
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Coptic);
+ let reconstructed = Date::try_new_coptic(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Coptic failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/east_asian_traditional.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/east_asian_traditional.rs
index aa6997be238..03ddadf75c0 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/east_asian_traditional.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/east_asian_traditional.rs
@@ -2,6 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::AsCalendar;
use crate::calendar_arithmetic::{ArithmeticDate, DateFieldsResolver, PackWithMD};
use crate::error::{
DateAddError, DateError, DateFromFieldsError, DateNewError, EcmaReferenceYearError,
@@ -9,8 +10,7 @@ use crate::error::{
};
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::options::{DateFromFieldsOptions, Overflow};
-use crate::AsCalendar;
-use crate::{types, Calendar, Date};
+use crate::{Calendar, Date, types};
use calendrical_calculations::chinese_based;
use calendrical_calculations::rata_die::RataDie;
use core::cmp::Ordering;
@@ -360,26 +360,26 @@ impl Rules for China {
/// [Yuk Tung Liu]: https://ytliu0.github.io/ChineseCalendar/table.html
///
/// ```rust
-/// use icu::calendar::cal::{ChineseTraditional, KoreanTraditional};
/// use icu::calendar::Date;
+/// use icu::calendar::cal::{ChineseTraditional, KoreanTraditional};
///
/// let iso_a = Date::try_new_iso(2012, 4, 23).unwrap();
/// let korean_a = iso_a.to_calendar(KoreanTraditional::new());
/// let chinese_a = iso_a.to_calendar(ChineseTraditional::new());
///
/// assert_eq!(korean_a.month().number(), 3);
-/// assert_eq!(korean_a.month().to_input().is_leap(), true);
+/// assert!(korean_a.month().to_input().is_leap());
/// assert_eq!(chinese_a.month().number(), 4);
-/// assert_eq!(chinese_a.month().to_input().is_leap(), false);
+/// assert!(!chinese_a.month().to_input().is_leap());
///
/// let iso_b = Date::try_new_iso(2012, 5, 23).unwrap();
/// let korean_b = iso_b.to_calendar(KoreanTraditional::new());
/// let chinese_b = iso_b.to_calendar(ChineseTraditional::new());
///
/// assert_eq!(korean_b.month().number(), 4);
-/// assert_eq!(korean_b.month().to_input().is_leap(), false);
+/// assert!(!korean_b.month().to_input().is_leap());
/// assert_eq!(chinese_b.month().number(), 4);
-/// assert_eq!(chinese_b.month().to_input().is_leap(), true);
+/// assert!(chinese_b.month().to_input().is_leap());
/// ```
pub type KoreanTraditional = EastAsianTraditional<Korea>;
@@ -480,8 +480,8 @@ impl Date<KoreanTraditional> {
/// valid range of `-9999..=9999`.
///
/// ```rust
- /// use icu::calendar::types::Month;
/// use icu::calendar::Date;
+ /// use icu::calendar::types::Month;
///
/// let date = Date::try_new_korean_traditional(2025, Month::new(5), 25)
/// .expect("Failed to initialize Date instance.");
@@ -845,8 +845,8 @@ impl Date<ChineseTraditional> {
/// valid range of `-9999..=9999`.
///
/// ```rust
- /// use icu::calendar::types::Month;
/// use icu::calendar::Date;
+ /// use icu::calendar::types::Month;
///
/// let date = Date::try_new_chinese_traditional(2025, Month::new(5), 25)
/// .expect("Failed to initialize Date instance.");
@@ -1454,7 +1454,10 @@ mod test {
}
let rd = date.to_rata_die().to_i64_date();
let expected = case.expected;
- assert_eq!(rd, expected, "RD from Chinese failed, with expected: {expected} and calculated: {rd}, for test case: {case:?}");
+ assert_eq!(
+ rd, expected,
+ "RD from Chinese failed, with expected: {expected} and calculated: {rd}, for test case: {case:?}"
+ );
}
}
@@ -1469,7 +1472,10 @@ mod test {
let chinese = Date::from_rata_die(rata_die, ChineseTraditional::new());
let result = chinese.to_rata_die();
- assert_eq!(result, rata_die, "Failed roundtrip RD -> Chinese -> RD for RD: {rata_die:?}, with calculated: {result:?} from Chinese date:\n{chinese:?}");
+ assert_eq!(
+ result, rata_die,
+ "Failed roundtrip RD -> Chinese -> RD for RD: {rata_die:?}, with calculated: {result:?} from Chinese date:\n{chinese:?}"
+ );
rd += 7043;
iters += 1;
@@ -1744,7 +1750,10 @@ mod test {
let iso = Date::try_new_iso(year, month, day).unwrap();
let chinese = iso.to_calendar(ChineseTraditional::new());
let result = chinese.to_calendar(Iso);
- assert_eq!(iso, result, "ISO to Chinese roundtrip failed!\nIso: {iso:?}\nChinese: {chinese:?}\nResult: {result:?}");
+ assert_eq!(
+ iso, result,
+ "ISO to Chinese roundtrip failed!\nIso: {iso:?}\nChinese: {chinese:?}\nResult: {result:?}"
+ );
}
}
@@ -1863,7 +1872,7 @@ mod test {
#[test]
#[ignore] // slow, network
fn test_against_hong_kong_observatory_data() {
- use crate::{cal::Gregorian, Date};
+ use crate::{Date, cal::Gregorian};
let mut related_iso = 1900;
let mut lunar_month = Month::new(11);
@@ -1934,7 +1943,7 @@ mod test {
#[test]
#[ignore] // network
fn test_against_kasi_data() {
- use crate::{cal::Gregorian, Date};
+ use crate::{Date, cal::Gregorian};
// TODO: query KASI directly
let uri = "https://gist.githubusercontent.com/Manishearth/d8c94a7df22a9eacefc4472a5805322e/raw/e1ea3b0aa52428686bb3a9cd0f262878515e16c1/resolved.json";
@@ -2119,4 +2128,44 @@ mod test {
packed_roundtrip_single(RANDOM2, Some(5), 18 + 2);
packed_roundtrip_single(RANDOM2, Some(12), 18 + 5);
}
+
+ #[test]
+ fn test_chinese_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, ChineseTraditional::new());
+ let reconstructed = Date::try_new_chinese_traditional(
+ date.year().extended_year(),
+ date.month().to_input(),
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Chinese Traditional failed for RD {:?}",
+ rd
+ );
+ }
+ }
+
+ #[test]
+ fn test_korean_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, KoreanTraditional::new());
+ let reconstructed = Date::try_new_korean_traditional(
+ date.year().extended_year(),
+ date.month().to_input(),
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Korean Traditional failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/ethiopian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/ethiopian.rs
index 9a19f278f5b..2424dfbf673 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/ethiopian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/ethiopian.rs
@@ -2,8 +2,8 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-use crate::cal::coptic::{CopticDateInner, CopticYear};
use crate::cal::Coptic;
+use crate::cal::coptic::{CopticDateInner, CopticYear};
use crate::calendar_arithmetic::{ArithmeticDate, DateFieldsResolver};
use crate::error::{
DateAddError, DateFromFieldsError, DateNewError, EcmaReferenceYearError, UnknownEraError,
@@ -11,7 +11,7 @@ use crate::error::{
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::DateFields;
-use crate::{types, Calendar, Date, RangeError};
+use crate::{Calendar, Date, RangeError, types};
use calendrical_calculations::rata_die::RataDie;
use tinystr::tinystr;
@@ -182,7 +182,7 @@ impl Calendar for Ethiopian {
}
fn to_rata_die(&self, date: &Self::DateInner) -> RataDie {
- date.0 .0.to_rata_die()
+ date.0.0.to_rata_die()
}
fn has_cheap_iso_conversion(&self) -> bool {
@@ -227,7 +227,7 @@ impl Calendar for Ethiopian {
}
fn year_info(&self, date: &Self::DateInner) -> Self::Year {
- let coptic_year = date.0 .0.year();
+ let coptic_year = date.0.0.year();
let extended_year = coptic_year.to_ethiopian_year(self.0);
if self.0 == EthiopianEraStyle::AmeteAlem || extended_year <= 0 {
@@ -306,8 +306,8 @@ impl Date<Ethiopian> {
/// Years are interpreted according to the provided `era_style`.
///
/// ```rust
- /// use icu::calendar::cal::EthiopianEraStyle;
/// use icu::calendar::Date;
+ /// use icu::calendar::cal::EthiopianEraStyle;
///
/// let date_ethiopian =
/// Date::try_new_ethiopian(EthiopianEraStyle::AmeteMihret, 2014, 8, 25)
@@ -413,4 +413,28 @@ mod test {
1
);
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(
+ rd,
+ Ethiopian::new_with_era_style(EthiopianEraStyle::AmeteMihret),
+ );
+ let reconstructed = Date::try_new_ethiopian(
+ EthiopianEraStyle::AmeteMihret,
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Ethiopian failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/gregorian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/gregorian.rs
index 5e4bb780c1b..4f357e130fa 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/gregorian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/gregorian.rs
@@ -3,12 +3,12 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use crate::cal::abstract_gregorian::{
- impl_with_abstract_gregorian, AbstractGregorian, GregorianYears,
+ AbstractGregorian, GregorianYears, impl_with_abstract_gregorian,
};
use crate::calendar_arithmetic::ArithmeticDate;
use crate::error::UnknownEraError;
use crate::preferences::CalendarAlgorithm;
-use crate::{types, Date, RangeError};
+use crate::{Date, RangeError, types};
use tinystr::tinystr;
impl_with_abstract_gregorian!(Gregorian, GregorianDateInner, CeBce, _x, CeBce);
@@ -317,4 +317,24 @@ mod test {
}
}
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Gregorian);
+ let reconstructed = Date::try_new_gregorian(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Gregorian failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/hebrew.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/hebrew.rs
index 46f1e99ef84..eef0d242434 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/hebrew.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/hebrew.rs
@@ -2,6 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::RangeError;
use crate::calendar_arithmetic::{ArithmeticDate, DateFieldsResolver, PackWithMD};
use crate::error::{
DateAddError, DateFromFieldsError, DateNewError, EcmaReferenceYearError, LunisolarDateError,
@@ -10,8 +11,7 @@ use crate::error::{
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::options::{DateFromFieldsOptions, Overflow};
use crate::types::{DateFields, LeapStatus, Month, MonthInfo};
-use crate::RangeError;
-use crate::{types, Calendar, Date};
+use crate::{Calendar, Date, types};
use ::tinystr::tinystr;
use calendrical_calculations::hebrew_keviyah::{Keviyah, YearInfo};
use calendrical_calculations::rata_die::RataDie;
@@ -420,8 +420,8 @@ impl Date<Hebrew> {
/// valid range of `-9999..=9999`.
///
/// ```rust
- /// use icu::calendar::types::Month;
/// use icu::calendar::Date;
+ /// use icu::calendar::types::Month;
///
/// let date = Date::try_new_hebrew_v2(5782, Month::leap(5), 7)
/// .expect("Failed to initialize Date instance.");
@@ -620,4 +620,24 @@ mod tests {
// https://www.hebcal.com/converter?hd=1&hm=Tishrei&hy=3760&h2g=1
assert_eq!(dt.weekday(), Weekday::Saturday);
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Hebrew);
+ let reconstructed = Date::try_new_hebrew_v2(
+ date.year().extended_year(),
+ date.month().to_input(),
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Hebrew failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/hijri.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/hijri.rs
index f0042886d9f..391337c99e7 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/hijri.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/hijri.rs
@@ -12,8 +12,8 @@ use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::DateFields;
use crate::types::Month;
-use crate::{types, Calendar, Date};
use crate::{AsCalendar, RangeError};
+use crate::{Calendar, Date, types};
use calendrical_calculations::rata_die::RataDie;
use core::cmp::Ordering;
use core::fmt::Debug;
@@ -836,10 +836,10 @@ fn computer_reference_years() {
.extended_year;
let y_30 = compute_hijri_reference_year(month, 30, rules).map(|y| y.extended_year);
- if let Some(y_30) = y_30 {
- if y_29 != y_30 {
- println!("({month}, 30..) => {y_30},")
- }
+ if let Some(y_30) = y_30
+ && y_29 != y_30
+ {
+ println!("({month}, 30..) => {y_30},")
}
if month == 11 {
let y_1 = compute_hijri_reference_year(month, 1, rules)
@@ -1070,8 +1070,8 @@ impl<A: AsCalendar<Calendar = Hijri<R>>, R: Rules> Date<A> {
/// valid range of `-9999..=9999`.
///
/// ```rust
- /// use icu::calendar::cal::Hijri;
/// use icu::calendar::Date;
+ /// use icu::calendar::cal::Hijri;
///
/// let hijri = Hijri::new_umm_al_qura();
///
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/indian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/indian.rs
index ea3a916def0..bfa1b403fe8 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/indian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/indian.rs
@@ -10,7 +10,7 @@ use crate::error::{
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::DateFields;
-use crate::{types, Calendar, Date, RangeError};
+use crate::{Calendar, Date, RangeError, types};
use calendrical_calculations::rata_die::RataDie;
use tinystr::tinystr;
@@ -210,11 +210,7 @@ impl Calendar for Indian {
}
fn days_in_year(&self, date: &Self::DateInner) -> u16 {
- if self.is_in_leap_year(date) {
- 366
- } else {
- 365
- }
+ if self.is_in_leap_year(date) { 366 } else { 365 }
}
fn days_in_month(&self, date: &Self::DateInner) -> u8 {
@@ -533,7 +529,11 @@ mod tests {
let indian_i = Date::from_rata_die(rd_i, Indian);
let indian_j = Date::from_rata_die(rd_j, Indian);
- assert_eq!(i.cmp(&j), indian_i.cmp(&indian_j), "Directionality test failed for i: {i}, j: {j}, indian_i: {indian_i:?}, indian_j: {indian_j:?}");
+ assert_eq!(
+ i.cmp(&j),
+ indian_i.cmp(&indian_j),
+ "Directionality test failed for i: {i}, j: {j}, indian_i: {indian_i:?}, indian_j: {indian_j:?}"
+ );
}
}
}
@@ -546,8 +546,32 @@ mod tests {
let indian_i = Date::from_rata_die(RataDie::new(i), Indian);
let indian_j = Date::from_rata_die(RataDie::new(j), Indian);
- assert_eq!(i.cmp(&j), indian_i.cmp(&indian_j), "Directionality test failed for i: {i}, j: {j}, indian_i: {indian_i:?}, indian_j: {indian_j:?}");
+ assert_eq!(
+ i.cmp(&j),
+ indian_i.cmp(&indian_j),
+ "Directionality test failed for i: {i}, j: {j}, indian_i: {indian_i:?}, indian_j: {indian_j:?}"
+ );
}
}
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Indian);
+ let reconstructed = Date::try_new_indian(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Indian failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/iso.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/iso.rs
index e0bdc55dd10..02826938d3b 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/iso.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/iso.rs
@@ -3,11 +3,11 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use crate::cal::abstract_gregorian::{
- impl_with_abstract_gregorian, AbstractGregorian, GregorianYears,
+ AbstractGregorian, GregorianYears, impl_with_abstract_gregorian,
};
use crate::calendar_arithmetic::ArithmeticDate;
use crate::error::UnknownEraError;
-use crate::{types, Date, RangeError};
+use crate::{Date, RangeError, types};
use tinystr::tinystr;
/// The [ISO-8601 Calendar](https://en.wikipedia.org/wiki/ISO_8601#Dates)
@@ -387,4 +387,24 @@ mod test {
check(1461, 4, 12, 31); // leap year
check(1462, 5, 1, 1);
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Iso);
+ let reconstructed = Date::try_new_iso(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "ISO failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/japanese.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/japanese.rs
index 2296485e641..712dfde1785 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/japanese.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/japanese.rs
@@ -3,15 +3,14 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use crate::cal::abstract_gregorian::{
- impl_with_abstract_gregorian, AbstractGregorian, GregorianYears,
+ AbstractGregorian, GregorianYears, impl_with_abstract_gregorian,
};
use crate::cal::gregorian::CeBce;
use crate::calendar_arithmetic::ArithmeticDate;
use crate::error::{DateError, UnknownEraError};
-use crate::provider::{CalendarJapaneseModernV1, EraStartDate, PackedEra};
-use crate::{types, AsCalendar, Date};
+use crate::provider::{CalendarJapaneseModernV1, EraStartDate, JapaneseEras};
+use crate::{AsCalendar, Date, types};
use icu_provider::prelude::*;
-use tinystr::{tinystr, TinyAsciiStr};
/// The [Japanese Calendar] (with modern eras only)
///
@@ -37,9 +36,7 @@ use tinystr::{tinystr, TinyAsciiStr};
/// These eras are loaded from data, requiring a data provider capable of providing [`CalendarJapaneseModernV1`]
/// data.
#[derive(Clone, Debug, Default, Copy)]
-pub struct Japanese {
- post_reiwa_era: Option<PackedEra>,
-}
+pub struct Japanese(JapaneseEras);
impl Japanese {
/// Creates a new [`Japanese`] using only modern eras (post-meiji) from compiled data.
@@ -49,12 +46,7 @@ impl Japanese {
/// [📚 Help choosing a constructor](icu_provider::constructors)
#[cfg(feature = "compiled_data")]
pub const fn new() -> Self {
- const {
- Self {
- post_reiwa_era: crate::provider::Baked::SINGLETON_CALENDAR_JAPANESE_MODERN_V1
- .last_after_reiwa(),
- }
- }
+ const { Self(*crate::provider::Baked::SINGLETON_CALENDAR_JAPANESE_MODERN_V1) }
}
icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
@@ -69,65 +61,7 @@ impl Japanese {
pub fn try_new_unstable<D: DataProvider<CalendarJapaneseModernV1> + ?Sized>(
provider: &D,
) -> Result<Self, DataError> {
- Ok(Self {
- post_reiwa_era: provider
- .load(Default::default())?
- .payload
- .get()
- .last_after_reiwa(),
- })
- }
-}
-
-impl Japanese {
- fn eras(self) -> impl Iterator<Item = (EraStartDate, TinyAsciiStr<8>, u8)> {
- self.post_reiwa_era.map(|p| p.unpack()).into_iter().chain([
- (
- EraStartDate {
- year: 2019,
- month: 5,
- day: 1,
- },
- tinystr!(8, "reiwa"),
- 6,
- ),
- (
- EraStartDate {
- year: 1989,
- month: 1,
- day: 8,
- },
- tinystr!(8, "heisei"),
- 5,
- ),
- (
- EraStartDate {
- year: 1926,
- month: 12,
- day: 25,
- },
- tinystr!(8, "showa"),
- 4,
- ),
- (
- EraStartDate {
- year: 1912,
- month: 7,
- day: 30,
- },
- tinystr!(8, "taisho"),
- 3,
- ),
- (
- EraStartDate {
- year: 1868,
- month: 10,
- day: 23,
- },
- tinystr!(8, "meiji"),
- 2,
- ),
- ])
+ Ok(Self(*provider.load(Default::default())?.payload.get()))
}
}
@@ -142,8 +76,9 @@ impl GregorianYears for Japanese {
}
let (start, ..) = self
+ .0
.eras()
- .find(|(_, name, _)| era == Some(name.as_bytes()))
+ .rfind(|(_, name, _)| era == Some(name.as_bytes()))
.ok_or(UnknownEraError)?;
Ok(year - 1 + start.year)
@@ -152,17 +87,18 @@ impl GregorianYears for Japanese {
fn era_year_from_extended(&self, year: i32, month: u8, day: u8) -> types::EraYear {
let date: EraStartDate = EraStartDate { year, month, day };
- let ret = if let Some((start, code, idx)) = self.eras().find(|&(start, ..)| date >= start) {
- types::EraYear {
- era: code.resize(),
- era_index: Some(idx),
- year: year - start.year + 1,
- extended_year: year,
- ambiguity: types::YearAmbiguity::CenturyRequired,
- }
- } else {
- CeBce.era_year_from_extended(year, month, day)
- };
+ let ret =
+ if let Some((start, code, idx)) = self.0.eras().rfind(|&(start, ..)| date >= start) {
+ types::EraYear {
+ era: code.resize(),
+ era_index: Some(idx),
+ year: year - start.year + 1,
+ extended_year: year,
+ ambiguity: types::YearAmbiguity::CenturyRequired,
+ }
+ } else {
+ CeBce.era_year_from_extended(year, month, day)
+ };
// Special case: Meiji 1 to 5 are treated as CE.
//
@@ -267,9 +203,10 @@ impl Date<Japanese> {
#[cfg(test)]
mod tests {
use super::*;
+ use tinystr::tinystr;
- const CALENDAR: Japanese = Japanese {
- post_reiwa_era: Some(PackedEra::pack(
+ const CALENDAR: Japanese = Japanese(
+ JapaneseEras::with_last_era(
EraStartDate {
year: 2086,
month: 11,
@@ -277,8 +214,9 @@ mod tests {
},
tinystr!(8, "fuzu"),
8,
- )),
- };
+ )
+ .unwrap(),
+ );
fn single_test_roundtrip(era: &str, year: i32, month: u8, day: u8) {
let date = Date::try_new_japanese_with_calendar(era, year, month, day, CALENDAR)
@@ -380,4 +318,26 @@ mod tests {
single_test_era_range_roundtrip("ce", 1873, 5, 1, "meiji", 6);
single_test_era_range_roundtrip("ce", 1874, 1, 1, "meiji", 7);
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Japanese::new());
+ let reconstructed = Date::try_new_japanese_with_calendar(
+ date.era_year().era.as_str(),
+ date.era_year().year,
+ date.month().ordinal,
+ date.day_of_month().0,
+ Japanese::new(),
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Japanese failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/julian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/julian.rs
index aca19f09357..6fb03fcd959 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/julian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/julian.rs
@@ -10,7 +10,7 @@ use crate::error::{
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::DateFields;
-use crate::{types, Calendar, Date, RangeError};
+use crate::{Calendar, Date, RangeError, types};
use calendrical_calculations::rata_die::RataDie;
use tinystr::tinystr;
@@ -71,6 +71,47 @@ use tinystr::tinystr;
/// The calendar was used [incorrectly](https://en.wikipedia.org/wiki/Julian_calendar#Leap_year_error)
/// for a while after adoption, so the first year where the months align with this proleptic
/// implementation is probably 4 CE.
+///
+/// # Examples
+///
+/// The `Julian` variant of [`AnyCalendar`](crate::AnyCalendar) can be used to implement a date that
+/// switches between [`Julian`] and [`Gregorian`](crate::cal::Gregorian).
+///
+/// ```rust
+/// use icu::calendar::AnyCalendar;
+/// use icu::calendar::AnyCalendarKind;
+/// use icu::calendar::Date;
+/// use icu::calendar::error::RangeError;
+/// use icu::calendar::Gregorian;
+///
+/// fn historical_french_date(year: i32, month: u8, day: u8) -> Result<Date<AnyCalendar>, RangeError> {
+/// if (year, month, day) <= (1582, 10, 4) {
+/// // October 4, 1582 was the last day of the Julian calendar in France
+/// Ok(Date::try_new_julian(year, month, day)?.to_any())
+/// } else if (year, month, day) >= (1582, 10, 15) {
+/// // October 15, 1582 was the first day of the Gregorian calendar in France
+/// Ok(Date::try_new_gregorian(year, month, day)?.to_any())
+/// } else {
+/// // October 5-14 did not exist in France in 1582
+/// Err(RangeError {
+/// field: "day",
+/// value: day.into(),
+/// min: 15,
+/// max: 4
+/// })
+/// }
+/// }
+///
+/// let julian = historical_french_date(1500, 1, 1).unwrap();
+/// let gregorian = historical_french_date(1600, 1, 1).unwrap();
+///
+/// assert_eq!(julian.calendar().kind(), AnyCalendarKind::Julian);
+/// assert_eq!(gregorian.calendar().kind(), AnyCalendarKind::Gregorian);
+///
+/// // Check the resolved dates in the proleptic Gregorian calendar:
+/// assert_eq!(julian.to_calendar(Gregorian), Date::try_new_gregorian(1500, 1, 10).unwrap());
+/// assert_eq!(gregorian.to_calendar(Gregorian), Date::try_new_gregorian(1600, 1, 1).unwrap());
+/// ```
#[derive(Copy, Clone, Debug, Hash, Default, Eq, PartialEq, PartialOrd, Ord)]
#[allow(clippy::exhaustive_structs)] // this type is stable
pub struct Julian;
@@ -506,4 +547,24 @@ mod test {
Date::try_new_julian(-4, 2, 29).unwrap();
Date::try_new_julian(2020, 2, 29).unwrap();
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Julian);
+ let reconstructed = Date::try_new_julian(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Julian failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/persian.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/persian.rs
index 146f0d8c190..637f4a81776 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/persian.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/persian.rs
@@ -10,7 +10,7 @@ use crate::error::{
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::DateFields;
-use crate::{types, Calendar, Date, RangeError};
+use crate::{Calendar, Date, RangeError, types};
use ::tinystr::tinystr;
use calendrical_calculations::rata_die::RataDie;
@@ -155,11 +155,7 @@ impl Calendar for Persian {
}
fn days_in_year(&self, date: &Self::DateInner) -> u16 {
- if self.is_in_leap_year(date) {
- 366
- } else {
- 365
- }
+ if self.is_in_leap_year(date) { 366 } else { 365 }
}
fn days_in_month(&self, date: &Self::DateInner) -> u8 {
@@ -751,4 +747,24 @@ mod tests {
assert_eq!(iso_date.to_calendar(Persian), persian_date);
}
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Persian);
+ let reconstructed = Date::try_new_persian(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Persian failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/cal/roc.rs b/deps/crates/vendor/icu_calendar-v2/src/cal/roc.rs
index d0cf048c10f..d4af987df3f 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/cal/roc.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/cal/roc.rs
@@ -3,12 +3,12 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use crate::cal::abstract_gregorian::{
- impl_with_abstract_gregorian, AbstractGregorian, GregorianYears,
+ AbstractGregorian, GregorianYears, impl_with_abstract_gregorian,
};
use crate::calendar_arithmetic::ArithmeticDate;
use crate::error::UnknownEraError;
use crate::preferences::CalendarAlgorithm;
-use crate::{types, Date, RangeError};
+use crate::{Date, RangeError, types};
use tinystr::tinystr;
/// The [Republic of China Calendar](https://en.wikipedia.org/wiki/Republic_of_China_calendar)
@@ -171,8 +171,10 @@ mod test {
roc_from_rd.day_of_month().0,
)
.unwrap();
- assert_eq!(roc_from_rd, roc_from_case,
- "ROC date from RD not equal to ROC generated from manually-input ymd\nCase: {case:?}\nRD: {roc_from_rd:?}\nManual: {roc_from_case:?}");
+ assert_eq!(
+ roc_from_rd, roc_from_case,
+ "ROC date from RD not equal to ROC generated from manually-input ymd\nCase: {case:?}\nRD: {roc_from_rd:?}\nManual: {roc_from_case:?}"
+ );
}
#[test]
@@ -326,4 +328,24 @@ mod test {
}
}
}
+
+ #[test]
+ fn test_constructor_roundtrip() {
+ let rds = crate::tests::get_interesting_rds();
+ for rd in rds {
+ let date = Date::from_rata_die(rd, Roc);
+ let reconstructed = Date::try_new_roc(
+ date.year().extended_year(),
+ date.month().ordinal,
+ date.day_of_month().0,
+ )
+ .unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Roc failed for RD {:?}",
+ rd
+ );
+ }
+ }
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/calendar.rs b/deps/crates/vendor/icu_calendar-v2/src/calendar.rs
index 25bfa412198..10d824838ad 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/calendar.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/calendar.rs
@@ -4,12 +4,12 @@
use calendrical_calculations::rata_die::RataDie;
+use crate::Iso;
use crate::cal::iso::IsoDateInner;
use crate::error::{DateAddError, DateError, DateFromFieldsError, DateNewError};
use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::{self, Month, YearInput};
-use crate::Iso;
use core::fmt;
#[cfg(doc)]
diff --git a/deps/crates/vendor/icu_calendar-v2/src/calendar_arithmetic.rs b/deps/crates/vendor/icu_calendar-v2/src/calendar_arithmetic.rs
index f655ea0e68c..a2cb514c8c1 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/calendar_arithmetic.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/calendar_arithmetic.rs
@@ -6,13 +6,13 @@ use calendrical_calculations::rata_die::RataDie;
use crate::duration::DateDuration;
use crate::error::{
- range_check, DateAddError, DateFromFieldsError, DateNewError, EcmaReferenceYearError,
- LunisolarDateError, MonthError, UnknownEraError,
+ DateAddError, DateFromFieldsError, DateNewError, EcmaReferenceYearError, LunisolarDateError,
+ MonthError, UnknownEraError, range_check,
};
use crate::options::{DateAddOptions, DateDifferenceOptions, DateDurationUnit};
use crate::options::{DateFromFieldsOptions, MissingFieldsStrategy, Overflow};
use crate::types::{DateFields, Month};
-use crate::{types, Calendar, DateError, RangeError};
+use crate::{Calendar, DateError, RangeError, types};
use core::cmp::Ordering;
use core::fmt::Debug;
use core::hash::{Hash, Hasher};
@@ -432,7 +432,7 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
}
None => match missing_fields_strategy {
MissingFieldsStrategy::Reject => {
- return Err(DateFromFieldsError::NotEnoughFields)
+ return Err(DateFromFieldsError::NotEnoughFields);
}
MissingFieldsStrategy::Ecma => {
let (m, d) = match (fields.month, fields.month_code, fields.ordinal_month) {
@@ -464,10 +464,10 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
let extended_year =
calendar.extended_year_from_era_year_unchecked(era, era_year)?;
let year = calendar.year_info_from_extended(extended_year);
- if let Some(extended_year) = fields.extended_year {
- if calendar.extended_from_year_info(year) != extended_year {
- return Err(DateFromFieldsError::InconsistentYear);
- }
+ if let Some(extended_year) = fields.extended_year
+ && calendar.extended_from_year_info(year) != extended_year
+ {
+ return Err(DateFromFieldsError::InconsistentYear);
}
year
}
@@ -478,10 +478,10 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
let month = match (fields.month_code, fields.month) {
(_, Some(month)) => {
let computed_month = calendar.ordinal_from_month(year, month, overflow)?;
- if let Some(ordinal_month) = fields.ordinal_month {
- if computed_month != ordinal_month {
- return Err(DateFromFieldsError::InconsistentMonth);
- }
+ if let Some(ordinal_month) = fields.ordinal_month
+ && computed_month != ordinal_month
+ {
+ return Err(DateFromFieldsError::InconsistentMonth);
}
computed_month
}
@@ -491,10 +491,10 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
None => Month::try_from_utf8(month_code)?,
};
let computed_month = calendar.ordinal_from_month(year, validated, overflow)?;
- if let Some(ordinal_month) = fields.ordinal_month {
- if computed_month != ordinal_month {
- return Err(DateFromFieldsError::InconsistentMonth);
- }
+ if let Some(ordinal_month) = fields.ordinal_month
+ && computed_month != ordinal_month
+ {
+ return Err(DateFromFieldsError::InconsistentMonth);
}
computed_month
}
@@ -944,11 +944,7 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
Ok(d) => d,
Err(_) => {
debug_assert!(false, "rata die diff out of i32 range");
- if diff > 0 {
- i32::MAX
- } else {
- i32::MIN
- }
+ if diff > 0 { i32::MAX } else { i32::MIN }
}
};
if matches!(options.largest_unit, Some(DateDurationUnit::Weeks)) {
@@ -1284,8 +1280,8 @@ impl<'a, C: DateFieldsResolver> SurpassesChecker<'a, C> {
mod tests {
use super::*;
use crate::{
- cal::{coptic::CopticYear, *},
Date,
+ cal::{coptic::CopticYear, *},
};
#[test]
@@ -1375,12 +1371,16 @@ mod tests {
];
// Valid RDs can represent all valid years
- assert!(lowest_years
- .iter()
- .all(|y| y <= CONSTRUCTOR_YEAR_RANGE.start()));
- assert!(highest_years
- .iter()
- .all(|y| y >= CONSTRUCTOR_YEAR_RANGE.end()));
+ assert!(
+ lowest_years
+ .iter()
+ .all(|y| y <= CONSTRUCTOR_YEAR_RANGE.start())
+ );
+ assert!(
+ highest_years
+ .iter()
+ .all(|y| y >= CONSTRUCTOR_YEAR_RANGE.end())
+ );
// All years are 21-bits
assert!(-lowest_years.iter().copied().min().unwrap() < 1 << 20);
diff --git a/deps/crates/vendor/icu_calendar-v2/src/chrono.rs b/deps/crates/vendor/icu_calendar-v2/src/chrono.rs
index d7e7d329bf7..f1773b68df7 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/chrono.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/chrono.rs
@@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
+use crate::Gregorian;
use crate::cal::abstract_gregorian::AbstractGregorianYear;
use crate::cal::gregorian::GregorianDateInner;
use crate::calendar_arithmetic::ArithmeticDate;
-use crate::Date;
-use crate::Gregorian;
impl From<chrono::NaiveDate> for Date<Gregorian> {
fn from(chrono: chrono::NaiveDate) -> Self {
@@ -35,10 +35,14 @@ fn assert_range() {
use crate::types::RataDie;
use chrono::Datelike;
- assert!(VALID_RD_RANGE
- .contains(&(RataDie::new(0) + chrono::NaiveDate::MIN.num_days_from_ce() as i64)));
- assert!(VALID_RD_RANGE
- .contains(&(RataDie::new(0) + chrono::NaiveDate::MAX.num_days_from_ce() as i64)));
+ assert!(
+ VALID_RD_RANGE
+ .contains(&(RataDie::new(0) + chrono::NaiveDate::MIN.num_days_from_ce() as i64))
+ );
+ assert!(
+ VALID_RD_RANGE
+ .contains(&(RataDie::new(0) + chrono::NaiveDate::MAX.num_days_from_ce() as i64))
+ );
}
impl From<chrono::Weekday> for crate::types::Weekday {
diff --git a/deps/crates/vendor/icu_calendar-v2/src/date.rs b/deps/crates/vendor/icu_calendar-v2/src/date.rs
index d58854e23bf..0195c566abc 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/date.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/date.rs
@@ -8,7 +8,7 @@ use crate::options::DateFromFieldsOptions;
use crate::options::{DateAddOptions, DateDifferenceOptions};
use crate::types::{CyclicYear, EraYear, IsoWeekOfYear};
use crate::week::{RelativeUnit, WeekCalculator, WeekOf};
-use crate::{types, Calendar, Iso};
+use crate::{Calendar, Iso, types};
#[cfg(feature = "alloc")]
use alloc::rc::Rc;
#[cfg(feature = "alloc")]
@@ -170,9 +170,9 @@ impl<A: AsCalendar> Date<A> {
/// # Examples
///
/// ```rust
- /// use icu::calendar::types::{Month, YearInput};
/// use icu::calendar::Date;
/// use icu::calendar::Iso;
+ /// use icu::calendar::types::{Month, YearInput};
///
/// // Example: creation of ISO date from integers.
/// let date_iso = Date::try_new(1970.into(), Month::new(1), 2, Iso)
@@ -211,9 +211,9 @@ impl<A: AsCalendar> Date<A> {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Gregorian;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(2000);
@@ -246,7 +246,7 @@ impl<A: AsCalendar> Date<A> {
/// described on the [`Date`] type instead clamping the result:
///
/// ```rust
- /// use icu::calendar::{types::RataDie, Date, Gregorian};
+ /// use icu::calendar::{Date, Gregorian, types::RataDie};
///
/// let rd = RataDie::new(1_000_000_000);
/// assert_ne!(Date::from_rata_die(rd, Gregorian).to_rata_die(), rd);
@@ -415,8 +415,8 @@ impl<A: AsCalendar> Date<A> {
/// # Examples
///
/// ```
- /// use icu::calendar::types::DateDuration;
/// use icu::calendar::Date;
+ /// use icu::calendar::types::DateDuration;
///
/// let d1 = Date::try_new_iso(2020, 1, 1).unwrap();
/// let d2 = Date::try_new_iso(2025, 10, 2).unwrap();
@@ -431,9 +431,9 @@ impl<A: AsCalendar> Date<A> {
/// Reversing the order of parameters does not necessarily produce the inverse result:
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::options::{DateDifferenceOptions, DateDurationUnit};
/// use icu::calendar::types::DateDuration;
- /// use icu::calendar::Date;
///
/// let d1 = Date::try_new_iso(2025, 9, 30).unwrap();
/// let d2 = Date::try_new_iso(2025, 10, 31).unwrap();
@@ -528,8 +528,8 @@ impl Date<Iso> {
/// # Examples
///
/// ```
- /// use icu::calendar::types::IsoWeekOfYear;
/// use icu::calendar::Date;
+ /// use icu::calendar::types::IsoWeekOfYear;
///
/// let date = Date::try_new_iso(2022, 8, 26).unwrap();
///
@@ -685,9 +685,9 @@ impl<A> Copy for Date<A> where A: AsCalendar + Copy {}
mod tests {
use super::*;
use crate::{
+ Gregorian,
cal::{Buddhist, Hebrew},
types::{Month, Weekday},
- Gregorian,
};
#[test]
diff --git a/deps/crates/vendor/icu_calendar-v2/src/duration.rs b/deps/crates/vendor/icu_calendar-v2/src/duration.rs
index b58f05f2b2a..aa4961d276d 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/duration.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/duration.rs
@@ -22,11 +22,11 @@ use crate::error::DateDurationParseError;
/// # Example
///
/// ```rust
+/// use icu::calendar::Date;
/// use icu::calendar::options::DateDifferenceOptions;
/// use icu::calendar::options::DateDurationUnit;
/// use icu::calendar::types::DateDuration;
/// use icu::calendar::types::Weekday;
-/// use icu::calendar::Date;
///
/// // Creating ISO date: 1992-09-02.
/// let mut date_iso = Date::try_new_iso(1992, 9, 2)
diff --git a/deps/crates/vendor/icu_calendar-v2/src/error.rs b/deps/crates/vendor/icu_calendar-v2/src/error.rs
index e695cbeb339..c8f416ebf0e 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/error.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/error.rs
@@ -34,10 +34,10 @@ pub enum DateError {
///
/// ```
/// # #![allow(deprecated)]
- /// use icu::calendar::cal::Hebrew;
- /// use icu::calendar::types::Month;
/// use icu::calendar::Date;
/// use icu::calendar::DateError;
+ /// use icu::calendar::cal::Hebrew;
+ /// use icu::calendar::types::Month;
///
/// Date::try_new_from_codes(None, 5784, Month::leap(5).code(), 1, Hebrew)
/// .expect("5784 is a leap year");
@@ -63,9 +63,9 @@ pub enum LunisolarDateError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::LunisolarDateError;
/// use icu::calendar::types::Month;
- /// use icu::calendar::Date;
///
/// let err = Date::try_new_hebrew_v2(5785, Month::new(5), 50)
/// .expect_err("no month has 50 days");
@@ -82,9 +82,9 @@ pub enum LunisolarDateError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::LunisolarDateError;
/// use icu::calendar::types::Month;
- /// use icu::calendar::Date;
///
/// Date::try_new_hebrew_v2(5784, Month::leap(5), 1)
/// .expect("5784 is a leap year");
@@ -101,9 +101,9 @@ pub enum LunisolarDateError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::LunisolarDateError;
/// use icu::calendar::types::Month;
- /// use icu::calendar::Date;
///
/// let err = Date::try_new_hebrew_v2(5785, Month::leap(1), 1)
/// .expect_err("Tishrei does not have a leap month");
@@ -117,9 +117,9 @@ pub enum LunisolarDateError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::LunisolarDateError;
/// use icu::calendar::types::Month;
- /// use icu::calendar::Date;
///
/// let err = Date::try_new_hebrew_v2(56812, Month::leap(5), 1)
/// .expect_err("56812 is too big");
@@ -143,11 +143,11 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
+ /// use icu::calendar::Iso;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::error::RangeError;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
- /// use icu::calendar::Iso;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(2000);
@@ -169,11 +169,11 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
+ /// use icu::calendar::Iso;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::error::RangeError;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
- /// use icu::calendar::Iso;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(2000);
@@ -198,10 +198,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
- /// use icu::calendar::error::DateFromFieldsError;
- /// use icu::calendar::types::DateFields;
/// use icu::calendar::Date;
/// use icu::calendar::Iso;
+ /// use icu::calendar::error::DateFromFieldsError;
+ /// use icu::calendar::types::DateFields;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(2000);
@@ -220,10 +220,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(5783);
@@ -241,10 +241,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(5783);
@@ -262,10 +262,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
///
/// let mut fields = DateFields::default();
/// fields.era = Some(b"ce"); // valid in Gregorian, but not Hebrew
@@ -285,10 +285,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Japanese;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
///
/// let mut fields = DateFields::default();
/// fields.era = Some(b"reiwa");
@@ -314,10 +314,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
/// use tinystr::tinystr;
///
/// let mut fields = DateFields::default();
@@ -343,10 +343,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
- /// use icu::calendar::error::DateFromFieldsError;
- /// use icu::calendar::types::{DateFields, Month};
/// use icu::calendar::Date;
/// use icu::calendar::Iso;
+ /// use icu::calendar::error::DateFromFieldsError;
+ /// use icu::calendar::types::{DateFields, Month};
///
/// let mut fields = DateFields::default();
/// fields.extended_year = Some(2000);
@@ -366,10 +366,10 @@ pub enum DateFromFieldsError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
/// use tinystr::tinystr;
///
/// let mut fields = DateFields::default();
@@ -447,10 +447,10 @@ pub enum DateAddError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::DateAddError;
/// use icu::calendar::options::{DateAddOptions, Overflow};
/// use icu::calendar::types::DateDuration;
- /// use icu::calendar::Date;
///
/// // There is a day 31 in October but not in November.
/// let d = Date::try_new_iso(2025, 10, 31).unwrap();
@@ -477,11 +477,11 @@ pub enum DateAddError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateAddError;
/// use icu::calendar::options::{DateAddOptions, Overflow};
/// use icu::calendar::types::{DateDuration, Month};
- /// use icu::calendar::Date;
///
/// // Hebrew year 5784 is a leap year, 5785 is not.
/// // Adar I (the leap month) is month 5 in a leap year.
@@ -505,9 +505,9 @@ pub enum DateAddError {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::error::DateAddError;
/// use icu::calendar::types::DateDuration;
- /// use icu::calendar::Date;
///
/// let d = Date::try_new_iso(2025, 1, 1).unwrap();
/// let duration = DateDuration::for_years(1_000_000);
@@ -529,10 +529,10 @@ impl core::error::Error for DateAddError {}
/// # Examples
///
/// ```
+/// use icu::calendar::Date;
/// use icu::calendar::error::MismatchedCalendarError;
/// use icu::calendar::options::DateDifferenceOptions;
/// use icu::calendar::options::DateDurationUnit;
-/// use icu::calendar::Date;
///
/// let d1 = Date::try_new_gregorian(2000, 1, 1).unwrap().to_any();
/// let d2 = Date::try_new_persian(1562, 1, 1).unwrap().to_any();
diff --git a/deps/crates/vendor/icu_calendar-v2/src/ixdtf.rs b/deps/crates/vendor/icu_calendar-v2/src/ixdtf.rs
index bd89d205a32..ac90bccc7c5 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/ixdtf.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/ixdtf.rs
@@ -11,10 +11,10 @@ use crate::types::RataDie;
use crate::{AsCalendar, Calendar, Date, Iso, RangeError};
use calendrical_calculations::gregorian::fixed_from_gregorian;
use icu_locale_core::preferences::extensions::unicode::keywords::CalendarAlgorithm;
+use ixdtf::ParseError as Rfc9557Error;
use ixdtf::encoding::Utf8;
use ixdtf::parsers::IxdtfParser;
use ixdtf::records::IxdtfParseRecord;
-use ixdtf::ParseError as Rfc9557Error;
/// An error returned from parsing an RFC 9557 string to an `icu::calendar` type.
#[derive(Debug, displaydoc::Display)]
@@ -142,18 +142,17 @@ impl<A: AsCalendar> Date<A> {
) -> Result<IsoDateInner, ParseError> {
let date_record = ixdtf_record.date.ok_or(ParseError::MissingFields)?;
- if let Some(ixdtf_calendar) = ixdtf_record.calendar {
- if let Some(expected_calendar) = calendar {
- if ixdtf_calendar != expected_calendar.as_str().as_bytes() {
- return Err(ParseError::MismatchedCalendar(
- expected_calendar,
- icu_locale_core::extensions::unicode::Value::try_from_utf8(ixdtf_calendar)
- .ok()
- .and_then(|v| CalendarAlgorithm::try_from(&v).ok())
- .ok_or(ParseError::UnknownCalendar)?,
- ));
- }
- }
+ if let Some(ixdtf_calendar) = ixdtf_record.calendar
+ && let Some(expected_calendar) = calendar
+ && ixdtf_calendar != expected_calendar.as_str().as_bytes()
+ {
+ return Err(ParseError::MismatchedCalendar(
+ expected_calendar,
+ icu_locale_core::extensions::unicode::Value::try_from_utf8(ixdtf_calendar)
+ .ok()
+ .and_then(|v| CalendarAlgorithm::try_from(&v).ok())
+ .ok_or(ParseError::UnknownCalendar)?,
+ ));
}
// `date_record` is in `VALID_RD_RANGE` by `ixdtf` invariants
diff --git a/deps/crates/vendor/icu_calendar-v2/src/jiff.rs b/deps/crates/vendor/icu_calendar-v2/src/jiff.rs
index 5e1daff3e9f..c06264b9efb 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/jiff.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/jiff.rs
@@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
+use crate::Gregorian;
use crate::cal::abstract_gregorian::AbstractGregorianYear;
use crate::cal::gregorian::GregorianDateInner;
use crate::calendar_arithmetic::ArithmeticDate;
-use crate::Date;
-use crate::Gregorian;
impl From<jiff::civil::Date> for Date<Gregorian> {
fn from(jiff: jiff::civil::Date) -> Self {
diff --git a/deps/crates/vendor/icu_calendar-v2/src/lib.rs b/deps/crates/vendor/icu_calendar-v2/src/lib.rs
index f3d31e885fa..28cb21d0da9 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/lib.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/lib.rs
@@ -40,7 +40,7 @@
//! as well as the calendar type.
//!
//! ```rust
-//! use icu::calendar::{types::Weekday, Date};
+//! use icu::calendar::{Date, types::Weekday};
//!
//! // Creating ISO date: 1992-09-02.
//! let mut date_iso = Date::try_new_iso(1992, 9, 2)
@@ -59,8 +59,8 @@
//! Example of converting an ISO date across Indian and Buddhist calendars.
//!
//! ```rust
-//! use icu::calendar::cal::{Buddhist, Indian};
//! use icu::calendar::Date;
+//! use icu::calendar::cal::{Buddhist, Indian};
//!
//! // Creating ISO date: 1992-09-02.
//! let mut date_iso = Date::try_new_iso(1992, 9, 2)
diff --git a/deps/crates/vendor/icu_calendar-v2/src/options.rs b/deps/crates/vendor/icu_calendar-v2/src/options.rs
index dc0b515239d..68eb91c4361 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/options.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/options.rs
@@ -15,11 +15,11 @@ pub struct DateFromFieldsOptions {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
+ /// use icu::calendar::Iso;
/// use icu::calendar::options::DateFromFieldsOptions;
/// use icu::calendar::options::Overflow;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
- /// use icu::calendar::Iso;
///
/// // There is no day 31 in September.
/// let mut fields = DateFields::default();
@@ -50,11 +50,11 @@ pub struct DateFromFieldsOptions {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
+ /// use icu::calendar::Iso;
/// use icu::calendar::options::DateFromFieldsOptions;
/// use icu::calendar::options::MissingFieldsStrategy;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
- /// use icu::calendar::Iso;
///
/// // These options are missing a year.
/// let mut fields = DateFields::default();
@@ -90,10 +90,10 @@ pub struct DateAddOptions {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::options::DateAddOptions;
/// use icu::calendar::options::Overflow;
/// use icu::calendar::types::DateDuration;
- /// use icu::calendar::Date;
///
/// // There is a day 31 in October but not in November.
/// let d1 = Date::try_new_iso(2025, 10, 31).unwrap();
@@ -139,10 +139,10 @@ pub struct DateDifferenceOptions {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::options::DateDifferenceOptions;
/// use icu::calendar::options::DateDurationUnit;
/// use icu::calendar::types::DateDuration;
- /// use icu::calendar::Date;
///
/// let d1 = Date::try_new_iso(2025, 3, 31).unwrap();
/// let d2 = Date::try_new_iso(2026, 5, 15).unwrap();
@@ -221,12 +221,12 @@ pub enum Overflow {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
+ /// use icu::calendar::DateError;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::options::DateFromFieldsOptions;
/// use icu::calendar::options::Overflow;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
- /// use icu::calendar::DateError;
///
/// let mut options = DateFromFieldsOptions::default();
/// options.overflow = Some(Overflow::Constrain);
@@ -260,12 +260,12 @@ pub enum Overflow {
/// # Examples
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Hebrew;
/// use icu::calendar::error::DateFromFieldsError;
/// use icu::calendar::options::DateFromFieldsOptions;
/// use icu::calendar::options::Overflow;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
/// use tinystr::tinystr;
///
/// let mut options = DateFromFieldsOptions::default();
@@ -371,9 +371,9 @@ pub enum DateDurationUnit {
#[cfg(test)]
mod tests {
use crate::{
+ Date, Gregorian,
error::DateFromFieldsError,
types::{DateFields, Month},
- Date, Gregorian,
};
use itertools::Itertools;
use std::collections::{BTreeMap, BTreeSet};
diff --git a/deps/crates/vendor/icu_calendar-v2/src/preferences.rs b/deps/crates/vendor/icu_calendar-v2/src/preferences.rs
index 598fa292463..2c39fb1eb4f 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/preferences.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/preferences.rs
@@ -47,6 +47,7 @@ impl CalendarPreferences {
/// # Example
///
/// ```
+ /// # #![allow(deprecated)]
/// use icu::calendar::preferences::{CalendarAlgorithm, CalendarPreferences, HijriCalendarAlgorithm};
/// use icu::locale::locale;
///
@@ -68,8 +69,9 @@ impl CalendarPreferences {
/// # CalendarAlgorithm::Gregory
/// # );
/// ```
+ #[deprecated(since = "2.3.0")]
pub fn resolved_algorithm(self) -> CalendarAlgorithm {
- use icu_locale_core::subtags::{region, Region};
+ use icu_locale_core::subtags::{Region, region};
const AE: Region = region!("AE");
const BH: Region = region!("BH");
const KW: Region = region!("KW");
diff --git a/deps/crates/vendor/icu_calendar-v2/src/provider.rs b/deps/crates/vendor/icu_calendar-v2/src/provider.rs
index 9637cd52dc0..7f4c532f1db 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/provider.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/provider.rs
@@ -15,13 +15,16 @@
// Provider structs must be stable
#![allow(clippy::exhaustive_structs, clippy::exhaustive_enums)]
+use core::fmt::Debug;
use core::num::NonZeroU8;
use crate::types::Weekday;
+use icu_locale_core::preferences::extensions::unicode::keywords::{
+ CalendarAlgorithm, HijriCalendarAlgorithm,
+};
use icu_provider::fallback::{LocaleFallbackConfig, LocaleFallbackPriority};
use icu_provider::prelude::*;
use tinystr::TinyAsciiStr;
-use zerovec::ZeroVec;
#[cfg(feature = "compiled_data")]
#[derive(Debug)]
@@ -40,10 +43,10 @@ const _: () = {
use icu_calendar_data::*;
pub mod icu {
pub use crate as calendar;
- pub use icu_locale as locale;
}
make_provider!(Baked);
impl_calendar_japanese_modern_v1!(Baked);
+ impl_calendar_preferred_v1!(Baked);
impl_calendar_week_v1!(Baked);
};
@@ -51,7 +54,7 @@ icu_provider::data_marker!(
/// Modern Japanese era names
CalendarJapaneseModernV1,
"calendar/japanese/modern/v1",
- JapaneseEras<'static>,
+ JapaneseEras,
is_singleton = true
);
@@ -67,9 +70,196 @@ icu_provider::data_marker!(
},
);
+/// Default calendar preferences for a region.
+#[derive(Debug, Clone, Copy, PartialEq, Eq, yoke::Yokeable, zerofrom::ZeroFrom)]
+#[cfg_attr(feature = "datagen", derive(databake::Bake))]
+#[cfg_attr(feature = "datagen", databake(path = icu_calendar::provider))]
+pub struct CalendarPreference {
+ /// The default calendar to use for this region.
+ pub default_algorithm: CalendarAlgorithm,
+ /// The default Hijri calendar to use for this region.
+ pub default_hijri_algorithm: HijriCalendarAlgorithm,
+}
+
+#[cfg(any(feature = "serde", feature = "datagen"))]
+#[derive(serde::Serialize, serde::Deserialize)]
+struct CalendarPreferenceHuman<'a> {
+ #[serde(borrow)]
+ default_algorithm: &'a str,
+ #[serde(borrow)]
+ default_hijri_algorithm: &'a str,
+}
+
+#[cfg(feature = "datagen")]
+impl serde::Serialize for CalendarPreference {
+ fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
+ where
+ S: serde::Serializer,
+ {
+ if serializer.is_human_readable() {
+ let human = CalendarPreferenceHuman {
+ default_algorithm: self.default_algorithm.as_str(),
+ default_hijri_algorithm: CalendarAlgorithm::Hijri(Some(
+ self.default_hijri_algorithm,
+ ))
+ .as_str(),
+ };
+ return human.serialize(serializer);
+ }
+
+ let default = match self.default_algorithm {
+ CalendarAlgorithm::Buddhist => 1u8,
+ CalendarAlgorithm::Chinese => 2,
+ CalendarAlgorithm::Coptic => 3,
+ CalendarAlgorithm::Dangi => 4,
+ CalendarAlgorithm::Ethioaa => 5,
+ CalendarAlgorithm::Ethiopic => 6,
+ CalendarAlgorithm::Gregory => 7,
+ CalendarAlgorithm::Hebrew => 8,
+ CalendarAlgorithm::Indian => 9,
+ CalendarAlgorithm::Hijri(Some(s)) if s == self.default_hijri_algorithm => 10,
+ CalendarAlgorithm::Iso8601 => 11,
+ CalendarAlgorithm::Japanese => 12,
+ CalendarAlgorithm::Persian => 13,
+ CalendarAlgorithm::Roc => 14,
+ _ => {
+ debug_assert!(
+ false,
+ "unknown calendar algorithm: {:?}",
+ self.default_algorithm
+ );
+ 0
+ }
+ };
+ let hijri = match self.default_hijri_algorithm {
+ HijriCalendarAlgorithm::Umalqura => 1,
+ HijriCalendarAlgorithm::Tbla => 2,
+ HijriCalendarAlgorithm::Civil => 3,
+ HijriCalendarAlgorithm::Rgsa => 4,
+ _ => {
+ debug_assert!(
+ false,
+ "unknown hijri algorithm: {:?}",
+ self.default_hijri_algorithm
+ );
+ 0
+ }
+ };
+
+ (default << 3 | hijri).serialize(serializer)
+ }
+}
+
+#[cfg(feature = "serde")]
+impl<'de> serde::Deserialize<'de> for CalendarPreference {
+ fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
+ where
+ D: serde::Deserializer<'de>,
+ {
+ if deserializer.is_human_readable() {
+ let human = CalendarPreferenceHuman::deserialize(deserializer)?;
+ let default_val =
+ icu_locale_core::extensions::unicode::Value::try_from_str(human.default_algorithm)
+ .map_err(serde::de::Error::custom)?;
+ let default_algorithm =
+ CalendarAlgorithm::try_from(&default_val).map_err(serde::de::Error::custom)?;
+ let hijri_val = icu_locale_core::extensions::unicode::Value::try_from_str(
+ human.default_hijri_algorithm,
+ )
+ .map_err(serde::de::Error::custom)?;
+ let default_hijri_algorithm = match CalendarAlgorithm::try_from(&hijri_val) {
+ Ok(CalendarAlgorithm::Hijri(Some(h))) => h,
+ _ => return Err(serde::de::Error::custom("expected islamic-* calendar")),
+ };
+ return Ok(Self {
+ default_algorithm,
+ default_hijri_algorithm,
+ });
+ }
+
+ let packed = u8::deserialize(deserializer)?;
+ let default_algorithm = packed >> 3;
+ let default_hijri_algorithm = packed & 0x07;
+ let default_hijri_algorithm = match default_hijri_algorithm {
+ 1 => HijriCalendarAlgorithm::Umalqura,
+ 2 => HijriCalendarAlgorithm::Tbla,
+ 3 => HijriCalendarAlgorithm::Civil,
+ 4 => HijriCalendarAlgorithm::Rgsa,
+ _ => {
+ debug_assert!(
+ false,
+ "unknown hijri algorithm discriminant: {default_hijri_algorithm}"
+ );
+ HijriCalendarAlgorithm::Civil
+ }
+ };
+ let default_algorithm = match default_algorithm {
+ 1 => CalendarAlgorithm::Buddhist,
+ 2 => CalendarAlgorithm::Chinese,
+ 3 => CalendarAlgorithm::Coptic,
+ 4 => CalendarAlgorithm::Dangi,
+ 5 => CalendarAlgorithm::Ethioaa,
+ 6 => CalendarAlgorithm::Ethiopic,
+ 7 => CalendarAlgorithm::Gregory,
+ 8 => CalendarAlgorithm::Hebrew,
+ 9 => CalendarAlgorithm::Indian,
+ 10 => CalendarAlgorithm::Hijri(Some(default_hijri_algorithm)),
+ 11 => CalendarAlgorithm::Iso8601,
+ 12 => CalendarAlgorithm::Japanese,
+ 13 => CalendarAlgorithm::Persian,
+ 14 => CalendarAlgorithm::Roc,
+ _ => {
+ debug_assert!(
+ false,
+ "unknown calendar algorithm discriminant: {default_algorithm}"
+ );
+ CalendarAlgorithm::Gregory
+ }
+ };
+ Ok(Self {
+ default_algorithm,
+ default_hijri_algorithm,
+ })
+ }
+}
+
+impl CalendarPreference {
+ /// Resolves a [`Option<CalendarAlgorithm>`] to a concrete algorithm against these preferences.
+ pub fn resolve(&self, unresolved: Option<CalendarAlgorithm>) -> CalendarAlgorithm {
+ match unresolved {
+ Some(CalendarAlgorithm::Hijri(None)) => {
+ CalendarAlgorithm::Hijri(Some(self.default_hijri_algorithm))
+ }
+ Some(a) => a,
+ None => self.default_algorithm,
+ }
+ }
+}
+
+icu_provider::data_marker!(
+ /// The preferred calendar algorithm for a region.
+ CalendarPreferredV1,
+ "calendar/preferred/v1",
+ CalendarPreference,
+ fallback_config = {
+ let mut config = LocaleFallbackConfig::default();
+ config.priority = LocaleFallbackPriority::Region;
+ config
+ },
+);
+
+icu_provider::data_struct!(
+ CalendarPreference,
+ #[cfg(feature = "datagen")]
+);
+
#[cfg(feature = "datagen")]
/// The latest minimum set of markers required by this component.
-pub const MARKERS: &[DataMarkerInfo] = &[CalendarJapaneseModernV1::INFO, CalendarWeekV1::INFO];
+pub const MARKERS: &[DataMarkerInfo] = &[
+ CalendarJapaneseModernV1::INFO,
+ CalendarWeekV1::INFO,
+ CalendarPreferredV1::INFO,
+];
/// The date at which an era started
///
@@ -105,58 +295,236 @@ pub struct EraStartDate {
/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
/// to be stable, their Rust representation might not be. Use with caution.
/// </div>
-#[derive(Debug, PartialEq, Clone, Default, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_calendar::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-pub struct JapaneseEras<'data> {
- /// A map from era start dates to their era codes
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub dates_to_eras: ZeroVec<'data, (EraStartDate, TinyAsciiStr<16>)>,
-}
+#[derive(Debug, PartialEq, Clone, Copy, Default, yoke::Yokeable, zerofrom::ZeroFrom)]
+pub struct JapaneseEras(Option<PackedEra>);
icu_provider::data_struct!(
- JapaneseEras<'_>,
+ JapaneseEras,
#[cfg(feature = "datagen")]
);
-impl JapaneseEras<'_> {
- pub(crate) const fn last_after_reiwa(&self) -> Option<PackedEra> {
- let Some(&zerovec::ule::tuple::Tuple2ULE(start, code)) =
- self.dates_to_eras.as_slice().as_ule_slice().last()
- else {
+impl JapaneseEras {
+ /// Creates a new [`JapaneseEras`] without a post-Reiwa era.
+ pub const fn up_to_reiwa() -> Self {
+ Self(None)
+ }
+
+ /// Creates a new [`JapaneseEras`] with the last post-Reiwa era's start date, code, and index.
+ pub const fn with_last_era(
+ start: EraStartDate,
+ code: TinyAsciiStr<8>,
+ index: u8,
+ ) -> Option<Self> {
+ if start.year < 2026 {
+ return Some(Self::up_to_reiwa());
+ }
+ let Some(packed) = PackedEra::pack(start, code, index) else {
return None;
};
- if start.year.as_signed_int() < 2026 {
- return None;
+ Some(Self(Some(packed)))
+ }
+
+ /// Returns all post-Meji eras, in chronological order.
+ pub fn eras(self) -> impl DoubleEndedIterator<Item = (EraStartDate, TinyAsciiStr<8>, u8)> {
+ use tinystr::tinystr;
+ [
+ (
+ EraStartDate {
+ year: 1868,
+ month: 10,
+ day: 23,
+ },
+ tinystr!(8, "meiji"),
+ 2,
+ ),
+ (
+ EraStartDate {
+ year: 1912,
+ month: 7,
+ day: 30,
+ },
+ tinystr!(8, "taisho"),
+ 3,
+ ),
+ (
+ EraStartDate {
+ year: 1926,
+ month: 12,
+ day: 25,
+ },
+ tinystr!(8, "showa"),
+ 4,
+ ),
+ (
+ EraStartDate {
+ year: 1989,
+ month: 1,
+ day: 8,
+ },
+ tinystr!(8, "heisei"),
+ 5,
+ ),
+ (
+ EraStartDate {
+ year: 2019,
+ month: 5,
+ day: 1,
+ },
+ tinystr!(8, "reiwa"),
+ 6,
+ ),
+ ]
+ .into_iter()
+ .chain(self.0.map(PackedEra::unpack))
+ }
+}
+
+#[cfg(feature = "datagen")]
+impl databake::Bake for JapaneseEras {
+ fn bake(&self, ctx: &databake::CrateEnv) -> databake::TokenStream {
+ ctx.insert("icu_calendar");
+ if let Some((era_start_date, code, idx)) = self.eras().last()
+ && code != "reiwa"
+ {
+ let era_start_date = era_start_date.bake(ctx);
+ let code = code.bake(ctx);
+ let idx = idx.bake(ctx);
+ databake::quote! {
+ icu_calendar::provider::JapaneseEras::with_last_era(#era_start_date, #code, #idx).unwrap()
+ }
+ } else {
+ databake::quote! {
+ icu_calendar::provider::JapaneseEras::up_to_reiwa()
+ }
}
- Some(PackedEra::pack(
- EraStartDate {
- year: start.year.as_signed_int(),
- month: start.month,
- day: start.day,
- },
+ }
+}
+
+#[cfg(feature = "datagen")]
+impl databake::BakeSize for JapaneseEras {
+ fn borrows_size(&self) -> usize {
+ 0
+ }
+}
+
+#[cfg(feature = "datagen")]
+impl serde::Serialize for JapaneseEras {
+ fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
+ where
+ S: serde::Serializer,
+ {
+ use zerovec::ZeroVec;
+
+ #[derive(serde::Serialize)]
+ struct Raw<'data> {
+ pub dates_to_eras: ZeroVec<'data, (EraStartDate, TinyAsciiStr<16>)>,
+ }
+
+ let mut dates_to_eras = self
+ .eras()
+ .map(|(start, code, _)| (start, code.resize()))
+ .collect::<ZeroVec<_>>();
+
+ while let Some((start, code, index)) = self.eras().last()
+ && dates_to_eras.len() + 2 <= index as usize
+ {
+ use zerovec::ule::AsULE;
+
+ dates_to_eras.with_mut(|v| v.push((start, code.resize()).to_unaligned()));
+ }
+
+ Raw { dates_to_eras }.serialize(serializer)
+ }
+}
+
+#[cfg(feature = "serde")]
+impl<'de> serde::Deserialize<'de> for JapaneseEras {
+ fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
+ where
+ D: serde::Deserializer<'de>,
+ {
+ use serde::de::Error;
+ use zerovec::ZeroVec;
+
+ #[derive(serde::Deserialize)]
+ struct Raw<'data> {
+ #[serde(borrow)]
+ pub dates_to_eras: ZeroVec<'data, (EraStartDate, TinyAsciiStr<16>)>,
+ }
+
+ let Raw { dates_to_eras } = Raw::deserialize(deserializer)?;
+
+ let Some((start, code)) = dates_to_eras.last() else {
+ return Err(D::Error::custom("At least one era is required"));
+ };
+
+ if Self::up_to_reiwa()
+ .eras()
+ .map(|(start, code, ..)| (start, code.resize()))
+ .ne(dates_to_eras
+ .iter()
+ .take(Self::up_to_reiwa().eras().count()))
+ {
+ return Err(D::Error::custom(
+ "Invalid era data: Meiji through Reiwa must be present and in order",
+ ));
+ }
+
+ Self::with_last_era(
+ start,
code.resize(),
- self.dates_to_eras.as_slice().len() as u8 + 1,
- ))
+ dates_to_eras.as_slice().len() as u8 + 1,
+ )
+ .ok_or_else(|| D::Error::custom("Invalid era"))
}
}
/// A type to represent a modern (post 2026, 8-byte code) era.
-#[derive(Debug, PartialEq, Copy, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-pub(crate) struct PackedEra(NonZeroU8 /* give a niche */, [u8; 6]);
+///
+/// <div class="stab unstable">
+/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
+/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
+/// to be stable, their Rust representation might not be. Use with caution.
+/// </div>
+#[derive(PartialEq, Copy, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
+struct PackedEra(NonZeroU8 /* give a niche */, [u8; 6]);
+
+impl Debug for PackedEra {
+ fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
+ let (start, code, index) = self.unpack();
+ f.debug_struct("PackedEra")
+ .field("start", &start)
+ .field("code", &code)
+ .field("index", &index)
+ .field("<packed>", &(self.0, self.1))
+ .finish()
+ }
+}
impl PackedEra {
/// Construct a `PackedEra` from a tuple
/// This supports start dates until 2086-12-31, indices 7 and 8, and lower ASCII alphabetic codes
- pub const fn pack(start: EraStartDate, code: TinyAsciiStr<8>, index: u8) -> Self {
- debug_assert!(start.day < 1 << 5); // 5 bits
- debug_assert!(start.month < 1 << 4); // 4 bits
- debug_assert!(2026 <= start.year && start.year < 2026 + (1 << 6)); // 6 bits
-
- debug_assert!(7 <= index && index < 7 + (1 << 1)); // 1 bit
-
- debug_assert!(code.is_ascii_alphabetic_lowercase()); // 40 bits
+ const fn pack(start: EraStartDate, code: TinyAsciiStr<8>, index: u8) -> Option<Self> {
+ // 5 bits
+ if !(0 < start.day && start.day < 1 << 5) {
+ return None;
+ }
+ // 4 bits
+ if !(0 < start.month && start.month < 1 << 4) {
+ return None;
+ }
+ // 6 bits
+ if !(2026 <= start.year && start.year < 2026 + (1 << 6)) {
+ return None;
+ }
+ // 1 bit
+ if !(7 <= index && index < 7 + (1 << 1)) {
+ return None;
+ }
+ // 40 bits
+ if !code.is_ascii_alphabetic_lowercase() {
+ return None;
+ }
let mut packed = 0;
@@ -177,14 +545,15 @@ impl PackedEra {
let [a, b, c, d, e, f, g, z] = packed.to_le_bytes();
debug_assert!(z == 0);
- // the lowest byte contains month and day, so it's non-zero
- debug_assert!(a > 0);
- Self(unsafe { NonZeroU8::new_unchecked(a) }, [b, c, d, e, f, g])
+ let Some(a) = NonZeroU8::new(a) else {
+ return None;
+ };
+ Some(Self(a, [b, c, d, e, f, g]))
}
/// Convert a `PackedEra` into a tuple of start date, code, and
/// [`era_index`](crate::types::EraYear::era_index)
- pub const fn unpack(self) -> (EraStartDate, TinyAsciiStr<8>, u8) {
+ const fn unpack(self) -> (EraStartDate, TinyAsciiStr<8>, u8) {
let Self(a, [b, c, d, e, f, g]) = self;
let mut packed = u64::from_le_bytes([a.get(), b, c, d, e, f, g, 0]);
@@ -226,7 +595,7 @@ impl PackedEra {
}
#[test]
-fn packed_era_size() {
+fn japanese_eras_size() {
assert_eq!(size_of::<PackedEra>(), 7);
assert_eq!(size_of::<Option<PackedEra>>(), 7);
assert_eq!(size_of::<crate::cal::Japanese>(), 7);
@@ -234,7 +603,7 @@ fn packed_era_size() {
}
#[test]
-fn packed_era_roundtrip() {
+fn japanese_eras_packing() {
let start = EraStartDate {
year: 2086,
month: 11,
@@ -242,10 +611,70 @@ fn packed_era_roundtrip() {
};
let code = tinystr::tinystr!(8, "fuzu");
let index = 8;
+
assert_eq!(
- PackedEra::pack(start, code, index).unpack(),
+ JapaneseEras::with_last_era(start, code, index)
+ .unwrap()
+ .eras()
+ .last()
+ .unwrap(),
(start, code, index)
);
+ assert_ne!(
+ JapaneseEras::up_to_reiwa().eras().last().unwrap(),
+ (start, code, index)
+ );
+}
+
+#[test]
+fn japanese_eras_serde_roundtrip() {
+ let eras = JapaneseEras::with_last_era(
+ EraStartDate {
+ year: 2086,
+ month: 11,
+ day: 1,
+ },
+ tinystr::tinystr!(8, "fuzu"),
+ 8,
+ )
+ .unwrap();
+
+ assert_eq!(
+ serde_json::from_str::<JapaneseEras>(&serde_json::to_string(&eras).unwrap()).unwrap(),
+ eras
+ );
+
+ let eras = JapaneseEras::up_to_reiwa();
+
+ assert_eq!(
+ serde_json::from_str::<JapaneseEras>(&serde_json::to_string(&eras).unwrap()).unwrap(),
+ eras
+ );
+}
+
+#[test]
+fn japanese_eras_bake() {
+ databake::test_bake!(
+ JapaneseEras,
+ const,
+ crate::provider::JapaneseEras::with_last_era(
+ crate::provider::EraStartDate {
+ year: 2086i32,
+ month: 11u8,
+ day: 1u8,
+ },
+ tinystr::tinystr!(8usize, "fuzu"),
+ 8u8
+ )
+ .unwrap(),
+ icu_calendar
+ );
+ databake::test_bake!(
+ JapaneseEras,
+ const,
+ crate::provider::JapaneseEras::up_to_reiwa(),
+ icu_calendar
+ );
}
/// An ICU4X mapping to a subset of CLDR weekData.
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/constructor_roundtrip.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/constructor_roundtrip.rs
new file mode 100644
index 00000000000..0ec3887fa3c
--- /dev/null
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/constructor_roundtrip.rs
@@ -0,0 +1,221 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top level of the ICU4X source tree
+// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+
+use crate::Calendar;
+use crate::Date;
+use crate::error::DateFromFieldsError;
+use crate::options::{DateFromFieldsOptions, Overflow};
+use crate::types::DateFields;
+use calendrical_calculations::rata_die::RataDie;
+
+// We could use the `bitflags` crate here, but we are using raw constants
+// to avoid pulling in an extra dependency.
+type Flags = u32;
+const EXTENDED_YEAR: u32 = 1 << 0;
+const ERA: u32 = 1 << 1;
+const ERA_YEAR: u32 = 1 << 2;
+const MONTH: u32 = 1 << 3;
+const MONTH_CODE: u32 = 1 << 4;
+const ORDINAL_MONTH: u32 = 1 << 5;
+const DAY: u32 = 1 << 6;
+const MAKE_INCONSISTENT_YEAR: u32 = 1 << 7;
+const MAKE_INCONSISTENT_MONTH: u32 = 1 << 8;
+
+fn try_from_fields_helper<C: Calendar + Copy>(
+ flags: Flags,
+ rd: RataDie,
+ options: DateFromFieldsOptions,
+ cal: C,
+) -> Result<Date<C>, DateFromFieldsError> {
+ let date = Date::from_rata_die(rd, cal);
+ let mut fields = DateFields::default();
+
+ if flags & EXTENDED_YEAR != 0 {
+ fields.extended_year = Some(date.year().extended_year());
+ }
+
+ let era_bytes = date.year().era().map(|ey| ey.era);
+ if flags & ERA != 0
+ && let Some(ref eb) = era_bytes
+ {
+ fields.era = Some(eb.as_bytes());
+ }
+ if flags & ERA_YEAR != 0
+ && let Some(ey) = date.year().era()
+ {
+ fields.era_year = Some(ey.year);
+ }
+
+ let month_input = date.month().to_input();
+ if flags & MONTH != 0 {
+ fields.month = Some(month_input);
+ }
+
+ let month_code_holder = month_input.code();
+ if flags & MONTH_CODE != 0 {
+ fields.month_code = Some(month_code_holder.0.as_bytes());
+ }
+ if flags & ORDINAL_MONTH != 0 {
+ fields.ordinal_month = Some(date.month().ordinal);
+ }
+ if flags & DAY != 0 {
+ fields.day = Some(date.day_of_month().0);
+ }
+
+ if flags & MAKE_INCONSISTENT_YEAR != 0
+ && let Some(ref mut y) = fields.extended_year
+ {
+ *y += 1;
+ }
+
+ if flags & MAKE_INCONSISTENT_MONTH != 0
+ && let Some(ref mut m) = fields.ordinal_month
+ {
+ *m = if *m == 1 { 2 } else { 1 };
+ }
+
+ Date::try_from_fields(fields, options, cal)
+}
+
+super::test_all_cals!(
+ fn check_constructor_roundtrip<C: Calendar + Copy>(cal: C) {
+ let rds = crate::tests::get_interesting_rds();
+
+ for rd in rds {
+ let date = Date::from_rata_die(rd, cal);
+
+ for overflow in [Overflow::Reject, Overflow::Constrain] {
+ let options = DateFromFieldsOptions {
+ overflow: Some(overflow),
+ ..Default::default()
+ };
+
+ // Test 1: extended_year + month + day
+ let result = try_from_fields_helper(EXTENDED_YEAR | MONTH | DAY, rd, options, cal);
+ assert_eq!(
+ result.unwrap().to_rata_die(),
+ rd,
+ "Failed roundtrip for extended_year + month + day at RD {:?}",
+ rd
+ );
+
+ // Test 2: extended_year + month_code + day
+ let result =
+ try_from_fields_helper(EXTENDED_YEAR | MONTH_CODE | DAY, rd, options, cal);
+ assert_eq!(
+ result.unwrap().to_rata_die(),
+ rd,
+ "Failed roundtrip for extended_year + month_code + day at RD {:?}",
+ rd
+ );
+
+ // Test 3: extended_year + ordinal_month + day
+ let result =
+ try_from_fields_helper(EXTENDED_YEAR | ORDINAL_MONTH | DAY, rd, options, cal);
+ assert_eq!(
+ result.unwrap().to_rata_die(),
+ rd,
+ "Failed roundtrip for extended_year + ordinal_month + day at RD {:?}",
+ rd
+ );
+
+ // Test 4: era + era_year + month + day (if era exists)
+ if date.year().era().is_some() {
+ let result =
+ try_from_fields_helper(ERA | ERA_YEAR | MONTH | DAY, rd, options, cal);
+ assert_eq!(
+ result.unwrap().to_rata_die(),
+ rd,
+ "Failed roundtrip for era + era_year + month + day at RD {:?}",
+ rd
+ );
+ }
+
+ // Test 5: Both extended_year and era+era_year
+ if date.year().era().is_some() {
+ let result = try_from_fields_helper(
+ EXTENDED_YEAR | ERA | ERA_YEAR | MONTH | DAY,
+ rd,
+ options,
+ cal,
+ );
+ assert_eq!(
+ result.unwrap().to_rata_die(),
+ rd,
+ "Failed roundtrip for both year fields at RD {:?}",
+ rd
+ );
+ }
+
+ // Test 6: Date::try_new
+ let extended_year = date.year().extended_year();
+ let month = date.month().to_input();
+ let day = date.day_of_month().0;
+ let reconstructed = Date::try_new(extended_year.into(), month, day, cal).unwrap();
+ assert_eq!(
+ reconstructed.to_rata_die(),
+ rd,
+ "Failed roundtrip for Date::try_new at RD {:?}",
+ rd
+ );
+
+ // Negative Test 1: Inconsistent year
+ if date.year().era().is_some() {
+ let result = try_from_fields_helper(
+ EXTENDED_YEAR | ERA | ERA_YEAR | MONTH | DAY | MAKE_INCONSISTENT_YEAR,
+ rd,
+ options,
+ cal,
+ );
+ assert_eq!(
+ result.map(|d| d.to_rata_die()),
+ Err(DateFromFieldsError::InconsistentYear),
+ "Expected InconsistentYear for RD {:?}",
+ rd
+ );
+ }
+
+ // Negative Test 2: Inconsistent month
+ if date.months_in_year() >= 2 {
+ let result = try_from_fields_helper(
+ EXTENDED_YEAR | MONTH | ORDINAL_MONTH | DAY | MAKE_INCONSISTENT_MONTH,
+ rd,
+ options,
+ cal,
+ );
+ assert_eq!(
+ result.map(|d| d.to_rata_die()),
+ Err(DateFromFieldsError::InconsistentMonth),
+ "Expected InconsistentMonth for RD {:?}",
+ rd
+ );
+ }
+
+ // Test insufficient fields: Missing Day
+ {
+ let result = try_from_fields_helper(EXTENDED_YEAR | MONTH, rd, options, cal);
+ assert!(
+ result.is_err(),
+ "Expected error for missing day at RD {:?}",
+ rd
+ );
+ }
+
+ // Test insufficient fields: Missing Year
+ {
+ let result = try_from_fields_helper(MONTH | DAY, rd, options, cal);
+ assert!(
+ result.is_err(),
+ "Expected error for missing year at RD {:?}",
+ rd
+ );
+ }
+ }
+ }
+ }
+);
+
+// Note: Specific calendar constructors (like Date::try_new_iso, Date::try_new_gregorian, etc.)
+// are tested individually in their respective files under src/cal/ to ensure correct coverage
+// of their diverse signatures.
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/date_arithmetic_snapshot.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/date_arithmetic_snapshot.rs
index 5cbbba1acbb..518f0793b35 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/date_arithmetic_snapshot.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/date_arithmetic_snapshot.rs
@@ -2,9 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
use crate::options::{DateAddOptions, DateDifferenceOptions, DateDurationUnit};
use crate::types::{DateDuration, RataDie};
-use crate::Date;
use insta::assert_snapshot;
use std::fmt::Write;
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/extended_year.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/extended_year.rs
index 91e52a232fb..5dce6ffd061 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/extended_year.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/extended_year.rs
@@ -2,10 +2,10 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-use crate::preferences::CalendarAlgorithm;
-use crate::types::Month;
use crate::Calendar;
use crate::Date;
+use crate::preferences::CalendarAlgorithm;
+use crate::types::Month;
/// Reference: <https://tc39.es/proposal-intl-era-monthcode/#sec-temporal-calendardatearithmeticyear>
fn extended_epoch<C: Calendar>(c: &C) -> Option<i32> {
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/extrema.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/extrema.rs
index 1cf2f9fa908..0ecd41bd049 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/extrema.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/extrema.rs
@@ -2,6 +2,7 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
use crate::calendar_arithmetic::{CONSTRUCTOR_YEAR_RANGE, GENEROUS_YEAR_RANGE, VALID_RD_RANGE};
use crate::duration::DateDuration;
use crate::error::DateAddError;
@@ -10,7 +11,6 @@ use crate::options::{
DateAddOptions, DateDifferenceOptions, DateDurationUnit, DateFromFieldsOptions, Overflow,
};
use crate::types::{DateFields, Month, YearInput};
-use crate::Date;
use calendrical_calculations::gregorian::fixed_from_gregorian;
use calendrical_calculations::rata_die::RataDie;
@@ -139,7 +139,11 @@ super::test_all_cals!(
for overflow in [CONSTRAIN, REJECT] {
let added = start_date.try_added_with_options(duration_bound, overflow);
if added.is_err() && overflow == REJECT {
- assert_ne!(added, Err(DateAddError::Overflow), "{start_date:?} + {duration_bound:?} should not produce overflow error in Reject mode");
+ assert_ne!(
+ added,
+ Err(DateAddError::Overflow),
+ "{start_date:?} + {duration_bound:?} should not produce overflow error in Reject mode"
+ );
} else {
assert_eq!(
added,
@@ -186,8 +190,11 @@ super::test_all_cals!(
for generous_duration in [generous_max_duration, generous_max_neg_duration] {
for overflow in [CONSTRAIN, REJECT] {
- assert_eq!(start_date.try_added_with_options(generous_duration, overflow), Err(DateAddError::Overflow),
- "Adding durations from the generously-large range should always fail (but never panic)");
+ assert_eq!(
+ start_date.try_added_with_options(generous_duration, overflow),
+ Err(DateAddError::Overflow),
+ "Adding durations from the generously-large range should always fail (but never panic)"
+ );
}
}
}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/mod.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/mod.rs
index a217fc7a2a8..337c754bd45 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/mod.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/mod.rs
@@ -3,6 +3,7 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
mod arithmetic;
+mod constructor_roundtrip;
mod continuity_test;
mod date_arithmetic_snapshot;
mod exhaustive;
@@ -11,6 +12,10 @@ mod extrema;
mod month;
mod not_enough_fields;
+use crate::Date;
+use crate::types::Month;
+use calendrical_calculations::rata_die::RataDie;
+
macro_rules! test_all_cals {
($(#[$meta:meta])* fn $name:ident<C: Calendar + Copy>($cal:ident: C) $tt:tt) => {
mod $name {
@@ -127,3 +132,61 @@ macro_rules! test_all_cals {
};
}
use test_all_cals;
+
+pub(crate) fn get_interesting_rds() -> Vec<RataDie> {
+ let mut rds = Vec::new();
+
+ // Iso / Gregorian leap day
+ let date = Date::try_new_iso(2020, 2, 29).expect("2020-02-29 is a valid ISO date");
+ rds.push(date.to_rata_die());
+
+ // Hebrew leap month (Adar I) in leap year 5784
+ let date = Date::try_new_hebrew_v2(5784, Month::leap(5), 15).expect("Valid Hebrew date");
+ rds.push(date.to_rata_die());
+
+ // Hebrew Adar II in leap year 5784
+ let date = Date::try_new_hebrew_v2(5784, Month::new(6), 15).expect("Valid Hebrew date");
+ rds.push(date.to_rata_die());
+
+ // Hebrew non-Adar month in leap year 5784
+ let date = Date::try_new_hebrew_v2(5784, Month::new(1), 15).expect("Valid Hebrew date");
+ rds.push(date.to_rata_die());
+
+ // Chinese leap month date
+ let date =
+ Date::try_new_chinese_traditional(2023, Month::leap(2), 1).expect("Valid Chinese date");
+ rds.push(date.to_rata_die());
+
+ // Chinese leap year 2023, non-leap month
+ let date =
+ Date::try_new_chinese_traditional(2023, Month::new(1), 1).expect("Valid Chinese date");
+ rds.push(date.to_rata_die());
+
+ // Japanese era transition
+ let date = Date::try_new_japanese_with_calendar("reiwa", 1, 5, 1, crate::cal::Japanese::new())
+ .expect("Valid Japanese date");
+ rds.push(date.to_rata_die());
+
+ // Ethiopic month 13
+ let date = Date::try_new_ethiopian(crate::cal::EthiopianEraStyle::AmeteMihret, 2015, 13, 5)
+ .expect("Valid Ethiopian date");
+ rds.push(date.to_rata_die());
+
+ // Coptic month 13
+ let date = Date::try_new_coptic(1686, 13, 5).expect("Valid Coptic date");
+ rds.push(date.to_rata_die());
+
+ // Add some more general dates
+ rds.push(RataDie::new(0));
+ rds.push(RataDie::new(1));
+ rds.push(RataDie::new(-1));
+ rds.push(RataDie::new(730000)); // ~2000 CE
+ rds.push(RataDie::new(100));
+ rds.push(RataDie::new(-100));
+ rds.push(RataDie::new(1000000)); // ~2739 CE
+ rds.push(RataDie::new(-1000000)); // ~ -2739 CE
+ rds.push(RataDie::new(123456));
+ rds.push(RataDie::new(-123456));
+
+ rds
+}
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/month.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/month.rs
index 841e7c2e071..315d260f7d2 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/month.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/month.rs
@@ -4,11 +4,11 @@
#![allow(clippy::field_reassign_with_default)] // use public API
+use crate::Date;
use crate::error::{DateFromFieldsError, MonthCodeParseError};
use crate::options::{DateFromFieldsOptions, MissingFieldsStrategy, Overflow};
use crate::preferences::CalendarAlgorithm;
use crate::types::{DateFields, Month, MonthCode};
-use crate::Date;
static INVALID_SYNTAX: &[&str] = &[
"M", "M0", "M1", "01L", "L01", "M001", "M110", "MxxL", "m01", "M02l",
diff --git a/deps/crates/vendor/icu_calendar-v2/src/tests/not_enough_fields.rs b/deps/crates/vendor/icu_calendar-v2/src/tests/not_enough_fields.rs
index d14a52f7720..f87dc89447d 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/tests/not_enough_fields.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/tests/not_enough_fields.rs
@@ -2,10 +2,10 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
use crate::error::DateFromFieldsError;
use crate::options::{DateFromFieldsOptions, MissingFieldsStrategy, Overflow};
use crate::types::DateFields;
-use crate::Date;
#[test]
fn test_from_fields_not_enough_fields() {
diff --git a/deps/crates/vendor/icu_calendar-v2/src/third_party.rs b/deps/crates/vendor/icu_calendar-v2/src/third_party.rs
index 6ef83065d1e..29b4f10b1e3 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/third_party.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/third_party.rs
@@ -67,7 +67,8 @@
//! use icu::calendar::{Date, Gregorian, types::Weekday};
//!
//! // Convert a time::Date into an ICU4X Date<Gregorian>
-//! let time_date = time::Date::from_calendar_date(2025, time::Month::January, 15).unwrap();
+//! let time_date =
+//! time::Date::from_calendar_date(2025, time::Month::January, 15).unwrap();
//! let icu_date = Date::<Gregorian>::from(time_date);
//! assert_eq!(icu_date.era_year().year, 2025);
//!
diff --git a/deps/crates/vendor/icu_calendar-v2/src/time_crate.rs b/deps/crates/vendor/icu_calendar-v2/src/time_crate.rs
index 829e45a625b..b4e9769e872 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/time_crate.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/time_crate.rs
@@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use crate::Date;
+use crate::Gregorian;
use crate::cal::abstract_gregorian::AbstractGregorianYear;
use crate::cal::gregorian::GregorianDateInner;
use crate::calendar_arithmetic::ArithmeticDate;
-use crate::Date;
-use crate::Gregorian;
impl From<time::Date> for Date<Gregorian> {
fn from(other: time::Date) -> Self {
diff --git a/deps/crates/vendor/icu_calendar-v2/src/types.rs b/deps/crates/vendor/icu_calendar-v2/src/types.rs
index 48a0028df3d..14f7acae314 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/types.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/types.rs
@@ -73,9 +73,9 @@ pub struct DateFields<'a> {
/// Either `extended_year` or `era` + `era_year` can be used in `DateFields`:
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::Japanese;
/// use icu::calendar::types::DateFields;
- /// use icu::calendar::Date;
///
/// let mut fields1 = DateFields::default();
/// fields1.era = Some(b"reiwa");
@@ -151,9 +151,9 @@ pub struct DateFields<'a> {
/// might not resolve to the same month number:
///
/// ```
+ /// use icu::calendar::Date;
/// use icu::calendar::cal::ChineseTraditional;
/// use icu::calendar::types::{DateFields, Month};
- /// use icu::calendar::Date;
///
/// // The 2023 Year of the Rabbit had a leap month after the 2nd month.
/// let mut fields1 = DateFields::default();
@@ -215,7 +215,7 @@ impl fmt::Debug for DateFields<'_> {
day,
} = *self;
let mut builder = f.debug_struct("DateFields");
- if let Some(s) = era.and_then(|s| core::str::from_utf8(s).ok()) {
+ if let Some(s) = era.and_then(|s| str::from_utf8(s).ok()) {
builder.field("era", &Some(s));
} else {
builder.field("era", &era);
@@ -223,7 +223,7 @@ impl fmt::Debug for DateFields<'_> {
builder.field("era_year", &era_year);
builder.field("extended_year", &extended_year);
builder.field("month", &month);
- if let Some(s) = month_code.and_then(|s| core::str::from_utf8(s).ok()) {
+ if let Some(s) = month_code.and_then(|s| str::from_utf8(s).ok()) {
builder.field("month_code", &Some(s));
} else {
builder.field("month_code", &month_code);
diff --git a/deps/crates/vendor/icu_calendar-v2/src/week.rs b/deps/crates/vendor/icu_calendar-v2/src/week.rs
index fae1913e63c..ff58200c2df 100644
--- a/deps/crates/vendor/icu_calendar-v2/src/week.rs
+++ b/deps/crates/vendor/icu_calendar-v2/src/week.rs
@@ -20,7 +20,7 @@ const MIN_UNIT_DAYS: u16 = 14;
/// ```
/// use icu::calendar::types::Weekday;
/// use icu::calendar::week::WeekInformation;
-/// use icu::locale::{locale, Locale};
+/// use icu::locale::{Locale, locale};
///
/// // For en-US
/// let info = WeekInformation::try_new(locale!("en-US").into()).unwrap();
@@ -316,7 +316,7 @@ impl Iterator for WeekdaySetIterator {
#[cfg(test)]
mod tests {
use super::*;
- use crate::{types::DateDuration, types::Weekday, Date, RangeError};
+ use crate::{Date, RangeError, types::DateDuration, types::Weekday};
static ISO_CALENDAR: WeekCalculator = WeekCalculator {
first_weekday: Weekday::Monday,
@@ -657,8 +657,8 @@ fn test_weekdays_iter() {
#[test]
fn test_iso_weeks() {
- use crate::types::IsoWeekOfYear;
use crate::Date;
+ use crate::types::IsoWeekOfYear;
#[expect(clippy::zero_prefixed_literal)]
for ((y, m, d), (iso_year, week_number)) in [
diff --git a/deps/crates/vendor/icu_calendar-v2/tests/arithmetic.rs b/deps/crates/vendor/icu_calendar-v2/tests/arithmetic.rs
index bc275d08a8e..227e4561e44 100644
--- a/deps/crates/vendor/icu_calendar-v2/tests/arithmetic.rs
+++ b/deps/crates/vendor/icu_calendar-v2/tests/arithmetic.rs
@@ -5,10 +5,10 @@
use std::convert::Infallible;
use icu_calendar::{
+ AsCalendar, Calendar, Date, Iso,
cal::Hebrew,
options::{DateAddOptions, DateDifferenceOptions, DateDurationUnit, Overflow},
types::{DateDuration, Month},
- AsCalendar, Calendar, Date, Iso,
};
#[rustfmt::skip]
diff --git a/deps/crates/vendor/icu_calendar-v2/tests/reference_year.rs b/deps/crates/vendor/icu_calendar-v2/tests/reference_year.rs
index bb1b6b2445b..60d137e8ff6 100644
--- a/deps/crates/vendor/icu_calendar-v2/tests/reference_year.rs
+++ b/deps/crates/vendor/icu_calendar-v2/tests/reference_year.rs
@@ -5,11 +5,11 @@
use std::{collections::HashSet, fmt::Debug};
use icu_calendar::{
+ Calendar, Date,
cal::*,
error::DateFromFieldsError,
options::{DateFromFieldsOptions, MissingFieldsStrategy, Overflow},
types::{DateFields, Month},
- Calendar, Date,
};
/// Test that a given calendar produces valid monthdays
@@ -133,13 +133,13 @@ where
if let Ok(reject_result) = reject_result {
// We didn't need to constrain here, update the last valid date
last_valid_date = Some(reject_result);
- } else if let Some(last_valid_date) = last_valid_date {
- if md_validity != ValidityState::ChineseConstrain {
- assert_eq!(
- last_valid_date, reference_date,
- "Constrain should constrain to the last valid date in the month"
- );
- }
+ } else if let Some(last_valid_date) = last_valid_date
+ && md_validity != ValidityState::ChineseConstrain
+ {
+ assert_eq!(
+ last_valid_date, reference_date,
+ "Constrain should constrain to the last valid date in the month"
+ );
}
// Test that ordinal months cause it to fail (even if the month code is still set)
@@ -239,7 +239,7 @@ fn hijri_tabular_md_condition(month_number: u8, is_leap: bool, day_number: u8) -
}
// Odd months have 30 days, even months have 29, except for M12 in a leap year
- ValidityState::from(if month_number % 2 == 0 {
+ ValidityState::from(if month_number.is_multiple_of(2) {
if month_number == 12 {
day_number <= 30
} else {
diff --git a/deps/crates/vendor/icu_calendar-v2/tests/reingold.rs b/deps/crates/vendor/icu_calendar-v2/tests/reingold.rs
index 0a1f2536f65..960fd661e7c 100644
--- a/deps/crates/vendor/icu_calendar-v2/tests/reingold.rs
+++ b/deps/crates/vendor/icu_calendar-v2/tests/reingold.rs
@@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+use icu_calendar::Date;
+use icu_calendar::cal::Hijri;
use icu_calendar::cal::hijri::{
HijriYear, Rules, TabularAlgorithm, TabularAlgorithmEpoch, TabularAlgorithmLeapYears,
};
-use icu_calendar::cal::Hijri;
-use icu_calendar::Date;
/// [`Hijri`] [`Rules`] based on an astronomical simulation for Mecca.
///
diff --git a/deps/crates/vendor/icu_calendar_data-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_calendar_data-v2/.cargo_vcs_info.json
index 050558e7ea4..16f10b9a4fa 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/.cargo_vcs_info.json
+++ b/deps/crates/vendor/icu_calendar_data-v2/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "provider/data/calendar"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_calendar_data-v2/Cargo.lock b/deps/crates/vendor/icu_calendar_data-v2/Cargo.lock
index e0df6897dd0..6b993fa9e7f 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_calendar_data-v2/Cargo.lock
@@ -4,4 +4,4 @@ version = 3
[[package]]
name = "icu_calendar_data"
-version = "2.2.0"
+version = "2.4.0"
diff --git a/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml b/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml
index 64c7f7cd370..93e5563cd7f 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml
@@ -10,10 +10,10 @@
# See Cargo.toml.orig for the original contents.
[package]
-edition = "2021"
-rust-version = "1.86"
+edition = "2024"
+rust-version = "1.88"
name = "icu_calendar_data"
-version = "2.2.0"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = "build.rs"
include = [
@@ -47,12 +47,13 @@ categories = [
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
+resolver = "2"
[package.metadata.sources.cldr]
-tagged = "48.2.0"
+tagged = "49.0.0"
-[package.metadata.sources.icuexport]
-tagged = "release-78.1rc"
+[package.metadata.sources.unicode]
+tagged = "18.0.0"
[package.metadata.sources.segmenter_lstm]
tagged = "v0.1.0"
diff --git a/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml.orig b/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml.orig
index f32d897671a..6d59ca79135 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml.orig
+++ b/deps/crates/vendor/icu_calendar_data-v2/Cargo.toml.orig
@@ -18,8 +18,8 @@ repository.workspace = true
rust-version.workspace = true
[package.metadata.sources]
-cldr = { tagged = "48.2.0" }
-icuexport = { tagged = "release-78.1rc" }
+cldr = { tagged = "49.0.0" }
+unicode = { tagged = "18.0.0" }
segmenter_lstm = { tagged = "v0.1.0" }
[lints.rust]
diff --git a/deps/crates/vendor/icu_calendar_data-v2/README.md b/deps/crates/vendor/icu_calendar_data-v2/README.md
index 5a8dd8de71d..f54f584e4a5 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/README.md
+++ b/deps/crates/vendor/icu_calendar_data-v2/README.md
@@ -4,7 +4,7 @@
Data for the `icu_calendar` crate
-This data was generated with CLDR version 48.2.0, ICU version release-78.1rc, and
+This data was generated with CLDR version 49.0.0, Unicode version 18.0.0, and
LSTM segmenter version v0.1.0.
<!-- cargo-rdme end -->
diff --git a/deps/crates/vendor/icu_calendar_data-v2/data/calendar_japanese_modern_v1.rs.data b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_japanese_modern_v1.rs.data
index ecfc337c398..8ad9c320ca5 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/data/calendar_japanese_modern_v1.rs.data
+++ b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_japanese_modern_v1.rs.data
@@ -4,26 +4,25 @@
/// `icu`'s `_unstable` constructors.
///
/// Using this implementation will embed the following data in the binary's data segment:
-/// * 134B[^1] for the singleton data struct
+/// * 7B[^1] for the singleton data struct
///
/// [^1]: these numbers can be smaller in practice due to linker deduplication
///
/// This macro requires the following crates:
/// * `icu`
/// * `icu_provider`
-/// * `zerovec`
#[doc(hidden)]
#[macro_export]
macro_rules! __impl_calendar_japanese_modern_v1 {
($ provider : ty) => {
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl $provider {
#[doc(hidden)]
- pub const SINGLETON_CALENDAR_JAPANESE_MODERN_V1: &'static <icu::calendar::provider::CalendarJapaneseModernV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::calendar::provider::JapaneseEras { dates_to_eras: unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"L\x07\0\0\n\x17meiji\0\0\0\0\0\0\0\0\0\0\0x\x07\0\0\x07\x1Etaisho\0\0\0\0\0\0\0\0\0\0\x86\x07\0\0\x0C\x19showa\0\0\0\0\0\0\0\0\0\0\0\xC5\x07\0\0\x01\x08heisei\0\0\0\0\0\0\0\0\0\0\xE3\x07\0\0\x05\x01reiwa\0\0\0\0\0\0\0\0\0\0\0") } };
+ pub const SINGLETON_CALENDAR_JAPANESE_MODERN_V1: &'static <icu::calendar::provider::CalendarJapaneseModernV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::calendar::provider::JapaneseEras::up_to_reiwa();
}
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::DataProvider<icu::calendar::provider::CalendarJapaneseModernV1> for $provider {
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::calendar::provider::CalendarJapaneseModernV1>, icu_provider::DataError> {
if req.id.locale.is_unknown() {
@@ -36,7 +35,7 @@ macro_rules! __impl_calendar_japanese_modern_v1 {
};
($ provider : ty , ITER) => {
__impl_calendar_japanese_modern_v1!($provider);
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::IterableDataProvider<icu::calendar::provider::CalendarJapaneseModernV1> for $provider {
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
Ok([Default::default()].into_iter().collect())
@@ -45,7 +44,7 @@ macro_rules! __impl_calendar_japanese_modern_v1 {
};
($ provider : ty , DRY) => {
__impl_calendar_japanese_modern_v1!($provider);
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::DryDataProvider<icu::calendar::provider::CalendarJapaneseModernV1> for $provider {
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
if req.id.locale.is_unknown() {
@@ -58,7 +57,7 @@ macro_rules! __impl_calendar_japanese_modern_v1 {
};
($ provider : ty , DRY , ITER) => {
__impl_calendar_japanese_modern_v1!($provider);
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::DryDataProvider<icu::calendar::provider::CalendarJapaneseModernV1> for $provider {
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
if req.id.locale.is_unknown() {
@@ -68,7 +67,7 @@ macro_rules! __impl_calendar_japanese_modern_v1 {
}
}
}
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::IterableDataProvider<icu::calendar::provider::CalendarJapaneseModernV1> for $provider {
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
Ok([Default::default()].into_iter().collect())
diff --git a/deps/crates/vendor/icu_calendar_data-v2/data/calendar_preferred_v1.rs.data b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_preferred_v1.rs.data
new file mode 100644
index 00000000000..8b249837e73
--- /dev/null
+++ b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_preferred_v1.rs.data
@@ -0,0 +1,70 @@
+// @generated
+/// Implement `DataProvider<CalendarPreferredV1>` on the given struct using the data
+/// hardcoded in this file. This allows the struct to be used with
+/// `icu`'s `_unstable` constructors.
+///
+/// Using this implementation will embed the following data in the binary's data segment:
+/// * 69B for the lookup data structure (9 data identifiers)
+/// * 8B[^1] for the actual data (4 unique structs)
+///
+/// [^1]: these numbers can be smaller in practice due to linker deduplication
+///
+/// This macro requires the following crates:
+/// * `icu`
+/// * `icu_locale_core`
+/// * `icu_provider`
+/// * `icu_provider/baked`
+#[doc(hidden)]
+#[macro_export]
+macro_rules! __impl_calendar_preferred_v1 {
+ ($ provider : ty) => {
+ #[clippy::msrv = "1.88"]
+ const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
+ #[clippy::msrv = "1.88"]
+ impl $provider {
+ const DATA_CALENDAR_PREFERRED_V1: icu_provider::baked::zerotrie::Data<icu::calendar::provider::CalendarPreferredV1> = {
+ const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"und\x80-\xC7ABIKQST\x06\x08\n\x0C\x0E\x10\xC2EF\x01\x81\x82H\x81R\x82W\x81A\x81A\x81H\x83" };
+ const VALUES: &'static [<icu::calendar::provider::CalendarPreferredV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[icu::calendar::provider::CalendarPreference { default_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::CalendarAlgorithm::Gregory, default_hijri_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::HijriCalendarAlgorithm::Civil }, icu::calendar::provider::CalendarPreference { default_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::CalendarAlgorithm::Gregory, default_hijri_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::HijriCalendarAlgorithm::Umalqura }, icu::calendar::provider::CalendarPreference { default_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::CalendarAlgorithm::Persian, default_hijri_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::HijriCalendarAlgorithm::Civil }, icu::calendar::provider::CalendarPreference { default_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::CalendarAlgorithm::Buddhist, default_hijri_algorithm: icu_locale_core::preferences::extensions::unicode::keywords::HijriCalendarAlgorithm::Civil }];
+ unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
+ };
+ }
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DataProvider<icu::calendar::provider::CalendarPreferredV1> for $provider {
+ fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::calendar::provider::CalendarPreferredV1>, icu_provider::DataError> {
+ let mut metadata = icu_provider::DataResponseMetadata::default();
+ let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_CALENDAR_PREFERRED_V1, req.id, req.metadata.attributes_prefix_match) {
+ payload
+ } else {
+ const FALLBACKER: icu_locale_fallback::LocaleFallbackerWithConfig<'static> = icu_locale_fallback::LocaleFallbacker::new().for_config(<icu::calendar::provider::CalendarPreferredV1 as icu_provider::DataMarker>::INFO.fallback_config);
+ let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
+ loop {
+ if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_CALENDAR_PREFERRED_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
+ metadata.locale = Some(fallback_iterator.take());
+ break payload;
+ }
+ if fallback_iterator.get().is_unknown() {
+ return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::calendar::provider::CalendarPreferredV1 as icu_provider::DataMarker>::INFO, req));
+ }
+ fallback_iterator.step();
+ }
+ };
+ Ok(icu_provider::DataResponse { payload, metadata })
+ }
+ }
+ };
+ ($ provider : ty , ITER) => {
+ __impl_calendar_preferred_v1!($provider);
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::IterableDataProvider<icu::calendar::provider::CalendarPreferredV1> for $provider {
+ fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
+ Ok(icu_provider::baked::DataStore::iter(&Self::DATA_CALENDAR_PREFERRED_V1).collect())
+ }
+ }
+ };
+ ($ provider : ty , DRY) => {};
+ ($ provider : ty , DRY , ITER) => {
+ __impl_calendar_preferred_v1!($provider, ITER);
+ };
+}
+#[doc(inline)]
+pub use __impl_calendar_preferred_v1 as impl_calendar_preferred_v1;
diff --git a/deps/crates/vendor/icu_calendar_data-v2/data/calendar_week_v1.rs.data b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_week_v1.rs.data
index dc2bc0feff2..c9bec451d99 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/data/calendar_week_v1.rs.data
+++ b/deps/crates/vendor/icu_calendar_data-v2/data/calendar_week_v1.rs.data
@@ -17,9 +17,9 @@
#[macro_export]
macro_rules! __impl_calendar_week_v1 {
($ provider : ty) => {
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl $provider {
const DATA_CALENDAR_WEEK_V1: icu_provider::baked::zerotrie::Data<icu::calendar::provider::CalendarWeekV1> = {
const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"und\x80-\xD7ABCDEGHIJKLMNOPQSTUVWYZ\t\x1E$06<BT]io\x84\x8A\x8C\xA1\xA3\xB2\xBB\xC4\xCA\xCC\xCE\xC3FGS\x01\x02\x81\x82\x82\xC7DHRSTWZ\x01\x02\x03\x04\x05\x06\x82\x83\x82\x82\x82\x82\x82\xC2AO\x01\x82\x82\xC4JMOZ\x01\x02\x03\x84\x82\x82\x83\xC2GT\x01\x83\x82\xC2TU\x01\x82\x82\xC2KN\x01\x82\x82\xC6DLNQRS\x01\x02\x03\x04\x05\x82\x85\x86\x83\x87\x82\xC3MOP\x01\x02\x82\x83\x82\xC4EHRW\x01\x02\x03\x82\x82\x82\x83\xC2AY\x01\x82\x83\xC7HMOTVXZ\x01\x02\x03\x04\x05\x06\x82\x82\x82\x82\x88\x82\x82\xC2IP\x01\x82\x82M\x83\xC7AEHKRTY\x01\x02\x03\x04\x05\x06\x82\x82\x82\x82\x82\x82\x82A\x83\xC5ADGVY\x01\x02\x03\x04\x85\x83\x82\x82\x83\xC3HTW\x01\x02\x82\x82\x82\xC3GMS\x01\x02\x89\x82\x82\xC2EI\x01\x82\x82S\x82E\x85\xC2AW\x01\x82\x82" };
@@ -27,14 +27,14 @@ macro_rules! __impl_calendar_week_v1 {
unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
};
}
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::DataProvider<icu::calendar::provider::CalendarWeekV1> for $provider {
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::calendar::provider::CalendarWeekV1>, icu_provider::DataError> {
let mut metadata = icu_provider::DataResponseMetadata::default();
let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_CALENDAR_WEEK_V1, req.id, req.metadata.attributes_prefix_match) {
payload
} else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::calendar::provider::CalendarWeekV1 as icu_provider::DataMarker>::INFO.fallback_config);
+ const FALLBACKER: icu_locale_fallback::LocaleFallbackerWithConfig<'static> = icu_locale_fallback::LocaleFallbacker::new().for_config(<icu::calendar::provider::CalendarWeekV1 as icu_provider::DataMarker>::INFO.fallback_config);
let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
loop {
if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_CALENDAR_WEEK_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
@@ -53,7 +53,7 @@ macro_rules! __impl_calendar_week_v1 {
};
($ provider : ty , ITER) => {
__impl_calendar_week_v1!($provider);
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl icu_provider::IterableDataProvider<icu::calendar::provider::CalendarWeekV1> for $provider {
fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
Ok(icu_provider::baked::DataStore::iter(&Self::DATA_CALENDAR_WEEK_V1).collect())
diff --git a/deps/crates/vendor/icu_calendar_data-v2/data/mod.rs b/deps/crates/vendor/icu_calendar_data-v2/data/mod.rs
index ffa33a33623..26e03ff2474 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/data/mod.rs
+++ b/deps/crates/vendor/icu_calendar_data-v2/data/mod.rs
@@ -1,4 +1,5 @@
// @generated
+include!("calendar_preferred_v1.rs.data");
include!("calendar_japanese_modern_v1.rs.data");
include!("calendar_week_v1.rs.data");
/// Marks a type as a data provider. You can then use macros like
@@ -16,7 +17,7 @@ include!("calendar_week_v1.rs.data");
#[macro_export]
macro_rules! __make_provider {
($ name : ty) => {
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl $name {
#[allow(dead_code)]
pub(crate) const MUST_USE_MAKE_PROVIDER_MACRO: () = ();
@@ -28,13 +29,14 @@ macro_rules! __make_provider {
pub use __make_provider as make_provider;
/// This macro requires the following crates:
/// * `icu`
+/// * `icu_locale_core`
/// * `icu_provider`
/// * `icu_provider/baked`
-/// * `zerovec`
#[allow(unused_macros)]
macro_rules! impl_data_provider {
($ provider : ty) => {
make_provider!($provider);
+ impl_calendar_preferred_v1!($provider);
impl_calendar_japanese_modern_v1!($provider);
impl_calendar_week_v1!($provider);
};
diff --git a/deps/crates/vendor/icu_calendar_data-v2/src/lib.rs b/deps/crates/vendor/icu_calendar_data-v2/src/lib.rs
index 90d2b19b7e3..647b2e1505e 100644
--- a/deps/crates/vendor/icu_calendar_data-v2/src/lib.rs
+++ b/deps/crates/vendor/icu_calendar_data-v2/src/lib.rs
@@ -4,7 +4,7 @@
//! Data for the `icu_calendar` crate
//!
-//! This data was generated with CLDR version 48.2.0, ICU version release-78.1rc, and
+//! This data was generated with CLDR version 49.0.0, Unicode version 18.0.0, and
//! LSTM segmenter version v0.1.0.
#![no_std]
@@ -15,3 +15,24 @@
include!(concat!(core::env!("ICU4X_DATA_DIR"), "/mod.rs"));
#[cfg(not(icu4x_custom_data))]
include!("../data/mod.rs");
+
+#[macro_export]
+macro_rules! cldr_tag {
+ () => {
+ "49.0.0"
+ };
+}
+
+#[macro_export]
+macro_rules! unicode_tag {
+ () => {
+ "18.0.0"
+ };
+}
+
+#[macro_export]
+macro_rules! segmenter_lstm_tag {
+ () => {
+ "v0.1.0"
+ };
+}
diff --git a/deps/crates/vendor/icu_collections-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_collections-v2/.cargo_vcs_info.json
deleted file mode 100644
index 2997b36686a..00000000000
--- a/deps/crates/vendor/icu_collections-v2/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
- },
- "path_in_vcs": "components/collections"
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_collections-v2/Cargo.lock b/deps/crates/vendor/icu_collections-v2/Cargo.lock
deleted file mode 100644
index 31aff5335ad..00000000000
--- a/deps/crates/vendor/icu_collections-v2/Cargo.lock
+++ /dev/null
@@ -1,820 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "aho-corasick"
-version = "1.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
-dependencies = [
- "memchr",
-]
-
-[[package]]
-name = "anes"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
-
-[[package]]
-name = "anstyle"
-version = "1.0.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
-
-[[package]]
-name = "autocfg"
-version = "1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
-
-[[package]]
-name = "bumpalo"
-version = "3.20.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
-
-[[package]]
-name = "cast"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
-
-[[package]]
-name = "cfg-if"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
-
-[[package]]
-name = "ciborium"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
-dependencies = [
- "ciborium-io",
- "ciborium-ll",
- "serde",
-]
-
-[[package]]
-name = "ciborium-io"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
-
-[[package]]
-name = "ciborium-ll"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
-dependencies = [
- "ciborium-io",
- "half",
-]
-
-[[package]]
-name = "clap"
-version = "4.4.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
-dependencies = [
- "clap_builder",
-]
-
-[[package]]
-name = "clap_builder"
-version = "4.4.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
-dependencies = [
- "anstyle",
- "clap_lex",
-]
-
-[[package]]
-name = "clap_lex"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
-
-[[package]]
-name = "cobs"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1"
-dependencies = [
- "thiserror",
-]
-
-[[package]]
-name = "criterion"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
-dependencies = [
- "anes",
- "cast",
- "ciborium",
- "clap",
- "criterion-plot",
- "is-terminal",
- "itertools",
- "num-traits",
- "once_cell",
- "oorandom",
- "plotters",
- "rayon",
- "regex",
- "serde",
- "serde_derive",
- "serde_json",
- "tinytemplate",
- "walkdir",
-]
-
-[[package]]
-name = "criterion-plot"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
-dependencies = [
- "cast",
- "itertools",
-]
-
-[[package]]
-name = "crossbeam-deque"
-version = "0.8.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
-dependencies = [
- "crossbeam-epoch",
- "crossbeam-utils",
-]
-
-[[package]]
-name = "crossbeam-epoch"
-version = "0.9.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
-dependencies = [
- "crossbeam-utils",
-]
-
-[[package]]
-name = "crossbeam-utils"
-version = "0.8.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
-
-[[package]]
-name = "crunchy"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
-
-[[package]]
-name = "databake"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "74d4b1db5ca40636726f1f73daff0d626accbd49bcd8136fcade87d7cf1e6bbb"
-dependencies = [
- "databake-derive",
- "proc-macro2",
- "quote",
-]
-
-[[package]]
-name = "databake-derive"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
-name = "displaydoc"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "either"
-version = "1.15.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
-
-[[package]]
-name = "embedded-io"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"
-
-[[package]]
-name = "embedded-io"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
-
-[[package]]
-name = "equivalent"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
-
-[[package]]
-name = "half"
-version = "2.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888"
-dependencies = [
- "cfg-if",
- "crunchy",
-]
-
-[[package]]
-name = "hashbrown"
-version = "0.16.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
-
-[[package]]
-name = "hermit-abi"
-version = "0.5.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
-
-[[package]]
-name = "iai"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71a816c97c42258aa5834d07590b718b4c9a598944cd39a52dc25b351185d678"
-
-[[package]]
-name = "icu_collections"
-version = "2.2.0"
-dependencies = [
- "criterion",
- "databake",
- "displaydoc",
- "iai",
- "postcard",
- "potential_utf",
- "serde",
- "serde_json",
- "toml",
- "utf8_iter",
- "yoke",
- "zerofrom",
- "zerovec",
-]
-
-[[package]]
-name = "indexmap"
-version = "2.11.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
-dependencies = [
- "equivalent",
- "hashbrown",
-]
-
-[[package]]
-name = "is-terminal"
-version = "0.4.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
-dependencies = [
- "hermit-abi",
- "libc",
- "windows-sys",
-]
-
-[[package]]
-name = "itertools"
-version = "0.10.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
-dependencies = [
- "either",
-]
-
-[[package]]
-name = "itoa"
-version = "1.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
-
-[[package]]
-name = "js-sys"
-version = "0.3.91"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c"
-dependencies = [
- "once_cell",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "libc"
-version = "0.2.183"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
-
-[[package]]
-name = "memchr"
-version = "2.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
-
-[[package]]
-name = "num-traits"
-version = "0.2.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
-dependencies = [
- "autocfg",
-]
-
-[[package]]
-name = "once_cell"
-version = "1.21.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
-
-[[package]]
-name = "oorandom"
-version = "11.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
-
-[[package]]
-name = "plotters"
-version = "0.3.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747"
-dependencies = [
- "num-traits",
- "plotters-backend",
- "plotters-svg",
- "wasm-bindgen",
- "web-sys",
-]
-
-[[package]]
-name = "plotters-backend"
-version = "0.3.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a"
-
-[[package]]
-name = "plotters-svg"
-version = "0.3.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670"
-dependencies = [
- "plotters-backend",
-]
-
-[[package]]
-name = "postcard"
-version = "1.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24"
-dependencies = [
- "cobs",
- "embedded-io 0.4.0",
- "embedded-io 0.6.1",
- "serde",
-]
-
-[[package]]
-name = "potential_utf"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
-dependencies = [
- "serde_core",
- "zerovec",
-]
-
-[[package]]
-name = "proc-macro2"
-version = "1.0.106"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "quote"
-version = "1.0.45"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
-dependencies = [
- "proc-macro2",
-]
-
-[[package]]
-name = "rayon"
-version = "1.10.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"
-dependencies = [
- "either",
- "rayon-core",
-]
-
-[[package]]
-name = "rayon-core"
-version = "1.12.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
-dependencies = [
- "crossbeam-deque",
- "crossbeam-utils",
-]
-
-[[package]]
-name = "regex"
-version = "1.12.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
-dependencies = [
- "aho-corasick",
- "memchr",
- "regex-automata",
- "regex-syntax",
-]
-
-[[package]]
-name = "regex-automata"
-version = "0.4.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
-dependencies = [
- "aho-corasick",
- "memchr",
- "regex-syntax",
-]
-
-[[package]]
-name = "regex-syntax"
-version = "0.8.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
-
-[[package]]
-name = "rustversion"
-version = "1.0.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
-
-[[package]]
-name = "same-file"
-version = "1.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
-dependencies = [
- "winapi-util",
-]
-
-[[package]]
-name = "serde"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
-dependencies = [
- "serde_core",
- "serde_derive",
-]
-
-[[package]]
-name = "serde_core"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
-dependencies = [
- "serde_derive",
-]
-
-[[package]]
-name = "serde_derive"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "serde_json"
-version = "1.0.149"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
-dependencies = [
- "itoa",
- "memchr",
- "serde",
- "serde_core",
- "zmij",
-]
-
-[[package]]
-name = "serde_spanned"
-version = "0.6.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
-dependencies = [
- "serde",
-]
-
-[[package]]
-name = "stable_deref_trait"
-version = "1.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
-
-[[package]]
-name = "syn"
-version = "2.0.117"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "synstructure"
-version = "0.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "thiserror"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
-dependencies = [
- "thiserror-impl",
-]
-
-[[package]]
-name = "thiserror-impl"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "tinytemplate"
-version = "1.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
-dependencies = [
- "serde",
- "serde_json",
-]
-
-[[package]]
-name = "toml"
-version = "0.8.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
-dependencies = [
- "serde",
- "serde_spanned",
- "toml_datetime",
- "toml_edit",
-]
-
-[[package]]
-name = "toml_datetime"
-version = "0.6.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
-dependencies = [
- "serde",
-]
-
-[[package]]
-name = "toml_edit"
-version = "0.22.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
-dependencies = [
- "indexmap",
- "serde",
- "serde_spanned",
- "toml_datetime",
- "winnow",
-]
-
-[[package]]
-name = "unicode-ident"
-version = "1.0.24"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
-
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
-
-[[package]]
-name = "walkdir"
-version = "2.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
-dependencies = [
- "same-file",
- "winapi-util",
-]
-
-[[package]]
-name = "wasm-bindgen"
-version = "0.2.114"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e"
-dependencies = [
- "cfg-if",
- "once_cell",
- "rustversion",
- "wasm-bindgen-macro",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-macro"
-version = "0.2.114"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6"
-dependencies = [
- "quote",
- "wasm-bindgen-macro-support",
-]
-
-[[package]]
-name = "wasm-bindgen-macro-support"
-version = "0.2.114"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3"
-dependencies = [
- "bumpalo",
- "proc-macro2",
- "quote",
- "syn",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-shared"
-version = "0.2.114"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "web-sys"
-version = "0.3.91"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9"
-dependencies = [
- "js-sys",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "winapi-util"
-version = "0.1.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
-dependencies = [
- "windows-sys",
-]
-
-[[package]]
-name = "windows-link"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
-
-[[package]]
-name = "windows-sys"
-version = "0.61.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
-dependencies = [
- "windows-link",
-]
-
-[[package]]
-name = "winnow"
-version = "0.7.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
-dependencies = [
- "memchr",
-]
-
-[[package]]
-name = "yoke"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
-dependencies = [
- "stable_deref_trait",
- "yoke-derive",
- "zerofrom",
-]
-
-[[package]]
-name = "yoke-derive"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
-name = "zerofrom"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"
-dependencies = [
- "zerofrom-derive",
-]
-
-[[package]]
-name = "zerofrom-derive"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
-name = "zerovec"
-version = "0.11.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
-dependencies = [
- "databake",
- "serde",
- "yoke",
- "zerofrom",
- "zerovec-derive",
-]
-
-[[package]]
-name = "zerovec-derive"
-version = "0.11.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "zmij"
-version = "1.0.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
diff --git a/deps/crates/vendor/icu_collections-v2/Cargo.toml b/deps/crates/vendor/icu_collections-v2/Cargo.toml
deleted file mode 100644
index 7f57b47901a..00000000000
--- a/deps/crates/vendor/icu_collections-v2/Cargo.toml
+++ /dev/null
@@ -1,215 +0,0 @@
-# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
-#
-# When uploading crates to the registry Cargo will automatically
-# "normalize" Cargo.toml files for maximal compatibility
-# with all versions of Cargo and also rewrite `path` dependencies
-# to registry (e.g., crates.io) dependencies.
-#
-# If you are reading this file be aware that the original Cargo.toml
-# will likely look very different (and much more reasonable).
-# See Cargo.toml.orig for the original contents.
-
-[package]
-edition = "2021"
-rust-version = "1.86"
-name = "icu_collections"
-version = "2.2.0"
-authors = ["The ICU4X Project Developers"]
-build = false
-include = [
- "data/**/*",
- "src/**/*",
- "examples/**/*",
- "benches/**/*",
- "tests/**/*",
- "Cargo.toml",
- "LICENSE",
- "README.md",
- "build.rs",
-]
-autolib = false
-autobins = false
-autoexamples = false
-autotests = false
-autobenches = false
-description = "Collection of API for use in ICU libraries."
-homepage = "https://icu4x.unicode.org"
-readme = "README.md"
-keywords = [
- "unicode",
- "data-structures",
-]
-categories = [
- "internationalization",
- "localization",
- "no-std",
- "embedded",
-]
-license = "Unicode-3.0"
-repository = "https://github.com/unicode-org/icu4x"
-
-[package.metadata.docs.rs]
-all-features = true
-
-[package.metadata.cargo-all-features]
-max_combination_size = 3
-
-[features]
-alloc = [
- "serde?/alloc",
- "zerovec/alloc",
-]
-databake = [
- "dep:databake",
- "zerovec/databake",
-]
-serde = [
- "dep:serde",
- "zerovec/serde",
- "potential_utf/serde",
- "alloc",
-]
-
-[lib]
-name = "icu_collections"
-path = "src/lib.rs"
-bench = false
-
-[[test]]
-name = "char16trie"
-path = "tests/char16trie.rs"
-
-[[test]]
-name = "cpt"
-path = "tests/cpt.rs"
-
-[[bench]]
-name = "codepointtrie"
-path = "benches/codepointtrie.rs"
-harness = false
-
-[[bench]]
-name = "iai_cpt"
-path = "benches/iai_cpt.rs"
-harness = false
-
-[[bench]]
-name = "inv_list"
-path = "benches/inv_list.rs"
-harness = false
-
-[dependencies.databake]
-version = "0.2.0"
-features = ["derive"]
-optional = true
-default-features = false
-
-[dependencies.displaydoc]
-version = "0.2.3"
-default-features = false
-
-[dependencies.potential_utf]
-version = "0.1.3"
-features = ["zerovec"]
-default-features = false
-
-[dependencies.serde]
-version = "1.0.220"
-features = ["derive"]
-optional = true
-default-features = false
-
-[dependencies.utf8_iter]
-version = "1.0.2"
-default-features = false
-
-[dependencies.yoke]
-version = "0.8.2"
-features = ["derive"]
-default-features = false
-
-[dependencies.zerofrom]
-version = "0.1.6"
-features = ["derive"]
-default-features = false
-
-[dependencies.zerovec]
-version = "0.11.6"
-features = [
- "derive",
- "yoke",
-]
-default-features = false
-
-[dev-dependencies.iai]
-version = "0.1.1"
-
-[dev-dependencies.postcard]
-version = "1.0.3"
-features = ["alloc"]
-default-features = false
-
-[dev-dependencies.serde]
-version = "1.0.220"
-features = ["derive"]
-default-features = false
-
-[dev-dependencies.serde_json]
-version = "1.0.45"
-
-[dev-dependencies.toml]
-version = "0.8.0"
-features = ["parse"]
-default-features = false
-
-[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
-version = "0.5.0"
-
-[lints.clippy]
-alloc-instead-of-core = "warn"
-branches-sharing-code = "warn"
-collection_is_never_read = "warn"
-crosspointer_transmute = "warn"
-dbg_macro = "warn"
-debug_assert_with_mut_call = "warn"
-doc_markdown = "warn"
-exhaustive_enums = "deny"
-exhaustive_structs = "deny"
-fn_to_numeric_cast_any = "warn"
-infinite_loop = "warn"
-large_stack_arrays = "warn"
-mismatching_type_param_order = "warn"
-missing_fields_in_debug = "warn"
-missing_transmute_annotations = "warn"
-negative_feature_names = "warn"
-or-fun-call = "warn"
-same_functions_in_if_condition = "warn"
-todo = "warn"
-transmute_bytes_to_str = "warn"
-transmute_int_to_bool = "warn"
-transmute_int_to_non_zero = "warn"
-transmute_ptr_to_ptr = "warn"
-transmute_ptr_to_ref = "warn"
-transmute_undefined_repr = "warn"
-transmutes_expressible_as_ptr_casts = "warn"
-trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
-useless_transmute = "warn"
-wildcard_dependencies = "warn"
-
-[lints.rust]
-missing_debug_implementations = "deny"
-trivial_numeric_casts = "deny"
-unused_lifetimes = "warn"
-unused_macro_rules = "warn"
-unused_qualifications = "warn"
-
-[lints.rust.unexpected_cfgs]
-level = "warn"
-priority = 0
-check-cfg = [
- "cfg(icu4c_enable_renaming)",
- "cfg(needs_alloc_error_handler)",
- "cfg(icu4x_run_size_tests)",
- "cfg(icu4x_unstable_fast_trie_only)",
-]
diff --git a/deps/crates/vendor/icu_collections-v2/Cargo.toml.orig b/deps/crates/vendor/icu_collections-v2/Cargo.toml.orig
deleted file mode 100644
index c15f61500b4..00000000000
--- a/deps/crates/vendor/icu_collections-v2/Cargo.toml.orig
+++ /dev/null
@@ -1,74 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-[package]
-name = "icu_collections"
-description = "Collection of API for use in ICU libraries."
-categories.workspace = true
-keywords = ["unicode", "data-structures"]
-
-authors.workspace = true
-edition.workspace = true
-homepage.workspace = true
-include.workspace = true
-license.workspace = true
-repository.workspace = true
-rust-version.workspace = true
-version.workspace = true
-
-[package.metadata.docs.rs]
-all-features = true
-
-[package.metadata.cargo-all-features]
-max_combination_size = 3
-
-[dependencies]
-displaydoc = { workspace = true }
-yoke = { workspace = true, features = ["derive"] }
-zerofrom = { workspace = true, features = ["derive"] }
-zerovec = { workspace = true, features = ["derive", "yoke"] }
-potential_utf = { workspace = true, features = ["zerovec"] }
-utf8_iter = { workspace = true }
-
-serde = { workspace = true, features = ["derive"], optional = true }
-databake = { workspace = true, features = ["derive"], optional = true }
-
-[dev-dependencies]
-iai = { workspace = true }
-icu = { path = "../../components/icu", default-features = false }
-icu_properties = { path = "../../components/properties" }
-postcard = { workspace = true, features = ["alloc"] }
-serde = { workspace = true, features = ["derive"] }
-serde_json = { workspace = true }
-
-toml = { workspace = true }
-
-[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
-criterion = { workspace = true }
-
-[features]
-serde = ["dep:serde", "zerovec/serde", "potential_utf/serde", "alloc"]
-databake = ["dep:databake", "zerovec/databake"]
-alloc = ["serde?/alloc", "zerovec/alloc"]
-
-[lib]
-bench = false # This option is required for Benchmark CI
-
-[[bench]]
-name = "codepointtrie"
-harness = false
-path = "benches/codepointtrie.rs"
-
-[[bench]]
-name = "iai_cpt"
-harness = false
-path = "benches/iai_cpt.rs"
-
-[[bench]]
-name = "inv_list"
-harness = false
-path = "benches/inv_list.rs"
-
-[lints]
-workspace = true
diff --git a/deps/crates/vendor/icu_collections-v2/OWNERS b/deps/crates/vendor/icu_collections-v2/OWNERS
deleted file mode 100644
index cbe7d0620c4..00000000000
--- a/deps/crates/vendor/icu_collections-v2/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-# This file has been auto-generated by the `gnrt` tool.
-file://third_party/rust/icu_collections/OWNERS
diff --git a/deps/crates/vendor/icu_collections-v2/README.md b/deps/crates/vendor/icu_collections-v2/README.md
deleted file mode 100644
index e90aa210bb6..00000000000
--- a/deps/crates/vendor/icu_collections-v2/README.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# icu_collections [](https://crates.io/crates/icu_collections)
-
-<!-- cargo-rdme start -->
-
-Efficient collections for Unicode data.
-
-This module is published as its own crate ([`icu_collections`](https://docs.rs/icu_collections/latest/icu_collections/))
-and as part of the [`icu`](https://docs.rs/icu/latest/icu/) crate. See the latter for more details on the ICU4X project.
-
-ICU4X `CodePointTrie` provides a read-only view of `CodePointTrie` data that is exported
-from ICU4C. Detailed information about the design of the data structure can be found in the documentation
-for the `CodePointTrie` struct.
-
-ICU4X `CodePointInversionList` provides necessary functionality for highly efficient querying of sets of Unicode characters.
-It is an implementation of the existing [ICU4C UnicodeSet API](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeSet.html).
-
-ICU4X `Char16Trie` provides a data structure for a space-efficient and time-efficient lookup of
-sequences of 16-bit units (commonly but not necessarily UTF-16 code units)
-which map to integer values.
-It is an implementation of the existing [ICU4C UCharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UCharsTrie.html)
-/ [ICU4J CharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/util/CharsTrie.html) API.
-
-<!-- cargo-rdme end -->
-
-## More Information
-
-For more information on development, authorship, contributing etc. please visit [`ICU4X home page`](https://github.com/unicode-org/icu4x).
diff --git a/deps/crates/vendor/icu_collections-v2/benches/codepointtrie.rs b/deps/crates/vendor/icu_collections-v2/benches/codepointtrie.rs
deleted file mode 100644
index e49401634dd..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/codepointtrie.rs
+++ /dev/null
@@ -1,104 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use criterion::{black_box, criterion_group, criterion_main, Criterion};
-
-use icu_collections::codepointtrie::CodePointTrie;
-
-#[path = "tries/mod.rs"]
-mod tries;
-
-mod sample_str_lng {
- // "eng" is all ASCII
- pub const ENG: &str = "Universal Declaration of Human Rights";
- // "pcd" has ASCII mixed with low-BMP code points
- pub const PCD: &str = "Dèclaråcion dès dreûts d' l'ome po tos lès payîs dè monde";
- // "ukr" uses low-BMP code points (less than U+1000)
- pub const UKR: &str = "ЗАГАЛЬНА ДЕКЛАРАЦІЯ ПРАВ ЛЮДИНІ";
- // "yue" uses high-BMP code points (greater than U+1000), so it benefits from fast mode
- pub const YUE: &str = "世界人权宣言";
- // "ccp" exercises supplementary code points
- pub const CCP: &str = "𑄟𑄚𑄬𑄭𑄃𑄇𑄴𑄇𑄥𑄧𑄁𑄢𑄴 𑄝𑄬𑄇𑄴𑄅𑄚𑄮𑄢𑄴 𑄟𑄧𑄚𑄳𑄢𑄧𑄧𑄇𑄉𑄮𑄌𑄴";
-}
-
-const SAMPLE_STRING_MIXED: &str = "Dèclaråcion ЗАГАЛЬНА 世界人权宣言 𑄟𑄚𑄬𑄭𑄃𑄇𑄴𑄇𑄥𑄧𑄁𑄢𑄴";
-
-/// A function that returns 100 code points in the desired language
-fn one_hundred_code_points(sample_str: &str) -> String {
- sample_str.chars().cycle().take(100).collect()
-}
-
-fn get_trie_small() -> CodePointTrie<'static, u8> {
- CodePointTrie::try_new(
- tries::gc_small::HEADER,
- tries::gc_small::INDEX,
- tries::gc_small::DATA,
- )
- .unwrap()
-}
-
-fn get_trie_fast() -> CodePointTrie<'static, u8> {
- CodePointTrie::try_new(
- tries::gc_fast::HEADER,
- tries::gc_fast::INDEX,
- tries::gc_fast::DATA,
- )
- .unwrap()
-}
-
-fn overview_bench(c: &mut Criterion) {
- let s = one_hundred_code_points(SAMPLE_STRING_MIXED);
- let cpt_small = get_trie_small();
-
- c.bench_function("cpt/overview", |b| {
- b.iter(|| {
- black_box(&s)
- .chars()
- .map(|c| black_box(&cpt_small).get32(c as u32))
- .reduce(|a, b| a.wrapping_add(b))
- });
- });
-
- c.bench_function("cpt/get_range", |b| {
- b.iter(|| {
- black_box(&s)
- .chars()
- .map(|c| black_box(&cpt_small).get_range(c as u32).unwrap())
- .fold(0u32, |acc, ele| {
- acc.wrapping_add(ele.range.end() - ele.range.start() + ele.value as u32)
- })
- });
- });
-
- {
- let cpt_fast = get_trie_fast();
- lang_bench(c, &cpt_small, "small/eng", sample_str_lng::ENG);
- lang_bench(c, &cpt_small, "small/pcd", sample_str_lng::PCD);
- lang_bench(c, &cpt_small, "small/ukr", sample_str_lng::UKR);
- lang_bench(c, &cpt_small, "small/yue", sample_str_lng::YUE);
- lang_bench(c, &cpt_small, "small/ccp", sample_str_lng::CCP);
- lang_bench(c, &cpt_fast, "fast/eng", sample_str_lng::ENG);
- lang_bench(c, &cpt_fast, "fast/pcd", sample_str_lng::PCD);
- lang_bench(c, &cpt_fast, "fast/ukr", sample_str_lng::UKR);
- lang_bench(c, &cpt_fast, "fast/yue", sample_str_lng::YUE);
- lang_bench(c, &cpt_fast, "fast/ccp", sample_str_lng::CCP);
- }
-}
-
-fn lang_bench(c: &mut Criterion, cpt: &CodePointTrie<u8>, lid: &str, sample_str: &str) {
- let bench_name = format!("cpt/get/{lid}");
- let s = one_hundred_code_points(sample_str);
-
- c.bench_function(&bench_name, |b| {
- b.iter(|| {
- black_box(&s)
- .chars()
- .map(|c| black_box(&cpt).get32(c as u32))
- .reduce(|a, b| a.wrapping_add(b))
- });
- });
-}
-
-criterion_group!(benches, overview_bench,);
-criterion_main!(benches);
diff --git a/deps/crates/vendor/icu_collections-v2/benches/iai_cpt.rs b/deps/crates/vendor/icu_collections-v2/benches/iai_cpt.rs
deleted file mode 100644
index 3d57cbb4a16..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/iai_cpt.rs
+++ /dev/null
@@ -1,77 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use icu_collections::codepointtrie::CodePointTrie;
-
-#[path = "tries/mod.rs"]
-mod tries;
-
-// The string has 41 chars.
-const SAMPLE_STRING_LATIN1: &str = "Declaration loremips umdolo loremipsompi";
-const SAMPLE_STRING_MIXED: &str = "Dèclaråcion ЗАГАЛЬНА 世界人权宣言 𑄟𑄚𑄬𑄭𑄃𑄇𑄴𑄇𑄥𑄧𑄁𑄢𑄴";
-
-fn get_trie_small() -> CodePointTrie<'static, u8> {
- CodePointTrie::try_new(
- tries::gc_small::HEADER,
- tries::gc_small::INDEX,
- tries::gc_small::DATA,
- )
- .unwrap()
-}
-
-fn get_trie_fast() -> CodePointTrie<'static, u8> {
- CodePointTrie::try_new(
- tries::gc_fast::HEADER,
- tries::gc_fast::INDEX,
- tries::gc_fast::DATA,
- )
- .unwrap()
-}
-
-fn bench_iai_cpt_overview(fast: bool, mixed: bool) {
- // Tests the instructions required to get CPT for 100,000 chars.
-
- let cpt = if fast {
- get_trie_fast()
- } else {
- get_trie_small()
- };
- let sample = if mixed {
- SAMPLE_STRING_MIXED
- } else {
- SAMPLE_STRING_LATIN1
- };
-
- let mut i: u8 = 0;
- for c in sample.chars() {
- i = i.wrapping_add(cpt.get32(c as u32))
- //i = i.wrapping_add(1);
- }
-
- // Ensure the loop is not DCEd
- assert!(i < 255);
-}
-
-fn bench_iai_cpt_latin_fast() {
- bench_iai_cpt_overview(true, false);
-}
-
-fn bench_iai_cpt_latin_small() {
- bench_iai_cpt_overview(false, false);
-}
-
-fn bench_iai_cpt_mixed_fast() {
- bench_iai_cpt_overview(true, true);
-}
-
-fn bench_iai_cpt_mixed_small() {
- bench_iai_cpt_overview(false, true);
-}
-
-iai::main!(
- bench_iai_cpt_latin_fast,
- bench_iai_cpt_latin_small,
- bench_iai_cpt_mixed_fast,
- bench_iai_cpt_mixed_small,
-);
diff --git a/deps/crates/vendor/icu_collections-v2/benches/inv_list.rs b/deps/crates/vendor/icu_collections-v2/benches/inv_list.rs
deleted file mode 100644
index 743c855af8c..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/inv_list.rs
+++ /dev/null
@@ -1,66 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use criterion::{criterion_group, criterion_main, Criterion};
-use icu_collections::codepointinvlist::CodePointInversionList;
-use std::char;
-
-fn uniset_bench(c: &mut Criterion) {
- let best_ex = [0x41, 0x46];
- let best_sample = CodePointInversionList::try_from_u32_inversion_list_slice(&best_ex).unwrap();
- let worst_ex: Vec<u32> = (0x0..((char::MAX as u32) + 1)).collect();
- let worst_sample =
- CodePointInversionList::try_from_u32_inversion_list_slice(&worst_ex).unwrap();
-
- c.bench_function("uniset/overview", |b| {
- #[expect(clippy::suspicious_map)]
- b.iter(|| {
- best_sample
- .iter_chars()
- .map(|ch| best_sample.contains(ch))
- .count();
- worst_sample
- .iter_chars()
- .map(|ch| worst_sample.contains(ch))
- .count();
- best_sample
- .iter_chars()
- .map(|ch| best_sample.contains_range('A'..ch))
- .count();
- worst_sample
- .iter_chars()
- .take(100)
- .map(|ch| worst_sample.contains_range(char::from_u32(0x0).unwrap()..ch))
- .count();
- })
- });
-
- {
- let mut group = c.benchmark_group("uniset/contains");
- group.bench_with_input("best", &best_sample, |b, sample| {
- b.iter(|| sample.iter_chars().map(|ch| sample.contains(ch)))
- });
- group.bench_with_input("worst", &worst_sample, |b, sample| {
- b.iter(|| sample.iter_chars().take(100).map(|ch| sample.contains(ch)))
- });
- group.finish();
-
- let mut group = c.benchmark_group("uniset/contains_range");
- group.bench_with_input("best", &best_sample, |b, sample| {
- b.iter(|| sample.iter_chars().map(|ch| sample.contains_range('A'..ch)))
- });
- group.bench_with_input("worst", &worst_sample, |b, sample| {
- b.iter(|| {
- sample
- .iter_chars()
- .take(100)
- .map(|ch| sample.contains_range(char::from_u32(0x0).unwrap()..ch))
- })
- });
- group.finish();
- }
-}
-
-criterion_group!(benches, uniset_bench);
-criterion_main!(benches);
diff --git a/deps/crates/vendor/icu_collections-v2/benches/tries/gc_fast.rs b/deps/crates/vendor/icu_collections-v2/benches/tries/gc_fast.rs
deleted file mode 100644
index ba98a40f78e..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/tries/gc_fast.rs
+++ /dev/null
@@ -1,1128 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use icu_collections::codepointtrie::{CodePointTrieHeader, TrieType};
-use zerovec::ule::AsULE;
-use zerovec::{zerovec, ZeroVec};
-
-#[rustfmt::skip]
-pub const INDEX: ZeroVec<u16> = zerovec!(u16; <u16 as AsULE>::ULE::from_unsigned;
- [
- 0,0x40,0x7f,0xbf,0xff,0x12e,0x16d,0x1ad,0x1e5,0x224,0x250,0x28e,0x2ce,0x2de,0x31e,0x34f,
- 0x38c,0x3bc,0x3fa,0x43a,0x44a,0x47b,0x4b2,0x4f2,0x532,0x572,0x5a3,0x5cf,0x60f,0x644,0x65e,0x69e,
- 0x6de,0x71e,0x756,0x78d,0x7ca,0x809,0x848,0x887,0x8c6,0x905,0x944,0x983,0x9c3,0xa01,0xa3f,0xa7f,
- 0xabf,0xafe,0xb3e,0xb7e,0xbbe,0xbfd,0xc3d,0xc7d,0xcbc,0xcfc,0xd3b,0xd7b,0xdbb,0xdfb,0xe3b,0xe79,
- 0xeb9,0xef9,0xf37,0xf71,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xfb1,0xfe8,0x1026,0x1055,0x107a,0x10ba,0x10da,
- 0x111a,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x112d,0x116d,0x118d,0x11cd,0x120d,0x124d,0x128b,
- 0x12cb,0x1308,0x1348,0x1378,0x13b8,0x13f8,0x1438,0x146e,0x14ae,0x14d9,0x1519,0x1558,0x1598,0x15d6,0x1616,0x1650,
- 0x1690,0x16d0,0x1710,0x1750,0x1790,0x17bc,0x17a1,0x2ce,0x17fc,0x17fc,0x1826,0x17fc,0x1865,0x18a5,0x18e5,0x1924,
- 0x1964,0x19a3,0x19e3,0x1a22,0x1a62,0x1aa2,0x1adf,0x1b11,0x1b45,0x1b45,0x1b45,0x1b45,0x1b85,0x1bb0,0x1bed,0x1c21,
- 0x1c43,0x1c83,0x1ca7,0x1cc3,0x1d03,0x1d03,0x1bb5,0x1d42,0x1d03,0x1bbd,0x1d03,0x1d03,0x1d03,0x1d82,0x1cef,0x1dc2,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x1b45,0x1b45,0x1dff,0x1e27,0x1b45,0x1b45,0x1b45,0x1b45,0x1e67,0x1ea2,0x1ed8,0x1d03,
- 0x38c,0x1f18,0x17fc,0x1f57,0x1f97,0x1fc7,0x2007,0x2027,0x2067,0x20a7,0x20e7,0x2102,0x1d03,0x1d03,0x1d03,0x2120,
- 0x2160,0x21a0,0x21c9,0x21ea,0x222a,0x5a3,0x225b,0x229b,0x22db,0x2313,0x2329,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3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0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,0x29f6,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x2a76,0x5a3,0x2aa6,0x2ae6,0x2b26,0x2b34,0x2b71,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x2b84,0x2bc4,0x2bf4,0x2c2c,0x2c6c,0x2ca8,0x5a3,0x2cde,0x2d1e,0x2d5e,0x2d8f,0x2dce,
- 0xac0,0xade,0xafb,0xb1a,0xb3a,0xb3a,0xb47,0xb64,0xb84,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,
- 0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0xb8e,0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3,0x2f3f,0x5a3,0x2f4f,0x5a3,0x50e,0x1c9c,0xd18,0xd18,0xd18,0x5a3,0x2f5f,
- 0x5a3,0x2f6f,0x5a3,0x2f7f,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x2f8f,0x10a3,0x1ca1,0x10a3,0x10a3,
- 0x2f9e,0x94e,0x5a3,0x2fae,0x2e6a,0x2fbe,0x5a3,0x2fce,0x5a3,0x2fde,0xd18,0xd18,0x2fee,0x5a3,0x2ff9,0x3009,
- 0x5a3,0x5a3,0x5a3,0x3019,0x5a3,0x3029,0x5a3,0x3039,0x5a3,0x3049,0x1c9a,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x1338,0xd18,0xd18,0xd18,0x41,0x41,0x41,0x3059,0x28fd,0x28fd,0x28fd,0x3069,
- 0x5a3,0x5a3,0x3079,0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x10a3,0x10a8,0x5a3,0x5a3,0x3089,0xd99,0xd18,0xd18,0xd18,0xd18,0x5a3,0x2fde,0x3099,0x5a3,0x577,0x30a9,
- 0xd18,0x5a3,0x30b9,0xd18,0xd18,0x5a3,0x30c9,0xd18,0x5a3,0x13a7,0x281b,0x5a3,0x5a3,0x575,0x30d9,0x1ca1,
- 0x30e9,0x30f9,0x7cb,0x5a3,0x5a3,0x3109,0x3117,0x5a3,0x1338,0xb24,0x773,0x5a3,0x3127,0x3134,0x3144,0x5a3,
- 0x5a3,0x3154,0x7cb,0x5a3,0x5a3,0x3164,0x3173,0x3183,0x1ca2,0x3193,0x5a3,0x954,0x31a3,0x31b2,0xd18,0xd18,
- 0xd18,0xd18,0x31c2,0x863,0x31d1,0x5a3,0x5a3,0x630,0x31e1,0xb24,0x31f1,0x858,0x868,0x3200,0x3210,0x3220,
- 0x322e,0x1562,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x323e,0x324e,0x325e,
- 0xd99,0xd18,0x5a3,0x5a3,0x5a3,0x326e,0x327d,0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x5a3,0x5a3,0xed5,0x328d,0x329c,0x32a4,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x32b4,0x32c3,0xb24,
- 0x32d3,0xd18,0x5a3,0x5a3,0x32e3,0x32f3,0xb24,0xd18,0xd18,0xd18,0x5a3,0x108a,0x3303,0x3313,0x13a7,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x31a3,0x3323,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0x41,0x41,0x28fd,0x28fd,0xc23,0x3333,0x3342,0x334e,0x5a3,0x335e,0x336e,0xb24,
- 0xd18,0xd18,0xd18,0xd18,0x2a9c,0x5a3,0x5a3,0x337e,0x338e,0xd18,0x339e,0x5a3,0x5a3,0x33ab,0x33ba,0x33ca,
- 0x5a3,0x5a3,0x573,0x33da,0x33e8,0x5a3,0x5a3,0x5a3,0x5a3,0x1338,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x868,0x5a3,0xed5,0x33f8,0x3408,0xc23,
- 0x10aa,0x550,0x5a3,0xe2a,0x3418,0x3427,0xd18,0xd18,0xd18,0xd18,0x96e,0x5a3,0x5a3,0x3437,0x3446,0xb24,
- 0x3456,0x5a3,0x3460,0x3470,0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0x5a3,0x3480,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x993,0x10a3,0x3490,0x349f,0x34ad,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x1337,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x1ac2,0x1ac2,0x1ac2,0x1ac2,0x1ac2,0x1ac2,0x34bd,0x34cd,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd97,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x34dd,0x5a3,0x5a3,0x50e,0x34ed,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0x13a7,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0x5a3,0x5a3,0x5a3,0x1338,0x5a3,0x50e,0x2770,0x5a3,0x5a3,0x5a3,0x5a3,0x50e,0xb24,0x5a3,0x50f,
- 0x34fd,0x5a3,0x5a3,0x5a3,0x350d,0x351d,0x352d,0x353b,0x741,0x5a3,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0x41,0x41,0x28fd,0x28fd,0x10a3,0x354b,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,
- 0x5a3,0xe1d,0x355b,0x355c,0x355c,0x3564,0x3573,0xd18,0xd18,0xd18,0xd18,0x3581,0x3591,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x13a6,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x13a8,0xd18,0xd18,0x1338,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x35a1,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0xd98,0xd18,0xd18,0xd98,0x2ed1,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x511,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x73e,0x510,0x1338,0x35b1,0x35c1,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x2ce,0x2ce,0x641,0x2ce,0x1560,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1c66,0xd18,0xd18,0xd18,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x1c64,0x1d03,0x1d03,0x1ecf,0x1d03,0x1d03,0x1d03,0x35d1,0x35de,0x35eb,0x1d03,0x35f7,
- 0x1d03,0x1d03,0x1d03,0x1c5f,0xd18,0x1d03,0x1d03,0x1d03,0x1d03,0x3605,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0x10a3,0x3615,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1c63,0x10a3,0x2e6a,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x41,0x3b2,0x28fd,0x3625,0x3ae,0x2ef0,0x1865,0x41,0xdc,0x3635,0x3645,
- 0x3653,0x2ef1,0x41,0x3b2,0x28fd,0x3660,0x366d,0x28fd,0x367b,0x368b,0x369a,0x369e,0x41,0xd8,0x28fd,0x41,
- 0x3b2,0x28fd,0x3625,0x3ae,0x28fd,0x1865,0x41,0xdc,0x369e,0x41,0xd8,0x28fd,0x41,0x3b2,0x28fd,0x36ae,
- 0x41,0x36bd,0xeb,0x38a,0x36cd,0x28fd,0x36d9,0x41,0x36b9,0xe7,0x36c7,0xc7,0x28fd,0xed,0x41,0x36e5,
- 0x28fd,0x36f2,0x3700,0x3700,0x3700,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x2ce,0x2ce,0x2ce,0x3710,0x2ce,0x2ce,0x371b,0x3728,0x3734,0x1a27,0x4c2,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x25a,0x1fae,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xe4c,0x3744,0x3752,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x510,0x3762,0x3772,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x3782,0xd18,0x5a3,0x5a3,0x633,0x3792,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x37a2,0x50e,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x37b2,0x1560,0xd18,0xd18,0x41,0x41,0xdc,0x28fd,
- 0x37c2,0x2770,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x1ca2,0x10a3,0x10a3,0x37d2,
- 0x37e2,0xd18,0xd18,0xd18,0xd18,0x1ca2,0x10a3,0x37f2,0x10a9,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xae4,0x5a3,0x3802,0x380f,0x381d,0x382d,0x383b,0x3843,0x867,0x511,0x3852,
- 0x511,0xd18,0xd18,0xd18,0x3862,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x1d03,0x1d03,0x1c5e,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1c66,0x1c5b,
- 0x148b,0x148b,0x148b,0x1d03,0x1c64,0x1cb6,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1c5c,
- 0xd18,0xd18,0xd18,0x1c7d,0x1d03,0x1c67,0x1d03,0x1d03,0x1c5e,0x1c61,0x1c68,0x1c64,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x3872,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x3882,0x1c5d,0x1c5d,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1c66,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1c61,0x1c5e,0x1c69,0x1c5e,0x1d03,0x1d03,0x1d03,0x1c62,0x10ca,0x1d03,0x1d03,0x1c62,0x1d03,0x1c5c,
- 0x1c68,0xd18,0xd18,0xd18,0xd18,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,
- 0x1d03,0x1d03,0x1d03,0x1d03,0x1d03,0x1c66,0x1c5c,0x388f,0x1c63,0x1d03,0x1c5d,0x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0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x73e,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x389e,0xd18,0x38ae,0x38ae,0x38ae,0x38ae,0x38ae,0x38ae,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0xd18,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,
- 0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x2a36,0x38be,
- 0x440,0x460,0x480,0x4a0,0x4c0,0x4e0,0x500,0x51a,0x53a,0x55a,0x57a,0x59a,0x5ba,0x5da,0x5fa,0x615,
- 0xd0,0x635,0x655,0x66a,0x66a,0x66a,0x66a,0x671,0xd0,0xd0,0x691,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0xd0,0x6b1,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0x66a,0x66a,0xd0,0x6d1,0x66a,0x6ed,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0x70d,0xd0,
- 0xd0,0x72d,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0x66a,0x66a,0x73e,0x75e,0x775,0x66a,0x66a,0x66a,0x66a,0x795,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0x66a,0x7a5,0x7c5,0x7e5,0x805,0x825,0x845,0x865,0x66a,0x875,0x895,0x8ac,0x66a,0x8bc,0x8dc,0x66a,
- 0x8f5,0x915,0x935,0x955,0x845,0x975,0x995,0x9b0,0x66a,0x66a,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0x9d0,0xd0,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0x9e0,0x9ff,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xa15,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xa20,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0xd0,0xa40,0x66a,0x66a,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xa60,0x66a,0x66a,
- 0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0xa80,0x66a,
- 0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,
- 0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x66a,0x380,0x380,
- 0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,
- 0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,0x380,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,1,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,0,0,2,2,2,2,2,2,2,2,3,3,3,
- 3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,
- 3,3,3,3,3,2,2,2,2,2,2,2,2,3,3,3,
- 3,3,3,3,3,2,2,2,2,2,0,2,2,1,1,1,
- 1,3,0x1a,2,0x1a,0x1a,2,2,2,0,2,2,1,1,1,1,
- 3,0x1a,0x1a,0x1a,2,2,2,2,0,0,2,2,1,1,1,1,
- 0,0x1a,0x1a,0x1a,2,2,2,2,2,2,2,2,1,1,1,1,
- 1,0x1a,0x1a,0x1a,0,0,2,2,2,0,2,2,1,1,1,1,
- 3,0x1a,0x1a,0,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0x10,
- 0x10,0x10,0x10,0x10,0x13,0x13,0x13,0x13,0x13,0x13,0x17,0x17,0x1c,0x1d,0x14,0x1c,
- 0x1c,0x1d,0x14,0x1c,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0xd,0xe,0x10,0x10,
- 0x10,0x10,0x10,0xc,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x1c,0x1d,0x17,
- 0x17,0x17,0x17,0x16,0x17,0x17,0x17,0x18,0x14,0x15,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x17,0x17,0x17,0x17,0x17,0x18,0x17,0x16,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x17,0x17,0xc,0x10,0x10,0x10,0x10,0x10,0,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
- 0x10,0x10,0x10,0xb,4,0,0,0xb,0xb,0xb,0xb,0xb,0xb,0x18,0x18,0x18,
- 0x14,0x15,4,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0x18,0x18,0x18,
- 0x14,0x15,0,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 0,0,0,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,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x15,0x14,0x15,0x14,0x15,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xb,0xb,0x18,0x18,0x18,0x18,0x18,0x14,0x15,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,
- 0x14,0x15,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,
- 0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x14,
- 0x15,0x14,0x15,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x18,0x18,0x18,0x14,0x15,0x18,0x18,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x18,0x18,0x18,0x18,0x18,0x18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5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,0,0,0,0,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,0,0,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,2,2,2,2,2,2,2,0,0,0,
- 0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,
- 0,0,0,5,6,5,5,5,5,5,5,5,5,5,5,0x18,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,0,5,5,
- 5,5,5,0,5,0,5,5,0,5,5,0,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,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0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0,0
- ]
-);
-
-pub static HEADER: CodePointTrieHeader = CodePointTrieHeader {
- high_start: 0x110000,
- shifted12_high_start: 0x110,
- trie_type: TrieType::Fast,
- index3_null_offset: 0x66a,
- data_null_offset: 0xd18,
- null_value: 0x0,
-};
diff --git a/deps/crates/vendor/icu_collections-v2/benches/tries/gc_small.rs b/deps/crates/vendor/icu_collections-v2/benches/tries/gc_small.rs
deleted file mode 100644
index da297a2d4c6..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/tries/gc_small.rs
+++ /dev/null
@@ -1,865 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use icu_collections::codepointtrie::{CodePointTrieHeader, TrieType};
-use zerovec::ule::AsULE;
-use zerovec::{zerovec, ZeroVec};
-
-#[rustfmt::skip]
-pub const INDEX: ZeroVec<u16> = zerovec!(u16; <u16 as AsULE>::ULE::from_unsigned;
- [
- 0,0x40,0x7f,0xbf,0xff,0x12e,0x16d,0x1ad,0x1e5,0x224,0x250,0x28e,0x2ce,0x2de,0x31e,0x34f,
- 0x38c,0x3bc,0x3fa,0x43a,0x44a,0x47b,0x4b2,0x4f2,0x532,0x572,0x5a3,0x5cf,0x60f,0x644,0x65e,0x69e,
- 0x6de,0x71e,0x756,0x78d,0x7ca,0x809,0x848,0x887,0x8c6,0x905,0x944,0x983,0x9c3,0xa01,0xa3f,0xa7f,
- 0xabf,0xafe,0xb3e,0xb7e,0xbbe,0xbfd,0xc3d,0xc7d,0xcbc,0xcfc,0xd3b,0xd7b,0xdbb,0xdfb,0xe3b,0xe79,
- 0xbbd,0xbd7,0xbe7,0xbfd,0xc1d,0xc3b,0xc58,0xc77,0xc97,0xc97,0xca4,0xcc1,0xce1,0xceb,0xceb,0xceb,
- 0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,
- 0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,
- 0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xceb,0xd0b,0xceb,0xceb,0xceb,0xd2b,0xd2b,0xd2b,0xd2c,
- 0xd2b,0xd2b,0xd2b,0xd2c,0,0x10,0x20,0x30,0x40,0x50,0x60,0x70,0x7f,0x8f,0x9f,0xaf,
- 0xbf,0xcf,0xdf,0xef,0xff,0x10f,0x11f,0x12f,0x12e,0x13e,0x14e,0x15e,0x16d,0x17d,0x18d,0x19d,
- 0x1ad,0x1bd,0x1cd,0x1dd,0x1e5,0x1f5,0x205,0x215,0x224,0x234,0x244,0x254,0x250,0x260,0x270,0x280,
- 0x28e,0x29e,0x2ae,0x2be,0x2ce,0x2de,0x2ee,0x2fe,0x2de,0x2ee,0x2fe,0x30e,0x31e,0x32e,0x33e,0x34e,
- 0x34f,0x35f,0x36f,0x37f,0x38c,0x39c,0x3ac,0x3bc,0x3bc,0x3cc,0x3dc,0x3ec,0x3fa,0x40a,0x41a,0x42a,
- 0x43a,0x44a,0x45a,0x46a,0x44a,0x45a,0x46a,0x47a,0x47b,0x48b,0x49b,0x4ab,0x4b2,0x4c2,0x4d2,0x4e2,
- 0x4f2,0x502,0x512,0x522,0x532,0x542,0x552,0x562,0x572,0x582,0x592,0x5a2,0x5a3,0x5b3,0x5c3,0x5d3,
- 0x5cf,0x5df,0x5ef,0x5ff,0x60f,0x61f,0x62f,0x63f,0x644,0x654,0x664,0x674,0x65e,0x66e,0x67e,0x68e,
- 0x69e,0x6ae,0x6be,0x6ce,0x6de,0x6ee,0x6fe,0x70e,0x71e,0x72e,0x73e,0x74e,0x756,0x766,0x776,0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3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0xfc0,0x5a3,0xfd0,0xfd5,0x5a3,0x5a3,0x5a3,0x5a3,0xfe5,0xff4,0x5a3,0x1004,0x5a3,0x1013,0x5a3,0x1023,
- 0x864,0x1033,0x5a3,0x5a3,0x5a3,0x1043,0x1051,0x105d,0xb24,0x106d,0x107d,0xb24,0x5a3,0x5a3,0x108d,0x5a3,
- 0x5a3,0x1094,0x10a4,0x5a3,0x10ab,0x5a3,0x5a3,0x5a3,0x5a3,0x10bb,0x5a3,0x50e,0x10cb,0x10db,0x10eb,0x5a3,
- 0x50f,0x10fb,0x5a3,0x5a3,0x511,0x5a3,0x1093,0x110b,0x1119,0x1119,0x5a3,0x1129,0x5a3,0x5a3,0x5a3,0x1139,
- 0x1149,0x1156,0xb24,0xb24,0x1166,0x1176,0x640,0xd18,0xd18,0xd18,0x7c9,0x5a3,0x5a3,0x1186,0x1194,0xed8,
- 0x11a4,0x11b0,0x7cb,0x5a3,0x11c0,0x69e,0x5a3,0x5a3,0x11ce,0x11dd,0x5a3,0x5a3,0x11ed,0x11f9,0x1209,0x69e,
- 0x5a3,0x1216,0x1226,0x41,0x41,0x1236,0x1246,0x1256,0x1265,0x126e,0x61,0x61,0x274,0x280,0x280,0x280,
- 0x127e,0x1289,0x61,0x275,0x280,0x280,0x2ce,0x2ce,0x2ce,0x2ce,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0x1299,0xff,0xff,0xff,0xff,0xff,0xff,0x12a8,0x12b8,0x12a8,0x12a8,0x12b8,0x12c8,
- 0x12a8,0x12d8,0x12e8,0x12e8,0x12e8,0x12f8,0x1307,0x1317,0x1327,0x1337,0x1347,0x1357,0x1367,0x1377,0x1386,0x1394,
- 0x13a4,0x13b4,0x13c4,0x13d4,0x13e4,0x13e4,0x13f3,0x1403,0x1412,0x1421,0x1431,0x1441,0x144f,0x145f,0x146f,0x147f,
- 0x148f,0x148f,0x149c,0x14ac,0x14bc,0x1119,0x14cb,0x14db,0x1119,0x14e7,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,
- 0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14fb,0x1119,0x150b,0x1119,0x1119,0x1119,
- 0x1119,0x1516,0x1119,0x14e0,0x14eb,0x1526,0x1119,0x152a,0x1538,0x1119,0x1119,0x1541,0xd18,0x153d,0xd18,0x147f,
- 0x147f,0x147f,0x1551,0x1119,0x1119,0x1119,0x1119,0x155d,0x147f,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x14c3,0x14c9,0x1119,0x1119,0x14e3,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x156d,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x157d,
- 0x1587,0x147f,0x1569,0x1119,0x1119,0x1597,0x14eb,0x15a1,0x14eb,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,
- 0x14eb,0x15a4,0x15ac,0x14eb,0x14eb,0x14eb,0x15b5,0x14eb,0x15c1,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,
- 0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x14eb,0x1119,0x1119,0x1119,0x14eb,0x15cf,0x1119,0x1119,
- 0x15dc,0x1119,0x15e6,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x41,0x41,0x41,0x61,0x61,0x61,0x15f6,
- 0x1605,0xff,0xff,0xff,0xff,0xff,0xff,0x1614,0x1623,0x61,0x61,0x1633,0x5a3,0x5a3,0x5a3,0x1643,
- 0x1653,0x5a3,0x1663,0x86a,0x86a,0x86a,0x86a,0x2ce,0x2ce,0x1673,0x1681,0x1691,0x16a1,0x16b1,0x16c1,0xd18,
- 0xd18,0x1119,0x15e2,0x1119,0x1119,0x1119,0x1119,0x1119,0x16d1,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x16e1,0xd18,0x153c,0x16f1,0x16ff,0x170f,0x171f,0x501,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x172f,0xfbd,0x5a3,0x5a3,0x5a3,0x5a3,0x173e,0x4fd,0x5a3,0x5a3,0x501,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x50e,0x174e,0x5a3,0x5a3,0x1119,0x1119,0x16d1,0x5a3,0x1119,0x1754,0x1553,0x1119,0x1764,0x147e,0x1119,
- 0x1119,0x1553,0x1119,0x1119,0x147e,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x1119,0x1119,0x1119,0x1119,0x5a3,0x56d,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x510,0x1119,0x1119,
- 0x1119,0x1541,0x5a3,0x5a3,0x1216,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x1774,0x5a3,0x1784,0xd18,0xff,0xff,0x1794,0x17a4,0xff,0x17b4,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x17c4,0x17d4,0x2bd,0x17e4,0x17f4,0xfd,0xff,0xff,0xff,0x1804,0x1812,0x1822,0x1828,
- 0x1832,0x183e,0x184e,0xd18,0x185c,0x186a,0x5a3,0x1877,0x1887,0x5a3,0x5a3,0x5a3,0x1897,0x18a7,0x5a3,0x5a3,
- 0x18b3,0x18bf,0xb24,0x2ce,0x18cf,0x69e,0x5a3,0x18df,0x5a3,0x576,0x18ef,0x5a3,0x510,0x7ca,0x5a3,0x5a3,
- 0x18ff,0x190e,0x191e,0x192e,0x10f1,0x5a3,0x5a3,0x1935,0x1944,0x1954,0x1964,0x5a3,0x1974,0x5a3,0x5a3,0x5a3,
- 0x1984,0x1994,0x1999,0x19a9,0x19b9,0x19c8,0x10ba,0x86a,0x61,0x61,0x19d8,0x19e8,0x61,0x61,0x61,0x61,
- 0x61,0x5a3,0x5a3,0x19f8,0xb24,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd97,
- 0x5a3,0x1a08,0x5a3,0x5a3,0x511,0x1a18,0x1a18,0x1a18,0x1a18,0x1a18,0x1a18,0x1a18,0x1a18,0x1a18,0x1a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x1de8,0x5a3,0x1df8,0x1548,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x1094,0xd18,0xd18,0xd18,0x41,0x41,0x41,0x1e08,0x61,0x61,0x61,0x1e18,0x5a3,0x5a3,0x1e28,
- 0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x147f,0x1bed,0x5a3,
- 0x5a3,0x1e38,0xd99,0xd18,0xd18,0xd18,0xd18,0x5a3,0x1d8d,0x1e48,0x5a3,0x577,0x1e58,0xd18,0x5a3,0x1e68,
- 0xd18,0xd18,0x5a3,0x1e78,0xd18,0x5a3,0x1663,0x1e88,0x5a3,0x5a3,0x575,0x1e98,0x1d3d,0x1ea8,0x1eb8,0x7cb,
- 0x5a3,0x5a3,0x1ec8,0x1ed6,0x5a3,0x1094,0xb24,0x773,0x5a3,0x1ee6,0x1ef3,0x1f03,0x5a3,0x5a3,0x1f13,0x7cb,
- 0x5a3,0x5a3,0x1f23,0x1f32,0x1f42,0x1f52,0x1f5d,0x5a3,0x954,0x1f6d,0x1f7c,0xd18,0xd18,0xd18,0xd18,0x1f8c,
- 0x863,0x1f9b,0x5a3,0x5a3,0x630,0x1fab,0xb24,0x1fbb,0x858,0x868,0x1fca,0x1fda,0x1fea,0x1ff8,0x141d,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x2008,0x2018,0x2028,0xd99,0xd18,0x5a3,
- 0x5a3,0x5a3,0x2038,0x2047,0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,
- 0x5a3,0x2057,0x2066,0x2075,0x207d,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x208d,0x209c,0xb24,0x20ac,0xd18,0x5a3,
- 0x5a3,0x20bc,0x20cc,0xb24,0xd18,0xd18,0xd18,0x5a3,0xf74,0x20dc,0x20ec,0x1663,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x1f6d,0x20fc,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0x41,0x41,0x61,0x61,0xc23,0x210c,0x211b,0x2127,0x5a3,0x2137,0x2147,0xb24,0xd18,0xd18,0xd18,
- 0xd18,0x2157,0x5a3,0x5a3,0x2166,0x2176,0xd18,0x2186,0x5a3,0x5a3,0x2193,0x21a2,0x21b2,0x5a3,0x5a3,0x573,
- 0x21c2,0x21d0,0x5a3,0x5a3,0x5a3,0x5a3,0x1094,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x868,0x5a3,0x2057,0x21e0,0x21f0,0xc23,0xf8d,0x550,0x5a3,
- 0xe2a,0x2200,0x220f,0xd18,0xd18,0xd18,0xd18,0x96e,0x5a3,0x5a3,0x221f,0x222e,0xb24,0x223e,0x5a3,0x2248,
- 0x2258,0xb24,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x5a3,0x2268,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x993,0x147f,0x2278,
- 0x2287,0x2295,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x1093,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x148f,0x148f,0x148f,0x148f,0x148f,0x148f,0x22a5,0x22b5,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd97,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x22c5,0x5a3,0x5a3,
- 0x50e,0x22d5,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x1663,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,
- 0x5a3,0x1094,0x5a3,0x50e,0x191e,0x5a3,0x5a3,0x5a3,0x5a3,0x50e,0xb24,0x5a3,0x50f,0x22e5,0x5a3,0x5a3,
- 0x5a3,0x22f5,0x2305,0x2315,0x2323,0x741,0x5a3,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x41,0x41,
- 0x61,0x61,0x147f,0x2333,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0xe1d,0x2343,
- 0x2344,0x2344,0x234c,0x235b,0xd18,0xd18,0xd18,0xd18,0x2369,0x2379,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x1c6f,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x10bb,0xd18,0xd18,0x1094,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x2389,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd98,0xd18,0xd18,
- 0xd98,0x2398,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x511,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x73e,0x510,0x1094,0x23a8,0x23b8,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x2ce,0x2ce,0x641,0x2ce,0x141b,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x16d1,0xd18,
- 0xd18,0xd18,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x16e1,0x1119,0x1119,0x23c8,0x1119,0x1119,0x1119,0x23d3,0x23e0,0x23ed,0x1119,0x23f9,0x1119,0x1119,0x1119,
- 0x153d,0xd18,0x1119,0x1119,0x1119,0x1119,0x2407,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0x147f,0x2417,0x1119,0x1119,0x1119,0x1119,0x1119,0x1541,0x147f,0x1bf3,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x41,0x3b2,0x61,0x2427,0x3ae,0x1c8e,0x12a8,0x41,0xdc,0x2437,0x2447,0x2455,0x1c8f,0x41,
- 0x3b2,0x61,0x2462,0x246f,0x61,0x247d,0x248d,0x249c,0x24a0,0x41,0xd8,0x61,0x41,0x3b2,0x61,0x2427,
- 0x3ae,0x61,0x12a8,0x41,0xdc,0x24a0,0x41,0xd8,0x61,0x41,0x3b2,0x61,0x24b0,0x41,0x24bf,0xeb,
- 0x38a,0x24cf,0x61,0x24db,0x41,0x24bb,0xe7,0x24c9,0xc7,0x61,0xed,0x41,0x24e7,0x61,0x24f4,0x2502,
- 0x2502,0x2502,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x2ce,0x2ce,0x2ce,0x2512,0x2ce,0x2ce,0x251d,0x252a,0x2536,0x13f8,0x4c2,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x25a,0x2546,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xe4c,0x2556,0x2564,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x5a3,0x5a3,0x510,0x2574,0x2584,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x5a3,0x2594,0xd18,0x5a3,0x5a3,0x633,0x25a4,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x25b4,0x50e,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x25c4,0x141b,0xd18,0xd18,0x41,0x41,0xdc,0x61,0x25d4,0x191e,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x1f52,0x147f,0x147f,0x25e4,0x25f4,0xd18,0xd18,
- 0xd18,0xd18,0x1f52,0x147f,0x2604,0x1bee,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xae4,0x5a3,0x2614,0x2621,0x262f,0x263f,0x264d,0x2655,0x867,0x511,0x2664,0x511,0xd18,0xd18,
- 0xd18,0x2674,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x1119,0x1119,0x153c,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x16d1,0x1754,0x1118,0x1118,0x1118,
- 0x1119,0x16e1,0x2684,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x153a,0xd18,0xd18,0xd18,
- 0x1bd6,0x1119,0x1bca,0x1119,0x1119,0x153c,0x153f,0x1bcb,0x16e1,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x2691,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x26a1,
- 0x153b,0x153b,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x16d1,0x1119,0x1119,0x1119,0x1119,0x1119,0x153f,
- 0x153c,0x1bcc,0x153c,0x1119,0x1119,0x1119,0x1540,0xf9d,0x1119,0x1119,0x1540,0x1119,0x153a,0x1bcb,0xd18,0xd18,
- 0xd18,0xd18,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x16d1,0x153a,0x26ae,0x1541,0x1119,0x153b,0x153d,0x16e1,0xf9d,0x1540,0x1541,0x1119,0x1119,0x1119,
- 0x1119,0x1119,0x1119,0x1119,0x1119,0x1119,0x26be,0x1119,0x1119,0x153d,0xd18,0xd18,0xb24,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd18,0xd18,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x1094,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x50f,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0xd99,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x993,0xd18,0x5a3,0x50f,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,
- 0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,0x5a3,
- 0x5a3,0x73e,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x26ce,0xd18,0x26de,
- 0x26de,0x26de,0x26de,0x26de,0x26de,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0xd18,0x2ce,0x2ce,0x2ce,
- 0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0x2ce,0xd18,0x1a28,0x1a28,0x1a28,
- 0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,
- 0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x1a28,0x26ee,0x84,0xa4,0xc4,
- 0xe4,0x104,0x124,0x144,0x164,0x184,0x1a0,0x1c0,0x1da,0x1fa,0x21a,0x23a,0x25a,0x27a,0x29a,0x2b9,
- 0x2d9,0x2f9,0x319,0x339,0x359,0x379,0x399,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3bd,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3dd,0x3b9,0x3f5,0x415,0x435,0x455,0x3b9,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x475,0x495,0x495,0x495,0x495,0x4b5,0x4b5,0x4b5,
- 0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4c5,0x4df,0x4fd,0x51d,0x53d,0x55d,0x57d,
- 0x59d,0x5bd,0x5dd,0x5fd,0x617,0x637,0x657,0x677,0x697,0x6b7,0x6d7,0x6f7,0x712,0x3b9,0x732,0x752,
- 0x767,0x767,0x767,0x767,0x76e,0x3b9,0x3b9,0x78e,0x767,0x767,0x767,0x767,0x767,0x3b9,0x7ae,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x3b9,
- 0x7ce,0x767,0x7ea,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x80a,0x3b9,0x3b9,0x82a,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x83b,
- 0x85b,0x872,0x767,0x767,0x767,0x767,0x892,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x8a2,0x8c2,
- 0x8e2,0x902,0x922,0x942,0x962,0x767,0x972,0x992,0x9a9,0x767,0x9b9,0x9d9,0x767,0x9f2,0xa12,0xa32,
- 0xa52,0x942,0xa72,0xa92,0xaad,0x767,0x767,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0xacd,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0xadd,
- 0xafc,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0xb12,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,
- 0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0xb1d,0x767,0x767,0x767,0x767,0x767,0x767,0x3b9,0xb3d,0x767,
- 0x767,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0x3b9,0xb5d,0x767,0x767,0x767,0x767,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0xb7d,0x767,0x767,0x767,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,
- 0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x767,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,
- 0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,
- 0x4b5,0x4b5,0x4b5,0x4b5,0x4b5,0x4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0x10,0x10,0x10,0x10,0x13,0x13,0x13,0x13,0x13,0x13,0x17,0x17,0x1c,
- 0x1d,0x14,0x1c,0x1c,0x1d,0x14,0x1c,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0xd,
- 0xe,0x10,0x10,0x10,0x10,0x10,0xc,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x1c,0x1d,0x17,0x17,0x17,0x17,0x16,0x17,0x17,0x17,0x18,0x14,0x15,0x17,0x17,0x17,
- 0x17,0x17,0x17,0x17,0x17,0x17,0x18,0x17,0x16,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x17,0x17,0x17,0xc,0x10,0x10,0x10,0x10,0x10,0,0x10,0x10,0x10,0x10,0x10,0x10,
- 0x10,0x10,0x10,0x10,0xb,4,0,0,0xb,0xb,0xb,0xb,0xb,0xb,0x18,0x18,
- 0x18,0x14,0x15,4,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0x18,0x18,
- 0x18,0x14,0x15,0,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,0,0,0,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,
- 0x19,0x19,0x19,0x19,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 7,7,7,6,7,7,7,6,6,6,6,6,6,6,6,6,
- 6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0x1b,0x1b,1,0x1b,0x1b,0x1b,0x1b,1,0x1b,0x1b,2,1,1,1,2,
- 2,1,1,1,2,0x1b,1,0x1b,0x1b,0x18,1,1,1,1,1,0x1b,
- 0x1b,0x1b,0x1b,1,0x1b,1,0x1b,1,0x1b,1,1,1,1,0x1b,2,1,
- 1,1,1,2,5,5,5,5,2,0x1b,0x1b,2,2,1,1,0x18,
- 0x18,0x18,0x18,0x18,1,2,2,2,2,0x1b,0x18,0x1b,0x1b,2,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,0x17,0x17,0x1c,0x1d,0x17,0x1c,
- 0x1d,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x13,0x17,0x17,0x13,0x17,0x1c,0x1d,0x17,
- 0x17,0x1c,0x1d,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x17,0x17,0x17,0x17,0x17,
- 4,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x13,0x13,0x17,0x17,0x17,
- 0x17,0x13,0x17,0x14,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x17,0x1b,0x1b,0x17,0x17,0x17,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x13,0,
- 0,0x1b,0x1b,0x1b,0x1b,0,0,0,0,0,0,0,0,0,0,0,
- 0,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0,0,0,0,0,0,0,0,0,
- 0,0xc,0x17,0x17,0x17,0x1b,4,5,0xa,0x14,0x15,0x14,0x15,0x14,0x15,0x14,
- 0x15,0x1b,0x1b,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x13,0x14,0x15,0x15,0x1b,
- 0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,6,6,6,6,8,8,0x13,
- 4,4,4,4,4,0x1b,0x1b,0xa,0xa,0xa,4,5,0x17,0x1b,0x1b,5,
- 5,5,5,5,5,5,0,0,6,6,0x1a,0x1a,4,4,5,5,
- 5,5,5,5,5,5,5,5,5,0x17,4,4,4,5,0x1b,0x1b,
- 0xb,0xb,0xb,0xb,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,5,5,5,5,5,5,5,5,5,5,5,5,
- 4,0x17,0x17,0x17,9,9,9,9,9,9,9,9,9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x14,5,5,5,5,5,5,5,
- 5,0,0,0,0,0,0,0,0x1b,5,5,5,5,5,5,5,
- 5,5,5,5,5,0x19,0x1b,0x1b,0x1b,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x14,0x15,0x17,0,0,0,0,0,0,0x17,0x13,0x13,0x16,0x16,0x14,0x15,
- 0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x14,0x15,0x17,0x17,0x14,0x15,0x17,0x17,
- 0x17,0x17,0x16,0x16,0x16,0x17,0x17,0x17,0,0x17,0x17,0x17,0x17,0x13,0x14,0x15,
- 0x14,0x15,0x14,0x15,0x17,0x17,0x18,0x13,0x18,0x18,0x18,0,0x17,0x19,0x17,0x17,
- 0,0,0,0,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,0,0,0x10,0,0x17,0x17,0x17,0x19,0x17,0x17,0x17,0x14,0x15,0x17,0x18,
- 0x17,0x13,0x17,0x17,2,2,2,2,2,2,2,2,2,2,2,0x14,
- 0x18,0x15,0x18,0x14,0x15,0x17,0x14,0x15,0x17,0x17,5,5,5,5,5,5,
- 5,5,5,5,4,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,4,4,0,0,5,5,5,5,5,5,0,0,
- 5,5,5,0,0,0,0x19,0x19,0x18,0x1a,0x1b,0x19,0x19,0,0x1b,0x18,
- 0x18,0x18,0x18,0x1b,0x1b,0,0,0,0,0,0,0,0,0,0x10,0x10,
- 0x10,0x1b,0x1b,0,0,5,5,5,5,5,5,5,5,5,5,5,
- 0,5,5,0,5,0x17,0x17,0x17,0,0,0,0,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xa,0xa,0xa,0xa,0xa,0xb,0xb,0xb,0xb,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0xb,0xb,0x1b,0x1b,0x1b,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0x1b,0x1b,0x1b,0x1b,
- 0x1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1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1a,0x1a,0x1a,0x1a,
- 0x1a,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0,0,0,0,0,0x1b,0x1b,
- 0x1b,0x1b,0x1b,0,0,0,0x1b,0x1b,0x1b,0x1b,0x1b,0,0,0,0x1b,0x1b,
- 0x1b,0,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0,0x10,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x10,0x10,
- 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x11,0x11,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0,0,0,0
- ]
-);
-
-pub static HEADER: CodePointTrieHeader = CodePointTrieHeader {
- high_start: 0x110000,
- shifted12_high_start: 0x110,
- trie_type: TrieType::Small,
- index3_null_offset: 0x767,
- data_null_offset: 0xd18,
- null_value: 0x0,
-};
diff --git a/deps/crates/vendor/icu_collections-v2/benches/tries/mod.rs b/deps/crates/vendor/icu_collections-v2/benches/tries/mod.rs
deleted file mode 100644
index 576516da5e4..00000000000
--- a/deps/crates/vendor/icu_collections-v2/benches/tries/mod.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-pub mod gc_fast;
-pub mod gc_small;
diff --git a/deps/crates/vendor/icu_collections-v2/src/char16trie/mod.rs b/deps/crates/vendor/icu_collections-v2/src/char16trie/mod.rs
deleted file mode 100644
index 1a4b66b9471..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/char16trie/mod.rs
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! This module provides a data structure for a space-efficient and time-efficient lookup of
-//! sequences of 16-bit units (commonly but not necessarily UTF-16 code units)
-//! which map to integer values.
-//!
-//! It is an implementation of the existing [ICU4C UCharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UCharsTrie.html)
-//! / [ICU4J CharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/util/CharsTrie.html) API.
-//!
-//! ## Architecture
-//!
-//! ICU4X [`Char16Trie`] is designed to provide a read-only view of `UCharsTrie` data that is exported from ICU4C.
-//!
-//! ## Examples
-//!
-//! ### Querying a `Char16Trie`
-//!
-//! ```rust
-//! use icu::collections::char16trie::{Char16Trie, TrieResult};
-//! use zerovec::ZeroVec;
-//!
-//! // A Char16Trie containing the ASCII characters mapping 'a' to 1 and 'ab'
-//! // to 100.
-//! let trie_data = [48, 97, 176, 98, 32868];
-//! let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(&trie_data));
-//!
-//! let mut iter = trie.iter();
-//! let res = iter.next('a');
-//! assert_eq!(res, TrieResult::Intermediate(1));
-//! let res = iter.next('b');
-//! assert_eq!(res, TrieResult::FinalValue(100));
-//! let res = iter.next('c');
-//! assert_eq!(res, TrieResult::NoMatch);
-//! ```
-//!
-//! [`ICU4X`]: ../icu/index.html
-
-mod trie;
-
-pub use trie::Char16Trie;
-pub use trie::Char16TrieIterator;
-pub use trie::TrieResult;
diff --git a/deps/crates/vendor/icu_collections-v2/src/char16trie/trie.rs b/deps/crates/vendor/icu_collections-v2/src/char16trie/trie.rs
deleted file mode 100644
index 668a0ca84bb..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/char16trie/trie.rs
+++ /dev/null
@@ -1,495 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use zerofrom::ZeroFrom;
-use zerovec::{ZeroSlice, ZeroVec};
-
-// Match-node lead unit values, after masking off intermediate-value bits:
-
-// 00..0f: Branch node. If node!=0 then the length is node+1, otherwise
-// the length is one more than the next byte.
-
-// For a branch sub-node with at most this many entries, we drop down
-// to a linear search.
-const MAX_BRANCH_LINEAR_SUB_NODE_LENGTH: usize = 5;
-
-// 0030..003f: Linear-match node, match 1..16 units and continue reading the next node.
-const MIN_LINEAR_MATCH: u16 = 0x30;
-const MAX_LINEAR_MATCH_LENGTH: u16 = 0x10;
-
-// Match-node lead unit bits 14..6 for the optional intermediate value.
-// If these bits are 0, then there is no intermediate value.
-// Otherwise, see the *NodeValue* constants below.
-const MIN_VALUE_LEAD: u16 = MIN_LINEAR_MATCH + MAX_LINEAR_MATCH_LENGTH; // 0x40
-const NODE_TYPE_MASK: u16 = MIN_VALUE_LEAD - 1; // 0x003f
-
-// A final-value node has bit 15 set.
-const VALUE_IS_FINAL: u16 = 0x8000;
-
-// Compact value: After testing bit 0, shift right by 15 and then use the following thresholds.
-const MAX_ONE_UNIT_VALUE: u16 = 0x3fff;
-
-const MIN_TWO_UNIT_VALUE_LEAD: u16 = MAX_ONE_UNIT_VALUE + 1; // 0x4000
-
-const MAX_ONE_UNIT_NODE_VALUE: u16 = 0xff;
-
-const MIN_TWO_UNIT_NODE_VALUE_LEAD: u16 = MIN_VALUE_LEAD + ((MAX_ONE_UNIT_NODE_VALUE + 1) << 6); // 0x4040
-
-const THREE_UNIT_NODE_VALUE_LEAD: u16 = 0x7fc0;
-
-const THREE_UNIT_VALUE_LEAD: u16 = 0x7fff;
-
-// Compact delta integers.
-const MAX_ONE_UNIT_DELTA: u16 = 0xfbff;
-const MIN_TWO_UNIT_DELTA_LEAD: u16 = MAX_ONE_UNIT_DELTA + 1; // 0xfc00
-const THREE_UNIT_DELTA_LEAD: u16 = 0xffff;
-
-fn skip_value(pos: usize, lead: u16) -> usize {
- if lead < MIN_TWO_UNIT_VALUE_LEAD {
- pos
- } else if lead < THREE_UNIT_VALUE_LEAD {
- pos + 1
- } else {
- pos + 2
- }
-}
-
-fn skip_node_value(pos: usize, lead: u16) -> usize {
- if lead < MIN_TWO_UNIT_NODE_VALUE_LEAD {
- pos
- } else if lead < THREE_UNIT_NODE_VALUE_LEAD {
- pos + 1
- } else {
- pos + 2
- }
-}
-
-/// This struct represents a de-serialized `Char16Trie` that was exported from
-/// ICU binary data.
-///
-/// Light-weight, non-const reader class for a `CharsTrie`. Traverses a
-/// char-serialized data structure with minimal state, for mapping 16-bit-unit
-/// sequences to non-negative integer values.
-///
-/// For more information:
-/// - [ICU4C UCharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UCharsTrie.html)
-/// - [ICU4J CharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/util/CharsTrie.html) API.
-#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
-#[cfg_attr(feature = "databake", derive(databake::Bake))]
-#[cfg_attr(feature = "databake", databake(path = icu_collections::char16trie))]
-#[derive(Clone, Debug, PartialEq, Eq, ZeroFrom)]
-#[allow(clippy::exhaustive_structs)] // effectively exhaustive, struct-constructible for baking
-pub struct Char16Trie<'data> {
- /// An array of u16 containing the trie data.
- #[cfg_attr(feature = "serde", serde(borrow))]
- #[doc(hidden)] // #2417
- pub data: ZeroVec<'data, u16>,
-}
-
-impl<'data> Char16Trie<'data> {
- /// Returns a new [`Char16Trie`] with ownership of the provided data.
- #[inline]
- pub fn new(data: ZeroVec<'data, u16>) -> Self {
- Self { data }
- }
-
- /// Returns a new [`Char16TrieIterator`] backed by borrowed data from the `trie` data
- #[inline]
- pub fn iter(&self) -> Char16TrieIterator<'_> {
- Char16TrieIterator::new(&self.data)
- }
-}
-
-/// This struct represents an iterator over a [`Char16Trie`].
-#[derive(Clone, Debug)]
-pub struct Char16TrieIterator<'a> {
- /// A reference to the [`Char16Trie`] data to iterate over.
- trie: &'a ZeroSlice<u16>,
- /// Index of next trie unit to read, or `None` if there are no more matches.
- pos: Option<usize>,
- /// Remaining length of a linear-match node, minus 1, or `None` if not in
- /// such a node.
- remaining_match_length: Option<usize>,
-}
-
-/// An enum representing the return value from a lookup in [`Char16Trie`].
-#[derive(Clone, Copy, Debug, PartialEq)]
-#[allow(clippy::exhaustive_enums)]
-pub enum TrieResult {
- /// The input unit(s) did not continue a matching string.
- /// Once `next()` returns `TrieResult::NoMatch`, all further calls to `next()`
- /// will also return `TrieResult::NoMatch`.
- NoMatch,
- /// The input unit(s) matched a string but there is no value for the string
- /// so far. (It is a prefix of a longer string.)
- NoValue,
- /// The input unit(s) continued a matching string and there is a value for
- /// the string so far. No further input byte/unit can continue a matching
- /// string.
- FinalValue(i32),
- /// The input unit(s) continued a matching string and there is a value for
- /// the string so far. Another input byte/unit can continue a matching
- /// string.
- Intermediate(i32),
-}
-
-// Get the lead surrogate (0xd800..0xdbff) for a
-// supplementary code point (0x10000..0x10ffff).
-// @param supplementary 32-bit code point (U+10000..U+10ffff)
-// @return lead surrogate (U+d800..U+dbff) for supplementary
-fn u16_lead(supplementary: i32) -> u16 {
- (((supplementary) >> 10) + 0xd7c0) as u16
-}
-
-// Get the trail surrogate (0xdc00..0xdfff) for a
-// supplementary code point (0x10000..0x10ffff).
-// @param supplementary 32-bit code point (U+10000..U+10ffff)
-// @return trail surrogate (U+dc00..U+dfff) for supplementary
-fn u16_tail(supplementary: i32) -> u16 {
- (((supplementary) & 0x3ff) | 0xdc00) as u16
-}
-
-/// A macro that takes an `Option` argument and either unwraps it if it has a value or
-/// causes the function to return `TrieResult::NoMatch` if there is no value.
-/// This could perhaps be done with `std::ops::Try` once stabilized.
-macro_rules! trie_unwrap {
- ($option:expr) => {
- match $option {
- Some(x) => x,
- None => {
- // Unexpected
- debug_assert!(false);
- return TrieResult::NoMatch;
- }
- }
- };
-}
-
-impl<'a> Char16TrieIterator<'a> {
- /// Returns a new [`Char16TrieIterator`] backed by borrowed data for the `trie` array
- #[inline]
- pub fn new(trie: &'a ZeroSlice<u16>) -> Self {
- Self {
- trie,
- pos: Some(0),
- remaining_match_length: None,
- }
- }
-
- /// Traverses the trie from the current state for this input char.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::char16trie::{Char16Trie, TrieResult};
- /// use zerovec::ZeroVec;
- ///
- /// // A Char16Trie containing the ASCII characters 'a' and 'b'.
- /// let trie_data = [48, 97, 176, 98, 32868];
- /// let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(&trie_data));
- ///
- /// let mut iter = trie.iter();
- /// let res = iter.next('a');
- /// assert_eq!(res, TrieResult::Intermediate(1));
- /// let res = iter.next('b');
- /// assert_eq!(res, TrieResult::FinalValue(100));
- /// let res = iter.next('c');
- /// assert_eq!(res, TrieResult::NoMatch);
- /// ```
- pub fn next(&mut self, c: char) -> TrieResult {
- if (c as u32) <= 0xffff {
- self.next16(c as u16)
- } else {
- match self.next16(u16_lead(c as i32)) {
- TrieResult::NoValue | TrieResult::Intermediate(_) => {
- self.next16(u16_tail(c as i32))
- }
- _ => TrieResult::NoMatch,
- }
- }
- }
-
- /// Traverses the trie from the current state for this input char.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::char16trie::{Char16Trie, TrieResult};
- /// use zerovec::ZeroVec;
- ///
- /// // A Char16Trie containing the ASCII characters 'a' and 'b'.
- /// let trie_data = [48, 97, 176, 98, 32868];
- /// let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(&trie_data));
- ///
- /// let mut iter = trie.iter();
- /// let res = iter.next('a');
- /// assert_eq!(res, TrieResult::Intermediate(1));
- /// let res = iter.next('b');
- /// assert_eq!(res, TrieResult::FinalValue(100));
- /// let res = iter.next('c');
- /// assert_eq!(res, TrieResult::NoMatch);
- /// ```
- pub fn next32(&mut self, c: u32) -> TrieResult {
- if c <= 0xffff {
- self.next16(c as u16)
- } else {
- match self.next16(u16_lead(c as i32)) {
- TrieResult::NoValue | TrieResult::Intermediate(_) => {
- self.next16(u16_tail(c as i32))
- }
- _ => TrieResult::NoMatch,
- }
- }
- }
-
- /// Traverses the trie from the current state for this input char.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::char16trie::{Char16Trie, TrieResult};
- /// use zerovec::ZeroVec;
- ///
- /// // A Char16Trie containing the ASCII characters 'a' and 'b'.
- /// let trie_data = [48, 97, 176, 98, 32868];
- /// let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(&trie_data));
- ///
- /// let mut iter = trie.iter();
- /// let res = iter.next16('a' as u16);
- /// assert_eq!(res, TrieResult::Intermediate(1));
- /// let res = iter.next16('b' as u16);
- /// assert_eq!(res, TrieResult::FinalValue(100));
- /// let res = iter.next16('c' as u16);
- /// assert_eq!(res, TrieResult::NoMatch);
- /// ```
- pub fn next16(&mut self, c: u16) -> TrieResult {
- let mut pos = match self.pos {
- Some(p) => p,
- None => return TrieResult::NoMatch,
- };
- if let Some(length) = self.remaining_match_length {
- // Remaining part of a linear-match node
- if c == trie_unwrap!(self.trie.get(pos)) {
- pos += 1;
- self.pos = Some(pos);
- if length == 0 {
- self.remaining_match_length = None;
- let node = trie_unwrap!(self.trie.get(pos));
- if node >= MIN_VALUE_LEAD {
- return self.value_result(pos);
- }
- } else {
- self.remaining_match_length = Some(length - 1);
- }
- return TrieResult::NoValue;
- }
- self.stop();
- TrieResult::NoMatch
- } else {
- self.next_impl(pos, c)
- }
- }
-
- fn branch_next(&mut self, pos: usize, length: usize, in_unit: u16) -> TrieResult {
- let mut pos = pos;
- let mut length = length;
- if length == 0 {
- length = trie_unwrap!(self.trie.get(pos)) as usize;
- pos += 1;
- }
- length += 1;
-
- // The length of the branch is the number of units to select from.
- // The data structure encodes a binary search.
- while length > MAX_BRANCH_LINEAR_SUB_NODE_LENGTH {
- if in_unit < trie_unwrap!(self.trie.get(pos)) {
- length >>= 1;
- pos = trie_unwrap!(self.jump_by_delta(pos + 1));
- } else {
- length = length - (length >> 1);
- pos = trie_unwrap!(self.skip_delta(pos + 1));
- }
- }
- // Drop down to linear search for the last few bytes.
- // length>=2 because the loop body above sees length>kMaxBranchLinearSubNodeLength>=3
- // and divides length by 2.
- loop {
- if in_unit == trie_unwrap!(self.trie.get(pos)) {
- pos += 1;
- let mut node = trie_unwrap!(self.trie.get(pos));
- if node & VALUE_IS_FINAL != 0 {
- self.pos = Some(pos);
- return self.value_result(pos);
- }
- // Use the non-final value as the jump delta.
- pos += 1;
-
- if node < MIN_TWO_UNIT_VALUE_LEAD {
- pos += node as usize;
- } else if node < THREE_UNIT_VALUE_LEAD {
- pos += (((node - MIN_TWO_UNIT_VALUE_LEAD) as u32) << 16) as usize
- | trie_unwrap!(self.trie.get(pos)) as usize;
- pos += 1;
- } else {
- pos += ((trie_unwrap!(self.trie.get(pos)) as usize) << 16)
- | trie_unwrap!(self.trie.get(pos + 1)) as usize;
- pos += 2;
- }
- node = trie_unwrap!(self.trie.get(pos));
- self.pos = Some(pos);
-
- if node >= MIN_VALUE_LEAD {
- return self.value_result(pos);
- }
- return TrieResult::NoValue;
- }
- length -= 1;
- pos = trie_unwrap!(self.skip_value(pos + 1));
- if length <= 1 {
- break;
- }
- }
-
- if in_unit == trie_unwrap!(self.trie.get(pos)) {
- pos += 1;
- self.pos = Some(pos);
- let node = trie_unwrap!(self.trie.get(pos));
- if node >= MIN_VALUE_LEAD {
- return self.value_result(pos);
- }
- TrieResult::NoValue
- } else {
- self.stop();
- TrieResult::NoMatch
- }
- }
-
- fn next_impl(&mut self, pos: usize, in_unit: u16) -> TrieResult {
- let mut node = trie_unwrap!(self.trie.get(pos));
- let mut pos = pos + 1;
- loop {
- if node < MIN_LINEAR_MATCH {
- return self.branch_next(pos, node as usize, in_unit);
- } else if node < MIN_VALUE_LEAD {
- // Match the first of length+1 units.
- let length = node - MIN_LINEAR_MATCH;
- if in_unit == trie_unwrap!(self.trie.get(pos)) {
- pos += 1;
- if length == 0 {
- self.remaining_match_length = None;
- self.pos = Some(pos);
- node = trie_unwrap!(self.trie.get(pos));
- if node >= MIN_VALUE_LEAD {
- return self.value_result(pos);
- }
- return TrieResult::NoValue;
- }
- self.remaining_match_length = Some(length as usize - 1);
- self.pos = Some(pos);
- return TrieResult::NoValue;
- }
- // No match
- break;
- } else if (node & VALUE_IS_FINAL) != 0 {
- // No further matching units.
- break;
- } else {
- // Skip intermediate value.
- pos = skip_node_value(pos, node);
- node &= NODE_TYPE_MASK;
- }
- }
- self.stop();
- TrieResult::NoMatch
- }
-
- fn stop(&mut self) {
- self.pos = None;
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn jump_by_delta(&self, pos: usize) -> Option<usize> {
- let delta = self.trie.get(pos)?;
- let v = if delta < MIN_TWO_UNIT_DELTA_LEAD {
- // nothing to do
- pos + 1 + delta as usize
- } else if delta == THREE_UNIT_DELTA_LEAD {
- let delta =
- ((self.trie.get(pos + 1)? as usize) << 16) | (self.trie.get(pos + 2)? as usize);
- pos + delta + 3
- } else {
- let delta = (((delta - MIN_TWO_UNIT_DELTA_LEAD) as usize) << 16)
- | (self.trie.get(pos + 1)? as usize);
- pos + delta + 2
- };
- Some(v)
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn skip_value(&self, pos: usize) -> Option<usize> {
- let lead_unit = self.trie.get(pos)?;
- Some(skip_value(pos + 1, lead_unit & 0x7fff))
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn skip_delta(&self, pos: usize) -> Option<usize> {
- let delta = self.trie.get(pos)?;
- let v = if delta < MIN_TWO_UNIT_DELTA_LEAD {
- pos + 1
- } else if delta == THREE_UNIT_DELTA_LEAD {
- pos + 3
- } else {
- pos + 2
- };
- Some(v)
- }
-
- fn value_result(&self, pos: usize) -> TrieResult {
- match self.get_value(pos) {
- Some(result) => result,
- None => {
- // Unexpected
- debug_assert!(false);
- TrieResult::NoMatch
- }
- }
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn get_value(&self, pos: usize) -> Option<TrieResult> {
- let lead_unit = self.trie.get(pos)?;
- if lead_unit & VALUE_IS_FINAL == VALUE_IS_FINAL {
- self.read_value(pos + 1, lead_unit & 0x7fff)
- .map(TrieResult::FinalValue)
- } else {
- self.read_node_value(pos + 1, lead_unit)
- .map(TrieResult::Intermediate)
- }
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn read_value(&self, pos: usize, lead_unit: u16) -> Option<i32> {
- let v = if lead_unit < MIN_TWO_UNIT_VALUE_LEAD {
- lead_unit.into()
- } else if lead_unit < THREE_UNIT_VALUE_LEAD {
- (((lead_unit - MIN_TWO_UNIT_VALUE_LEAD) as i32) << 16) | self.trie.get(pos)? as i32
- } else {
- ((self.trie.get(pos)? as i32) << 16) | self.trie.get(pos + 1)? as i32
- };
- Some(v)
- }
-
- #[inline(always)] // 1 call site and we want the Option to go away
- fn read_node_value(&self, pos: usize, lead_unit: u16) -> Option<i32> {
- let v = if lead_unit < (MIN_TWO_UNIT_NODE_VALUE_LEAD) {
- ((lead_unit >> 6) - 1).into()
- } else if lead_unit < THREE_UNIT_NODE_VALUE_LEAD {
- ((((lead_unit & 0x7fc0) - MIN_TWO_UNIT_NODE_VALUE_LEAD) as i32) << 10)
- | self.trie.get(pos)? as i32
- } else {
- ((self.trie.get(pos)? as i32) << 16) | self.trie.get(pos + 1)? as i32
- };
- Some(v)
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/builder.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/builder.rs
deleted file mode 100644
index d24f9f66ac8..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/builder.rs
+++ /dev/null
@@ -1,986 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use alloc::vec;
-use alloc::vec::Vec;
-use core::{char, cmp::Ordering, ops::RangeBounds};
-use potential_utf::PotentialCodePoint;
-
-use crate::codepointinvlist::{utils::deconstruct_range, CodePointInversionList};
-use zerovec::{ule::AsULE, ZeroVec};
-
-/// A builder for [`CodePointInversionList`].
-///
-/// Provides exposure to builder functions and conversion to [`CodePointInversionList`]
-#[derive(Default, Clone, Debug)]
-pub struct CodePointInversionListBuilder {
- // A sorted list of even length, with values <= char::MAX + 1
- intervals: Vec<u32>,
-}
-
-impl CodePointInversionListBuilder {
- /// Returns empty [`CodePointInversionListBuilder`]
- pub const fn new() -> Self {
- Self { intervals: vec![] }
- }
-
- /// Returns a [`CodePointInversionList`] and consumes the [`CodePointInversionListBuilder`]
- pub fn build(self) -> CodePointInversionList<'static> {
- let inv_list: ZeroVec<PotentialCodePoint> = self
- .intervals
- .into_iter()
- .map(PotentialCodePoint::from_u24)
- .collect();
- #[expect(clippy::unwrap_used)] // by invariant
- CodePointInversionList::try_from_inversion_list(inv_list).unwrap()
- }
-
- /// Abstraction for adding/removing a range from start..end
- ///
- /// If add is true add, else remove
- fn add_remove_middle(&mut self, start: u32, end: u32, add: bool) {
- if start >= end || end > char::MAX as u32 + 1 {
- return;
- }
- let start_res = self.intervals.binary_search(&start);
- let end_res = self.intervals.binary_search(&end);
- let mut start_ind = start_res.unwrap_or_else(|x| x);
- let mut end_ind = end_res.unwrap_or_else(|x| x);
- let start_pos_check = (start_ind % 2 == 0) == add;
- let end_pos_check = (end_ind % 2 == 0) == add;
- let start_eq_end = start_ind == end_ind;
-
- #[expect(clippy::indexing_slicing)] // all indices are binary search results
- if start_eq_end && start_pos_check && end_res.is_err() {
- self.intervals.splice(start_ind..end_ind, [start, end]);
- } else {
- if start_pos_check {
- self.intervals[start_ind] = start;
- start_ind += 1;
- }
- if end_pos_check {
- if end_res.is_ok() {
- end_ind += 1;
- } else {
- end_ind -= 1;
- self.intervals[end_ind] = end;
- }
- }
- if start_ind < end_ind {
- self.intervals.drain(start_ind..end_ind);
- }
- }
- }
-
- /// Add the range to the [`CodePointInversionListBuilder`]
- ///
- /// Accomplishes this through binary search for the start and end indices and merges intervals
- /// in between with inplace memory. Performs `O(1)` operation if adding to end of list, and `O(N)` otherwise,
- /// where `N` is the number of endpoints.
- fn add(&mut self, start: u32, end: u32) {
- if start >= end {
- return;
- }
- if self.intervals.is_empty() {
- self.intervals.extend_from_slice(&[start, end]);
- return;
- }
- self.add_remove_middle(start, end, true);
- }
-
- /// Add the character to the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_char('a');
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('a'));
- /// ```
- pub fn add_char(&mut self, c: char) {
- let to_add = c as u32;
- self.add(to_add, to_add + 1);
- }
-
- /// Add the code point value to the [`CodePointInversionListBuilder`]
- ///
- /// Note: Even though [`u32`] and [`prim@char`] in Rust are non-negative 4-byte
- /// values, there is an important difference. A [`u32`] can take values up to
- /// a very large integer value, while a [`prim@char`] in Rust is defined to be in
- /// the range from 0 to the maximum valid Unicode Scalar Value.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add32(0x41);
- /// let check = builder.build();
- /// assert!(check.contains32(0x41));
- /// ```
- pub fn add32(&mut self, c: u32) {
- if c <= char::MAX as u32 {
- // we already know 0 <= c because c: u32
- self.add(c, c + 1);
- }
- }
-
- /// Add the range of characters to the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='Z');
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('A'));
- /// ```
- pub fn add_range(&mut self, range: impl RangeBounds<char>) {
- let (start, end) = deconstruct_range(range);
- self.add(start, end);
- }
-
- /// Add the range of characters, represented as u32, to the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range32(0xd800..=0xdfff);
- /// let check = builder.build();
- /// assert!(check.contains32(0xd900));
- /// ```
- pub fn add_range32(&mut self, range: impl RangeBounds<u32>) {
- let (start, end) = deconstruct_range(range);
- // Sets that include char::MAX need to allow an end value of MAX + 1
- if start <= end && end <= char::MAX as u32 + 1 {
- self.add(start, end);
- }
- }
-
- /// Add the [`CodePointInversionList`] reference to the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::{
- /// CodePointInversionList, CodePointInversionListBuilder,
- /// };
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let set = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x41, 0x4C,
- /// ])
- /// .unwrap();
- /// builder.add_set(&set);
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('A'));
- /// ```
- #[allow(unused_assignments)]
- pub fn add_set(&mut self, set: &CodePointInversionList) {
- #[expect(clippy::indexing_slicing)] // chunks
- set.as_inversion_list()
- .as_ule_slice()
- .chunks(2)
- .for_each(|pair| {
- self.add(
- u32::from(PotentialCodePoint::from_unaligned(pair[0])),
- u32::from(PotentialCodePoint::from_unaligned(pair[1])),
- )
- });
- }
-
- /// Removes the range from the [`CodePointInversionListBuilder`]
- ///
- /// Performs binary search to find start and end affected intervals, then removes in an `O(N)` fashion
- /// where `N` is the number of endpoints, with in-place memory.
- fn remove(&mut self, start: u32, end: u32) {
- if start >= end || self.intervals.is_empty() {
- return;
- }
- if let Some(&last) = self.intervals.last() {
- #[expect(clippy::indexing_slicing)]
- // by invariant, if we have a last we have a (different) first
- if start <= self.intervals[0] && end >= last {
- self.intervals.clear();
- } else {
- self.add_remove_middle(start, end, false);
- }
- }
- }
-
- /// Remove the character from the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='Z');
- /// builder.remove_char('A');
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('B'));
- pub fn remove_char(&mut self, c: char) {
- self.remove32(c as u32)
- }
-
- /// See [`Self::remove_char`]
- pub fn remove32(&mut self, c: u32) {
- self.remove(c, c + 1);
- }
-
- /// Remove the range of characters from the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='Z');
- /// builder.remove_range('A'..='C');
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('D'));
- pub fn remove_range(&mut self, range: impl RangeBounds<char>) {
- let (start, end) = deconstruct_range(range);
- self.remove(start, end);
- }
-
- /// See [`Self::remove_range`]
- pub fn remove_range32(&mut self, range: impl RangeBounds<u32>) {
- let (start, end) = deconstruct_range(range);
- self.remove(start, end);
- }
-
- /// Remove the [`CodePointInversionList`] from the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::{CodePointInversionList, CodePointInversionListBuilder};
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let set = CodePointInversionList::try_from_u32_inversion_list_slice(&[0x41, 0x46]).unwrap();
- /// builder.add_range('A'..='Z');
- /// builder.remove_set(&set); // removes 'A'..='E'
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('F'));
- #[expect(clippy::indexing_slicing)] // chunks
- pub fn remove_set(&mut self, set: &CodePointInversionList) {
- set.as_inversion_list()
- .as_ule_slice()
- .chunks(2)
- .for_each(|pair| {
- self.remove(
- u32::from(PotentialCodePoint::from_unaligned(pair[0])),
- u32::from(PotentialCodePoint::from_unaligned(pair[1])),
- )
- });
- }
-
- /// Retain the specified character in the [`CodePointInversionListBuilder`] if it exists
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='Z');
- /// builder.retain_char('A');
- /// let set = builder.build();
- /// let mut check = set.iter_chars();
- /// assert_eq!(check.next(), Some('A'));
- /// assert_eq!(check.next(), None);
- /// ```
- pub fn retain_char(&mut self, c: char) {
- self.retain32(c as u32)
- }
-
- /// See [`Self::retain_char`]
- pub fn retain32(&mut self, c: u32) {
- self.remove(0, c);
- self.remove(c + 1, (char::MAX as u32) + 1);
- }
-
- /// Retain the range of characters located within the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='Z');
- /// builder.retain_range('A'..='B');
- /// let set = builder.build();
- /// let mut check = set.iter_chars();
- /// assert_eq!(check.next(), Some('A'));
- /// assert_eq!(check.next(), Some('B'));
- /// assert_eq!(check.next(), None);
- /// ```
- pub fn retain_range(&mut self, range: impl RangeBounds<char>) {
- let (start, end) = deconstruct_range(range);
- self.remove(0, start);
- self.remove(end, (char::MAX as u32) + 1);
- }
-
- /// See [`Self::retain_range`]
- pub fn retain_range32(&mut self, range: impl RangeBounds<u32>) {
- let (start, end) = deconstruct_range(range);
- self.remove(0, start);
- self.remove(end, (char::MAX as u32) + 1);
- }
-
- /// Retain the elements in the specified set within the [`CodePointInversionListBuilder`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::{
- /// CodePointInversionList, CodePointInversionListBuilder,
- /// };
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let set =
- /// CodePointInversionList::try_from_u32_inversion_list_slice(&[65, 70])
- /// .unwrap();
- /// builder.add_range('A'..='Z');
- /// builder.retain_set(&set); // retains 'A'..='E'
- /// let check = builder.build();
- /// assert!(check.contains('A'));
- /// assert!(!check.contains('G'));
- /// ```
- #[expect(clippy::indexing_slicing)] // chunks
- pub fn retain_set(&mut self, set: &CodePointInversionList) {
- let mut prev = 0;
- for pair in set.as_inversion_list().as_ule_slice().chunks(2) {
- let range_start = u32::from(PotentialCodePoint::from_unaligned(pair[0]));
- let range_limit = u32::from(PotentialCodePoint::from_unaligned(pair[1]));
- self.remove(prev, range_start);
- prev = range_limit;
- }
- self.remove(prev, (char::MAX as u32) + 1);
- }
-
- /// Computes the complement of the argument, adding any elements that do not yet exist in the builder,
- /// and removing any elements that already exist in the builder. See public functions for examples.
- ///
- /// Performs in `O(B + S)`, where `B` is the number of endpoints in the Builder, and `S` is the number
- /// of endpoints in the argument.
- fn complement_list(&mut self, set_iter: impl IntoIterator<Item = u32>) {
- let mut res: Vec<u32> = vec![]; // not the biggest fan of having to allocate new memory
- let mut ai = self.intervals.iter();
- let mut bi = set_iter.into_iter();
- let mut a = ai.next();
- let mut b = bi.next();
- while let (Some(c), Some(d)) = (a, b) {
- match c.cmp(&d) {
- Ordering::Less => {
- res.push(*c);
- a = ai.next();
- }
- Ordering::Greater => {
- res.push(d);
- b = bi.next();
- }
- Ordering::Equal => {
- a = ai.next();
- b = bi.next();
- }
- }
- }
- if let Some(c) = a {
- res.push(*c)
- }
- if let Some(d) = b {
- res.push(d)
- }
- res.extend(ai);
- res.extend(bi);
- self.intervals = res;
- }
-
- /// Computes the complement of the builder, inverting the builder (any elements in the builder are removed,
- /// while any elements not in the builder are added)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::{
- /// CodePointInversionList, CodePointInversionListBuilder,
- /// };
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let set = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x0,
- /// 0x41,
- /// 0x46,
- /// (std::char::MAX as u32) + 1,
- /// ])
- /// .unwrap();
- /// builder.add_set(&set);
- /// builder.complement();
- /// let check = builder.build();
- /// assert_eq!(check.iter_chars().next(), Some('A'));
- /// ```
- pub fn complement(&mut self) {
- if !self.intervals.is_empty() {
- #[expect(clippy::indexing_slicing)] // by invariant
- if self.intervals[0] == 0 {
- self.intervals.drain(0..1);
- } else {
- self.intervals.insert(0, 0);
- }
- if self.intervals.last() == Some(&(char::MAX as u32 + 1)) {
- self.intervals.pop();
- } else {
- self.intervals.push(char::MAX as u32 + 1);
- }
- } else {
- self.intervals
- .extend_from_slice(&[0, (char::MAX as u32 + 1)]);
- }
- }
-
- /// Complements the character in the builder, adding it if not in the builder, and removing it otherwise.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='D');
- /// builder.complement_char('A');
- /// builder.complement_char('E');
- /// let check = builder.build();
- /// assert!(check.contains('E'));
- /// assert!(!check.contains('A'));
- /// ```
- pub fn complement_char(&mut self, c: char) {
- self.complement32(c as u32);
- }
-
- /// See [`Self::complement_char`]
- pub fn complement32(&mut self, c: u32) {
- self.complement_list([c, c + 1]);
- }
-
- /// Complements the range in the builder, adding any elements in the range if not in the builder, and
- /// removing them otherwise.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// builder.add_range('A'..='D');
- /// builder.complement_range('C'..='F');
- /// let check = builder.build();
- /// assert!(check.contains('F'));
- /// assert!(!check.contains('C'));
- /// ```
- pub fn complement_range(&mut self, range: impl RangeBounds<char>) {
- let (start, end) = deconstruct_range(range);
- self.complement_list([start, end]);
- }
-
- /// See [`Self::complement_range`]
- pub fn complement_range32(&mut self, range: impl RangeBounds<u32>) {
- let (start, end) = deconstruct_range(range);
- self.complement_list([start, end]);
- }
-
- /// Complements the set in the builder, adding any elements in the set if not in the builder, and
- /// removing them otherwise.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::{
- /// CodePointInversionList, CodePointInversionListBuilder,
- /// };
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let set = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x41, 0x46, 0x4B, 0x5A,
- /// ])
- /// .unwrap();
- /// builder.add_range('C'..='N'); // 67 - 78
- /// builder.complement_set(&set);
- /// let check = builder.build();
- /// assert!(check.contains('Q')); // 81
- /// assert!(!check.contains('N')); // 78
- /// ```
- pub fn complement_set(&mut self, set: &CodePointInversionList) {
- let inv_list_iter_owned = set.as_inversion_list().iter().map(u32::from);
- self.complement_list(inv_list_iter_owned);
- }
-
- /// Returns whether the build is empty.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionListBuilder;
- /// let mut builder = CodePointInversionListBuilder::new();
- /// let check = builder.build();
- /// assert!(check.is_empty());
- /// ```
- pub fn is_empty(&self) -> bool {
- self.intervals.is_empty()
- }
-}
-
-#[cfg(test)]
-mod tests {
- use super::{CodePointInversionList, CodePointInversionListBuilder};
- use core::char;
-
- fn generate_tester(ex: &[u32]) -> CodePointInversionListBuilder {
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(ex).unwrap();
- let mut builder = CodePointInversionListBuilder::new();
- builder.add_set(&check);
- builder
- }
-
- #[test]
- fn test_new() {
- let ex = CodePointInversionListBuilder::new();
- assert!(ex.intervals.is_empty());
- }
-
- #[test]
- fn test_build() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add(0x41, 0x42);
- let check: CodePointInversionList = builder.build();
- assert_eq!(check.iter_chars().next(), Some('A'));
- }
-
- #[test]
- fn test_empty_build() {
- let builder = CodePointInversionListBuilder::new();
- let check: CodePointInversionList = builder.build();
- assert!(check.is_empty());
- }
-
- #[test]
- fn test_add_to_empty() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add(0x0, 0xA);
- assert_eq!(builder.intervals, [0x0, 0xA]);
- }
-
- #[test]
- fn test_add_invalid() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add(0x0, 0x0);
- builder.add(0x5, 0x0);
- assert!(builder.intervals.is_empty());
- }
-
- #[test]
- fn test_add_to_start() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x0, 0x5);
- let expected = [0x0, 0x5, 0xA, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_start_overlap() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x0, 0xE);
- let expected = [0x0, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_end() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x3C, 0x46);
- let expected = [0xA, 0x14, 0x28, 0x32, 60, 70];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_end_overlap() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x2B, 0x46);
- let expected = [0xA, 0x14, 0x28, 0x46];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_middle_no_overlap() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x19, 0x1B);
- let expected = [0xA, 0x14, 0x19, 0x1B, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_middle_inside() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0xA, 0x14);
- let expected = [0xA, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_middle_left_overlap() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0xF, 0x19);
- let expected = [0xA, 0x19, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_middle_right_overlap() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x1E, 0x28);
- let expected = [0xA, 0x14, 0x1E, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_full_encompass() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x0, 0x3C);
- let expected = [0x0, 0x3C];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_to_partial_encompass() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x0, 0x23);
- let expected = [0x0, 0x23, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_front() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(5, 10);
- let expected = [5, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_back() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x32, 0x37);
- let expected = [0xA, 0x14, 0x28, 0x37];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_start_middle() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x14, 0x19);
- let expected = [0xA, 0x19, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_end_middle() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x23, 0x28);
- let expected = [0xA, 0x14, 0x23, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_in_between_end() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x1E, 0x28, 0x32, 0x3C]);
- builder.add(0xF, 0x1E);
- let expected = [0xA, 0x28, 0x32, 0x3C];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_aligned_in_between_start() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x1E, 0x28, 0x32, 0x3C]);
- builder.add(20, 35);
- let expected = [0xA, 0x28, 0x32, 0x3C];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_adjacent_ranges() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.add(0x13, 0x14);
- builder.add(0x14, 0x15);
- builder.add(0x15, 0x16);
- let expected = [0xA, 0x16, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_codepointinversionlist() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- 0x5, 0xA, 0x16, 0x21, 0x2C, 0x33,
- ])
- .unwrap();
- builder.add_set(&check);
- let expected = [0x5, 0x14, 0x16, 0x21, 0x28, 0x33];
- assert_eq!(builder.intervals, expected);
- }
- #[test]
- fn test_add_char() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add_char('a');
- let expected = [0x61, 0x62];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_range() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add_range('A'..='Z');
- let expected = [0x41, 0x5B];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_range32() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add_range32(0xd800..=0xdfff);
- let expected = [0xd800, 0xe000];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_add_invalid_range() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.add_range('Z'..='A');
- assert!(builder.intervals.is_empty());
- }
-
- #[test]
- fn test_remove_empty() {
- let mut builder = CodePointInversionListBuilder::new();
- builder.remove(0x0, 0xA);
- assert!(builder.intervals.is_empty());
- }
-
- #[test]
- fn test_remove_entire_builder() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0xA, 0x32);
- assert!(builder.intervals.is_empty());
- }
-
- #[test]
- fn test_remove_entire_range() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0xA, 0x14);
- let expected = [0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_partial_range_left() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0xA, 0x2B);
- let expected = [0x2B, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_ne_range() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0x14, 0x28);
- let expected = [0xA, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_partial_range_right() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0xF, 0x37);
- let expected = [0xA, 0xF];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_middle_range() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0xC, 0x12);
- let expected = [0xA, 0xC, 0x12, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_ne_middle_range() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0x19, 0x1B);
- let expected = [0xA, 0x14, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_encompassed_range() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32, 70, 80]);
- builder.remove(0x19, 0x37);
- let expected = [0xA, 0x14, 0x46, 0x50];
- assert_eq!(builder.intervals, expected);
- }
- #[test]
- fn test_remove_adjacent_ranges() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.remove(0x27, 0x28);
- builder.remove(0x28, 0x29);
- builder.remove(0x29, 0x2A);
- let expected = [0xA, 0x14, 0x2A, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_char() {
- let mut builder = generate_tester(&[0x41, 0x46]);
- builder.remove_char('A'); // 65
- let expected = [0x42, 0x46];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_range() {
- let mut builder = generate_tester(&[0x41, 0x5A]);
- builder.remove_range('A'..'L'); // 65 - 76
- let expected = [0x4C, 0x5A];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_remove_set() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32, 70, 80]);
- let remove =
- CodePointInversionList::try_from_u32_inversion_list_slice(&[0xA, 0x14, 0x2D, 0x4B])
- .unwrap();
- builder.remove_set(&remove);
- let expected = [0x28, 0x2D, 0x4B, 0x50];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_retain_char() {
- let mut builder = generate_tester(&[0x41, 0x5A]);
- builder.retain_char('A'); // 65
- let expected = [0x41, 0x42];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_retain_range() {
- let mut builder = generate_tester(&[0x41, 0x5A]);
- builder.retain_range('C'..'F'); // 67 - 70
- let expected = [0x43, 0x46];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_retain_range_empty() {
- let mut builder = generate_tester(&[0x41, 0x46]);
- builder.retain_range('F'..'Z');
- assert!(builder.intervals.is_empty());
- }
-
- #[test]
- fn test_retain_set() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32, 70, 80]);
- let retain = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- 0xE, 0x14, 0x19, 0x37, 0x4D, 0x51,
- ])
- .unwrap();
- builder.retain_set(&retain);
- let expected = [0xE, 0x14, 0x28, 0x32, 0x4D, 0x50];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.complement();
- let expected = [0x0, 0xA, 0x14, 0x28, 0x32, (char::MAX as u32) + 1];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_empty() {
- let mut builder = generate_tester(&[]);
- builder.complement();
- let expected = [0x0, (char::MAX as u32) + 1];
- assert_eq!(builder.intervals, expected);
-
- builder.complement();
- let expected: [u32; 0] = [];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_zero_max() {
- let mut builder = generate_tester(&[0x0, 0xA, 0x5A, (char::MAX as u32) + 1]);
- builder.complement();
- let expected = [0xA, 0x5A];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_interior() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.complement_list([0xE, 0x14]);
- let expected = [0xA, 0xE, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_exterior() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.complement_list([0x19, 0x23]);
- let expected = [0xA, 0x14, 0x19, 0x23, 0x28, 0x32];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_larger_list() {
- let mut builder = generate_tester(&[0xA, 0x14, 0x28, 0x32]);
- builder.complement_list([0x1E, 0x37, 0x3C, 0x46]);
- let expected = [0xA, 0x14, 0x1E, 0x28, 0x32, 0x37, 0x3C, 0x46];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_char() {
- let mut builder = generate_tester(&[0x41, 0x4C]); // A - K
- builder.complement_char('A');
- builder.complement_char('L');
- let expected = [0x42, 0x4D];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_range() {
- let mut builder = generate_tester(&[0x46, 0x4C]); // F - K
- builder.complement_range('A'..='Z');
- let expected = [0x41, 0x46, 0x4C, 0x5B];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_complement_set() {
- let mut builder = generate_tester(&[0x43, 0x4E]);
- let set =
- CodePointInversionList::try_from_u32_inversion_list_slice(&[0x41, 0x46, 0x4B, 0x5A])
- .unwrap();
- builder.complement_set(&set);
- let expected = [0x41, 0x43, 0x46, 0x4B, 0x4E, 0x5A];
- assert_eq!(builder.intervals, expected);
- }
-
- #[test]
- fn test_is_empty() {
- let builder = CodePointInversionListBuilder::new();
- assert!(builder.is_empty());
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/conversions.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/conversions.rs
deleted file mode 100644
index 7488654a8f3..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/conversions.rs
+++ /dev/null
@@ -1,180 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use core::iter::FromIterator;
-use core::{
- convert::TryFrom,
- ops::{Range, RangeBounds, RangeFrom, RangeFull, RangeInclusive, RangeTo, RangeToInclusive},
-};
-
-use super::RangeError;
-use crate::codepointinvlist::utils::deconstruct_range;
-use crate::codepointinvlist::CodePointInversionList;
-use crate::codepointinvlist::CodePointInversionListBuilder;
-use potential_utf::PotentialCodePoint;
-use zerovec::ZeroVec;
-
-fn try_from_range<'data>(
- range: impl RangeBounds<char>,
-) -> Result<CodePointInversionList<'data>, RangeError> {
- let (from, till) = deconstruct_range(range);
- if from < till {
- let set = [
- PotentialCodePoint::from_u24(from),
- PotentialCodePoint::from_u24(till),
- ];
- let inv_list: ZeroVec<PotentialCodePoint> = ZeroVec::alloc_from_slice(&set);
- #[expect(clippy::unwrap_used)] // valid
- Ok(CodePointInversionList::try_from_inversion_list(inv_list).unwrap())
- } else {
- Err(RangeError(from, till))
- }
-}
-
-impl TryFrom<Range<char>> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(range: Range<char>) -> Result<Self, Self::Error> {
- try_from_range(range)
- }
-}
-
-impl TryFrom<RangeFrom<char>> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(range: RangeFrom<char>) -> Result<Self, Self::Error> {
- try_from_range(range)
- }
-}
-
-impl TryFrom<RangeFull> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(_: RangeFull) -> Result<Self, Self::Error> {
- Ok(Self::all())
- }
-}
-
-impl TryFrom<RangeInclusive<char>> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(range: RangeInclusive<char>) -> Result<Self, Self::Error> {
- try_from_range(range)
- }
-}
-
-impl TryFrom<RangeTo<char>> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(range: RangeTo<char>) -> Result<Self, Self::Error> {
- try_from_range(range)
- }
-}
-
-impl TryFrom<RangeToInclusive<char>> for CodePointInversionList<'_> {
- type Error = RangeError;
-
- fn try_from(range: RangeToInclusive<char>) -> Result<Self, Self::Error> {
- try_from_range(range)
- }
-}
-
-impl FromIterator<RangeInclusive<u32>> for CodePointInversionList<'_> {
- fn from_iter<I: IntoIterator<Item = RangeInclusive<u32>>>(iter: I) -> Self {
- let mut builder = CodePointInversionListBuilder::new();
- for range in iter {
- builder.add_range32(range);
- }
- builder.build()
- }
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
- use crate::codepointinvlist::CodePointInversionList;
- use core::{char, convert::TryFrom};
-
- #[test]
- fn test_try_from_range() {
- let check: Vec<char> = CodePointInversionList::try_from('A'..'B')
- .unwrap()
- .iter_chars()
- .collect();
- assert_eq!(vec!['A'], check);
- }
-
- #[test]
- fn test_try_from_range_error() {
- let check = CodePointInversionList::try_from('A'..'A');
- assert!(matches!(check, Err(RangeError(65, 65))));
- }
-
- #[test]
- fn test_try_from_range_inclusive() {
- let check: Vec<char> = CodePointInversionList::try_from('A'..='A')
- .unwrap()
- .iter_chars()
- .collect();
- assert_eq!(vec!['A'], check);
- }
-
- #[test]
- fn test_try_from_range_inclusive_err() {
- let check = CodePointInversionList::try_from('B'..'A');
- assert!(matches!(check, Err(RangeError(66, 65))));
- }
-
- #[test]
- fn test_try_from_range_from() {
- let uset = CodePointInversionList::try_from('A'..).unwrap();
- let check: usize = uset.size();
- let expected: usize = (char::MAX as usize) + 1 - 65;
- assert_eq!(expected, check);
- }
-
- #[test]
- fn test_try_from_range_to() {
- let uset = CodePointInversionList::try_from(..'A').unwrap();
- let check: usize = uset.size();
- let expected: usize = 65;
- assert_eq!(expected, check);
- }
-
- #[test]
- fn test_try_from_range_to_err() {
- let check = CodePointInversionList::try_from(..(0x0 as char));
- assert!(matches!(check, Err(RangeError(0, 0))));
- }
-
- #[test]
- fn test_try_from_range_to_inclusive() {
- let uset = CodePointInversionList::try_from(..='A').unwrap();
- let check: usize = uset.size();
- let expected: usize = 66;
- assert_eq!(expected, check);
- }
-
- #[test]
- fn test_try_from_range_full() {
- let uset = CodePointInversionList::try_from(..).unwrap();
- let check: usize = uset.size();
- let expected: usize = (char::MAX as usize) + 1;
- assert_eq!(expected, check);
- }
-
- #[test]
- fn test_from_range_iterator() {
- let ranges = [
- 0..=0x3FFF,
- 0x4000..=0x7FFF,
- 0x8000..=0xBFFF,
- 0xC000..=0xFFFF,
- ];
- let expected =
- CodePointInversionList::try_from_u32_inversion_list_slice(&[0x0, 0x1_0000]).unwrap();
- let actual = CodePointInversionList::from_iter(ranges);
- assert_eq!(expected, actual);
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/cpinvlist.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/cpinvlist.rs
deleted file mode 100644
index 74fa5ee5768..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/cpinvlist.rs
+++ /dev/null
@@ -1,1070 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-#[cfg(feature = "serde")]
-use alloc::format;
-#[cfg(feature = "serde")]
-use alloc::string::String;
-#[cfg(feature = "alloc")]
-use alloc::vec::Vec;
-use core::{char, ops::RangeBounds, ops::RangeInclusive};
-use potential_utf::PotentialCodePoint;
-use yoke::Yokeable;
-use zerofrom::ZeroFrom;
-use zerovec::{ule::AsULE, zerovec, ZeroVec};
-
-use super::InvalidSetError;
-use crate::codepointinvlist::utils::{deconstruct_range, is_valid_zv};
-
-/// Represents the end code point of the Basic Multilingual Plane range, starting from code point 0, inclusive
-const BMP_MAX: u32 = 0xFFFF;
-
-/// Represents the inversion list for a set of all code points in the Basic Multilingual Plane.
-const BMP_INV_LIST_VEC: ZeroVec<PotentialCodePoint> = zerovec!(PotentialCodePoint; PotentialCodePoint::to_unaligned; [PotentialCodePoint::from_u24(0x0), PotentialCodePoint::from_u24(BMP_MAX + 1)]);
-
-/// Represents the inversion list for all of the code points in the Unicode range.
-const ALL_VEC: ZeroVec<PotentialCodePoint> = zerovec!(PotentialCodePoint; PotentialCodePoint::to_unaligned; [PotentialCodePoint::from_u24(0x0), PotentialCodePoint::from_u24((char::MAX as u32) + 1)]);
-
-/// A membership wrapper for [`CodePointInversionList`].
-///
-/// Provides exposure to membership functions and constructors from serialized `CodePointSet`s (sets of code points)
-/// and predefined ranges.
-#[zerovec::make_varule(CodePointInversionListULE)]
-#[zerovec::skip_derive(Ord)]
-#[zerovec::derive(Debug)]
-#[derive(Debug, Eq, PartialEq, Clone, Yokeable, ZeroFrom)]
-#[cfg_attr(not(feature = "alloc"), zerovec::skip_derive(ZeroMapKV, ToOwned))]
-pub struct CodePointInversionList<'data> {
- // If we wanted to use an array to keep the memory on the stack, there is an unsafe nightly feature
- // https://doc.rust-lang.org/nightly/core/array/trait.FixedSizeArray.html
- // Allows for traits of fixed size arrays
-
- // Implements an [inversion list.](https://en.wikipedia.org/wiki/Inversion_list)
- inv_list: ZeroVec<'data, PotentialCodePoint>,
- size: u32,
-}
-
-#[cfg(feature = "serde")]
-impl<'de: 'a, 'a> serde::Deserialize<'de> for CodePointInversionList<'a> {
- fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
- where
- D: serde::Deserializer<'de>,
- {
- use serde::de::Error;
-
- let parsed_inv_list = if deserializer.is_human_readable() {
- let parsed_strings = Vec::<alloc::borrow::Cow<'de, str>>::deserialize(deserializer)?;
- let mut inv_list = ZeroVec::new_owned(Vec::with_capacity(parsed_strings.len() * 2));
- for range in parsed_strings {
- fn internal(range: &str) -> Option<(u32, u32)> {
- let (start, range) = UnicodeCodePoint::parse(range)?;
- if range.is_empty() {
- return Some((start.0, start.0));
- }
- let (hyphen, range) = UnicodeCodePoint::parse(range)?;
- if hyphen.0 != '-' as u32 {
- return None;
- }
- let (end, range) = UnicodeCodePoint::parse(range)?;
- range.is_empty().then_some((start.0, end.0))
- }
- let (start, end) = internal(&range).ok_or_else(|| Error::custom(format!(
- "Cannot deserialize invalid inversion list for CodePointInversionList: {range:?}"
- )))?;
- inv_list.with_mut(|v| {
- v.push(PotentialCodePoint::from_u24(start).to_unaligned());
- v.push(PotentialCodePoint::from_u24(end + 1).to_unaligned());
- });
- }
- inv_list
- } else {
- ZeroVec::<PotentialCodePoint>::deserialize(deserializer)?
- };
- CodePointInversionList::try_from_inversion_list(parsed_inv_list).map_err(|e| {
- Error::custom(format!(
- "Cannot deserialize invalid inversion list for CodePointInversionList: {e:?}"
- ))
- })
- }
-}
-
-#[cfg(feature = "databake")]
-impl databake::Bake for CodePointInversionList<'_> {
- fn bake(&self, env: &databake::CrateEnv) -> databake::TokenStream {
- env.insert("icu_collections");
- let inv_list = self.inv_list.bake(env);
- let size = self.size.bake(env);
- // Safe because our parts are safe.
- databake::quote! { unsafe {
- #[allow(unused_unsafe)]
- icu_collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(#inv_list, #size)
- }}
- }
-}
-
-#[cfg(feature = "databake")]
-impl databake::BakeSize for CodePointInversionList<'_> {
- fn borrows_size(&self) -> usize {
- self.inv_list.borrows_size()
- }
-}
-
-#[cfg(feature = "serde")]
-#[derive(Debug, Copy, Clone)]
-struct UnicodeCodePoint(u32);
-
-#[cfg(feature = "serde")]
-impl UnicodeCodePoint {
- fn from_u32(cp: u32) -> Result<Self, String> {
- if cp <= char::MAX as u32 {
- Ok(Self(cp))
- } else {
- Err(format!("Not a Unicode code point {cp}"))
- }
- }
-
- fn parse(value: &str) -> Option<(Self, &str)> {
- Some(if let Some(hex) = value.strip_prefix("U+") {
- let (escape, remainder) = (hex.get(..4)?, hex.get(4..)?);
- (Self(u32::from_str_radix(escape, 16).ok()?), remainder)
- } else {
- let c = value.chars().next()?;
- (Self(c as u32), value.get(c.len_utf8()..)?)
- })
- }
-}
-
-#[cfg(feature = "serde")]
-impl core::fmt::Display for UnicodeCodePoint {
- fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
- match self.0 {
- s @ 0xD800..=0xDFFF => write!(f, "U+{s:X}"),
- // char should be in range by construction but this code is not so performance-sensitive
- // so we just use the replacement character
- c => write!(
- f,
- "{}",
- char::from_u32(c).unwrap_or(char::REPLACEMENT_CHARACTER)
- ),
- }
- }
-}
-
-#[cfg(feature = "serde")]
-impl serde::Serialize for CodePointInversionList<'_> {
- fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
- where
- S: serde::Serializer,
- {
- if serializer.is_human_readable() {
- use serde::ser::Error;
- use serde::ser::SerializeSeq;
- let mut seq = serializer.serialize_seq(Some(self.inv_list.len() / 2))?;
- for range in self.iter_ranges() {
- let start = UnicodeCodePoint::from_u32(*range.start()).map_err(S::Error::custom)?;
- if range.start() == range.end() {
- seq.serialize_element(&format!("{start}"))?;
- } else {
- let end = UnicodeCodePoint::from_u32(*range.end()).map_err(S::Error::custom)?;
- seq.serialize_element(&format!("{start}-{end}",))?;
- }
- }
- seq.end()
- } else {
- // Note: serde(flatten) currently does not promote a struct field of type Vec
- // to replace the struct when serializing. The error message from the default
- // serialization is: "can only flatten structs and maps (got a sequence)".
- self.inv_list.serialize(serializer)
- }
- }
-}
-
-impl<'data> CodePointInversionList<'data> {
- /// Returns a new [`CodePointInversionList`] from an [inversion list](https://en.wikipedia.org/wiki/Inversion_list)
- /// represented as a [`ZeroVec`]`<`[`PotentialCodePoint`]`>` of code points.
- ///
- /// The inversion list must be of even length, sorted ascending non-overlapping,
- /// and within the bounds of `0x0 -> 0x10FFFF` inclusive, and end points being exclusive.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// use icu::collections::codepointinvlist::InvalidSetError;
- /// use potential_utf::PotentialCodePoint;
- /// use zerovec::ZeroVec;
- ///
- /// let valid = [0x0, 0x10000];
- /// let inv_list: ZeroVec<PotentialCodePoint> = valid
- /// .into_iter()
- /// .map(PotentialCodePoint::from_u24)
- /// .collect();
- /// let result = CodePointInversionList::try_from_inversion_list(inv_list);
- /// assert!(matches!(result, CodePointInversionList));
- ///
- /// let invalid = vec![0x0, 0x80, 0x3];
- /// let inv_list: ZeroVec<PotentialCodePoint> = invalid
- /// .iter()
- /// .copied()
- /// .map(PotentialCodePoint::from_u24)
- /// .collect();
- /// let result = CodePointInversionList::try_from_inversion_list(inv_list);
- /// assert!(matches!(result, Err(InvalidSetError(_))));
- /// if let Err(InvalidSetError(actual)) = result {
- /// assert_eq!(
- /// &invalid,
- /// &actual.into_iter().map(u32::from).collect::<Vec<_>>()
- /// );
- /// }
- /// ```
- pub fn try_from_inversion_list(
- inv_list: ZeroVec<'data, PotentialCodePoint>,
- ) -> Result<Self, InvalidSetError> {
- #[expect(clippy::indexing_slicing)] // chunks
- if is_valid_zv(&inv_list) {
- let size = inv_list
- .as_ule_slice()
- .chunks(2)
- .map(|end_points| {
- u32::from(<PotentialCodePoint as AsULE>::from_unaligned(end_points[1]))
- - u32::from(<PotentialCodePoint as AsULE>::from_unaligned(end_points[0]))
- })
- .sum::<u32>();
- Ok(Self { inv_list, size })
- } else {
- Err(InvalidSetError(
- #[cfg(feature = "alloc")]
- inv_list.to_vec(),
- ))
- }
- }
-
- /// Safety: no actual safety invariants, however has correctness invariants
- #[doc(hidden)] // databake internal
- pub const unsafe fn from_parts_unchecked(
- inv_list: ZeroVec<'data, PotentialCodePoint>,
- size: u32,
- ) -> Self {
- Self { inv_list, size }
- }
-
- /// Returns a new, fully-owned [`CodePointInversionList`] by cloning an [inversion list](https://en.wikipedia.org/wiki/Inversion_list)
- /// represented as a slice of [`PotentialCodePoint`] code points.
- ///
- /// The inversion list must be of even length, sorted ascending non-overlapping,
- /// and within the bounds of `0x0 -> 0x10FFFF` inclusive, and end points being exclusive.
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- ///
- /// let bmp_list = &[0x0, 0x10000];
- /// let smp_list = &[0x10000, 0x20000];
- /// let sip_list = &[0x20000, 0x30000];
- ///
- /// let lists: Vec<CodePointInversionList> =
- /// [&bmp_list[..], smp_list, sip_list]
- /// .into_iter()
- /// .map(|l| {
- /// CodePointInversionList::try_from_u32_inversion_list_slice(l)
- /// .unwrap()
- /// })
- /// .collect();
- ///
- /// let bmp = &lists[0];
- /// assert!(bmp.contains32(0xFFFF));
- /// assert!(!bmp.contains32(0x10000));
- ///
- /// assert!(!lists.iter().any(|set| set.contains32(0x40000)));
- /// ```
- #[cfg(feature = "alloc")]
- pub fn try_from_u32_inversion_list_slice(inv_list: &[u32]) -> Result<Self, InvalidSetError> {
- let inv_list_zv: ZeroVec<PotentialCodePoint> = inv_list
- .iter()
- .copied()
- .map(PotentialCodePoint::from_u24)
- .collect();
- CodePointInversionList::try_from_inversion_list(inv_list_zv)
- }
-
- /// Attempts to convert this list into a fully-owned one. No-op if already fully owned
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- #[cfg(feature = "alloc")]
- pub fn into_owned(self) -> CodePointInversionList<'static> {
- CodePointInversionList {
- inv_list: self.inv_list.into_owned(),
- size: self.size,
- }
- }
-
- /// Returns an owned inversion list representing the current [`CodePointInversionList`]
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- #[cfg(feature = "alloc")]
- pub fn get_inversion_list_vec(&self) -> Vec<u32> {
- self.as_inversion_list().iter().map(u32::from).collect()
- }
-
- /// Returns [`CodePointInversionList`] spanning entire Unicode range
- ///
- /// The range spans from `0x0 -> 0x10FFFF` inclusive.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- ///
- /// let expected = [0x0, (char::MAX as u32) + 1];
- /// assert_eq!(
- /// CodePointInversionList::all().get_inversion_list_vec(),
- /// expected
- /// );
- /// assert_eq!(
- /// CodePointInversionList::all().size(),
- /// (expected[1] - expected[0]) as usize
- /// );
- /// ```
- pub const fn all() -> Self {
- Self {
- inv_list: ALL_VEC,
- size: (char::MAX as u32) + 1,
- }
- }
-
- /// Returns [`CodePointInversionList`] spanning BMP range
- ///
- /// The range spans from `0x0 -> 0xFFFF` inclusive.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- ///
- /// const BMP_MAX: u32 = 0xFFFF;
- ///
- /// let expected = [0x0, BMP_MAX + 1];
- /// assert_eq!(
- /// CodePointInversionList::bmp().get_inversion_list_vec(),
- /// expected
- /// );
- /// assert_eq!(
- /// CodePointInversionList::bmp().size(),
- /// (expected[1] - expected[0]) as usize
- /// );
- /// ```
- pub fn bmp() -> Self {
- Self {
- inv_list: BMP_INV_LIST_VEC,
- size: BMP_MAX + 1,
- }
- }
-
- /// Returns the inversion list as a slice
- ///
- /// Public only to the crate, not exposed to public
- #[cfg(feature = "alloc")]
- pub(crate) fn as_inversion_list(&self) -> &ZeroVec<'_, PotentialCodePoint> {
- &self.inv_list
- }
-
- /// Yields an [`Iterator`] going through the character set in the [`CodePointInversionList`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x44, 0x45, 0x46];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// let mut ex_iter_chars = example.iter_chars();
- /// assert_eq!(Some('A'), ex_iter_chars.next());
- /// assert_eq!(Some('B'), ex_iter_chars.next());
- /// assert_eq!(Some('C'), ex_iter_chars.next());
- /// assert_eq!(Some('E'), ex_iter_chars.next());
- /// assert_eq!(None, ex_iter_chars.next());
- /// ```
- pub fn iter_chars(&self) -> impl Iterator<Item = char> + '_ {
- #[expect(clippy::indexing_slicing)] // chunks
- self.inv_list
- .as_ule_slice()
- .chunks(2)
- .flat_map(|pair| {
- u32::from(PotentialCodePoint::from_unaligned(pair[0]))
- ..u32::from(PotentialCodePoint::from_unaligned(pair[1]))
- })
- .filter_map(char::from_u32)
- }
-
- /// Yields an [`Iterator`] returning the ranges of the code points that are
- /// included in the [`CodePointInversionList`]
- ///
- /// Ranges are returned as [`RangeInclusive`], which is inclusive of its
- /// `end` bound value. An end-inclusive behavior matches the ICU4C/J
- /// behavior of ranges, ex: `CodePointInversionList::contains(UChar32 start, UChar32 end)`.
- ///
- /// # Example
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x44, 0x45, 0x46];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// let mut example_iter_ranges = example.iter_ranges();
- /// assert_eq!(Some(0x41..=0x43), example_iter_ranges.next());
- /// assert_eq!(Some(0x45..=0x45), example_iter_ranges.next());
- /// assert_eq!(None, example_iter_ranges.next());
- /// ```
- pub fn iter_ranges(&self) -> impl ExactSizeIterator<Item = RangeInclusive<u32>> + '_ {
- #[expect(clippy::indexing_slicing)] // chunks
- self.inv_list.as_ule_slice().chunks(2).map(|pair| {
- let range_start = u32::from(PotentialCodePoint::from_unaligned(pair[0]));
- let range_limit = u32::from(PotentialCodePoint::from_unaligned(pair[1]));
- range_start..=(range_limit - 1)
- })
- }
-
- /// Yields an [`Iterator`] returning the ranges of the code points that are
- /// *not* included in the [`CodePointInversionList`]
- ///
- /// Ranges are returned as [`RangeInclusive`], which is inclusive of its
- /// `end` bound value. An end-inclusive behavior matches the ICU4C/J
- /// behavior of ranges, ex: `CodePointInversionList::contains(UChar32 start, UChar32 end)`.
- ///
- /// # Example
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x44, 0x45, 0x46];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// let mut example_iter_ranges = example.iter_ranges_complemented();
- /// assert_eq!(Some(0..=0x40), example_iter_ranges.next());
- /// assert_eq!(Some(0x44..=0x44), example_iter_ranges.next());
- /// assert_eq!(Some(0x46..=char::MAX as u32), example_iter_ranges.next());
- /// assert_eq!(None, example_iter_ranges.next());
- /// ```
- pub fn iter_ranges_complemented(&self) -> impl Iterator<Item = RangeInclusive<u32>> + '_ {
- let inv_ule = self.inv_list.as_ule_slice();
- let middle = inv_ule.get(1..inv_ule.len() - 1).unwrap_or(&[]);
- let beginning = if let Some(first) = self.inv_list.first() {
- let first = u32::from(first);
- if first == 0 {
- None
- } else {
- Some(0..=first - 1)
- }
- } else {
- None
- };
- let end = if let Some(last) = self.inv_list.last() {
- let last = u32::from(last);
- if last == char::MAX as u32 {
- None
- } else {
- Some(last..=char::MAX as u32)
- }
- } else {
- None
- };
- #[expect(clippy::indexing_slicing)] // chunks
- let chunks = middle.chunks(2).map(|pair| {
- let range_start = u32::from(PotentialCodePoint::from_unaligned(pair[0]));
- let range_limit = u32::from(PotentialCodePoint::from_unaligned(pair[1]));
- range_start..=(range_limit - 1)
- });
- beginning.into_iter().chain(chunks).chain(end)
- }
-
- /// Returns the number of ranges contained in this [`CodePointInversionList`]
- pub fn get_range_count(&self) -> usize {
- self.inv_list.len() / 2
- }
-
- /// Returns a specific range contained in this [`CodePointInversionList`] by index.
- /// Intended for use in FFI.
- pub fn get_nth_range(&self, idx: usize) -> Option<RangeInclusive<u32>> {
- let start_idx = idx * 2;
- let end_idx = start_idx + 1;
- let start = u32::from(self.inv_list.get(start_idx)?);
- let end = u32::from(self.inv_list.get(end_idx)?);
- Some(start..=(end - 1))
- }
-
- /// Returns the number of elements of the [`CodePointInversionList`]
- pub fn size(&self) -> usize {
- if self.is_empty() {
- return 0;
- }
- self.size as usize
- }
-
- /// Returns whether or not the [`CodePointInversionList`] is empty
- pub fn is_empty(&self) -> bool {
- self.inv_list.is_empty()
- }
-
- /// Wrapper for contains
- ///
- /// Returns an [`Option`] as to whether or not it is possible for the query to be contained.
- /// The value in the [`Option`] is the start index of the range that contains the query.
- fn contains_query(&self, query: u32) -> Option<usize> {
- let query = PotentialCodePoint::try_from(query).ok()?;
- match self.inv_list.binary_search(&query) {
- Ok(pos) => {
- if pos % 2 == 0 {
- Some(pos)
- } else {
- None
- }
- }
- Err(pos) => {
- if pos % 2 != 0 && pos < self.inv_list.len() {
- Some(pos - 1)
- } else {
- None
- }
- }
- }
- }
-
- /// Checks to see the query is in the [`CodePointInversionList`]
- ///
- /// Runs a binary search in `O(log(n))` where `n` is the number of start and end points
- /// in the set using [`core`] implementation
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x43, 0x44, 0x45];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert!(example.contains('A'));
- /// assert!(!example.contains('C'));
- /// ```
- pub fn contains(&self, query: char) -> bool {
- self.contains_query(query as u32).is_some()
- }
-
- /// Checks to see the unsigned int is in the [`CodePointInversionList::all()`](CodePointInversionList::all())
- ///
- /// Note: Even though [`u32`] and [`prim@char`] in Rust are non-negative 4-byte
- /// values, there is an important difference. A [`u32`] can take values up to
- /// a very large integer value, while a [`prim@char`] in Rust is defined to be in
- /// the range from 0 to the maximum valid Unicode Scalar Value.
- ///
- /// Runs a binary search in `O(log(n))` where `n` is the number of start and end points
- /// in the set using [`core`] implementation
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x43, 0x44, 0x45];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert!(example.contains32(0x41));
- /// assert!(!example.contains32(0x43));
- /// ```
- pub fn contains32(&self, query: u32) -> bool {
- self.contains_query(query).is_some()
- }
-
- /// Checks to see if the range is in the [`CodePointInversionList`]
- ///
- /// Runs a binary search in `O(log(n))` where `n` is the number of start and end points
- /// in the set using [`Vec`] implementation. Only runs the search once on the `start`
- /// parameter, while the `end` parameter is checked in a single `O(1)` step.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x43, 0x44, 0x45];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert!(example.contains_range('A'..'C'));
- /// assert!(example.contains_range('A'..='B'));
- /// assert!(!example.contains_range('A'..='C'));
- /// ```
- ///
- /// Surrogate points (`0xD800 -> 0xDFFF`) will return [`false`] if the Range contains them but the
- /// [`CodePointInversionList`] does not.
- ///
- /// Note: when comparing to ICU4C/J, keep in mind that `Range`s in Rust are
- /// constructed inclusive of start boundary and exclusive of end boundary.
- /// The ICU4C/J `CodePointInversionList::contains(UChar32 start, UChar32 end)` method
- /// differs by including the end boundary.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// use std::char;
- /// let check =
- /// char::from_u32(0xD7FE).unwrap()..char::from_u32(0xE001).unwrap();
- /// let example_list = [0xD7FE, 0xD7FF, 0xE000, 0xE001];
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert!(!example.contains_range(check));
- /// ```
- pub fn contains_range(&self, range: impl RangeBounds<char>) -> bool {
- let (from, till) = deconstruct_range(range);
- if from >= till {
- return false;
- }
- match self.contains_query(from) {
- Some(pos) => {
- if let Some(x) = self.inv_list.get(pos + 1) {
- (till) <= x.into()
- } else {
- debug_assert!(
- false,
- "Inversion list query should not return out of bounds index"
- );
- false
- }
- }
- None => false,
- }
- }
-
- /// Check if the calling [`CodePointInversionList`] contains all the characters of the given [`CodePointInversionList`]
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x46, 0x55, 0x5B]; // A - E, U - Z
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// let a_to_d = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x41, 0x45,
- /// ])
- /// .unwrap();
- /// let f_to_t = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x46, 0x55,
- /// ])
- /// .unwrap();
- /// let r_to_x = CodePointInversionList::try_from_u32_inversion_list_slice(&[
- /// 0x52, 0x58,
- /// ])
- /// .unwrap();
- /// assert!(example.contains_set(&a_to_d)); // contains all
- /// assert!(!example.contains_set(&f_to_t)); // contains none
- /// assert!(!example.contains_set(&r_to_x)); // contains some
- /// ```
- pub fn contains_set(&self, set: &Self) -> bool {
- if set.size() > self.size() {
- return false;
- }
-
- let mut set_ranges = set.iter_ranges();
- let mut check_elem = set_ranges.next();
-
- let ranges = self.iter_ranges();
- for range in ranges {
- match check_elem {
- Some(ref check_range) => {
- if check_range.start() >= range.start()
- && check_range.end() <= &(range.end() + 1)
- {
- check_elem = set_ranges.next();
- }
- }
- _ => break,
- }
- }
- check_elem.is_none()
- }
-
- /// Returns the end of the initial substring where the characters are either contained/not contained
- /// in the set.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x44]; // {A, B, C}
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert_eq!(example.span("CABXYZ", true), 3);
- /// assert_eq!(example.span("XYZC", false), 3);
- /// assert_eq!(example.span("XYZ", true), 0);
- /// assert_eq!(example.span("ABC", false), 0);
- /// ```
- pub fn span(&self, span_str: &str, contained: bool) -> usize {
- span_str
- .chars()
- .take_while(|&x| self.contains(x) == contained)
- .count()
- }
-
- /// Returns the start of the trailing substring (starting from end of string) where the characters are
- /// either contained/not contained in the set. Returns the length of the string if no valid return.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// let example_list = [0x41, 0x44]; // {A, B, C}
- /// let example = CodePointInversionList::try_from_u32_inversion_list_slice(
- /// &example_list,
- /// )
- /// .unwrap();
- /// assert_eq!(example.span_back("XYZCAB", true), 3);
- /// assert_eq!(example.span_back("ABCXYZ", true), 6);
- /// assert_eq!(example.span_back("CABXYZ", false), 3);
- /// ```
- pub fn span_back(&self, span_str: &str, contained: bool) -> usize {
- span_str.len()
- - span_str
- .chars()
- .rev()
- .take_while(|&x| self.contains(x) == contained)
- .count()
- }
-}
-
-#[cfg(test)]
-mod tests {
- use super::{CodePointInversionList, InvalidSetError};
- use std::{char, vec::Vec};
- use zerovec::ZeroVec;
-
- #[test]
- fn test_codepointinversionlist_try_from_vec() {
- let ex = vec![0x2, 0x3, 0x4, 0x5];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(ex, check.get_inversion_list_vec());
- assert_eq!(2, check.size());
- }
-
- #[test]
- fn test_codepointinversionlist_try_from_vec_error() {
- let check = vec![0x1, 0x1, 0x2, 0x3, 0x4];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&check);
- assert!(matches!(set, Err(InvalidSetError(_))));
- if let Err(InvalidSetError(actual)) = set {
- assert_eq!(
- &check,
- &actual.into_iter().map(u32::from).collect::<Vec<_>>()
- );
- }
- }
-
- // CodePointInversionList membership functions
- #[test]
- fn test_codepointinversionlist_contains_query() {
- let ex = vec![0x41, 0x46, 0x4B, 0x55];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert!(check.contains_query(0x40).is_none());
- assert_eq!(check.contains_query(0x41).unwrap(), 0);
- assert_eq!(check.contains_query(0x44).unwrap(), 0);
- assert!(check.contains_query(0x46).is_none());
- assert_eq!(check.contains_query(0x4C).unwrap(), 2);
- assert!(check.contains_query(0x56).is_none());
- }
-
- #[test]
- fn test_codepointinversionlist_contains() {
- let ex = vec![0x2, 0x5, 0xA, 0xF];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert!(check.contains(0x2 as char));
- assert!(check.contains(0x4 as char));
- assert!(check.contains(0xA as char));
- assert!(check.contains(0xE as char));
- }
-
- #[test]
- fn test_codepointinversionlist_contains_false() {
- let ex = vec![0x2, 0x5, 0xA, 0xF];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert!(!check.contains(0x1 as char));
- assert!(!check.contains(0x5 as char));
- assert!(!check.contains(0x9 as char));
- assert!(!check.contains(0xF as char));
- assert!(!check.contains(0x10 as char));
- }
-
- #[test]
- fn test_codepointinversionlist_contains_range() {
- let ex = vec![0x41, 0x46, 0x4B, 0x55];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert!(check.contains_range('A'..='E')); // 65 - 69
- assert!(check.contains_range('C'..'D')); // 67 - 67
- assert!(check.contains_range('L'..'P')); // 76 - 80
- assert!(!check.contains_range('L'..='U')); // 76 - 85
- }
-
- #[test]
- fn test_codepointinversionlist_contains_range_false() {
- let ex = vec![0x41, 0x46, 0x4B, 0x55];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert!(!check.contains_range('!'..'A')); // 33 - 65
- assert!(!check.contains_range('F'..'K')); // 70 - 74
- assert!(!check.contains_range('U'..)); // 85 - ..
- }
-
- #[test]
- fn test_codepointinversionlist_contains_range_invalid() {
- let check = CodePointInversionList::all();
- assert!(!check.contains_range('A'..'!')); // 65 - 33
- assert!(!check.contains_range('A'..'A')); // 65 - 65
- }
-
- #[test]
- fn test_codepointinversionlist_contains_set_u() {
- let ex = vec![0xA, 0x14, 0x28, 0x32, 0x46, 0x50, 0x64, 0x6E];
- let u = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let inside = vec![0xF, 0x14, 0x2C, 0x31, 0x46, 0x50, 0x64, 0x6D];
- let s = CodePointInversionList::try_from_u32_inversion_list_slice(&inside).unwrap();
- assert!(u.contains_set(&s));
- }
-
- #[test]
- fn test_codepointinversionlist_contains_set_u_false() {
- let ex = vec![0xA, 0x14, 0x28, 0x32, 0x46, 0x50, 0x64, 0x78];
- let u = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let outside = vec![0x0, 0xA, 0x16, 0x2C, 0x32, 0x46, 0x4F, 0x51, 0x6D, 0x6F];
- let s = CodePointInversionList::try_from_u32_inversion_list_slice(&outside).unwrap();
- assert!(!u.contains_set(&s));
- }
-
- #[test]
- fn test_codepointinversionlist_size() {
- let ex = vec![0x2, 0x5, 0xA, 0xF];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(8, check.size());
- let check = CodePointInversionList::all();
- let expected = (char::MAX as u32) + 1;
- assert_eq!(expected as usize, check.size());
- let inv_list_vec = vec![];
- let check = CodePointInversionList {
- inv_list: ZeroVec::from_slice_or_alloc(&inv_list_vec),
- size: 0,
- };
- assert_eq!(check.size(), 0);
- }
-
- #[test]
- fn test_codepointinversionlist_is_empty() {
- let inv_list_vec = vec![];
- let check = CodePointInversionList {
- inv_list: ZeroVec::from_slice_or_alloc(&inv_list_vec),
- size: 0,
- };
- assert!(check.is_empty());
- }
-
- #[test]
- fn test_codepointinversionlist_is_not_empty() {
- let check = CodePointInversionList::all();
- assert!(!check.is_empty());
- }
-
- #[test]
- fn test_codepointinversionlist_iter_chars() {
- let ex = vec![0x41, 0x44, 0x45, 0x46, 0xD800, 0xD801];
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let mut iter = check.iter_chars();
- assert_eq!(Some('A'), iter.next());
- assert_eq!(Some('B'), iter.next());
- assert_eq!(Some('C'), iter.next());
- assert_eq!(Some('E'), iter.next());
- assert_eq!(None, iter.next());
- }
-
- #[test]
- fn test_codepointinversionlist_iter_ranges() {
- let ex = vec![0x41, 0x44, 0x45, 0x46, 0xD800, 0xD801];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let mut ranges = set.iter_ranges();
- assert_eq!(Some(0x41..=0x43), ranges.next());
- assert_eq!(Some(0x45..=0x45), ranges.next());
- assert_eq!(Some(0xD800..=0xD800), ranges.next());
- assert_eq!(None, ranges.next());
- }
-
- #[test]
- fn test_codepointinversionlist_iter_ranges_exactsizeiter_trait() {
- let ex = vec![0x41, 0x44, 0x45, 0x46, 0xD800, 0xD801];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let ranges = set.iter_ranges();
- assert_eq!(3, ranges.len());
- }
-
- #[test]
- fn test_codepointinversionlist_range_count() {
- let ex = vec![0x41, 0x44, 0x45, 0x46, 0xD800, 0xD801];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(3, set.get_range_count());
- }
-
- #[test]
- fn test_codepointinversionlist_get_nth_range() {
- let ex = vec![0x41, 0x44, 0x45, 0x46, 0xD800, 0xD801];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(Some(0x41..=0x43), set.get_nth_range(0));
- assert_eq!(Some(0x45..=0x45), set.get_nth_range(1));
- assert_eq!(Some(0xD800..=0xD800), set.get_nth_range(2));
- assert_eq!(None, set.get_nth_range(3));
- }
-
- // Range<char> cannot represent the upper bound (non-inclusive) for
- // char::MAX, whereas Range<u32> can.
- #[test]
- fn test_codepointinversionlist_iter_ranges_with_max_code_point() {
- let ex = vec![0x80, (char::MAX as u32) + 1];
- let set = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- let mut ranges = set.iter_ranges();
- assert_eq!(Some(0x80..=(char::MAX as u32)), ranges.next());
- assert_eq!(None, ranges.next());
- }
-
- #[test]
- fn test_codepointinversionlist_span_contains() {
- let ex = vec![0x41, 0x44, 0x46, 0x4B]; // A - D, F - K
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(check.span("ABCDE", true), 3);
- assert_eq!(check.span("E", true), 0);
- }
-
- #[test]
- fn test_codepointinversionlist_span_does_not_contain() {
- let ex = vec![0x41, 0x44, 0x46, 0x4B]; // A - D, F - K
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(check.span("DEF", false), 2);
- assert_eq!(check.span("KLMA", false), 3);
- }
-
- #[test]
- fn test_codepointinversionlist_span_back_contains() {
- let ex = vec![0x41, 0x44, 0x46, 0x4B]; // A - D, F - K
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(check.span_back("XYZABFH", true), 3);
- assert_eq!(check.span_back("ABCXYZ", true), 6);
- }
-
- #[test]
- fn test_codepointinversionlist_span_back_does_not_contain() {
- let ex = vec![0x41, 0x44, 0x46, 0x4B]; // A - D, F - K
- let check = CodePointInversionList::try_from_u32_inversion_list_slice(&ex).unwrap();
- assert_eq!(check.span_back("ABCXYZ", false), 3);
- assert_eq!(check.span_back("XYZABC", false), 6);
- }
-
- #[test]
- fn test_uniset_to_inv_list() {
- let inv_list = [
- 0x9, 0xE, 0x20, 0x21, 0x85, 0x86, 0xA0, 0xA1, 0x1626, 0x1627, 0x2000, 0x2003, 0x2028,
- 0x202A, 0x202F, 0x2030, 0x205F, 0x2060, 0x3000, 0x3001,
- ];
- let s: CodePointInversionList =
- CodePointInversionList::try_from_u32_inversion_list_slice(&inv_list).unwrap();
- let round_trip_inv_list = s.get_inversion_list_vec();
- assert_eq!(
- round_trip_inv_list.into_iter().collect::<ZeroVec<u32>>(),
- inv_list
- );
- }
-
- #[test]
- fn test_serde_serialize() {
- let inv_list = [0x41, 0x46, 0x4B, 0x55];
- let uniset = CodePointInversionList::try_from_u32_inversion_list_slice(&inv_list).unwrap();
- let json_str = serde_json::to_string(&uniset).unwrap();
- assert_eq!(json_str, r#"["A-E","K-T"]"#);
- }
-
- #[test]
- fn test_serde_serialize_surrogates() {
- let inv_list = [0xDFAB, 0xDFFF];
- let uniset = CodePointInversionList::try_from_u32_inversion_list_slice(&inv_list).unwrap();
- let json_str = serde_json::to_string(&uniset).unwrap();
- assert_eq!(json_str, r#"["U+DFAB-U+DFFE"]"#);
- }
-
- #[test]
- fn test_serde_deserialize() {
- let inv_list_str = r#"["A-E","K-T"]"#;
- let exp_inv_list = [0x41, 0x46, 0x4B, 0x55];
- let exp_uniset =
- CodePointInversionList::try_from_u32_inversion_list_slice(&exp_inv_list).unwrap();
- let act_uniset: CodePointInversionList = serde_json::from_str(inv_list_str).unwrap();
- assert_eq!(act_uniset, exp_uniset);
- }
-
- #[test]
- fn test_serde_deserialize_surrogates() {
- let inv_list_str = r#"["U+DFAB-U+DFFE"]"#;
- let exp_inv_list = [0xDFAB, 0xDFFF];
- let exp_uniset =
- CodePointInversionList::try_from_u32_inversion_list_slice(&exp_inv_list).unwrap();
- let act_uniset: CodePointInversionList = serde_json::from_str(inv_list_str).unwrap();
- assert_eq!(act_uniset, exp_uniset);
- }
-
- #[test]
- fn test_serde_deserialize_invalid() {
- assert!(serde_json::from_str::<CodePointInversionList>("[65,70,98775,85]").is_err());
- assert!(serde_json::from_str::<CodePointInversionList>("[65,70,U+FFFFFFFFFF,85]").is_err());
- }
-
- #[test]
- fn test_serde_with_postcard_roundtrip() -> Result<(), postcard::Error> {
- let set = CodePointInversionList::bmp();
- let set_serialized: Vec<u8> = postcard::to_allocvec(&set).unwrap();
- let set_deserialized: CodePointInversionList =
- postcard::from_bytes::<CodePointInversionList>(&set_serialized)?;
-
- assert_eq!(&set, &set_deserialized);
- assert!(!set_deserialized.inv_list.is_owned());
-
- Ok(())
- }
-
- #[test]
- fn databake() {
- databake::test_bake!(
- CodePointInversionList<'static>,
- const,
- unsafe {
- #[allow(unused_unsafe)]
- crate::codepointinvlist::CodePointInversionList::from_parts_unchecked(
- unsafe {
- zerovec::ZeroVec::from_bytes_unchecked(
- b"0\0\0\0:\0\0\0A\0\0\0G\0\0\0a\0\0\0g\0\0\0",
- )
- },
- 22u32,
- )
- },
- icu_collections,
- [zerovec],
- );
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/mod.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/mod.rs
deleted file mode 100644
index be47ec5ca0d..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/mod.rs
+++ /dev/null
@@ -1,80 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! This module provides necessary functionality for highly efficient querying of sets of Unicode characters.
-//!
-//! It is an implementation of the code point portion of the existing
-//! [ICU4C UnicodeSet API](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeSet.html).
-//!
-//! # Architecture
-//! ICU4X [`CodePointInversionList`] is split up into independent levels, with [`CodePointInversionList`] representing the membership/query API,
-//! and [`CodePointInversionListBuilder`] representing the builder API.
-//!
-//! # Examples:
-//!
-//! ## Creating a `CodePointInversionList`
-//!
-//! `CodePointSets` are created from either serialized [`CodePointSets`](CodePointInversionList),
-//! represented by [inversion lists](https://unicode-org.github.io/icu/userguide/strings/properties.html),
-//! the [`CodePointInversionListBuilder`], or from the Properties API.
-//!
-//! ```
-//! use icu::collections::codepointinvlist::{
-//! CodePointInversionList, CodePointInversionListBuilder,
-//! };
-//!
-//! let mut builder = CodePointInversionListBuilder::new();
-//! builder.add_range('A'..='Z');
-//! let set: CodePointInversionList = builder.build();
-//!
-//! assert!(set.contains('A'));
-//! ```
-//!
-//! ## Querying a `CodePointInversionList`
-//!
-//! Currently, you can check if a character/range of characters exists in the [`CodePointInversionList`], or iterate through the characters.
-//!
-//! ```
-//! use icu::collections::codepointinvlist::{
-//! CodePointInversionList, CodePointInversionListBuilder,
-//! };
-//!
-//! let mut builder = CodePointInversionListBuilder::new();
-//! builder.add_range('A'..='Z');
-//! let set: CodePointInversionList = builder.build();
-//!
-//! assert!(set.contains('A'));
-//! assert!(set.contains_range('A'..='C'));
-//! assert_eq!(set.iter_chars().next(), Some('A'));
-//! ```
-//!
-//! [`ICU4X`]: ../icu/index.html
-
-#[cfg(feature = "alloc")]
-#[macro_use]
-mod builder;
-#[cfg(feature = "alloc")]
-mod conversions;
-mod cpinvlist;
-mod utils;
-
-#[cfg(feature = "alloc")]
-use alloc::vec::Vec;
-#[cfg(feature = "alloc")]
-pub use builder::CodePointInversionListBuilder;
-pub use cpinvlist::CodePointInversionList;
-pub use cpinvlist::CodePointInversionListULE;
-use displaydoc::Display;
-
-#[derive(Display, Debug)]
-/// A [`CodePointInversionList`] was constructed with an invalid inversion list
-#[cfg_attr(feature = "alloc", displaydoc("Invalid set: {0:?}"))]
-#[allow(clippy::exhaustive_structs)] // newtype
-pub struct InvalidSetError(#[cfg(feature = "alloc")] pub Vec<potential_utf::PotentialCodePoint>);
-
-/// A [`CodePointInversionList`] was constructed from an invalid range
-#[derive(Display, Debug)]
-#[displaydoc("Invalid range: {0}..{1}")]
-#[allow(clippy::exhaustive_structs)] // newtype
-pub struct RangeError(pub u32, pub u32);
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/utils.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/utils.rs
deleted file mode 100644
index ef04d3b18b9..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvlist/utils.rs
+++ /dev/null
@@ -1,118 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use core::{
- char,
- ops::{Bound::*, RangeBounds},
-};
-use potential_utf::PotentialCodePoint;
-use zerovec::ule::AsULE;
-use zerovec::ZeroVec;
-
-/// Returns whether the vector is sorted ascending non inclusive, of even length,
-/// and within the bounds of `0x0 -> 0x10FFFF + 1` inclusive.
-#[expect(clippy::indexing_slicing)] // windows
-#[expect(clippy::unwrap_used)] // by is_empty check
-pub fn is_valid_zv(inv_list_zv: &ZeroVec<'_, PotentialCodePoint>) -> bool {
- inv_list_zv.is_empty()
- || (inv_list_zv.len() % 2 == 0
- && inv_list_zv.as_ule_slice().windows(2).all(|chunk| {
- <PotentialCodePoint as AsULE>::from_unaligned(chunk[0])
- < <PotentialCodePoint as AsULE>::from_unaligned(chunk[1])
- })
- && u32::from(inv_list_zv.last().unwrap()) <= char::MAX as u32 + 1)
-}
-
-/// Returns start (inclusive) and end (exclusive) bounds of [`RangeBounds`]
-pub fn deconstruct_range<T>(range: impl RangeBounds<T>) -> (u32, u32)
-where
- T: Into<u32> + Copy,
-{
- let from = match range.start_bound() {
- Included(b) => (*b).into(),
- Excluded(_) => unreachable!(),
- Unbounded => 0,
- };
- let till = match range.end_bound() {
- Included(b) => (*b).into() + 1,
- Excluded(b) => (*b).into(),
- Unbounded => (char::MAX as u32) + 1,
- };
- (from, till)
-}
-
-#[cfg(test)]
-mod tests {
- use super::{deconstruct_range, is_valid_zv, PotentialCodePoint};
- use core::char;
- use zerovec::ZeroVec;
-
- fn make_zv(slice: &[u32]) -> ZeroVec<'_, PotentialCodePoint> {
- slice
- .iter()
- .copied()
- .map(PotentialCodePoint::from_u24)
- .collect()
- }
- #[test]
- fn test_is_valid_zv() {
- let check = make_zv(&[0x2, 0x3, 0x4, 0x5]);
- assert!(is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_empty() {
- let check = make_zv(&[]);
- assert!(is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_overlapping() {
- let check = make_zv(&[0x2, 0x5, 0x4, 0x6]);
- assert!(!is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_out_of_order() {
- let check = make_zv(&[0x5, 0x4, 0x5, 0x6, 0x7]);
- assert!(!is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_duplicate() {
- let check = make_zv(&[0x1, 0x2, 0x3, 0x3, 0x5]);
- assert!(!is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_odd() {
- let check = make_zv(&[0x1, 0x2, 0x3, 0x4, 0x5]);
- assert!(!is_valid_zv(&check));
- }
-
- #[test]
- fn test_is_valid_zv_out_of_range() {
- let check = make_zv(&[0x1, 0x2, 0x3, 0x4, (char::MAX as u32) + 1]);
- assert!(!is_valid_zv(&check));
- }
-
- // deconstruct_range
-
- #[test]
- fn test_deconstruct_range() {
- let expected = (0x41, 0x45);
- let check = deconstruct_range('A'..'E'); // Range
- assert_eq!(check, expected);
- let check = deconstruct_range('A'..='D'); // Range Inclusive
- assert_eq!(check, expected);
- let check = deconstruct_range('A'..); // Range From
- assert_eq!(check, (0x41, (char::MAX as u32) + 1));
- let check = deconstruct_range(..'A'); // Range To
- assert_eq!(check, (0x0, 0x41));
- let check = deconstruct_range(..='A'); // Range To Inclusive
- assert_eq!(check, (0x0, 0x42));
- let check = deconstruct_range::<char>(..); // Range Full
- assert_eq!(check, (0x0, (char::MAX as u32) + 1));
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointinvliststringlist/mod.rs b/deps/crates/vendor/icu_collections-v2/src/codepointinvliststringlist/mod.rs
deleted file mode 100644
index 9fb15c64bfe..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointinvliststringlist/mod.rs
+++ /dev/null
@@ -1,400 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! This module provides functionality for querying of sets of Unicode code points and strings.
-//!
-//! It depends on [`CodePointInversionList`] to efficiently represent Unicode code points, while
-//! it also maintains a list of strings in the set.
-//!
-//! It is an implementation of the existing [ICU4C UnicodeSet API](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeSet.html).
-
-#[cfg(feature = "alloc")]
-use crate::codepointinvlist::CodePointInversionListBuilder;
-use crate::codepointinvlist::{CodePointInversionList, CodePointInversionListULE};
-#[cfg(feature = "alloc")]
-use alloc::string::{String, ToString};
-#[cfg(feature = "alloc")]
-use alloc::vec::Vec;
-use displaydoc::Display;
-use yoke::Yokeable;
-use zerofrom::ZeroFrom;
-use zerovec::{VarZeroSlice, VarZeroVec};
-
-/// A data structure providing a concrete implementation of a set of code points and strings,
-/// using an inversion list for the code points.
-///
-/// This is what ICU4C calls a `UnicodeSet`.
-#[zerovec::make_varule(CodePointInversionListAndStringListULE)]
-#[zerovec::skip_derive(Ord)]
-#[zerovec::derive(Debug)]
-#[derive(Debug, Eq, PartialEq, Clone, Yokeable, ZeroFrom)]
-#[cfg_attr(not(feature = "alloc"), zerovec::skip_derive(ZeroMapKV, ToOwned))]
-// Valid to auto-derive Deserialize because the invariants are weakly held
-#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
-#[cfg_attr(feature = "serde", zerovec::derive(Serialize, Deserialize, Debug))]
-pub struct CodePointInversionListAndStringList<'data> {
- #[cfg_attr(feature = "serde", serde(borrow))]
- #[zerovec::varule(CodePointInversionListULE)]
- cp_inv_list: CodePointInversionList<'data>,
- // Invariants (weakly held):
- // - no input string is length 1 (a length 1 string should be a single code point)
- // - the string list is sorted
- // - the elements in the string list are unique
- #[cfg_attr(feature = "serde", serde(borrow))]
- str_list: VarZeroVec<'data, str>,
-}
-
-#[cfg(feature = "databake")]
-impl databake::Bake for CodePointInversionListAndStringList<'_> {
- fn bake(&self, env: &databake::CrateEnv) -> databake::TokenStream {
- env.insert("icu_collections");
- let cp_inv_list = self.cp_inv_list.bake(env);
- let str_list = self.str_list.bake(env);
- // Safe because our parts are safe.
- databake::quote! {
- icu_collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(#cp_inv_list, #str_list)
- }
- }
-}
-
-#[cfg(feature = "databake")]
-impl databake::BakeSize for CodePointInversionListAndStringList<'_> {
- fn borrows_size(&self) -> usize {
- self.cp_inv_list.borrows_size() + self.str_list.borrows_size()
- }
-}
-
-impl<'data> CodePointInversionListAndStringList<'data> {
- /// Returns a new [`CodePointInversionListAndStringList`] from both a [`CodePointInversionList`] for the
- /// code points and a [`VarZeroVec`]`<`[`str`]`>` of strings.
- pub fn try_from(
- cp_inv_list: CodePointInversionList<'data>,
- str_list: VarZeroVec<'data, str>,
- ) -> Result<Self, InvalidStringList> {
- // Verify invariants:
- // Do so by using the equivalent of str_list.iter().windows(2) to get
- // overlapping windows of size 2. The above putative code is not possible
- // because `.windows()` exists on a slice, but VarZeroVec cannot return a slice
- // because the non-fixed size elements necessitate at least some type
- // of allocation.
- {
- let mut it = str_list.iter();
- if let Some(mut x) = it.next() {
- if x.len() == 1 {
- return Err(InvalidStringList::InvalidStringLength(
- #[cfg(feature = "alloc")]
- x.to_string(),
- ));
- }
- for y in it {
- if x.len() == 1 {
- return Err(InvalidStringList::InvalidStringLength(
- #[cfg(feature = "alloc")]
- x.to_string(),
- ));
- } else if x == y {
- return Err(InvalidStringList::StringListNotUnique(
- #[cfg(feature = "alloc")]
- x.to_string(),
- ));
- } else if x > y {
- return Err(InvalidStringList::StringListNotSorted(
- #[cfg(feature = "alloc")]
- x.to_string(),
- #[cfg(feature = "alloc")]
- y.to_string(),
- ));
- }
-
- // Next window begins. Update `x` here, `y` will be updated in next loop iteration.
- x = y;
- }
- }
- }
-
- Ok(CodePointInversionListAndStringList {
- cp_inv_list,
- str_list,
- })
- }
-
- #[doc(hidden)] // databake internal
- pub const fn from_parts_unchecked(
- cp_inv_list: CodePointInversionList<'data>,
- str_list: VarZeroVec<'data, str>,
- ) -> Self {
- CodePointInversionListAndStringList {
- cp_inv_list,
- str_list,
- }
- }
-
- /// Returns the number of elements in this set (its cardinality).
- /// Note than the elements of a set may include both individual
- /// codepoints and strings.
- pub fn size(&self) -> usize {
- self.cp_inv_list.size() + self.str_list.len()
- }
-
- /// Return true if this set contains multi-code point strings or the empty string.
- pub fn has_strings(&self) -> bool {
- !self.str_list.is_empty()
- }
-
- ///
- /// # Examples
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// use icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList;
- /// use zerovec::VarZeroVec;
- ///
- /// let cp_slice = &[0, 0x1_0000, 0x10_FFFF, 0x11_0000];
- /// let cp_list =
- /// CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- /// let str_slice = &["", "bmp_max", "unicode_max", "zero"];
- /// let str_list = VarZeroVec::<str>::from(str_slice);
- ///
- /// let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list).unwrap();
- ///
- /// assert!(cpilsl.contains_str("bmp_max"));
- /// assert!(cpilsl.contains_str(""));
- /// assert!(cpilsl.contains_str("A"));
- /// assert!(cpilsl.contains_str("ቔ")); // U+1254 ETHIOPIC SYLLABLE QHEE
- /// assert!(!cpilsl.contains_str("bazinga!"));
- /// ```
- pub fn contains_str(&self, s: &str) -> bool {
- let mut chars = s.chars();
- if let Some(first_char) = chars.next() {
- if chars.next().is_none() {
- return self.contains(first_char);
- }
- }
- self.str_list.binary_search(s).is_ok()
- }
-
- /// See [`Self::contains_str`]
- pub fn contains_utf8(&self, s: &[u8]) -> bool {
- use utf8_iter::Utf8CharsEx;
- let mut chars = s.chars();
- if let Some(first_char) = chars.next() {
- if chars.next().is_none() {
- return self.contains(first_char);
- }
- }
- self.str_list
- .binary_search_by(|t| t.as_bytes().cmp(s))
- .is_ok()
- }
-
- ///
- /// # Examples
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// use icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList;
- /// use zerovec::VarZeroVec;
- ///
- /// let cp_slice = &[0, 0x80, 0xFFFF, 0x1_0000, 0x10_FFFF, 0x11_0000];
- /// let cp_list =
- /// CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- /// let str_slice = &["", "ascii_max", "bmp_max", "unicode_max", "zero"];
- /// let str_list = VarZeroVec::<str>::from(str_slice);
- ///
- /// let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list).unwrap();
- ///
- /// assert!(cpilsl.contains32(0));
- /// assert!(cpilsl.contains32(0x0042));
- /// assert!(!cpilsl.contains32(0x0080));
- /// ```
- pub fn contains32(&self, cp: u32) -> bool {
- self.cp_inv_list.contains32(cp)
- }
-
- ///
- /// # Examples
- /// ```
- /// use icu::collections::codepointinvlist::CodePointInversionList;
- /// use icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList;
- /// use zerovec::VarZeroVec;
- ///
- /// let cp_slice = &[0, 0x1_0000, 0x10_FFFF, 0x11_0000];
- /// let cp_list =
- /// CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- /// let str_slice = &["", "bmp_max", "unicode_max", "zero"];
- /// let str_list = VarZeroVec::<str>::from(str_slice);
- ///
- /// let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list).unwrap();
- ///
- /// assert!(cpilsl.contains('A'));
- /// assert!(cpilsl.contains('ቔ')); // U+1254 ETHIOPIC SYLLABLE QHEE
- /// assert!(!cpilsl.contains('\u{1_0000}'));
- /// assert!(!cpilsl.contains('🨫')); // U+1FA2B NEUTRAL CHESS TURNED QUEEN
- pub fn contains(&self, ch: char) -> bool {
- self.contains32(ch as u32)
- }
-
- /// Access the underlying [`CodePointInversionList`].
- pub fn code_points(&self) -> &CodePointInversionList<'data> {
- &self.cp_inv_list
- }
-
- /// Access the contained strings.
- pub fn strings(&self) -> &VarZeroSlice<str> {
- &self.str_list
- }
-}
-
-#[cfg(feature = "alloc")]
-/// ✨ *Enabled with the `alloc` Cargo feature.*
-impl<'a> FromIterator<&'a str> for CodePointInversionListAndStringList<'_> {
- fn from_iter<I>(it: I) -> Self
- where
- I: IntoIterator<Item = &'a str>,
- {
- let mut builder = CodePointInversionListBuilder::new();
- let mut strings = Vec::<&str>::new();
- for s in it {
- let mut chars = s.chars();
- if let Some(first_char) = chars.next() {
- if chars.next().is_none() {
- builder.add_char(first_char);
- continue;
- }
- }
- strings.push(s);
- }
-
- // Ensure that the string list is sorted. If not, the binary search that
- // is used for `.contains(&str)` will return garbage output.
- strings.sort_unstable();
- strings.dedup();
-
- let cp_inv_list = builder.build();
- let str_list = VarZeroVec::<str>::from(&strings);
-
- CodePointInversionListAndStringList {
- cp_inv_list,
- str_list,
- }
- }
-}
-
-/// Custom Errors for [`CodePointInversionListAndStringList`].
-#[derive(Display, Debug)]
-#[allow(clippy::exhaustive_enums)] // todo, missed in 2.0
-pub enum InvalidStringList {
- /// A string in the string list had an invalid length
- #[cfg_attr(feature = "alloc", displaydoc("Invalid string length for string: {0}"))]
- InvalidStringLength(#[cfg(feature = "alloc")] String),
- /// A string in the string list appears more than once
- #[cfg_attr(feature = "alloc", displaydoc("String list has duplicate: {0}"))]
- StringListNotUnique(#[cfg(feature = "alloc")] String),
- /// Two strings in the string list compare to each other opposite of sorted order
- #[cfg_attr(
- feature = "alloc",
- displaydoc("Strings in string list not in sorted order: ({0}, {1})")
- )]
- StringListNotSorted(
- #[cfg(feature = "alloc")] String,
- #[cfg(feature = "alloc")] String,
- ),
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
-
- #[test]
- fn test_size_has_strings() {
- let cp_slice = &[0, 1, 0x7F, 0x80, 0xFFFF, 0x1_0000, 0x10_FFFF, 0x11_0000];
- let cp_list = CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- let str_slice = &["ascii_max", "bmp_max", "unicode_max", "zero"];
- let str_list = VarZeroVec::<str>::from(str_slice);
-
- let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list).unwrap();
-
- assert!(cpilsl.has_strings());
- assert_eq!(8, cpilsl.size());
- }
-
- #[test]
- fn test_empty_string_allowed() {
- let cp_slice = &[0, 1, 0x7F, 0x80, 0xFFFF, 0x1_0000, 0x10_FFFF, 0x11_0000];
- let cp_list = CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- let str_slice = &["", "ascii_max", "bmp_max", "unicode_max", "zero"];
- let str_list = VarZeroVec::<str>::from(str_slice);
-
- let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list).unwrap();
-
- assert!(cpilsl.has_strings());
- assert_eq!(9, cpilsl.size());
- }
-
- #[test]
- fn test_invalid_string() {
- let cp_slice = &[0, 1];
- let cp_list = CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- let str_slice = &["a"];
- let str_list = VarZeroVec::<str>::from(str_slice);
-
- let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list);
-
- assert!(matches!(
- cpilsl,
- Err(InvalidStringList::InvalidStringLength(_))
- ));
- }
-
- #[test]
- fn test_invalid_string_list_has_duplicate() {
- let cp_slice = &[0, 1];
- let cp_list = CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- let str_slice = &["abc", "abc"];
- let str_list = VarZeroVec::<str>::from(str_slice);
-
- let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list);
-
- assert!(matches!(
- cpilsl,
- Err(InvalidStringList::StringListNotUnique(_))
- ));
- }
-
- #[test]
- fn test_invalid_string_list_not_sorted() {
- let cp_slice = &[0, 1];
- let cp_list = CodePointInversionList::try_from_u32_inversion_list_slice(cp_slice).unwrap();
- let str_slice = &["xyz", "abc"];
- let str_list = VarZeroVec::<str>::from(str_slice);
-
- let cpilsl = CodePointInversionListAndStringList::try_from(cp_list, str_list);
-
- assert!(matches!(
- cpilsl,
- Err(InvalidStringList::StringListNotSorted(_, _))
- ));
- }
-
- #[test]
- fn test_from_iter_invariants() {
- let in_strs_1 = ["a", "abc", "xyz", "abc"];
- let in_strs_2 = ["xyz", "abc", "a", "abc"];
-
- let cpilsl_1 = CodePointInversionListAndStringList::from_iter(in_strs_1);
- let cpilsl_2 = CodePointInversionListAndStringList::from_iter(in_strs_2);
-
- assert_eq!(cpilsl_1, cpilsl_2);
-
- assert!(cpilsl_1.has_strings());
- assert!(cpilsl_1.contains_str("abc"));
- assert!(cpilsl_1.contains_str("xyz"));
- assert!(!cpilsl_1.contains_str("def"));
-
- assert_eq!(1, cpilsl_1.cp_inv_list.size());
- assert!(cpilsl_1.contains('a'));
- assert!(!cpilsl_1.contains('0'));
- assert!(!cpilsl_1.contains('q'));
-
- assert_eq!(3, cpilsl_1.size());
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/cptrie.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/cptrie.rs
deleted file mode 100644
index 086d936e2b5..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/cptrie.rs
+++ /dev/null
@@ -1,1897 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use crate::codepointtrie::error::Error;
-use crate::codepointtrie::impl_const::*;
-
-#[cfg(feature = "alloc")]
-use crate::codepointinvlist::CodePointInversionList;
-use core::char::CharTryFromError;
-use core::convert::Infallible;
-use core::convert::TryFrom;
-use core::fmt::Display;
-#[cfg(feature = "alloc")]
-use core::iter::FromIterator;
-use core::num::TryFromIntError;
-use core::ops::RangeInclusive;
-use yoke::Yokeable;
-use zerofrom::ZeroFrom;
-use zerovec::ule::AsULE;
-#[cfg(feature = "alloc")]
-use zerovec::ule::UleError;
-use zerovec::ZeroSlice;
-use zerovec::ZeroVec;
-
-/// The type of trie represents whether the trie has an optimization that
-/// would make it smaller or faster.
-///
-/// Regarding performance, a trie being a small or fast type affects the number of array lookups
-/// needed for code points in the range `[0x1000, 0x10000)`. In this range, `Small` tries use 4 array lookups,
-/// while `Fast` tries use 2 array lookups.
-/// Code points before the interval (in `[0, 0x1000)`) will always use 2 array lookups.
-/// Code points after the interval (in `[0x10000, 0x10FFFF]`) will always use 4 array lookups.
-///
-/// Regarding size, `Fast` type tries are larger than `Small` type tries because the minimum size of
-/// the index array is larger. The minimum size is the "fast max" limit, which is the limit of the range
-/// of code points with 2 array lookups.
-///
-/// See the document [Unicode Properties and Code Point Tries in ICU4X](https://github.com/unicode-org/icu4x/blob/main/documents/design/properties_code_point_trie.md).
-///
-/// Also see [`UCPTrieType`](https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/ucptrie_8h.html) in ICU4C.
-#[derive(Clone, Copy, PartialEq, Debug, Eq)]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
-#[cfg_attr(feature = "databake", derive(databake::Bake))]
-#[cfg_attr(feature = "databake", databake(path = icu_collections::codepointtrie))]
-#[allow(clippy::exhaustive_enums)] // based on a stable serialized form
-pub enum TrieType {
- /// Represents the "fast" type code point tries for the
- /// [`TrieType`] trait. The "fast max" limit is set to `0xffff`.
- Fast = 0,
- /// Represents the "small" type code point tries for the
- /// [`TrieType`] trait. The "fast max" limit is set to `0x0fff`.
- Small = 1,
-}
-
-// TrieValue trait
-
-// AsULE is AsUnalignedLittleEndian, i.e. "allowed in a zerovec"
-
-/// A trait representing the values stored in the data array of a [`CodePointTrie`].
-/// This trait is used as a type parameter in constructing a `CodePointTrie`.
-///
-/// This trait can be implemented on anything that can be represented as a u32s worth of data.
-pub trait TrieValue: Copy + Eq + PartialEq + AsULE + 'static {
- /// Last-resort fallback value to return if we cannot read data from the trie.
- ///
- /// In most cases, the error value is read from the last element of the `data` array,
- /// this value is used for empty codepointtrie arrays
- /// Error type when converting from a u32 to this `TrieValue`.
- type TryFromU32Error: Display;
- /// A parsing function that is primarily motivated by deserialization contexts.
- /// When the serialization type width is smaller than 32 bits, then it is expected
- /// that the call site will widen the value to a `u32` first.
- fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>;
-
- /// A method for converting back to a `u32` that can roundtrip through
- /// [`Self::try_from_u32()`]. The default implementation of this trait
- /// method panics in debug mode and returns 0 in release mode.
- ///
- /// This method is allowed to have GIGO behavior when fed a value that has
- /// no corresponding `u32` (since such values cannot be stored in the trie)
- fn to_u32(self) -> u32;
-}
-
-macro_rules! impl_primitive_trie_value {
- ($primitive:ty, $error:ty) => {
- impl TrieValue for $primitive {
- type TryFromU32Error = $error;
- fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error> {
- Self::try_from(i)
- }
-
- #[allow(trivial_numeric_casts)]
- fn to_u32(self) -> u32 {
- // bitcast when the same size, zero-extend/sign-extend
- // when not the same size
- self as u32
- }
- }
- };
-}
-
-impl_primitive_trie_value!(u8, TryFromIntError);
-impl_primitive_trie_value!(u16, TryFromIntError);
-impl_primitive_trie_value!(u32, Infallible);
-impl_primitive_trie_value!(i8, TryFromIntError);
-impl_primitive_trie_value!(i16, TryFromIntError);
-impl_primitive_trie_value!(i32, TryFromIntError);
-impl_primitive_trie_value!(char, CharTryFromError);
-
-/// Helper function used by [`get_range`]. Converts occurrences of trie's null
-/// value into the provided `null_value`.
-///
-/// Note: the ICU version of this helper function uses a `ValueFilter` function
-/// to apply a transform on a non-null value. But currently, this implementation
-/// stops short of that functionality, and instead leaves the non-null trie value
-/// untouched. This is equivalent to having a `ValueFilter` function that is the
-/// identity function.
-fn maybe_filter_value<T: TrieValue>(value: T, trie_null_value: T, null_value: T) -> T {
- if value == trie_null_value {
- null_value
- } else {
- value
- }
-}
-
-/// This struct represents a de-serialized [`CodePointTrie`] that was exported from
-/// ICU binary data.
-///
-/// For more information:
-/// - [ICU Site design doc](https://unicode-org.github.io/icu/design/struct/utrie)
-/// - [ICU User Guide section on Properties lookup](https://unicode-org.github.io/icu/userguide/strings/properties.html#lookup)
-// serde impls in crate::serde
-#[derive(Debug, Eq, PartialEq, Yokeable, ZeroFrom)]
-pub struct CodePointTrie<'trie, T: TrieValue> {
- /// # Safety Invariant
- ///
- /// The value of `header.trie_type` must not change after construction.
- pub(crate) header: CodePointTrieHeader,
- /// # Safety Invariant
- ///
- /// If `header.trie_type == TrieType::Fast`, `index.len()` must be greater
- /// than `FAST_TYPE_FAST_INDEXING_MAX`. Otherwise, `index.len()`
- /// must be greater than `SMALL_TYPE_FAST_INDEXING_MAX`. Furthermore,
- /// this field must not change after construction. (Strictly: It must
- /// not become shorter than the length requirement stated above and the
- /// values within the prefix up to the length requirement must not change.)
- pub(crate) index: ZeroVec<'trie, u16>,
- /// # Safety Invariant
- ///
- /// If `header.trie_type == TrieType::Fast`, `data.len()` must be greater
- /// than `FAST_TYPE_DATA_MASK` plus the largest value in
- /// `index[0..FAST_TYPE_FAST_INDEXING_MAX + 1]`. Otherwise, `data.len()`
- /// must be greater than `FAST_TYPE_DATA_MASK` plus the largest value in
- /// `index[0..SMALL_TYPE_FAST_INDEXING_MAX + 1]`. Furthermore, this field
- /// must not change after construction. (Strictly: The stated length
- /// requirement must continue to hold.)
- pub(crate) data: ZeroVec<'trie, T>,
- // serde impl skips this field
- #[zerofrom(clone)] // TrieValue is Copy, this allows us to avoid
- // a T: ZeroFrom bound
- pub(crate) error_value: T,
-}
-
-/// This struct contains the fixed-length header fields of a [`CodePointTrie`].
-///
-/// # Safety Invariant
-///
-/// The `trie_type` field must not change after construction.
-///
-/// (In practice, all the fields here remain unchanged during the lifetime
-/// of the trie.)
-#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
-#[cfg_attr(feature = "databake", derive(databake::Bake))]
-#[cfg_attr(feature = "databake", databake(path = icu_collections::codepointtrie))]
-#[derive(Copy, Clone, Debug, Eq, PartialEq, Yokeable, ZeroFrom)]
-#[allow(clippy::exhaustive_structs)] // based on a stable serialized form
-pub struct CodePointTrieHeader {
- /// The code point of the start of the last range of the trie. A
- /// range is defined as a partition of the code point space such that the
- /// value in this trie associated with all code points of the same range is
- /// the same.
- ///
- /// For the property value data for many Unicode properties,
- /// often times, `high_start` is `U+10000` or lower. In such cases, not
- /// reserving space in the `index` array for duplicate values is a large
- /// savings. The "highValue" associated with the `high_start` range is
- /// stored at the second-to-last position of the `data` array.
- /// (See `impl_const::HIGH_VALUE_NEG_DATA_OFFSET`.)
- pub high_start: u32,
- /// A version of the `high_start` value that is right-shifted 12 spaces,
- /// but is rounded up to a multiple `0x1000` for easy testing from UTF-8
- /// lead bytes.
- pub shifted12_high_start: u16,
- /// Offset for the null block in the "index-3" table of the `index` array.
- /// Set to an impossibly high value (e.g., `0xffff`) if there is no
- /// dedicated index-3 null block.
- pub index3_null_offset: u16,
- /// Internal data null block offset, not shifted.
- /// Set to an impossibly high value (e.g., `0xfffff`) if there is no
- /// dedicated data null block.
- pub data_null_offset: u32,
- /// The value stored in the trie that represents a null value being
- /// associated to a code point.
- pub null_value: u32,
- /// The enum value representing the type of trie, where trie type is as it
- /// is defined in ICU (ex: Fast, Small).
- ///
- /// # Safety Invariant
- ///
- /// Must not change after construction.
- pub trie_type: TrieType,
-}
-
-impl TryFrom<u8> for TrieType {
- type Error = Error;
-
- fn try_from(trie_type_int: u8) -> Result<TrieType, Error> {
- match trie_type_int {
- 0 => Ok(TrieType::Fast),
- 1 => Ok(TrieType::Small),
- _ => Err(Error::FromDeserialized {
- reason: "Cannot parse value for trie_type",
- }),
- }
- }
-}
-
-// Helper macro that turns arithmetic into wrapping-in-release, checked-in-debug arithmetic
-//
-// This is rustc's default behavior anyway, however some projects like Android deliberately
-// enable overflow checks. CodePointTrie::get() is intended to be used in Android bionic which
-// cares about codesize and we don't want the pile of panicking infrastructure brought in by overflow
-// checks, so we force wrapping in release.
-// See #6052
-macro_rules! w(
- // Note: these matchers are not perfect since you cannot have an operator after an expr matcher
- // Use variables if you need complex first operands.
- ($a:tt + $b:expr) => {
- {
- #[allow(unused_parens)]
- let a = $a;
- let b = $b;
- debug_assert!(a.checked_add(b).is_some());
- $a.wrapping_add($b)
- }
- };
- ($a:tt - $b:expr) => {
-
- {
- #[allow(unused_parens)]
- let a = $a;
- let b = $b;
- debug_assert!(a.checked_sub(b).is_some());
- $a.wrapping_sub($b)
- }
- };
- ($a:tt * $b:expr) => {
- {
- #[allow(unused_parens)]
- let a = $a;
- let b = $b;
- debug_assert!(a.checked_mul(b).is_some());
- $a.wrapping_mul($b)
- }
- };
-);
-
-impl<'trie, T: TrieValue> CodePointTrie<'trie, T> {
- #[doc(hidden)] // databake internal
- /// # Safety
- ///
- /// `header.trie_type`, `index`, and `data` must
- /// satisfy the invariants for the fields of the
- /// same names on `CodePointTrie`.
- pub const unsafe fn from_parts_unstable_unchecked_v1(
- header: CodePointTrieHeader,
- index: ZeroVec<'trie, u16>,
- data: ZeroVec<'trie, T>,
- error_value: T,
- ) -> Self {
- // Field invariants upheld: The caller is responsible.
- // In practice, this means that datagen in the databake
- // mode upholds these invariants when constructing the
- // `CodePointTrie` that is then baked.
- Self {
- header,
- index,
- data,
- error_value,
- }
- }
-
- /// Returns a new [`CodePointTrie`] backed by borrowed data for the `index`
- /// array and `data` array, whose data values have width `W`.
- pub fn try_new(
- header: CodePointTrieHeader,
- index: ZeroVec<'trie, u16>,
- data: ZeroVec<'trie, T>,
- ) -> Result<CodePointTrie<'trie, T>, Error> {
- let error_value = Self::validate_fields(&header, &index, &data)?;
- // Field invariants upheld: Checked by `validate_fields` above.
- let trie: CodePointTrie<'trie, T> = CodePointTrie {
- header,
- index,
- data,
- error_value,
- };
- Ok(trie)
- }
-
- /// Checks the invariant on the fields that fast-path access relies on for
- /// safety in order to omit slice bound checks and upon success returns the
- /// `error_value` for the trie.
- ///
- /// # Safety Usable Invariant
- ///
- /// Iff this function returns `Ok(T)`, the arguments satisfy the invariants
- /// for corresponding fields of `CodePointTrie`. (Other than proving that
- /// nothing else changes the fields subsequently.)
- pub(crate) fn validate_fields(
- header: &CodePointTrieHeader,
- index: &ZeroSlice<u16>,
- data: &ZeroSlice<T>,
- ) -> Result<T, Error> {
- let error_value = data.last().ok_or(Error::EmptyDataVector)?;
-
- // `CodePointTrie` lookup has two stages: fast and small (the trie types
- // are also fast and small; they affect where the boundary between fast
- // and small lookups is).
- //
- // The length requirements for `index` and `data` are checked here only
- // for the fast lookup case so that the fast lookup can omit bound checks
- // at the time of access. In the small lookup case, bounds are checked at
- // the time of access.
- //
- // The fast lookup happens on the prefixes of `index` and `data` with
- // more items for the small lookup case afterwards. The check here
- // only looks at the prefixes relevant to the fast case.
- //
- // In the fast lookup case, the bits of the of the code point are
- // partitioned into a bit prefix and a bit suffix. First, a value
- // is read from `index` by indexing into it using the bit prefix.
- // Then `data` is accessed by the value just read from `index` plus
- // the bit suffix.
- //
- // Therefore, the length of `index` needs to accommodate access
- // by the maximum possible bit prefix, and the length of `data`
- // needs to accommodate access by the largest value stored in the part
- // of `data` reachable by the bit prefix plus the maximum possible bit
- // suffix.
- //
- // The maximum possible bit prefix depends on the trie type.
-
- // The maximum code point that can be used for fast-path access:
- let fast_max = match header.trie_type {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- };
- // Keep only the prefix bits:
- let max_bit_prefix = fast_max >> FAST_TYPE_SHIFT;
- // Attempt slice the part of `index` that the fast path can index into.
- // Since `max_bit_prefix` is the largest possible value used for
- // indexing (inclusive bound), we need to add one to get the exclusive
- // bound, which is what `get_subslice` wants.
- let fast_index = index
- .get_subslice(0..(max_bit_prefix as usize) + 1)
- .ok_or(Error::IndexTooShortForFastAccess)?;
- // Invariant upheld for `index`: If we got this far, the length of `index`
- // satisfies its length invariant on the assumption that `header.trie_type`
- // will not change subsequently.
-
- // Now find the largest offset in the part of `index` reachable by the
- // bit prefix. `max` can never actually return `None`, since we already
- // know the slice isn't empty. Hence, reusing the error kind instead of
- // minting a new one for this check.
- let max_offset = fast_index
- .iter()
- .max()
- .ok_or(Error::IndexTooShortForFastAccess)?;
- // `FAST_TYPE_DATA_MASK` is the maximum possible bit suffix, since the
- // maximum is when all the bits in the suffix are set, and the mask
- // has that many bits set.
- if (max_offset) as usize + (FAST_TYPE_DATA_MASK as usize) >= data.len() {
- return Err(Error::DataTooShortForFastAccess);
- }
-
- // Invariant upheld for `data`: If we got this far, the length of `data`
- // satisfies `data`'s length invariant on the assumption that the contents
- // of `fast_index` subslice of `index` and `header.trie_type` will not
- // change subsequently.
-
- Ok(error_value)
- }
-
- /// Turns this trie into a version whose trie type is encoded in the Rust type.
- #[inline]
- pub fn to_typed(self) -> Typed<FastCodePointTrie<'trie, T>, SmallCodePointTrie<'trie, T>> {
- match self.header.trie_type {
- TrieType::Fast => Typed::Fast(FastCodePointTrie { inner: self }),
- TrieType::Small => Typed::Small(SmallCodePointTrie { inner: self }),
- }
- }
-
- /// Obtains a reference to this trie as a Rust type that encodes the trie type in the Rust type.
- #[inline]
- pub fn as_typed_ref(
- &self,
- ) -> Typed<&FastCodePointTrie<'trie, T>, &SmallCodePointTrie<'trie, T>> {
- // SAFETY: `FastCodePointTrie` and `SmallCodePointTrie` are `repr(transparent)`
- // with `CodePointTrie`, so transmuting between the references is OK when the
- // actual trie type agrees with the semantics of the typed wrapper.
- match self.header.trie_type {
- TrieType::Fast => Typed::Fast(unsafe {
- &*(self as *const CodePointTrie<'trie, T> as *const FastCodePointTrie<'trie, T>)
- }),
- TrieType::Small => Typed::Small(unsafe {
- &*(self as *const CodePointTrie<'trie, T> as *const SmallCodePointTrie<'trie, T>)
- }),
- }
- }
-
- /// Returns the position in the data array containing the trie's stored
- /// error value.
- #[inline(always)] // `always` was based on previous normalizer benchmarking
- fn trie_error_val_index(&self) -> u32 {
- // We use wrapping_sub here to avoid panicky overflow checks.
- // len should always be > 1, but if it isn't this will just cause GIGO behavior of producing
- // None on `.get()`
- debug_assert!(self.data.len() as u32 >= ERROR_VALUE_NEG_DATA_OFFSET);
- w!((self.data.len() as u32) - ERROR_VALUE_NEG_DATA_OFFSET)
- }
-
- fn internal_small_index(&self, code_point: u32) -> u32 {
- // We use wrapping arithmetic here to avoid overflow checks making their way into binaries
- // with overflow checks enabled. Ultimately this code ends up as a checked index, so any
- // bugs here will cause GIGO
- let mut index1_pos: u32 = code_point >> SHIFT_1;
- if self.header.trie_type == TrieType::Fast {
- debug_assert!(
- FAST_TYPE_FAST_INDEXING_MAX < code_point && code_point < self.header.high_start
- );
- index1_pos = w!(index1_pos + BMP_INDEX_LENGTH - OMITTED_BMP_INDEX_1_LENGTH);
- } else {
- assert!(code_point < self.header.high_start && self.header.high_start > SMALL_LIMIT);
- index1_pos = w!(index1_pos + SMALL_INDEX_LENGTH);
- }
- let index1_val = if let Some(index1_val) = self.index.get(index1_pos as usize) {
- index1_val
- } else {
- return self.trie_error_val_index();
- };
- let index3_block_idx: u32 =
- w!((index1_val as u32) + (code_point >> SHIFT_2) & INDEX_2_MASK);
- let mut index3_block: u32 =
- if let Some(index3_block) = self.index.get(index3_block_idx as usize) {
- index3_block as u32
- } else {
- return self.trie_error_val_index();
- };
- let mut index3_pos: u32 = (code_point >> SHIFT_3) & INDEX_3_MASK;
- let mut data_block: u32;
- if index3_block & 0x8000 == 0 {
- // 16-bit indexes
- data_block =
- if let Some(data_block) = self.index.get(w!(index3_block + index3_pos) as usize) {
- data_block as u32
- } else {
- return self.trie_error_val_index();
- };
- } else {
- // 18-bit indexes stored in groups of 9 entries per 8 indexes.
- index3_block = w!((index3_block & 0x7fff) + w!((index3_pos & !7) + index3_pos >> 3));
- index3_pos &= 7;
- data_block = if let Some(data_block) = self.index.get(index3_block as usize) {
- data_block as u32
- } else {
- return self.trie_error_val_index();
- };
- data_block = (data_block << w!(2u32 + w!(2u32 * index3_pos))) & 0x30000;
- index3_block += 1;
- data_block =
- if let Some(index3_val) = self.index.get(w!(index3_block + index3_pos) as usize) {
- data_block | (index3_val as u32)
- } else {
- return self.trie_error_val_index();
- };
- }
- // Returns data_pos == data_block (offset) +
- // portion of code_point bit field for last (4th) lookup
- w!(data_block + code_point & SMALL_DATA_MASK)
- }
-
- /// Returns the position in the `data` array for the given code point,
- /// where this code point is at or above the fast limit associated for the
- /// `trie_type`. We will refer to that limit as "`fastMax`" here.
- ///
- /// A lookup of the value in the code point trie for a code point in the
- /// code point space range [`fastMax`, `high_start`) will be a 4-step
- /// lookup: 3 lookups in the `index` array and one lookup in the `data`
- /// array. Lookups for code points in the range [`high_start`,
- /// `CODE_POINT_MAX`] are short-circuited to be a single lookup, see
- /// [`CodePointTrieHeader::high_start`].
- fn small_index(&self, code_point: u32) -> u32 {
- if code_point >= self.header.high_start {
- w!((self.data.len() as u32) - HIGH_VALUE_NEG_DATA_OFFSET)
- } else {
- self.internal_small_index(code_point) // helper fn
- }
- }
-
- /// Returns the position in the `data` array for the given code point,
- /// where this code point is below the fast limit associated for the
- /// `trie type`. We will refer to that limit as "`fastMax`" here.
- ///
- /// A lookup of the value in the code point trie for a code point in the
- /// code point space range [0, `fastMax`) will be a 2-step lookup: 1
- /// lookup in the `index` array and one lookup in the `data` array. By
- /// design, for trie type `T`, there is an element allocated in the `index`
- /// array for each block of code points in [0, `fastMax`), which in
- /// turn guarantees that those code points are represented and only need 1
- /// lookup.
- fn fast_index(&self, code_point: u32) -> u32 {
- let index_array_pos: u32 = code_point >> FAST_TYPE_SHIFT;
- let index_array_val: u16 =
- if let Some(index_array_val) = self.index.get(index_array_pos as usize) {
- index_array_val
- } else {
- return self.trie_error_val_index();
- };
- let masked_cp = code_point & FAST_TYPE_DATA_MASK;
- let index_array_val = index_array_val as u32;
- let fast_index_val: u32 = w!(index_array_val + masked_cp);
- fast_index_val
- }
-
- /// Returns the value that is associated with `code_point` in this [`CodePointTrie`]
- /// if `code_point` uses fast-path lookup or `None` if `code_point`
- /// should use small-path lookup or is above the supported range.
- #[inline(always)] // "always" to make the `Option` collapse away
- fn get32_by_fast_index(&self, code_point: u32) -> Option<T> {
- let fast_max = match self.header.trie_type {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- };
- if code_point <= fast_max {
- // SAFETY: We just checked the invariant of
- // `get32_assuming_fast_index`,
- // which is
- // "If `self.header.trie_type == TrieType::Small`, `code_point` must be at most
- // `SMALL_TYPE_FAST_INDEXING_MAX`. If `self.header.trie_type ==
- // TrieType::Fast`, `code_point` must be at most `FAST_TYPE_FAST_INDEXING_MAX`."
- Some(unsafe { self.get32_assuming_fast_index(code_point) })
- } else {
- // The caller needs to call `get32_by_small_index` or determine
- // that the argument is above the permitted range.
- None
- }
- }
-
- /// Performs the actual fast-mode lookup
- ///
- /// # Safety
- ///
- /// If `self.header.trie_type == TrieType::Small`, `code_point` must be at most
- /// `SMALL_TYPE_FAST_INDEXING_MAX`. If `self.header.trie_type ==
- /// TrieType::Fast`, `code_point` must be at most `FAST_TYPE_FAST_INDEXING_MAX`.
- #[inline(always)]
- unsafe fn get32_assuming_fast_index(&self, code_point: u32) -> T {
- // Check the safety invariant of this method.
- debug_assert!(
- code_point
- <= match self.header.trie_type {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- }
- );
-
- let bit_prefix = (code_point as usize) >> FAST_TYPE_SHIFT;
- debug_assert!(bit_prefix < self.index.len());
- // SAFETY: Relying on the length invariant of `self.index` having
- // been checked and on the unchangedness invariant of `self.index`
- // and `self.header.trie_type` after construction.
- let base_offset_to_data: usize = usize::from(u16::from_unaligned(*unsafe {
- self.index.as_ule_slice().get_unchecked(bit_prefix)
- }));
- let bit_suffix = (code_point & FAST_TYPE_DATA_MASK) as usize;
- // SAFETY: Cannot overflow with supported (32-bit and 64-bit) `usize`
- // sizes, since `base_offset_to_data` was extended from `u16` and
- // `bit_suffix` is at most `FAST_TYPE_DATA_MASK`, which is well
- // under what it takes to reach the 32-bit (or 64-bit) max with
- // additon from the max of `u16`.
- let offset_to_data = w!(base_offset_to_data + bit_suffix);
- debug_assert!(offset_to_data < self.data.len());
- // SAFETY: Relying on the length invariant of `self.data` having
- // been checked and on the unchangedness invariant of `self.data`,
- // `self.index`, and `self.header.trie_type` after construction.
- T::from_unaligned(*unsafe { self.data.as_ule_slice().get_unchecked(offset_to_data) })
- }
-
- /// Coldness wrapper for `get32_by_small_index` to also allow
- /// calls without the effects of `#[cold]`.
- #[cold]
- #[inline(always)]
- fn get32_by_small_index_cold(&self, code_point: u32) -> T {
- self.get32_by_small_index(code_point)
- }
-
- /// Returns the value that is associated with `code_point` in this [`CodePointTrie`]
- /// assuming that the small index path should be used.
- ///
- /// # Intended Precondition
- ///
- /// `code_point` must be at most `CODE_POINT_MAX` AND greter than
- /// `FAST_TYPE_FAST_INDEXING_MAX` if the trie type is fast or greater
- /// than `SMALL_TYPE_FAST_INDEXING_MAX` if the trie type is small.
- /// This is checked when debug assertions are enabled. If this
- /// precondition is violated, the behavior of this method is
- /// memory-safe, but the returned value may be bogus (not
- /// necessarily the designated error value).
- #[inline(never)]
- fn get32_by_small_index(&self, code_point: u32) -> T {
- debug_assert!(code_point <= CODE_POINT_MAX);
- debug_assert!(
- code_point
- > match self.header.trie_type {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- }
- );
- self.data
- .get(self.small_index(code_point) as usize)
- .unwrap_or(self.error_value)
- }
-
- /// Returns the value that is associated with `code_point` in this [`CodePointTrie`].
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- /// let trie = planes::get_planes_trie();
- ///
- /// assert_eq!(0, trie.get32(0x41)); // 'A' as u32
- /// assert_eq!(0, trie.get32(0x13E0)); // 'Ꮰ' as u32
- /// assert_eq!(1, trie.get32(0x10044)); // '𐁄' as u32
- /// ```
- #[inline(always)] // `always` based on normalizer benchmarking
- pub fn get32(&self, code_point: u32) -> T {
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else if code_point <= CODE_POINT_MAX {
- self.get32_by_small_index_cold(code_point)
- } else {
- self.error_value
- }
- }
-
- /// Returns the value that is associated with `char` in this [`CodePointTrie`].
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- /// let trie = planes::get_planes_trie();
- ///
- /// assert_eq!(0, trie.get('A')); // 'A' as u32
- /// assert_eq!(0, trie.get('Ꮰ')); // 'Ꮰ' as u32
- /// assert_eq!(1, trie.get('𐁄')); // '𐁄' as u32
- /// ```
- #[inline(always)]
- pub fn get(&self, c: char) -> T {
- // LLVM's optimizations have been observed not to be 100%
- // reliable around collapsing away unnecessary parts of
- // `get32`, so not just calling `get32` here.
- let code_point = u32::from(c);
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else {
- self.get32_by_small_index_cold(code_point)
- }
- }
-
- /// Returns the value that is associated with `bmp` in this [`CodePointTrie`].
- #[inline(always)]
- pub fn get16(&self, bmp: u16) -> T {
- // LLVM's optimizations have been observed not to be 100%
- // reliable around collapsing away unnecessary parts of
- // `get32`, so not just calling `get32` here.
- let code_point = u32::from(bmp);
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else {
- self.get32_by_small_index_cold(code_point)
- }
- }
-
- /// Lookup trie value by non-Basic Multilingual Plane Scalar Value.
- ///
- /// The return value may be bogus (not necessarily `error_value`) is the argument is actually in
- /// the Basic Multilingual Plane or above the Unicode Scalar Value
- /// range (panics instead with debug assertions enabled).
- #[inline(always)]
- pub fn get32_supplementary(&self, supplementary: u32) -> T {
- debug_assert!(supplementary > 0xFFFF);
- debug_assert!(supplementary <= CODE_POINT_MAX);
- self.get32_by_small_index(supplementary)
- }
-
- /// Returns a reference to the ULE of the value that is associated with `code_point` in this [`CodePointTrie`].
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- /// let trie = planes::get_planes_trie();
- ///
- /// assert_eq!(Some(&0), trie.get32_ule(0x41)); // 'A' as u32
- /// assert_eq!(Some(&0), trie.get32_ule(0x13E0)); // 'Ꮰ' as u32
- /// assert_eq!(Some(&1), trie.get32_ule(0x10044)); // '𐁄' as u32
- /// ```
- #[inline(always)] // `always` was based on previous normalizer benchmarking
- pub fn get32_ule(&self, code_point: u32) -> Option<&T::ULE> {
- // All code points up to the fast max limit are represented
- // individually in the `index` array to hold their `data` array position, and
- // thus only need 2 lookups for a [CodePointTrie::get()](`crate::codepointtrie::CodePointTrie::get`).
- // Code points above the "fast max" limit require 4 lookups.
- let fast_max = match self.header.trie_type {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- };
- let data_pos: u32 = if code_point <= fast_max {
- Self::fast_index(self, code_point)
- } else if code_point <= CODE_POINT_MAX {
- Self::small_index(self, code_point)
- } else {
- self.trie_error_val_index()
- };
- // Returns the trie value (or trie's error value).
- self.data.as_ule_slice().get(data_pos as usize)
- }
-
- /// Converts the [`CodePointTrie`] into one that returns another type of the same size.
- ///
- /// Borrowed data remains borrowed, and owned data remains owned.
- ///
- /// If the old and new types are not the same size, use
- /// [`CodePointTrie::try_alloc_map_value`].
- ///
- /// # Panics
- ///
- /// Panics if `T` and `P` are different sizes.
- ///
- /// More specifically, panics if [`ZeroVec::try_into_converted()`] panics when converting
- /// `ZeroVec<T>` into `ZeroVec<P>`, which happens if `T::ULE` and `P::ULE` differ in size.
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- ///
- /// # Examples
- ///
- /// ```no_run
- /// use icu::collections::codepointtrie::planes;
- /// use icu::collections::codepointtrie::CodePointTrie;
- ///
- /// let planes_trie_u8: CodePointTrie<u8> = planes::get_planes_trie();
- /// let planes_trie_i8: CodePointTrie<i8> =
- /// planes_trie_u8.try_into_converted().expect("infallible");
- ///
- /// assert_eq!(planes_trie_i8.get32(0x30000), 3);
- /// ```
- #[cfg(feature = "alloc")]
- pub fn try_into_converted<P>(self) -> Result<CodePointTrie<'trie, P>, UleError>
- where
- P: TrieValue,
- {
- let converted_data = self.data.try_into_converted()?;
- let error_ule = self.error_value.to_unaligned();
- let slice = &[error_ule];
- let error_vec = ZeroVec::<T>::new_borrowed(slice);
- let error_converted = error_vec.try_into_converted::<P>()?;
- #[expect(clippy::expect_used)] // we know this cannot fail
- Ok(CodePointTrie {
- header: self.header,
- index: self.index,
- data: converted_data,
- error_value: error_converted
- .get(0)
- .expect("vector known to have one element"),
- })
- }
-
- /// Maps the [`CodePointTrie`] into one that returns a different type.
- ///
- /// This function returns owned data.
- ///
- /// If the old and new types are the same size, use the more efficient
- /// [`CodePointTrie::try_into_converted`].
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- /// use icu::collections::codepointtrie::CodePointTrie;
- ///
- /// let planes_trie_u8: CodePointTrie<u8> = planes::get_planes_trie();
- /// let planes_trie_u16: CodePointTrie<u16> = planes_trie_u8
- /// .try_alloc_map_value(TryFrom::try_from)
- /// .expect("infallible");
- ///
- /// assert_eq!(planes_trie_u16.get32(0x30000), 3);
- /// ```
- #[cfg(feature = "alloc")]
- pub fn try_alloc_map_value<P, E>(
- &self,
- mut f: impl FnMut(T) -> Result<P, E>,
- ) -> Result<CodePointTrie<'trie, P>, E>
- where
- P: TrieValue,
- {
- let error_converted = f(self.error_value)?;
- let converted_data = self.data.iter().map(f).collect::<Result<ZeroVec<P>, E>>()?;
- Ok(CodePointTrie {
- header: self.header,
- index: self.index.clone(),
- data: converted_data,
- error_value: error_converted,
- })
- }
-
- /// Returns a [`CodePointMapRange`] struct which represents a range of code
- /// points associated with the same trie value. The returned range will be
- /// the longest stretch of consecutive code points starting at `start` that
- /// share this value.
- ///
- /// This method is designed to use the internal details of
- /// the structure of [`CodePointTrie`] to be optimally efficient. This will
- /// outperform a naive approach that just uses [`CodePointTrie::get()`].
- ///
- /// This method provides lower-level functionality that can be used in the
- /// implementation of other methods that are more convenient to the user.
- /// To obtain an optimal partition of the code point space for
- /// this trie resulting in the fewest number of ranges, see
- /// [`CodePointTrie::iter_ranges()`].
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- ///
- /// let trie = planes::get_planes_trie();
- ///
- /// const CODE_POINT_MAX: u32 = 0x10ffff;
- /// let start = 0x1_0000;
- /// let exp_end = 0x1_ffff;
- ///
- /// let start_val = trie.get32(start);
- /// assert_eq!(trie.get32(exp_end), start_val);
- /// assert_ne!(trie.get32(exp_end + 1), start_val);
- ///
- /// use icu::collections::codepointtrie::CodePointMapRange;
- ///
- /// let cpm_range: CodePointMapRange<u8> = trie.get_range(start).unwrap();
- ///
- /// assert_eq!(cpm_range.range.start(), &start);
- /// assert_eq!(cpm_range.range.end(), &exp_end);
- /// assert_eq!(cpm_range.value, start_val);
- ///
- /// // `start` can be any code point, whether or not it lies on the boundary
- /// // of a maximally large range that still contains `start`
- ///
- /// let submaximal_1_start = start + 0x1234;
- /// let submaximal_1 = trie.get_range(submaximal_1_start).unwrap();
- /// assert_eq!(submaximal_1.range.start(), &0x1_1234);
- /// assert_eq!(submaximal_1.range.end(), &0x1_ffff);
- /// assert_eq!(submaximal_1.value, start_val);
- ///
- /// let submaximal_2_start = start + 0xffff;
- /// let submaximal_2 = trie.get_range(submaximal_2_start).unwrap();
- /// assert_eq!(submaximal_2.range.start(), &0x1_ffff);
- /// assert_eq!(submaximal_2.range.end(), &0x1_ffff);
- /// assert_eq!(submaximal_2.value, start_val);
- /// ```
- pub fn get_range(&self, start: u32) -> Option<CodePointMapRange<T>> {
- // Exit early if the start code point is out of range, or if it is
- // in the last range of code points in high_start..=CODE_POINT_MAX
- // (start- and end-inclusive) that all share the same trie value.
- if CODE_POINT_MAX < start {
- return None;
- }
- if start >= self.header.high_start {
- let di: usize = self.data.len() - (HIGH_VALUE_NEG_DATA_OFFSET as usize);
- let value: T = self.data.get(di)?;
- return Some(CodePointMapRange {
- range: start..=CODE_POINT_MAX,
- value,
- });
- }
-
- let null_value: T = T::try_from_u32(self.header.null_value).ok()?;
-
- let mut prev_i3_block: u32 = u32::MAX; // using u32::MAX (instead of -1 as an i32 in ICU)
- let mut prev_block: u32 = u32::MAX; // using u32::MAX (instead of -1 as an i32 in ICU)
- let mut c: u32 = start;
- let mut trie_value: T = self.error_value();
- let mut value: T = self.error_value();
- let mut have_value: bool = false;
-
- loop {
- let i3_block: u32;
- let mut i3: u32;
- let i3_block_length: u32;
- let data_block_length: u32;
-
- // Initialize values before beginning the iteration in the subsequent
- // `loop` block. In particular, use the "i3*" local variables
- // (representing the `index` array position's offset + increment
- // for a 3rd-level trie lookup) to help initialize the data block
- // variable `block` in the loop for the `data` array.
- //
- // When a lookup code point is <= the trie's *_FAST_INDEXING_MAX that
- // corresponds to its `trie_type`, the lookup only takes 2 steps
- // (once into the `index`, once into the `data` array); otherwise,
- // takes 4 steps (3 iterative lookups into the `index`, once more
- // into the `data` array). So for convenience's sake, when we have the
- // 2-stage lookup, reuse the "i3*" variable names for the first lookup.
- if c <= 0xffff
- && (self.header.trie_type == TrieType::Fast || c <= SMALL_TYPE_FAST_INDEXING_MAX)
- {
- i3_block = 0;
- i3 = c >> FAST_TYPE_SHIFT;
- i3_block_length = if self.header.trie_type == TrieType::Fast {
- BMP_INDEX_LENGTH
- } else {
- SMALL_INDEX_LENGTH
- };
- data_block_length = FAST_TYPE_DATA_BLOCK_LENGTH;
- } else {
- // Use the multi-stage index.
- let mut i1: u32 = c >> SHIFT_1;
- if self.header.trie_type == TrieType::Fast {
- debug_assert!(0xffff < c && c < self.header.high_start);
- i1 = i1 + BMP_INDEX_LENGTH - OMITTED_BMP_INDEX_1_LENGTH;
- } else {
- debug_assert!(
- c < self.header.high_start && self.header.high_start > SMALL_LIMIT
- );
- i1 += SMALL_INDEX_LENGTH;
- }
- let i2: u16 = self.index.get(i1 as usize)?;
- let i3_block_idx: u32 = (i2 as u32) + ((c >> SHIFT_2) & INDEX_2_MASK);
- i3_block = if let Some(i3b) = self.index.get(i3_block_idx as usize) {
- i3b as u32
- } else {
- return None;
- };
- if i3_block == prev_i3_block && (c - start) >= CP_PER_INDEX_2_ENTRY {
- // The index-3 block is the same as the previous one, and filled with value.
- debug_assert!((c & (CP_PER_INDEX_2_ENTRY - 1)) == 0);
- c += CP_PER_INDEX_2_ENTRY;
-
- if c >= self.header.high_start {
- break;
- } else {
- continue;
- }
- }
- prev_i3_block = i3_block;
- if i3_block == self.header.index3_null_offset as u32 {
- // This is the index-3 null block.
- // All of the `data` array blocks pointed to by the values
- // in this block of the `index` 3rd-stage subarray will
- // contain this trie's null_value. So if we are in the middle
- // of a range, end it and return early, otherwise start a new
- // range of null values.
- if have_value {
- if null_value != value {
- return Some(CodePointMapRange {
- range: start..=(c - 1),
- value,
- });
- }
- } else {
- trie_value = T::try_from_u32(self.header.null_value).ok()?;
- value = null_value;
- have_value = true;
- }
- prev_block = self.header.data_null_offset;
- c = (c + CP_PER_INDEX_2_ENTRY) & !(CP_PER_INDEX_2_ENTRY - 1);
-
- if c >= self.header.high_start {
- break;
- } else {
- continue;
- }
- }
- i3 = (c >> SHIFT_3) & INDEX_3_MASK;
- i3_block_length = INDEX_3_BLOCK_LENGTH;
- data_block_length = SMALL_DATA_BLOCK_LENGTH;
- }
-
- // Enumerate data blocks for one index-3 block.
- loop {
- let mut block: u32;
- if (i3_block & 0x8000) == 0 {
- block = if let Some(b) = self.index.get((i3_block + i3) as usize) {
- b as u32
- } else {
- return None;
- };
- } else {
- // 18-bit indexes stored in groups of 9 entries per 8 indexes.
- let mut group: u32 = (i3_block & 0x7fff) + (i3 & !7) + (i3 >> 3);
- let gi: u32 = i3 & 7;
- let gi_val: u32 = if let Some(giv) = self.index.get(group as usize) {
- giv.into()
- } else {
- return None;
- };
- block = (gi_val << (2 + (2 * gi))) & 0x30000;
- group += 1;
- let ggi_val: u32 = if let Some(ggiv) = self.index.get((group + gi) as usize) {
- ggiv as u32
- } else {
- return None;
- };
- block |= ggi_val;
- }
-
- // If our previous and current return values of the 3rd-stage `index`
- // lookup yield the same `data` block offset, and if we already know that
- // the entire `data` block / subarray starting at that offset stores
- // `value` and nothing else, then we can extend our range by the length
- // of a data block and continue.
- // Otherwise, we have to iterate over the values stored in the
- // new data block to see if they differ from `value`.
- if block == prev_block && (c - start) >= data_block_length {
- // The block is the same as the previous one, and filled with value.
- debug_assert!((c & (data_block_length - 1)) == 0);
- c += data_block_length;
- } else {
- let data_mask: u32 = data_block_length - 1;
- prev_block = block;
- if block == self.header.data_null_offset {
- // This is the data null block.
- // If we are in the middle of a range, end it and
- // return early, otherwise start a new range of null
- // values.
- if have_value {
- if null_value != value {
- return Some(CodePointMapRange {
- range: start..=(c - 1),
- value,
- });
- }
- } else {
- trie_value = T::try_from_u32(self.header.null_value).ok()?;
- value = null_value;
- have_value = true;
- }
- c = (c + data_block_length) & !data_mask;
- } else {
- let mut di: u32 = block + (c & data_mask);
- let mut trie_value_2: T = self.data.get(di as usize)?;
- if have_value {
- if trie_value_2 != trie_value {
- if maybe_filter_value(
- trie_value_2,
- T::try_from_u32(self.header.null_value).ok()?,
- null_value,
- ) != value
- {
- return Some(CodePointMapRange {
- range: start..=(c - 1),
- value,
- });
- }
- // `trie_value` stores the previous value that was retrieved
- // from the trie.
- // `value` stores the value associated for the range (return
- // value) that we are currently building, which is computed
- // as a transformation by applying maybe_filter_value()
- // to the trie value.
- // The current trie value `trie_value_2` within this data block
- // differs here from the previous value in `trie_value`.
- // But both map to `value` after applying `maybe_filter_value`.
- // It is not clear whether the previous or the current trie value
- // (or neither) is more likely to match potential subsequent trie
- // values that would extend the range by mapping to `value`.
- // On the assumption of locality -- often times consecutive
- // characters map to the same trie values -- remembering the new
- // one might make it faster to extend this range further
- // (by increasing the chance that the next `trie_value_2 !=
- // trie_value` test will be false).
- trie_value = trie_value_2; // may or may not help
- }
- } else {
- trie_value = trie_value_2;
- value = maybe_filter_value(
- trie_value_2,
- T::try_from_u32(self.header.null_value).ok()?,
- null_value,
- );
- have_value = true;
- }
-
- c += 1;
- while (c & data_mask) != 0 {
- di += 1;
- trie_value_2 = self.data.get(di as usize)?;
- if trie_value_2 != trie_value {
- if maybe_filter_value(
- trie_value_2,
- T::try_from_u32(self.header.null_value).ok()?,
- null_value,
- ) != value
- {
- return Some(CodePointMapRange {
- range: start..=(c - 1),
- value,
- });
- }
- // `trie_value` stores the previous value that was retrieved
- // from the trie.
- // `value` stores the value associated for the range (return
- // value) that we are currently building, which is computed
- // as a transformation by applying maybe_filter_value()
- // to the trie value.
- // The current trie value `trie_value_2` within this data block
- // differs here from the previous value in `trie_value`.
- // But both map to `value` after applying `maybe_filter_value`.
- // It is not clear whether the previous or the current trie value
- // (or neither) is more likely to match potential subsequent trie
- // values that would extend the range by mapping to `value`.
- // On the assumption of locality -- often times consecutive
- // characters map to the same trie values -- remembering the new
- // one might make it faster to extend this range further
- // (by increasing the chance that the next `trie_value_2 !=
- // trie_value` test will be false).
- trie_value = trie_value_2; // may or may not help
- }
-
- c += 1;
- }
- }
- }
-
- i3 += 1;
- if i3 >= i3_block_length {
- break;
- }
- }
-
- if c >= self.header.high_start {
- break;
- }
- }
-
- debug_assert!(have_value);
-
- // Now that c >= high_start, compare `value` to `high_value` to see
- // if we can merge our current range with the high_value range
- // high_start..=CODE_POINT_MAX (start- and end-inclusive), otherwise
- // stop at high_start - 1.
- let di: u32 = self.data.len() as u32 - HIGH_VALUE_NEG_DATA_OFFSET;
- let high_value: T = self.data.get(di as usize)?;
- if maybe_filter_value(
- high_value,
- T::try_from_u32(self.header.null_value).ok()?,
- null_value,
- ) != value
- {
- c -= 1;
- } else {
- c = CODE_POINT_MAX;
- }
- Some(CodePointMapRange {
- range: start..=c,
- value,
- })
- }
-
- /// Yields an [`Iterator`] returning ranges of consecutive code points that
- /// share the same value in the [`CodePointTrie`], as given by
- /// [`CodePointTrie::get_range()`].
- ///
- /// # Examples
- ///
- /// ```
- /// use core::ops::RangeInclusive;
- /// use icu::collections::codepointtrie::planes;
- /// use icu::collections::codepointtrie::CodePointMapRange;
- ///
- /// let planes_trie = planes::get_planes_trie();
- ///
- /// let mut ranges = planes_trie.iter_ranges();
- ///
- /// for plane in 0..=16 {
- /// let exp_start = plane * 0x1_0000;
- /// let exp_end = exp_start + 0xffff;
- /// assert_eq!(
- /// ranges.next(),
- /// Some(CodePointMapRange {
- /// range: exp_start..=exp_end,
- /// value: plane as u8
- /// })
- /// );
- /// }
- ///
- /// // Hitting the end of the iterator returns `None`, as will subsequent
- /// // calls to .next().
- /// assert_eq!(ranges.next(), None);
- /// assert_eq!(ranges.next(), None);
- /// ```
- pub fn iter_ranges(&self) -> CodePointMapRangeIterator<'_, T> {
- let init_range = Some(CodePointMapRange {
- range: u32::MAX..=u32::MAX,
- value: self.error_value(),
- });
- CodePointMapRangeIterator::<T> {
- cpt: self,
- cpm_range: init_range,
- }
- }
-
- /// Yields an [`Iterator`] returning the ranges of the code points whose values
- /// match `value` in the [`CodePointTrie`].
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- ///
- /// let trie = planes::get_planes_trie();
- ///
- /// let plane_val = 2;
- /// let mut sip_range_iter = trie.iter_ranges_for_value(plane_val as u8);
- ///
- /// let start = plane_val * 0x1_0000;
- /// let end = start + 0xffff;
- ///
- /// let sip_range = sip_range_iter.next()
- /// .expect("Plane 2 (SIP) should exist in planes data");
- /// assert_eq!(start..=end, sip_range);
- ///
- /// assert!(sip_range_iter.next().is_none());
- pub fn iter_ranges_for_value(
- &self,
- value: T,
- ) -> impl Iterator<Item = RangeInclusive<u32>> + '_ {
- self.iter_ranges()
- .filter(move |cpm_range| cpm_range.value == value)
- .map(|cpm_range| cpm_range.range)
- }
-
- /// Yields an [`Iterator`] returning the ranges of the code points after passing
- /// the value through a mapping function.
- ///
- /// This is preferable to calling `.get_ranges().map()` since it will coalesce
- /// adjacent ranges into one.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- ///
- /// let trie = planes::get_planes_trie();
- ///
- /// let plane_val = 2;
- /// let mut sip_range_iter = trie.iter_ranges_mapped(|value| value != plane_val as u8).filter(|range| range.value);
- ///
- /// let end = plane_val * 0x1_0000 - 1;
- ///
- /// let sip_range = sip_range_iter.next()
- /// .expect("Complemented planes data should have at least one entry");
- /// assert_eq!(0..=end, sip_range.range);
- pub fn iter_ranges_mapped<'a, U: Eq + 'a>(
- &'a self,
- mut map: impl FnMut(T) -> U + Copy + 'a,
- ) -> impl Iterator<Item = CodePointMapRange<U>> + 'a {
- crate::iterator_utils::RangeListIteratorCoalescer::new(self.iter_ranges().map(
- move |range| CodePointMapRange {
- range: range.range,
- value: map(range.value),
- },
- ))
- }
-
- /// Returns a [`CodePointInversionList`] for the code points that have the given
- /// [`TrieValue`] in the trie.
- ///
- /// ✨ *Enabled with the `alloc` Cargo feature.*
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- ///
- /// let trie = planes::get_planes_trie();
- ///
- /// let plane_val = 2;
- /// let sip = trie.get_set_for_value(plane_val as u8);
- ///
- /// let start = plane_val * 0x1_0000;
- /// let end = start + 0xffff;
- ///
- /// assert!(!sip.contains32(start - 1));
- /// assert!(sip.contains32(start));
- /// assert!(sip.contains32(end));
- /// assert!(!sip.contains32(end + 1));
- /// ```
- #[cfg(feature = "alloc")]
- pub fn get_set_for_value(&self, value: T) -> CodePointInversionList<'static> {
- let value_ranges = self.iter_ranges_for_value(value);
- CodePointInversionList::from_iter(value_ranges)
- }
-
- /// Returns the value used as an error value for this trie
- #[inline]
- pub fn error_value(&self) -> T {
- self.error_value
- }
-}
-
-#[cfg(feature = "databake")]
-impl<T: TrieValue + databake::Bake> databake::Bake for CodePointTrie<'_, T> {
- fn bake(&self, env: &databake::CrateEnv) -> databake::TokenStream {
- let header = self.header.bake(env);
- let index = self.index.bake(env);
- let data = self.data.bake(env);
- let error_value = self.error_value.bake(env);
- databake::quote! { unsafe { icu_collections::codepointtrie::CodePointTrie::from_parts_unstable_unchecked_v1(#header, #index, #data, #error_value) } }
- }
-}
-
-#[cfg(feature = "databake")]
-impl<T: TrieValue + databake::Bake> databake::BakeSize for CodePointTrie<'_, T> {
- fn borrows_size(&self) -> usize {
- self.header.borrows_size() + self.index.borrows_size() + self.data.borrows_size()
- }
-}
-
-impl<T: TrieValue + Into<u32>> CodePointTrie<'_, T> {
- /// Returns the value that is associated with `code_point` for this [`CodePointTrie`]
- /// as a `u32`.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::collections::codepointtrie::planes;
- /// let trie = planes::get_planes_trie();
- ///
- /// let cp = '𑖎' as u32;
- /// assert_eq!(cp, 0x1158E);
- ///
- /// let plane_num: u8 = trie.get32(cp);
- /// assert_eq!(trie.get32_u32(cp), plane_num as u32);
- /// ```
- // Note: This API method maintains consistency with the corresponding
- // original ICU APIs.
- pub fn get32_u32(&self, code_point: u32) -> u32 {
- self.get32(code_point).into()
- }
-}
-
-impl<T: TrieValue> Clone for CodePointTrie<'_, T>
-where
- <T as AsULE>::ULE: Clone,
-{
- fn clone(&self) -> Self {
- CodePointTrie {
- header: self.header,
- index: self.index.clone(),
- data: self.data.clone(),
- error_value: self.error_value,
- }
- }
-}
-
-/// Represents a range of consecutive code points sharing the same value in a
-/// code point map.
-///
-/// The start and end of the interval is represented as a
-/// `RangeInclusive<u32>`, and the value is represented as `T`.
-#[derive(PartialEq, Eq, Debug, Clone)]
-#[allow(clippy::exhaustive_structs)] // based on a stable serialized form
-pub struct CodePointMapRange<T> {
- /// Range of code points from start to end (inclusive).
- pub range: RangeInclusive<u32>,
- /// Trie value associated with this range.
- pub value: T,
-}
-
-/// A custom [`Iterator`] type specifically for a code point trie that returns
-/// [`CodePointMapRange`]s.
-#[derive(Debug)]
-pub struct CodePointMapRangeIterator<'a, T: TrieValue> {
- cpt: &'a CodePointTrie<'a, T>,
- // Initialize `range` to Some(CodePointMapRange{ start: u32::MAX, end: u32::MAX, value: 0}).
- // When `range` is Some(...) and has a start value different from u32::MAX, then we have
- // returned at least one code point range due to a call to `next()`.
- // When `range` == `None`, it means that we have hit the end of iteration. It would occur
- // after a call to `next()` returns a None <=> we attempted to call `get_range()`
- // with a start code point that is > CODE_POINT_MAX.
- cpm_range: Option<CodePointMapRange<T>>,
-}
-
-impl<T: TrieValue> Iterator for CodePointMapRangeIterator<'_, T> {
- type Item = CodePointMapRange<T>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.cpm_range = match &self.cpm_range {
- Some(cpmr) => {
- if *cpmr.range.start() == u32::MAX {
- self.cpt.get_range(0)
- } else {
- self.cpt.get_range(cpmr.range.end() + 1)
- }
- }
- None => None,
- };
- // Note: Clone is cheap. We can't Copy because RangeInclusive does not impl Copy.
- self.cpm_range.clone()
- }
-}
-
-/// For sealing `TypedCodePointTrie`
-///
-/// # Safety Usable Invariant
-///
-/// All implementations of `TypedCodePointTrie` are reviewable in this module.
-trait Seal {}
-
-/// Trait for writing trait bounds for monomorphizing over either
-/// `FastCodePointTrie` or `SmallCodePointTrie`.
-#[allow(private_bounds)] // Permit sealing
-pub trait TypedCodePointTrie<'trie, T: TrieValue>: Seal {
- /// The `TrieType` associated with this `TypedCodePointTrie`
- ///
- /// # Safety Usable Invariant
- ///
- /// This constant matches `self.as_untyped_ref().header.trie_type`.
- const TRIE_TYPE: TrieType;
-
- /// Lookup trie value as `u32` by Unicode Scalar Value without branching on trie type.
- #[inline(always)]
- fn get32_u32(&self, code_point: u32) -> u32 {
- self.get32(code_point).to_u32()
- }
-
- /// Lookup trie value by Basic Multilingual Plane Code Point without branching on trie type.
- #[inline(always)]
- fn get16(&self, bmp: u16) -> T {
- // LLVM's optimizations have been observed not to be 100%
- // reliable around collapsing away unnecessary parts of
- // `get32`, so not just calling `get32` here.
- let code_point = u32::from(bmp);
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else {
- self.as_untyped_ref().get32_by_small_index_cold(code_point)
- }
- }
-
- /// Lookup trie value by non-Basic Multilingual Plane Scalar Value without branching on trie type.
- #[inline(always)]
- fn get32_supplementary(&self, supplementary: u32) -> T {
- self.as_untyped_ref().get32_supplementary(supplementary)
- }
-
- /// Lookup trie value by Unicode Scalar Value without branching on trie type.
- #[inline(always)]
- fn get(&self, c: char) -> T {
- // LLVM's optimizations have been observed not to be 100%
- // reliable around collapsing away unnecessary parts of
- // `get32`, so not just calling `get32` here.
- let code_point = u32::from(c);
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else {
- self.as_untyped_ref().get32_by_small_index_cold(code_point)
- }
- }
-
- /// Lookup trie value by Unicode Code Point without branching on trie type.
- #[inline(always)]
- fn get32(&self, code_point: u32) -> T {
- if let Some(v) = self.get32_by_fast_index(code_point) {
- v
- } else if code_point <= CODE_POINT_MAX {
- self.as_untyped_ref().get32_by_small_index_cold(code_point)
- } else {
- self.as_untyped_ref().error_value
- }
- }
-
- /// Returns the value that is associated with `code_point` in this [`CodePointTrie`]
- /// if `code_point` uses fast-path lookup or `None` if `code_point`
- /// should use small-path lookup or is above the supported range.
- #[inline(always)] // "always" to make the `Option` collapse away
- fn get32_by_fast_index(&self, code_point: u32) -> Option<T> {
- debug_assert_eq!(Self::TRIE_TYPE, self.as_untyped_ref().header.trie_type);
- let fast_max = match Self::TRIE_TYPE {
- TrieType::Fast => FAST_TYPE_FAST_INDEXING_MAX,
- TrieType::Small => SMALL_TYPE_FAST_INDEXING_MAX,
- };
- if code_point <= fast_max {
- // SAFETY: We just checked the invariant of
- // `get32_assuming_fast_index`,
- // which is
- // "If `self.header.trie_type == TrieType::Small`, `code_point` must be at most
- // `SMALL_TYPE_FAST_INDEXING_MAX`. If `self.header.trie_type ==
- // TrieType::Fast`, `code_point` must be at most `FAST_TYPE_FAST_INDEXING_MAX`."
- // ... assuming that `Self::TRIE_TYPE` always matches
- // `self.as_untyped_ref().header.trie_type`, i.e. we're relying on
- // `CodePointTrie::to_typed` and `CodePointTrie::as_typed_ref` being correct
- // and the exclusive ways of obtaining `Self`.
- Some(unsafe { self.as_untyped_ref().get32_assuming_fast_index(code_point) })
- } else {
- // The caller needs to call `get32_by_small_index` or determine
- // that the argument is above the permitted range.
- None
- }
- }
-
- /// Returns a reference to the wrapped `CodePointTrie`.
- fn as_untyped_ref(&self) -> &CodePointTrie<'trie, T>;
-
- /// Extracts the wrapped `CodePointTrie`.
- fn to_untyped(self) -> CodePointTrie<'trie, T>;
-}
-
-/// Type-safe wrapper for a fast trie guaranteeing
-/// the the getters don't branch on the trie type
-/// and for guarenteeing that `get16` is branchless
-/// in release builds.
-#[derive(Debug)]
-#[repr(transparent)]
-pub struct FastCodePointTrie<'trie, T: TrieValue> {
- inner: CodePointTrie<'trie, T>,
-}
-
-impl<'trie, T: TrieValue> TypedCodePointTrie<'trie, T> for FastCodePointTrie<'trie, T> {
- const TRIE_TYPE: TrieType = TrieType::Fast;
-
- /// Returns a reference to the wrapped `CodePointTrie`.
- #[inline(always)]
- fn as_untyped_ref(&self) -> &CodePointTrie<'trie, T> {
- &self.inner
- }
-
- /// Extracts the wrapped `CodePointTrie`.
- #[inline(always)]
- fn to_untyped(self) -> CodePointTrie<'trie, T> {
- self.inner
- }
-
- /// Lookup trie value by Basic Multilingual Plane Code Point without branching on trie type.
- #[inline(always)]
- fn get16(&self, bmp: u16) -> T {
- debug_assert!(u32::from(u16::MAX) <= FAST_TYPE_FAST_INDEXING_MAX);
- debug_assert_eq!(Self::TRIE_TYPE, TrieType::Fast);
- debug_assert_eq!(self.as_untyped_ref().header.trie_type, TrieType::Fast);
- let code_point = u32::from(bmp);
- // SAFETY: With `TrieType::Fast`, the `u16` range satisfies
- // the invariant of `get32_assuming_fast_index`, which is
- // "If `self.header.trie_type == TrieType::Small`, `code_point` must be at most
- // `SMALL_TYPE_FAST_INDEXING_MAX`. If `self.header.trie_type ==
- // TrieType::Fast`, `code_point` must be at most `FAST_TYPE_FAST_INDEXING_MAX`."
- //
- // We're relying on `CodePointTrie::to_typed` and `CodePointTrie::as_typed_ref`
- // being correct and the exclusive ways of obtaining `Self`.
- unsafe { self.as_untyped_ref().get32_assuming_fast_index(code_point) }
- }
-}
-
-impl<'trie, T: TrieValue> Seal for FastCodePointTrie<'trie, T> {}
-
-impl<'trie, T: TrieValue> TryFrom<&'trie CodePointTrie<'trie, T>>
- for &'trie FastCodePointTrie<'trie, T>
-{
- type Error = TypedCodePointTrieError;
-
- fn try_from(
- reference: &'trie CodePointTrie<'trie, T>,
- ) -> Result<&'trie FastCodePointTrie<'trie, T>, TypedCodePointTrieError> {
- match reference.as_typed_ref() {
- Typed::Fast(trie) => Ok(trie),
- Typed::Small(_) => Err(TypedCodePointTrieError),
- }
- }
-}
-
-impl<'trie, T: TrieValue> TryFrom<CodePointTrie<'trie, T>> for FastCodePointTrie<'trie, T> {
- type Error = TypedCodePointTrieError;
-
- fn try_from(
- value: CodePointTrie<'trie, T>,
- ) -> Result<FastCodePointTrie<'trie, T>, TypedCodePointTrieError> {
- match value.to_typed() {
- Typed::Fast(trie) => Ok(trie),
- Typed::Small(_) => Err(TypedCodePointTrieError),
- }
- }
-}
-
-/// Type-safe wrapper for a small trie guaranteeing
-/// the the getters don't branch on the trie type.
-#[derive(Debug)]
-#[repr(transparent)]
-pub struct SmallCodePointTrie<'trie, T: TrieValue> {
- inner: CodePointTrie<'trie, T>,
-}
-
-impl<'trie, T: TrieValue> TypedCodePointTrie<'trie, T> for SmallCodePointTrie<'trie, T> {
- const TRIE_TYPE: TrieType = TrieType::Small;
-
- /// Returns a reference to the wrapped `CodePointTrie`.
- #[inline(always)]
- fn as_untyped_ref(&self) -> &CodePointTrie<'trie, T> {
- &self.inner
- }
-
- /// Extracts the wrapped `CodePointTrie`.
- #[inline(always)]
- fn to_untyped(self) -> CodePointTrie<'trie, T> {
- self.inner
- }
-}
-
-impl<'trie, T: TrieValue> Seal for SmallCodePointTrie<'trie, T> {}
-
-impl<'trie, T: TrieValue> TryFrom<&'trie CodePointTrie<'trie, T>>
- for &'trie SmallCodePointTrie<'trie, T>
-{
- type Error = TypedCodePointTrieError;
-
- fn try_from(
- reference: &'trie CodePointTrie<'trie, T>,
- ) -> Result<&'trie SmallCodePointTrie<'trie, T>, TypedCodePointTrieError> {
- match reference.as_typed_ref() {
- Typed::Fast(_) => Err(TypedCodePointTrieError),
- Typed::Small(trie) => Ok(trie),
- }
- }
-}
-
-impl<'trie, T: TrieValue> TryFrom<CodePointTrie<'trie, T>> for SmallCodePointTrie<'trie, T> {
- type Error = TypedCodePointTrieError;
-
- fn try_from(
- value: CodePointTrie<'trie, T>,
- ) -> Result<SmallCodePointTrie<'trie, T>, TypedCodePointTrieError> {
- match value.to_typed() {
- Typed::Fast(_) => Err(TypedCodePointTrieError),
- Typed::Small(trie) => Ok(trie),
- }
- }
-}
-
-/// Error indicating that the `TrieType` of an untyped trie
-/// does not match the requested typed trie type.
-#[derive(Debug)]
-#[non_exhaustive]
-pub struct TypedCodePointTrieError;
-
-/// Holder for either fast or small trie with the trie
-/// type encoded into the Rust type.
-#[allow(clippy::exhaustive_enums)]
-#[derive(Debug)]
-pub enum Typed<F, S> {
- /// The trie type is fast.
- Fast(F),
- /// The trie type is small.
- Small(S),
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
- use crate::codepointtrie::planes;
- use alloc::vec::Vec;
-
- #[test]
- #[cfg(feature = "serde")]
- fn test_serde_with_postcard_roundtrip() -> Result<(), postcard::Error> {
- let trie = planes::get_planes_trie();
- let trie_serialized: Vec<u8> = postcard::to_allocvec(&trie).unwrap();
-
- // Assert an expected (golden data) version of the serialized trie.
- const EXP_TRIE_SERIALIZED: &[u8] = &[
- 128, 128, 64, 128, 2, 2, 0, 0, 1, 160, 18, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136,
- 2, 144, 2, 144, 2, 144, 2, 176, 2, 176, 2, 176, 2, 176, 2, 208, 2, 208, 2, 208, 2, 208,
- 2, 240, 2, 240, 2, 240, 2, 240, 2, 16, 3, 16, 3, 16, 3, 16, 3, 48, 3, 48, 3, 48, 3, 48,
- 3, 80, 3, 80, 3, 80, 3, 80, 3, 112, 3, 112, 3, 112, 3, 112, 3, 144, 3, 144, 3, 144, 3,
- 144, 3, 176, 3, 176, 3, 176, 3, 176, 3, 208, 3, 208, 3, 208, 3, 208, 3, 240, 3, 240, 3,
- 240, 3, 240, 3, 16, 4, 16, 4, 16, 4, 16, 4, 48, 4, 48, 4, 48, 4, 48, 4, 80, 4, 80, 4,
- 80, 4, 80, 4, 112, 4, 112, 4, 112, 4, 112, 4, 0, 0, 16, 0, 32, 0, 48, 0, 64, 0, 80, 0,
- 96, 0, 112, 0, 0, 0, 16, 0, 32, 0, 48, 0, 0, 0, 16, 0, 32, 0, 48, 0, 0, 0, 16, 0, 32,
- 0, 48, 0, 0, 0, 16, 0, 32, 0, 48, 0, 0, 0, 16, 0, 32, 0, 48, 0, 0, 0, 16, 0, 32, 0, 48,
- 0, 0, 0, 16, 0, 32, 0, 48, 0, 0, 0, 16, 0, 32, 0, 48, 0, 128, 0, 128, 0, 128, 0, 128,
- 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128,
- 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128,
- 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 128, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144,
- 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144,
- 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 144,
- 0, 144, 0, 144, 0, 144, 0, 144, 0, 144, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160,
- 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160,
- 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160, 0, 160,
- 0, 160, 0, 160, 0, 160, 0, 160, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176,
- 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176,
- 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176, 0, 176,
- 0, 176, 0, 176, 0, 176, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192,
- 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192,
- 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192,
- 0, 192, 0, 192, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208,
- 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208,
- 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208, 0, 208,
- 0, 208, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224,
- 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224,
- 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224, 0, 224,
- 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240,
- 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240,
- 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 0,
- 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
- 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0,
- 1, 0, 1, 0, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1,
- 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16,
- 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 32, 1, 32, 1, 32, 1,
- 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32,
- 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1,
- 32, 1, 32, 1, 32, 1, 32, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48,
- 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1,
- 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 64, 1, 64,
- 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1,
- 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64,
- 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1,
- 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80,
- 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1,
- 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96,
- 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1,
- 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 128, 0, 136, 0, 136, 0, 136, 0, 136,
- 0, 136, 0, 136, 0, 136, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0,
- 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2,
- 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0,
- 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0,
- 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 168, 0,
- 168, 0, 168, 0, 168, 0, 168, 0, 168, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0,
- 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0,
- 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0, 200, 0,
- 200, 0, 200, 0, 200, 0, 200, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0,
- 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0,
- 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0, 232, 0,
- 232, 0, 232, 0, 232, 0, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8,
- 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1,
- 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40,
- 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1,
- 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40,
- 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1,
- 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72,
- 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 104, 1, 104, 1, 104, 1, 104, 1,
- 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1,
- 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1,
- 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1,
- 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1,
- 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 136, 1,
- 136, 1, 136, 1, 136, 1, 136, 1, 136, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1,
- 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1,
- 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1, 168, 1,
- 168, 1, 168, 1, 168, 1, 168, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1,
- 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1,
- 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1, 200, 1,
- 200, 1, 200, 1, 200, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1,
- 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1,
- 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1, 232, 1,
- 232, 1, 232, 1, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2,
- 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8,
- 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40,
- 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2,
- 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 40, 2, 72,
- 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2,
- 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72,
- 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 72, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2,
- 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2,
- 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 104, 2,
- 104, 2, 104, 2, 104, 2, 104, 2, 104, 2, 244, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8,
- 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10,
- 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11,
- 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
- 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14,
- 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 0,
- ];
- assert_eq!(trie_serialized, EXP_TRIE_SERIALIZED);
-
- let trie_deserialized = postcard::from_bytes::<CodePointTrie<u8>>(&trie_serialized)?;
-
- assert_eq!(&trie.index, &trie_deserialized.index);
- assert_eq!(&trie.data, &trie_deserialized.data);
-
- assert!(!trie_deserialized.index.is_owned());
- assert!(!trie_deserialized.data.is_owned());
-
- Ok(())
- }
-
- #[test]
- fn test_typed() {
- let untyped = planes::get_planes_trie();
- assert_eq!(untyped.get('\u{10000}'), 1);
- let small_ref = <&SmallCodePointTrie<_>>::try_from(&untyped).unwrap();
- assert_eq!(small_ref.get('\u{10000}'), 1);
- let _ = <&FastCodePointTrie<_>>::try_from(&untyped).is_err();
- let small = <SmallCodePointTrie<_>>::try_from(untyped).unwrap();
- assert_eq!(small.get('\u{10000}'), 1);
- }
-
- #[test]
- fn test_get_range() {
- let planes_trie = planes::get_planes_trie();
-
- let first_range: Option<CodePointMapRange<u8>> = planes_trie.get_range(0x0);
- assert_eq!(
- first_range,
- Some(CodePointMapRange {
- range: 0x0..=0xffff,
- value: 0
- })
- );
-
- let second_range: Option<CodePointMapRange<u8>> = planes_trie.get_range(0x1_0000);
- assert_eq!(
- second_range,
- Some(CodePointMapRange {
- range: 0x10000..=0x1ffff,
- value: 1
- })
- );
-
- let penultimate_range: Option<CodePointMapRange<u8>> = planes_trie.get_range(0xf_0000);
- assert_eq!(
- penultimate_range,
- Some(CodePointMapRange {
- range: 0xf_0000..=0xf_ffff,
- value: 15
- })
- );
-
- let last_range: Option<CodePointMapRange<u8>> = planes_trie.get_range(0x10_0000);
- assert_eq!(
- last_range,
- Some(CodePointMapRange {
- range: 0x10_0000..=0x10_ffff,
- value: 16
- })
- );
- }
-
- #[test]
- #[allow(unused_unsafe)] // `unsafe` below is both necessary and unnecessary
- fn databake() {
- databake::test_bake!(
- CodePointTrie<'static, u32>,
- const,
- unsafe {
- crate::codepointtrie::CodePointTrie::from_parts_unstable_unchecked_v1(
- crate::codepointtrie::CodePointTrieHeader {
- high_start: 1u32,
- shifted12_high_start: 2u16,
- index3_null_offset: 3u16,
- data_null_offset: 4u32,
- null_value: 5u32,
- trie_type: crate::codepointtrie::TrieType::Small,
- },
- zerovec::ZeroVec::new(),
- zerovec::ZeroVec::new(),
- 0u32,
- )
- },
- icu_collections,
- [zerovec],
- );
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/error.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/error.rs
deleted file mode 100644
index 383949d9561..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/error.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! Custom error type(s) for the parent module.
-
-use displaydoc::Display;
-
-/// A custom error type for [`CodePointTrie`](super::CodePointTrie).
-#[derive(Copy, Clone, Display, Debug, PartialEq)]
-#[non_exhaustive]
-pub enum Error {
- /// Could not construct [`CodePointTrie`](super::CodePointTrie) from deserialized values
- #[displaydoc("Could not construct CodePointTrie from deserialized values: {reason}")]
- FromDeserialized {
- /// Reason for inability to deserialize values.
- reason: &'static str,
- },
- /// [`CodePointTrie`](super::CodePointTrie) must be constructed from data vector with at least one element
- #[displaydoc("CodePointTrie must be constructed from data vector with at least one element")]
- EmptyDataVector,
- /// [`CodePointTrie`](super::CodePointTrie) must be constructed from index vector long enough to accommodate fast-path access
- #[displaydoc("CodePointTrie must be constructed from index vector long enough to accommodate fast-path access")]
- IndexTooShortForFastAccess,
- /// [`CodePointTrie`](super::CodePointTrie) must be constructed from data vector long enough to accommodate fast-path access
- #[displaydoc("CodePointTrie must be constructed from data vector long enough to accommodate fast-path access")]
- DataTooShortForFastAccess,
-}
-
-impl core::error::Error for Error {}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/impl_const.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/impl_const.rs
deleted file mode 100644
index 61e4f2746de..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/impl_const.rs
+++ /dev/null
@@ -1,76 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-pub const FAST_TYPE_SHIFT: i32 = 6;
-
-/// Number of entries in a data block for code points below the fast limit. 64=0x40
-pub const FAST_TYPE_DATA_BLOCK_LENGTH: u32 = 1 << FAST_TYPE_SHIFT;
-
-/// Mask for getting the lower bits for the in-fast-data-block offset.
-pub const FAST_TYPE_DATA_MASK: u32 = FAST_TYPE_DATA_BLOCK_LENGTH - 1;
-
-/// Fast indexing limit for "fast"-type trie
-pub const FAST_TYPE_FAST_INDEXING_MAX: u32 = 0xffff;
-
-/// Fast indexing limit for "small"-type trie
-pub const SMALL_TYPE_FAST_INDEXING_MAX: u32 = 0xfff;
-
-/// Offset from dataLength (to be subtracted) for fetching the
-/// value returned for out-of-range code points and ill-formed UTF-8/16.
-pub const ERROR_VALUE_NEG_DATA_OFFSET: u32 = 1;
-
-/// Offset from dataLength (to be subtracted) for fetching the
-/// value returned for code points highStart..U+10FFFF.
-pub const HIGH_VALUE_NEG_DATA_OFFSET: u32 = 2;
-
-/// The length of the BMP index table. 1024=0x400
-pub const BMP_INDEX_LENGTH: u32 = 0x10000 >> FAST_TYPE_SHIFT;
-
-pub const SMALL_LIMIT: u32 = 0x1000;
-
-pub const SMALL_INDEX_LENGTH: u32 = SMALL_LIMIT >> FAST_TYPE_SHIFT;
-
-/// Shift size for getting the index-3 table offset.
-pub const SHIFT_3: u32 = 4;
-
-/// Shift size for getting the index-2 table offset.
-pub const SHIFT_2: u32 = 5 + SHIFT_3;
-
-/// Shift size for getting the index-1 table offset.
-pub const SHIFT_1: u32 = 5 + SHIFT_2;
-
-/// Difference between two shift sizes,
-/// for getting an index-2 offset from an index-3 offset. 5=9-4
-pub const SHIFT_2_3: u32 = SHIFT_2 - SHIFT_3;
-
-/// Difference between two shift sizes,
-/// for getting an index-1 offset from an index-2 offset. 5=14-9
-pub const SHIFT_1_2: u32 = SHIFT_1 - SHIFT_2;
-
-/// Number of index-1 entries for the BMP. (4)
-/// This part of the index-1 table is omitted from the serialized form.
-pub const OMITTED_BMP_INDEX_1_LENGTH: u32 = 0x10000 >> SHIFT_1;
-
-/// Number of entries in an index-2 block. 32=0x20
-pub const INDEX_2_BLOCK_LENGTH: u32 = 1 << SHIFT_1_2;
-
-/// Mask for getting the lower bits for the in-index-2-block offset.
-pub const INDEX_2_MASK: u32 = INDEX_2_BLOCK_LENGTH - 1;
-
-/// Number of code points per index-2 table entry. 512=0x200
-pub const CP_PER_INDEX_2_ENTRY: u32 = 1 << SHIFT_2;
-
-/// Number of entries in an index-3 block. 32=0x20
-pub const INDEX_3_BLOCK_LENGTH: u32 = 1 << SHIFT_2_3;
-
-/// Mask for getting the lower bits for the in-index-3-block offset.
-pub const INDEX_3_MASK: u32 = INDEX_3_BLOCK_LENGTH - 1;
-
-/// Number of entries in a small data block. 16=0x10
-pub const SMALL_DATA_BLOCK_LENGTH: u32 = 1 << SHIFT_3;
-
-/// Mask for getting the lower bits for the in-small-data-block offset.
-pub const SMALL_DATA_MASK: u32 = SMALL_DATA_BLOCK_LENGTH - 1;
-
-pub const CODE_POINT_MAX: u32 = 0x10ffff;
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/mod.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/mod.rs
deleted file mode 100644
index dfc5a29ffc2..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/mod.rs
+++ /dev/null
@@ -1,53 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! This module provides a data structure for an time-efficient lookup of values
-//! associated to code points.
-//!
-//! It is an implementation of the existing [ICU4C UCPTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/ucptrie_8h.html)
-//! / [ICU4J CodePointTrie](https://unicode-org.github.io/icu-docs/apidoc/dev/icu4j/) API.
-//!
-//! # Architecture
-//!
-//! ICU4X [`CodePointTrie`] is designed to provide a read-only view of [`CodePointTrie`] data that is exported
-//! from ICU4C. Detailed information about the design of the data structure can be found in the documentation
-//! for the [`CodePointTrie`] struct.
-//!
-//! # Examples
-//!
-//! ## Querying a `CodePointTrie`
-//!
-//! ```
-//! use icu::collections::codepointtrie::planes;
-//! let trie = planes::get_planes_trie();
-//!
-//! assert_eq!(0, trie.get32(0x41)); // 'A' as u32
-//! assert_eq!(0, trie.get32(0x13E0)); // 'Ꮰ' as u32
-//! assert_eq!(1, trie.get32(0x10044)); // '𐁄' as u32
-//! ```
-//!
-//! [`ICU4X`]: ../icu/index.html
-
-mod cptrie;
-mod error;
-mod impl_const;
-pub mod planes;
-
-#[cfg(feature = "serde")]
-pub mod toml;
-
-#[cfg(feature = "serde")]
-mod serde;
-
-pub use cptrie::CodePointMapRange;
-pub use cptrie::CodePointMapRangeIterator;
-pub use cptrie::CodePointTrie;
-pub use cptrie::CodePointTrieHeader;
-pub use cptrie::FastCodePointTrie;
-pub use cptrie::SmallCodePointTrie;
-pub use cptrie::TrieType;
-pub use cptrie::TrieValue;
-pub use cptrie::Typed;
-pub use cptrie::TypedCodePointTrie;
-pub use error::Error as CodePointTrieError;
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/planes.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/planes.rs
deleted file mode 100644
index a806632992f..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/planes.rs
+++ /dev/null
@@ -1,296 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! Sample data for [`CodePointTrie`] that returns the code point's plane number.
-
-use crate::codepointtrie::cptrie::*;
-use zerovec::ZeroVec;
-
-const INDEX_ARRAY_AS_BYTES: &[u8] = &[
- 0x0, 0x0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0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x28, 0x2, 0x28, 0x2, 0x28, 0x2, 0x28,
- 0x2, 0x28, 0x2, 0x28, 0x2, 0x28, 0x2, 0x28, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2,
- 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48,
- 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2,
- 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48, 0x2, 0x48,
- 0x2, 0x48, 0x2, 0x48, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2,
- 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68,
- 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2,
- 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68, 0x2, 0x68,
- 0x2,
-];
-
-/// Return a [`CodePointTrie`] that returns the Unicode plane number, an
-/// integer from 0-16 inclusive, for each code point.
-///
-/// This `CodePointTrie`
-/// does not actually represent any Unicode property, but it is provided in
-/// case it is useful to users of `CodePointTrie` for testing or other
-/// purposes. See <https://www.unicode.org/glossary/#plane>.
-pub fn get_planes_trie() -> CodePointTrie<'static, u8> {
- let index_array_as_bytes: &[u8] = INDEX_ARRAY_AS_BYTES;
- let data_8_array: &[u8] = &[
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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c, 0xc, 0xd, 0xd, 0xd, 0xd, 0xd,
- 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xd, 0xe, 0xe, 0xe, 0xe, 0xe, 0xe, 0xe,
- 0xe, 0xe, 0xe, 0xe, 0xe, 0xe, 0xe, 0xe, 0xe, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf,
- 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0x10, 0x10, 0x10, 0,
- ];
- #[expect(clippy::unwrap_used)] // valid bytes
- let index: ZeroVec<u16> = ZeroVec::parse_bytes(index_array_as_bytes).unwrap();
- #[expect(clippy::unwrap_used)] // valid bytes
- let data: ZeroVec<u8> = ZeroVec::parse_bytes(data_8_array).unwrap();
- let high_start = 0x100000;
- let shifted12_high_start = 0x100;
- let index3_null_offset = 0x2;
- let data_null_offset = 0x0;
- let null_value = 0x0;
- let trie_type = TrieType::Small;
-
- let trie_header = CodePointTrieHeader {
- high_start,
- shifted12_high_start,
- index3_null_offset,
- data_null_offset,
- null_value,
- trie_type,
- };
-
- #[expect(clippy::unwrap_used)] // valid data
- CodePointTrie::try_new(trie_header, index, data).unwrap()
-}
-
-#[cfg(test)]
-mod tests {
- use zerovec::ZeroVec;
-
- const INDEX_ARRAY: &[u16] = &[
- 0, 0x40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0x288, 0x290, 0x290, 0x290, 0x2b0, 0x2b0, 0x2b0, 0x2b0, 0x2d0, 0x2d0, 0x2d0,
- 0x2d0, 0x2f0, 0x2f0, 0x2f0, 0x2f0, 0x310, 0x310, 0x310, 0x310, 0x330, 0x330, 0x330, 0x330,
- 0x350, 0x350, 0x350, 0x350, 0x370, 0x370, 0x370, 0x370, 0x390, 0x390, 0x390, 0x390, 0x3b0,
- 0x3b0, 0x3b0, 0x3b0, 0x3d0, 0x3d0, 0x3d0, 0x3d0, 0x3f0, 0x3f0, 0x3f0, 0x3f0, 0x410, 0x410,
- 0x410, 0x410, 0x430, 0x430, 0x430, 0x430, 0x450, 0x450, 0x450, 0x450, 0x470, 0x470, 0x470,
- 0x470, 0, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70, 0, 0x10, 0x20, 0x30, 0, 0x10, 0x20,
- 0x30, 0, 0x10, 0x20, 0x30, 0, 0x10, 0x20, 0x30, 0, 0x10, 0x20, 0x30, 0, 0x10, 0x20, 0x30,
- 0, 0x10, 0x20, 0x30, 0, 0x10, 0x20, 0x30, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
- 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
- 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
- 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
- 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0xa0, 0xa0, 0xa0, 0xa0,
- 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0,
- 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xb0, 0xb0,
- 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb0, 0xb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 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100,
- 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110,
- 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x110,
- 0x110, 0x110, 0x110, 0x110, 0x110, 0x110, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120,
- 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120,
- 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x120, 0x130,
- 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130,
- 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130, 0x130,
- 0x130, 0x130, 0x130, 0x130, 0x130, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140,
- 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140,
- 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x140, 0x150, 0x150,
- 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150,
- 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150, 0x150,
- 0x150, 0x150, 0x150, 0x150, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160,
- 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160,
- 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x160, 0x80, 0x88, 0x88,
- 0x88, 0x88, 0x88, 0x88, 0x88, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8,
- 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8,
- 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8,
- 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8,
- 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xc8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8,
- 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8,
- 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0xe8, 0x108, 0x108,
- 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108,
- 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108, 0x108,
- 0x108, 0x108, 0x108, 0x108, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128,
- 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128,
- 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x128, 0x148, 0x148, 0x148,
- 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148,
- 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148, 0x148,
- 0x148, 0x148, 0x148, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168,
- 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168,
- 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x168, 0x188, 0x188, 0x188, 0x188,
- 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188,
- 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188, 0x188,
- 0x188, 0x188, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8,
- 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8,
- 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1a8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8,
- 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8,
- 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8, 0x1c8,
- 0x1c8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8,
- 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8,
- 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x1e8, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208,
- 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208,
- 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208, 0x208,
- 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228,
- 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x228,
- 0x228, 0x228, 0x228, 0x228, 0x228, 0x228, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248,
- 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248,
- 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x248, 0x268,
- 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268,
- 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268, 0x268,
- 0x268, 0x268, 0x268, 0x268, 0x268,
- ];
-
- #[test]
- fn test_index_byte_array_literal() {
- let index_array_as_bytes: &[u8] = super::INDEX_ARRAY_AS_BYTES;
- let index_zv_bytes: ZeroVec<u16> =
- ZeroVec::parse_bytes(index_array_as_bytes).expect("infallible");
- let index_zv_aligned: ZeroVec<u16> = ZeroVec::from_slice_or_alloc(INDEX_ARRAY);
- assert_eq!(index_zv_bytes, index_zv_aligned);
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/serde.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/serde.rs
deleted file mode 100644
index adfb2d8aa08..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/serde.rs
+++ /dev/null
@@ -1,74 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use crate::codepointtrie::{CodePointTrie, CodePointTrieHeader, TrieValue};
-use serde::{de::Error, Deserialize, Deserializer, Serialize, Serializer};
-use zerofrom::ZeroFrom;
-use zerovec::ZeroVec;
-
-#[derive(Serialize, Deserialize)]
-pub struct CodePointTrieSerde<'trie, T: TrieValue> {
- header: CodePointTrieHeader,
- #[serde(borrow)]
- index: ZeroVec<'trie, u16>,
- #[serde(borrow)]
- data: ZeroVec<'trie, T>,
-}
-
-impl<T: TrieValue + Serialize> Serialize for CodePointTrie<'_, T> {
- fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
- where
- S: Serializer,
- {
- let ser = CodePointTrieSerde {
- header: self.header,
- index: ZeroFrom::zero_from(&self.index),
- data: ZeroFrom::zero_from(&self.data),
- };
- ser.serialize(serializer)
- }
-}
-
-impl<'de, 'trie, T: TrieValue + Deserialize<'de>> Deserialize<'de> for CodePointTrie<'trie, T>
-where
- 'de: 'trie,
-{
- fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
- where
- D: Deserializer<'de>,
- {
- let de = CodePointTrieSerde::deserialize(deserializer)?;
- // SAFETY:
- // `validate_fields` upholds the invariants for the fields that
- // fast-path access without bound checks relies on.
- let error_value = match CodePointTrie::validate_fields(&de.header, &de.index, &de.data) {
- Ok(v) => v,
- Err(e) => {
- match e {
- super::CodePointTrieError::FromDeserialized { reason } => {
- // Not supposed to be returned by `validate_fields`.
- debug_assert!(false);
- return Err(D::Error::custom(reason));
- }
- super::CodePointTrieError::EmptyDataVector => {
- return Err(D::Error::custom("CodePointTrie must be constructed from data vector with at least one element"));
- }
- super::CodePointTrieError::IndexTooShortForFastAccess => {
- return Err(D::Error::custom("CodePointTrie must be constructed from index vector long enough to accommodate fast-path access"));
- }
- super::CodePointTrieError::DataTooShortForFastAccess => {
- return Err(D::Error::custom("CodePointTrie must be constructed from data vector long enough to accommodate fast-path access"));
- }
- }
- }
- };
- // Field invariants upheld: Checked by `validate_fields` above.
- Ok(CodePointTrie {
- header: de.header,
- index: de.index,
- data: de.data,
- error_value,
- })
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/toml.rs b/deps/crates/vendor/icu_collections-v2/src/codepointtrie/toml.rs
deleted file mode 100644
index 0e05f16510d..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/codepointtrie/toml.rs
+++ /dev/null
@@ -1,124 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! Utilities for reading [`CodePointTrie`] data from TOML files.
-
-use crate::codepointtrie::error::Error;
-use crate::codepointtrie::CodePointTrie;
-use crate::codepointtrie::CodePointTrieHeader;
-use crate::codepointtrie::TrieType;
-use crate::codepointtrie::TrieValue;
-use alloc::string::String;
-use alloc::vec::Vec;
-use core::convert::TryFrom;
-use zerovec::ZeroVec;
-
-/// A Serde-compatible struct for reading serialized [`CodePointTrie`] TOML files
-/// generated by ICU4C.
-///
-/// Use `TryInto` to convert [`CodePointTrieToml`] to a proper [`CodePointTrie`].
-#[derive(serde::Deserialize, Debug)]
-pub struct CodePointTrieToml {
- #[serde(skip)]
- _short_name: String,
- #[serde(skip)]
- _long_name: String,
- #[serde(skip)]
- _name: String,
- index: Vec<u16>,
- data_8: Option<Vec<u8>>,
- data_16: Option<Vec<u16>>,
- data_32: Option<Vec<u32>>,
- #[serde(skip)]
- _index_length: u32,
- #[serde(skip)]
- _data_length: u32,
- #[serde(rename = "highStart")]
- high_start: u32,
- #[serde(rename = "shifted12HighStart")]
- shifted12_high_start: u16,
- #[serde(rename = "type")]
- trie_type_enum_val: u8,
- #[serde(rename = "valueWidth")]
- _value_width_enum_val: u8,
- #[serde(rename = "index3NullOffset")]
- index3_null_offset: u16,
- #[serde(rename = "dataNullOffset")]
- data_null_offset: u32,
- #[serde(rename = "nullValue")]
- null_value: u32,
-}
-
-/// Data slice from a [`CodePointTrie`] TOML.
-///
-/// ICU4C exports data as either `u8`, `u16`, or `u32`, which may be converted
-/// to other types as appropriate.
-#[allow(clippy::exhaustive_enums)] // based on a stable serialized form
-#[derive(Debug)]
-pub enum CodePointDataSlice<'a> {
- /// A serialized [`CodePointTrie`] data array 8-bit values.
- U8(&'a [u8]),
- /// A serialized [`CodePointTrie`] data array 16-bit values.
- U16(&'a [u16]),
- /// A serialized [`CodePointTrie`] data array 32-bit values.
- U32(&'a [u32]),
-}
-
-impl CodePointTrieToml {
- /// Gets the `index` slice.
- pub fn index_slice(&self) -> &[u16] {
- self.index.as_slice()
- }
-
- /// Gets the `data` slice.
- pub fn data_slice(&self) -> Result<CodePointDataSlice<'_>, Error> {
- if let Some(data_8) = &self.data_8 {
- Ok(CodePointDataSlice::U8(data_8.as_slice()))
- } else if let Some(data_16) = &self.data_16 {
- Ok(CodePointDataSlice::U16(data_16.as_slice()))
- } else if let Some(data_32) = &self.data_32 {
- Ok(CodePointDataSlice::U32(data_32.as_slice()))
- } else {
- Err(Error::FromDeserialized {
- reason: "Did not find data array for CodePointTrie in TOML",
- })
- }
- }
-}
-
-impl TryFrom<&CodePointTrieToml> for CodePointTrieHeader {
- type Error = Error;
-
- fn try_from(cpt_data: &CodePointTrieToml) -> Result<Self, Self::Error> {
- let trie_type_enum: TrieType = TrieType::try_from(cpt_data.trie_type_enum_val)?;
- Ok(CodePointTrieHeader {
- high_start: cpt_data.high_start,
- shifted12_high_start: cpt_data.shifted12_high_start,
- index3_null_offset: cpt_data.index3_null_offset,
- data_null_offset: cpt_data.data_null_offset,
- null_value: cpt_data.null_value,
- trie_type: trie_type_enum,
- })
- }
-}
-
-impl<T: TrieValue> TryFrom<&CodePointTrieToml> for CodePointTrie<'static, T> {
- type Error = Error;
-
- fn try_from(cpt_data: &CodePointTrieToml) -> Result<CodePointTrie<'static, T>, Self::Error> {
- use CodePointDataSlice::*;
- let header = CodePointTrieHeader::try_from(cpt_data)?;
- let index: ZeroVec<u16> = ZeroVec::alloc_from_slice(&cpt_data.index);
- let data: Result<ZeroVec<'static, T>, T::TryFromU32Error> = match cpt_data.data_slice()? {
- U8(s) => s.iter().map(|i| T::try_from_u32(*i as u32)).collect(),
- U16(s) => s.iter().map(|i| T::try_from_u32(*i as u32)).collect(),
- U32(s) => s.iter().map(|i| T::try_from_u32(*i)).collect(),
- };
-
- let data = data.map_err(|_| Error::FromDeserialized {
- reason: "Could not parse data array to typed array",
- })?;
- CodePointTrie::<T>::try_new(header, index, data)
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/iterator_utils.rs b/deps/crates/vendor/icu_collections-v2/src/iterator_utils.rs
deleted file mode 100644
index 913e3535eeb..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/iterator_utils.rs
+++ /dev/null
@@ -1,188 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use crate::codepointtrie::CodePointMapRange;
-
-/// This is an iterator that coalesces adjacent ranges in an iterator over code
-/// point ranges
-pub(crate) struct RangeListIteratorCoalescer<I, T> {
- iter: I,
- peek: Option<CodePointMapRange<T>>,
-}
-
-impl<I, T: Eq> RangeListIteratorCoalescer<I, T>
-where
- I: Iterator<Item = CodePointMapRange<T>>,
-{
- pub fn new(iter: I) -> Self {
- Self { iter, peek: None }
- }
-}
-
-impl<I, T: Eq> Iterator for RangeListIteratorCoalescer<I, T>
-where
- I: Iterator<Item = CodePointMapRange<T>>,
-{
- type Item = CodePointMapRange<T>;
-
- fn next(&mut self) -> Option<Self::Item> {
- // Get the initial range we're working with: either a leftover
- // range from last time, or the next range
- let mut ret = if let Some(peek) = self.peek.take() {
- peek
- } else if let Some(next) = self.iter.next() {
- next
- } else {
- // No ranges, exit early
- return None;
- };
-
- // Keep pulling ranges
- #[expect(clippy::while_let_on_iterator)]
- // can't move the iterator, also we want it to be explicit that we're not draining the iterator
- while let Some(next) = self.iter.next() {
- if *next.range.start() == ret.range.end() + 1 && next.value == ret.value {
- // Range has no gap, coalesce
- ret.range = *ret.range.start()..=*next.range.end();
- } else {
- // Range has a gap, return what we have so far, update
- // peek
- self.peek = Some(next);
- return Some(ret);
- }
- }
-
- // Ran out of elements, exit
- Some(ret)
- }
-}
-
-#[cfg(test)]
-mod tests {
- use crate::codepointinvlist::CodePointInversionListBuilder;
- use core::fmt::Debug;
- use icu_properties::props::{BinaryProperty, EnumeratedProperty};
- use icu_properties::{CodePointMapData, CodePointSetData};
-
- fn test_set<P: BinaryProperty>(name: &str) {
- let mut builder = CodePointInversionListBuilder::new();
- let mut builder_complement = CodePointInversionListBuilder::new();
-
- for range in CodePointSetData::new::<P>().iter_ranges() {
- builder.add_range32(range)
- }
-
- for range in CodePointSetData::new::<P>().iter_ranges_complemented() {
- builder_complement.add_range32(range)
- }
-
- builder.complement();
- let set1 = builder.build();
- let set2 = builder_complement.build();
- assert_eq!(set1, set2, "Set {name} failed to complement correctly");
- }
-
- fn test_map<T: EnumeratedProperty + Debug>(value: T, name: &str) {
- let mut builder = CodePointInversionListBuilder::new();
- let mut builder_complement = CodePointInversionListBuilder::new();
-
- for range in CodePointMapData::<T>::new().iter_ranges_for_value(value) {
- builder.add_range32(range)
- }
-
- for range in CodePointMapData::<T>::new().iter_ranges_for_value_complemented(value) {
- builder_complement.add_range32(range)
- }
-
- builder.complement();
- let set1 = builder.build();
- let set2 = builder_complement.build();
- assert_eq!(
- set1, set2,
- "Map {name} failed to complement correctly with value {value:?}"
- );
- }
-
- #[test]
- fn test_complement_sets() {
- use icu_properties::props::*;
- // Stress test the RangeListIteratorComplementer logic by ensuring it works for
- // a whole bunch of binary properties
- test_set::<AsciiHexDigit>("ASCII_Hex_Digit");
- test_set::<Alnum>("Alnum");
- test_set::<Alphabetic>("Alphabetic");
- test_set::<BidiControl>("Bidi_Control");
- test_set::<BidiMirrored>("Bidi_Mirrored");
- test_set::<Blank>("Blank");
- test_set::<Cased>("Cased");
- test_set::<CaseIgnorable>("Case_Ignorable");
- test_set::<FullCompositionExclusion>("Full_Composition_Exclusion");
- test_set::<ChangesWhenCasefolded>("Changes_When_Casefolded");
- test_set::<ChangesWhenCasemapped>("Changes_When_Casemapped");
- test_set::<ChangesWhenNfkcCasefolded>("Changes_When_NFKC_Casefolded");
- test_set::<ChangesWhenLowercased>("Changes_When_Lowercased");
- test_set::<ChangesWhenTitlecased>("Changes_When_Titlecased");
- test_set::<ChangesWhenUppercased>("Changes_When_Uppercased");
- test_set::<Dash>("Dash");
- test_set::<Deprecated>("Deprecated");
- test_set::<DefaultIgnorableCodePoint>("Default_Ignorable_Code_Point");
- test_set::<Diacritic>("Diacritic");
- test_set::<EmojiModifierBase>("Emoji_Modifier_Base");
- test_set::<EmojiComponent>("Emoji_Component");
- test_set::<EmojiModifier>("Emoji_Modifier");
- test_set::<Emoji>("Emoji");
- test_set::<EmojiPresentation>("Emoji_Presentation");
- test_set::<Extender>("Extender");
- test_set::<ExtendedPictographic>("Extended_Pictographic");
- test_set::<Graph>("Graph");
- test_set::<GraphemeBase>("Grapheme_Base");
- test_set::<GraphemeExtend>("Grapheme_Extend");
- test_set::<GraphemeLink>("Grapheme_Link");
- test_set::<HexDigit>("Hex_Digit");
- test_set::<Hyphen>("Hyphen");
- test_set::<IdContinue>("Id_Continue");
- test_set::<Ideographic>("Ideographic");
- test_set::<IdStart>("Id_Start");
- test_set::<IdsBinaryOperator>("Ids_Binary_Operator");
- test_set::<IdsTrinaryOperator>("Ids_Trinary_Operator");
- test_set::<JoinControl>("Join_Control");
- test_set::<LogicalOrderException>("Logical_Order_Exception");
- test_set::<Lowercase>("Lowercase");
- test_set::<Math>("Math");
- test_set::<NoncharacterCodePoint>("Noncharacter_Code_Point");
- test_set::<NfcInert>("NFC_Inert");
- test_set::<NfdInert>("NFD_Inert");
- test_set::<NfkcInert>("NFKC_Inert");
- test_set::<NfkdInert>("NFKD_Inert");
- test_set::<PatternSyntax>("Pattern_Syntax");
- test_set::<PatternWhiteSpace>("Pattern_White_Space");
- test_set::<PrependedConcatenationMark>("Prepended_Concatenation_Mark");
- test_set::<Print>("Print");
- test_set::<QuotationMark>("Quotation_Mark");
- test_set::<Radical>("Radical");
- test_set::<RegionalIndicator>("Regional_Indicator");
- test_set::<SoftDotted>("Soft_Dotted");
- test_set::<SegmentStarter>("Segment_Starter");
- test_set::<CaseSensitive>("Case_Sensitive");
- test_set::<SentenceTerminal>("Sentence_Terminal");
- test_set::<TerminalPunctuation>("Terminal_Punctuation");
- test_set::<UnifiedIdeograph>("Unified_Ideograph");
- test_set::<Uppercase>("Uppercase");
- test_set::<VariationSelector>("Variation_Selector");
- test_set::<WhiteSpace>("White_Space");
- test_set::<Xdigit>("Xdigit");
- test_set::<XidContinue>("XID_Continue");
- test_set::<XidStart>("XID_Start");
- }
-
- #[test]
- fn test_complement_maps() {
- use icu_properties::props::{GeneralCategory, Script};
- test_map(GeneralCategory::UppercaseLetter, "gc");
- test_map(GeneralCategory::OtherPunctuation, "gc");
- test_map(Script::Devanagari, "script");
- test_map(Script::Latin, "script");
- test_map(Script::Common, "script");
- }
-}
diff --git a/deps/crates/vendor/icu_collections-v2/src/lib.rs b/deps/crates/vendor/icu_collections-v2/src/lib.rs
deleted file mode 100644
index f19010e72bf..00000000000
--- a/deps/crates/vendor/icu_collections-v2/src/lib.rs
+++ /dev/null
@@ -1,44 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations
-#![cfg_attr(not(any(test, doc)), no_std)]
-#![cfg_attr(
- not(test),
- deny(
- clippy::indexing_slicing,
- clippy::unwrap_used,
- clippy::expect_used,
- clippy::panic,
- )
-)]
-#![warn(missing_docs)]
-
-//! Efficient collections for Unicode data.
-//!
-//! This module is published as its own crate ([`icu_collections`](https://docs.rs/icu_collections/latest/icu_collections/))
-//! and as part of the [`icu`](https://docs.rs/icu/latest/icu/) crate. See the latter for more details on the ICU4X project.
-//!
-//! ICU4X [`CodePointTrie`](crate::codepointtrie::CodePointTrie) provides a read-only view of `CodePointTrie` data that is exported
-//! from ICU4C. Detailed information about the design of the data structure can be found in the documentation
-//! for the [`CodePointTrie`](crate::codepointtrie::CodePointTrie) struct.
-//!
-//! ICU4X [`CodePointInversionList`](`crate::codepointinvlist::CodePointInversionList`) provides necessary functionality for highly efficient querying of sets of Unicode characters.
-//! It is an implementation of the existing [ICU4C UnicodeSet API](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UnicodeSet.html).
-//!
-//! ICU4X [`Char16Trie`](`crate::char16trie::Char16Trie`) provides a data structure for a space-efficient and time-efficient lookup of
-//! sequences of 16-bit units (commonly but not necessarily UTF-16 code units)
-//! which map to integer values.
-//! It is an implementation of the existing [ICU4C UCharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1UCharsTrie.html)
-//! / [ICU4J CharsTrie](https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/com/ibm/icu/util/CharsTrie.html) API.
-
-#[cfg(feature = "alloc")]
-extern crate alloc;
-
-pub mod char16trie;
-pub mod codepointinvlist;
-pub mod codepointinvliststringlist;
-pub mod codepointtrie;
-
-pub(crate) mod iterator_utils;
diff --git a/deps/crates/vendor/icu_collections-v2/tests/char16trie.rs b/deps/crates/vendor/icu_collections-v2/tests/char16trie.rs
deleted file mode 100644
index dcb4424c635..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/char16trie.rs
+++ /dev/null
@@ -1,304 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use icu_collections::char16trie::{Char16Trie, TrieResult};
-use zerovec::ZeroVec;
-
-#[test]
-fn empty() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/empty.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
- let res = trie.iter().next('h');
- assert_eq!(res, TrieResult::NoMatch);
-}
-
-#[test]
-fn a() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/test_a.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- let mut iter = trie.iter();
- let res = iter.next('h');
- assert_eq!(res, TrieResult::NoMatch);
-
- let mut iter = trie.iter();
- let res = iter.next('a');
- assert_eq!(res, TrieResult::FinalValue(1));
- let res = iter.next('a');
- assert_eq!(res, TrieResult::NoMatch);
-}
-
-#[test]
-fn a_b() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/test_a_ab.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- let mut iter = trie.iter();
- let res = iter.next('a');
- assert_eq!(res, TrieResult::Intermediate(1));
- let res = iter.next('a');
- assert_eq!(res, TrieResult::NoMatch);
-
- let mut iter = trie.iter();
- let res = iter.next('a');
- assert_eq!(res, TrieResult::Intermediate(1));
- let res = iter.next('b');
- assert_eq!(res, TrieResult::FinalValue(100));
- let res = iter.next('b');
- assert_eq!(res, TrieResult::NoMatch);
-}
-
-#[test]
-fn shortest_branch() {
- let trie_data =
- toml::from_str::<TestFile>(include_str!("data/char16trie/test_shortest_branch.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- let mut iter = trie.iter();
- let res = iter.next('a');
- assert_eq!(res, TrieResult::FinalValue(1000));
- let res = iter.next('b');
- assert_eq!(res, TrieResult::NoMatch);
-
- let mut iter = trie.iter();
- let res = iter.next('b');
- assert_eq!(res, TrieResult::FinalValue(2000));
- let res = iter.next('a');
- assert_eq!(res, TrieResult::NoMatch);
-}
-
-#[test]
-fn branches() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/test_branches.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- for (query, expected) in [
- ("a", TrieResult::FinalValue(0x10)),
- ("cc", TrieResult::FinalValue(0x40)),
- ("e", TrieResult::FinalValue(0x100)),
- ("ggg", TrieResult::FinalValue(0x400)),
- ("i", TrieResult::FinalValue(0x1000)),
- ("kkkk", TrieResult::FinalValue(0x4000)),
- ("n", TrieResult::FinalValue(0x10000)),
- ("ppppp", TrieResult::FinalValue(0x40000)),
- ("r", TrieResult::FinalValue(0x100000)),
- ("sss", TrieResult::FinalValue(0x200000)),
- ("t", TrieResult::FinalValue(0x400000)),
- ("uu", TrieResult::FinalValue(0x800000)),
- ("vv", TrieResult::FinalValue(0x7fffffff)),
- ("zz", TrieResult::FinalValue(-2147483648)),
- ] {
- let mut iter = trie.iter();
- for (i, chr) in query.chars().enumerate() {
- let res = iter.next(chr);
- if i + 1 == query.len() {
- assert_eq!(res, expected);
- } else {
- assert_eq!(res, TrieResult::NoValue);
- }
- }
- }
-}
-
-#[test]
-fn long_sequence() {
- let trie_data =
- toml::from_str::<TestFile>(include_str!("data/char16trie/test_long_sequence.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- for (query, expected) in [
- ("a", TrieResult::Intermediate(-1)),
- // sequence of linear-match nodes
- (
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- TrieResult::Intermediate(-2),
- ),
- // more than 256 units
- (
- concat!(
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
- ),
- TrieResult::FinalValue(-3),
- ),
- ] {
- let mut iter = trie.iter();
- for (i, chr) in query.chars().enumerate() {
- let res = iter.next(chr);
- if i + 1 == query.len() {
- assert_eq!(res, expected);
- } else if i == 0 {
- assert_eq!(res, TrieResult::Intermediate(-1));
- } else if i == 51 {
- assert_eq!(res, TrieResult::Intermediate(-2));
- } else {
- assert_eq!(res, TrieResult::NoValue);
- }
- }
- }
-}
-
-#[test]
-fn long_branch() {
- let trie_data =
- toml::from_str::<TestFile>(include_str!("data/char16trie/test_long_branch.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- for (query, expected) in [
- ("a", TrieResult::FinalValue(-2)),
- ("b", TrieResult::FinalValue(-1)),
- ("c", TrieResult::FinalValue(0)),
- ("d2", TrieResult::FinalValue(1)),
- ("f", TrieResult::FinalValue(0x3f)),
- ("g", TrieResult::FinalValue(0x40)),
- ("h", TrieResult::FinalValue(0x41)),
- ("j23", TrieResult::FinalValue(0x1900)),
- ("j24", TrieResult::FinalValue(0x19ff)),
- ("j25", TrieResult::FinalValue(0x1a00)),
- ("k2", TrieResult::FinalValue(0x1a80)),
- ("k3", TrieResult::FinalValue(0x1aff)),
- ("l234567890", TrieResult::Intermediate(0x1b00)),
- ("l234567890123", TrieResult::FinalValue(0x1b01)),
- (
- "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn",
- TrieResult::FinalValue(0x10ffff),
- ),
- (
- "oooooooooooooooooooooooooooooooooooooooooooooooooooooo",
- TrieResult::FinalValue(0x110000),
- ),
- (
- "pppppppppppppppppppppppppppppppppppppppppppppppppppppp",
- TrieResult::FinalValue(0x120000),
- ),
- ("r", TrieResult::FinalValue(0x333333)),
- ("s2345", TrieResult::FinalValue(0x4444444)),
- ("t234567890", TrieResult::FinalValue(0x77777777)),
- ("z", TrieResult::FinalValue(-2147483647)),
- ] {
- let mut iter = trie.iter();
- for (i, chr) in query.chars().enumerate() {
- let res = iter.next(chr);
- if i + 1 == query.len() {
- assert_eq!(res, expected);
- } else if query == "l234567890123" && i == 9 {
- assert_eq!(res, TrieResult::Intermediate(0x1b00));
- } else {
- assert_eq!(res, TrieResult::NoValue);
- }
- }
- }
-}
-
-#[test]
-fn compact() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/test_compact.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- for (query, expected) in [
- ("+", TrieResult::Intermediate(0)),
- ("+august", TrieResult::FinalValue(8)),
- ("+december", TrieResult::FinalValue(12)),
- ("+july", TrieResult::FinalValue(7)),
- ("+june", TrieResult::FinalValue(6)),
- ("+november", TrieResult::FinalValue(11)),
- ("+october", TrieResult::FinalValue(10)),
- ("+september", TrieResult::FinalValue(9)),
- ("-", TrieResult::Intermediate(0)),
- ("-august", TrieResult::FinalValue(8)),
- ("-december", TrieResult::FinalValue(12)),
- ("-july", TrieResult::FinalValue(7)),
- ("-june", TrieResult::FinalValue(6)),
- ("-november", TrieResult::FinalValue(11)),
- ("-october", TrieResult::FinalValue(10)),
- ("-september", TrieResult::FinalValue(9)),
- ("xjuly", TrieResult::FinalValue(7)),
- ("xjune", TrieResult::FinalValue(6)),
- ] {
- let mut iter = trie.iter();
- for (i, chr) in query.chars().enumerate() {
- let res = iter.next(chr);
- if i + 1 == query.len() {
- assert_eq!(res, expected);
- } else if chr == '-' || chr == '+' {
- assert_eq!(res, TrieResult::Intermediate(0));
- } else {
- assert_eq!(res, TrieResult::NoValue);
- }
- }
- }
-}
-
-#[test]
-fn months() {
- let trie_data = toml::from_str::<TestFile>(include_str!("data/char16trie/months.toml"))
- .unwrap()
- .ucharstrie
- .data;
- let trie = Char16Trie::new(ZeroVec::from_slice_or_alloc(trie_data.as_slice()));
-
- let mut iter = trie.iter();
- for (chr, expected) in [
- ('j', TrieResult::NoValue),
- ('u', TrieResult::NoValue),
- ('n', TrieResult::Intermediate(6)),
- ('e', TrieResult::FinalValue(6)),
- ] {
- let res = iter.next(chr);
- assert_eq!(res, expected);
- }
- let res = iter.next('h');
- assert_eq!(res, TrieResult::NoMatch);
-
- let mut iter = trie.iter();
- for (chr, expected) in [
- ('j', TrieResult::NoValue),
- ('u', TrieResult::NoValue),
- ('l', TrieResult::NoValue),
- ('y', TrieResult::FinalValue(7)),
- ] {
- let res = iter.next(chr);
- assert_eq!(res, expected);
- }
- let res = iter.next('h');
- assert_eq!(res, TrieResult::NoMatch);
-}
-
-#[derive(serde::Deserialize)]
-struct TestFile {
- ucharstrie: Char16TrieVec,
-}
-
-#[derive(serde::Deserialize)]
-struct Char16TrieVec {
- data: Vec<u16>,
-}
diff --git a/deps/crates/vendor/icu_collections-v2/tests/cpt.rs b/deps/crates/vendor/icu_collections-v2/tests/cpt.rs
deleted file mode 100644
index 1218ea79558..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/cpt.rs
+++ /dev/null
@@ -1,489 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-#![allow(dead_code)]
-
-use icu_collections::codepointtrie::planes::get_planes_trie;
-use icu_collections::codepointtrie::*;
-use zerovec::ZeroVec;
-
-#[test]
-fn planes_trie_deserialize_check_test() {
- // Get expected planes trie from crate::planes::get_planes_trie()
-
- let exp_planes_trie = get_planes_trie();
-
- // Compute actual planes trie from planes.toml
-
- let planes_enum_prop =
- ::toml::from_str::<UnicodeEnumeratedProperty>(include_str!("data/cpt/planes.toml"))
- .unwrap();
-
- let code_point_trie_struct = planes_enum_prop.code_point_trie.trie_struct;
-
- let trie_header = CodePointTrieHeader {
- high_start: code_point_trie_struct.high_start,
- shifted12_high_start: code_point_trie_struct.shifted12_high_start,
- index3_null_offset: code_point_trie_struct.index3_null_offset,
- data_null_offset: code_point_trie_struct.data_null_offset,
- null_value: code_point_trie_struct.null_value,
- trie_type: TrieType::try_from(code_point_trie_struct.trie_type_enum_val).unwrap_or_else(
- |_| {
- panic!(
- "Could not parse trie_type serialized enum value in test data file: {}",
- code_point_trie_struct.name
- )
- },
- ),
- };
-
- let data = ZeroVec::from_slice_or_alloc(code_point_trie_struct.data_8.as_ref().unwrap());
- let index = ZeroVec::from_slice_or_alloc(&code_point_trie_struct.index);
- let trie_result = CodePointTrie::try_new(trie_header, index, data);
- let act_planes_trie = trie_result.unwrap();
-
- // Get check ranges (inversion map-style sequence of range+value) and
- // apply the trie validation test fn on expected and actual tries
-
- let serialized_ranges: Vec<(u32, u32, u32)> = planes_enum_prop.code_point_map.data.ranges;
- let mut check_ranges: Vec<u32> = vec![];
- for range_tuple in serialized_ranges {
- let range_end = range_tuple.1 + 1;
- let value = range_tuple.2;
- check_ranges.push(range_end);
- check_ranges.push(value);
- }
-
- check_trie(&act_planes_trie, &check_ranges);
- check_trie(&exp_planes_trie, &check_ranges);
-}
-
-#[test]
-fn free_blocks_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/free-blocks.16.toml"));
-}
-
-#[test]
-fn free_blocks_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/free-blocks.32.toml"));
-}
-
-#[test]
-fn free_blocks_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/free-blocks.8.toml"));
-}
-
-#[test]
-fn free_blocks_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/free-blocks.small16.toml"));
-}
-
-#[test]
-fn grow_data_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/grow-data.16.toml"));
-}
-
-#[test]
-fn grow_data_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/grow-data.32.toml"));
-}
-
-#[test]
-fn grow_data_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/grow-data.8.toml"));
-}
-
-#[test]
-fn grow_data_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/grow-data.small16.toml"));
-}
-
-#[test]
-fn set1_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set1.16.toml"));
-}
-
-#[test]
-fn set1_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set1.32.toml"));
-}
-
-#[test]
-fn set1_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set1.8.toml"));
-}
-
-#[test]
-fn set1_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set1.small16.toml"));
-}
-
-#[test]
-fn set2_overlap_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set2-overlap.16.toml"));
-}
-
-#[test]
-fn set2_overlap_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set2-overlap.32.toml"));
-}
-
-#[test]
-fn set2_overlap_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set2-overlap.small16.toml"));
-}
-
-#[test]
-fn set3_initial_9_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set3-initial-9.16.toml"));
-}
-
-#[test]
-fn set3_initial_9_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set3-initial-9.32.toml"));
-}
-
-#[test]
-fn set3_initial_9_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set3-initial-9.8.toml"));
-}
-
-#[test]
-fn set3_initial_9_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set3-initial-9.small16.toml"));
-}
-
-#[test]
-fn set_empty_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-empty.16.toml"));
-}
-
-#[test]
-fn set_empty_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-empty.32.toml"));
-}
-
-#[test]
-fn set_empty_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-empty.8.toml"));
-}
-
-#[test]
-fn set_empty_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-empty.small16.toml"));
-}
-
-#[test]
-fn set_single_value_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-single-value.16.toml"));
-}
-
-#[test]
-fn set_single_value_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-single-value.32.toml"));
-}
-
-#[test]
-fn set_single_value_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-single-value.8.toml"));
-}
-
-#[test]
-fn set_single_value_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/set-single-value.small16.toml"));
-}
-
-#[test]
-fn short_all_same_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/short-all-same.16.toml"));
-}
-
-#[test]
-fn short_all_same_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/short-all-same.8.toml"));
-}
-
-#[test]
-fn short_all_same_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/short-all-same.small16.toml"));
-}
-
-#[test]
-fn small0_in_fast_16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/small0-in-fast.16.toml"));
-}
-
-#[test]
-fn small0_in_fast_32() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/small0-in-fast.32.toml"));
-}
-
-#[test]
-fn small0_in_fast_8() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/small0-in-fast.8.toml"));
-}
-
-#[test]
-fn small0_in_fast_small16() {
- run_deserialize_test_from_test_data(include_str!("data/cpt/small0-in-fast.small16.toml"));
-}
-
-/// The width of the elements in the data array of a [`CodePointTrie`].
-/// See [`UCPTrieValueWidth`](https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/ucptrie_8h.html) in ICU4C.
-#[derive(Clone, Copy, PartialEq)]
-#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
-enum ValueWidthEnum {
- Bits16 = 0,
- Bits32 = 1,
- Bits8 = 2,
-}
-
-/// Test .`get()` on [`CodePointTrie`] by iterating through each range in
-/// `check_ranges` and assert that the associated
-/// value matches the trie value for each code point in the range.
-fn check_trie<T: TrieValue + Into<u32>>(trie: &CodePointTrie<T>, check_ranges: &[u32]) {
- assert_eq!(
- 0,
- check_ranges.len() % 2,
- "check_ranges must have an even number of 32-bit values in (limit,value) pairs"
- );
-
- let mut i: u32 = 0;
- let check_range_tuples = check_ranges.chunks(2);
- // Iterate over each check range
- for range_tuple in check_range_tuples {
- let range_limit = range_tuple[0];
- let range_value = range_tuple[1];
- // Check all values in this range, one-by-one
- while i < range_limit {
- assert_eq!(range_value, trie.get32(i).into(), "trie_get({i})",);
- i += 1;
- }
- }
-}
-
-/// Test `.get_range()` / `.iter_ranges()` on [`CodePointTrie`] by calling
-/// `.iter_ranges()` on the trie.
-///
-/// `.iter_ranges()` returns an iterator that produces values
-/// by calls to .`get_range`, and this checks if it matches the values in `check_ranges`.
-fn test_check_ranges_get_ranges<T: TrieValue + Into<u32>>(
- trie: &CodePointTrie<T>,
- check_ranges: &[u32],
-) {
- assert_eq!(
- 0,
- check_ranges.len() % 2,
- "check_ranges must have an even number of 32-bit values in (limit,value) pairs"
- );
-
- let mut trie_ranges = trie.iter_ranges();
-
- let mut range_start: u32 = 0;
- let check_range_tuples = check_ranges.chunks(2);
- // Iterate over each check range
- for range_tuple in check_range_tuples {
- let range_limit = range_tuple[0];
- let range_value = range_tuple[1];
-
- // The check ranges array seems to start with a trivial range whose
- // limit is zero. range_start is initialized to 0, so we can skip.
- if range_limit == 0 {
- continue;
- }
-
- let cpm_range = trie_ranges.next();
- assert!(cpm_range.is_some(), "CodePointTrie iter_ranges() produces fewer ranges than the check_ranges field in testdata has");
- let cpm_range = cpm_range.unwrap();
- let cpmr_start = cpm_range.range.start();
- let cpmr_end = cpm_range.range.end();
- let cpmr_value: u32 = cpm_range.value.into();
-
- assert_eq!(range_start, *cpmr_start);
- assert_eq!(range_limit, *cpmr_end + 1);
- assert_eq!(range_value, cpmr_value);
-
- range_start = range_limit;
- }
-
- assert!(trie_ranges.next().is_none(), "CodePointTrie iter_ranges() produces more ranges than the check_ranges field in testdata has");
-}
-
-/// Run above tests that verify the validity of [`CodePointTrie`] methods
-fn run_trie_tests<T: TrieValue + Into<u32>>(trie: &CodePointTrie<T>, check_ranges: &[u32]) {
- check_trie(trie, check_ranges);
- test_check_ranges_get_ranges(trie, check_ranges);
-}
-
-// The following structs might be useful later for de-/serialization of the
-// main `CodePointTrie` struct in the corresponding data provider.
-
-#[cfg_attr(any(feature = "serde", test), derive(serde::Deserialize))]
-struct UnicodeEnumeratedProperty {
- code_point_map: EnumPropCodePointMap,
- code_point_trie: EnumPropSerializedCPT,
-}
-
-#[cfg_attr(any(feature = "serde", test), derive(serde::Deserialize))]
-struct EnumPropCodePointMap {
- data: EnumPropCodePointMapData,
-}
-
-#[cfg_attr(any(feature = "serde", test), derive(serde::Deserialize))]
-struct EnumPropCodePointMapData {
- long_name: String,
- name: String,
- ranges: Vec<(u32, u32, u32)>,
-}
-
-#[cfg_attr(any(feature = "serde", test), derive(serde::Deserialize))]
-struct EnumPropSerializedCPT {
- #[cfg_attr(any(feature = "serde", test), serde(rename = "struct"))]
- trie_struct: EnumPropSerializedCPTStruct,
-}
-
-// These structs support the test data dumped as TOML files from ICU.
-// Because the properties CodePointMap data will also be dumped from ICU
-// using similar functions, some of these structs may be useful to refactor
-// into main code at a later point.
-
-#[cfg_attr(any(feature = "serde", test), derive(serde::Deserialize))]
-struct EnumPropSerializedCPTStruct {
- #[cfg_attr(any(feature = "serde", test), serde(skip))]
- long_name: String,
- name: String,
- index: Vec<u16>,
- data_8: Option<Vec<u8>>,
- data_16: Option<Vec<u16>>,
- data_32: Option<Vec<u32>>,
- #[cfg_attr(any(feature = "serde", test), serde(skip))]
- index_length: u32,
- #[cfg_attr(any(feature = "serde", test), serde(skip))]
- data_length: u32,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "highStart"))]
- high_start: u32,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "shifted12HighStart"))]
- shifted12_high_start: u16,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "type"))]
- trie_type_enum_val: u8,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "valueWidth"))]
- value_width_enum_val: u8,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "index3NullOffset"))]
- index3_null_offset: u16,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "dataNullOffset"))]
- data_null_offset: u32,
- #[cfg_attr(any(feature = "serde", test), serde(rename = "nullValue"))]
- null_value: u32,
-}
-
-// Given a .toml file dumped from ICU4C test data for UCPTrie, run the test
-// data file deserialization into the test file struct, convert and construct
-// the `CodePointTrie`, and test the constructed struct against the test file's
-// "check ranges" (inversion map ranges) using `check_trie` to verify the
-// validity of the `CodePointTrie`'s behavior for all code points.
-#[allow(dead_code)]
-fn run_deserialize_test_from_test_data(test_file: &str) {
- // The following structs are specific to the TOML format files for dumped ICU
- // test data.
-
- #[derive(serde::Deserialize)]
- struct TestFile {
- code_point_trie: TestCodePointTrie,
- }
-
- #[derive(serde::Deserialize)]
- struct TestCodePointTrie {
- // The trie_struct field for test data files is dumped from the same source
- // (ICU4C) using the same function (usrc_writeUCPTrie) as property data
- // for the provider, so we can reuse the same struct here.
- #[serde(rename(deserialize = "struct"))]
- trie_struct: EnumPropSerializedCPTStruct,
- #[serde(rename(deserialize = "testdata"))]
- test_data: TestData,
- }
-
- #[derive(serde::Deserialize)]
- struct TestData {
- #[serde(rename(deserialize = "checkRanges"))]
- check_ranges: Vec<u32>,
- }
-
- let test_file = ::toml::from_str::<TestFile>(test_file).unwrap();
-
- let test_struct = test_file.code_point_trie.trie_struct;
-
- println!(
- "Running CodePointTrie reader logic test on test data file: {}",
- test_struct.name
- );
-
- let trie_type_enum = match TrieType::try_from(test_struct.trie_type_enum_val) {
- Ok(enum_val) => enum_val,
- _ => {
- panic!(
- "Could not parse trie_type serialized enum value in test data file: {}",
- test_struct.name
- );
- }
- };
-
- let trie_header = CodePointTrieHeader {
- high_start: test_struct.high_start,
- shifted12_high_start: test_struct.shifted12_high_start,
- index3_null_offset: test_struct.index3_null_offset,
- data_null_offset: test_struct.data_null_offset,
- null_value: test_struct.null_value,
- trie_type: trie_type_enum,
- };
-
- let index = ZeroVec::from_slice_or_alloc(&test_struct.index);
-
- match (test_struct.data_8, test_struct.data_16, test_struct.data_32) {
- (Some(data_8), _, _) => {
- let data = ZeroVec::from_slice_or_alloc(&data_8);
- let trie_result = CodePointTrie::try_new(trie_header, index, data);
- assert!(trie_result.is_ok(), "Could not construct trie");
- assert_eq!(
- test_struct.value_width_enum_val,
- ValueWidthEnum::Bits8 as u8
- );
- run_trie_tests(
- &trie_result.unwrap(),
- &test_file.code_point_trie.test_data.check_ranges,
- );
- }
-
- (_, Some(data_16), _) => {
- let data = ZeroVec::from_slice_or_alloc(&data_16);
- let trie_result = CodePointTrie::try_new(trie_header, index, data);
- assert!(trie_result.is_ok(), "Could not construct trie");
- assert_eq!(
- test_struct.value_width_enum_val,
- ValueWidthEnum::Bits16 as u8
- );
- run_trie_tests(
- &trie_result.unwrap(),
- &test_file.code_point_trie.test_data.check_ranges,
- );
- }
-
- (_, _, Some(data_32)) => {
- let data = ZeroVec::from_slice_or_alloc(&data_32);
- let trie_result = CodePointTrie::try_new(trie_header, index, data);
- assert!(trie_result.is_ok(), "Could not construct trie");
- assert_eq!(
- test_struct.value_width_enum_val,
- ValueWidthEnum::Bits32 as u8
- );
- run_trie_tests(
- &trie_result.unwrap(),
- &test_file.code_point_trie.test_data.check_ranges,
- );
- }
-
- (_, _, _) => {
- panic!("Could not match test trie data to a known value width or trie type");
- }
- };
-}
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/empty.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/empty.toml
deleted file mode 100644
index 91f04b03ac1..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/empty.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: empty.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 32768,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/months.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/months.toml
deleted file mode 100644
index 79bfd4c92df..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/months.toml
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: months.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 1,97,134,106,1,97,13,117,1,108,6,110,449,46,32774,101,32774,
- 48,121,32775,48,110,147,106,72,111,22,111,32769,112,11,113,12,
- 114,32769,117,49,97,114,176,121,32769,48,112,32769,49,113,113,32769,
- 106,32769,107,35,108,32769,109,32769,110,58,110,110,110,110,110,110,
- 110,110,110,110,110,63,110,110,110,110,110,110,110,110,110,110,
- 110,110,110,110,110,110,32769,2,107,32769,108,32769,109,48,109,32769,
- 101,22,101,12,102,32769,103,13,104,32769,105,50,105,105,105,32769,
- 1,101,32769,102,32769,48,103,32769,46,32769,97,32769,98,7,99,32769,
- 100,49,100,100,32769,48,98,32769,52,117,103,117,115,116,32776,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a.toml
deleted file mode 100644
index 48f53aaa860..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_a.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 48,97,32769,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a_ab.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a_ab.toml
deleted file mode 100644
index c4633ba5605..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_a_ab.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_a_ab.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 48,97,176,98,32868,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_branches.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_branches.toml
deleted file mode 100644
index 1c7c6261918..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_branches.toml
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_branches.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 13,112,42,116,22,116,49216,0,117,8,118,10,122,48,122,65535,32768,
- 0,48,117,49280,0,48,118,65535,32767,65535,112,9,114,49168,0,115,
- 49,115,115,49184,0,51,112,112,112,112,49156,0,103,19,103,7,
- 105,36864,107,7,110,49153,0,49,103,103,33792,50,107,107,107,49152,
- 16384,97,32784,99,2,101,33024,48,99,32832,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_compact.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_compact.toml
deleted file mode 100644
index 780ca9491a8..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_compact.toml
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_compact.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 2,43,13,45,11,120,49,106,117,1,108,53,110,48,101,32774,69,
- 110,32,110,13,111,20,115,55,101,112,116,101,109,98,101,114,
- 32777,54,111,118,101,109,98,101,114,32779,53,99,116,111,98,101,
- 114,32778,97,15,100,20,106,48,117,1,108,4,110,48,101,32774,
- 48,121,32775,52,117,103,117,115,116,32776,54,101,99,101,109,98,
- 101,114,32780,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_branch.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_branch.toml
deleted file mode 100644
index 4c260ce61b3..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_branch.toml
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_long_branch.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 16,107,240,112,92,112,11,114,49203,13107,115,65,116,70,122,65535,32768,
- 1,52,112,112,112,112,112,63,112,112,112,112,112,112,112,112,
- 112,112,112,112,112,112,112,112,63,112,112,112,112,112,112,112,
- 112,112,112,112,112,112,112,112,112,63,112,112,112,112,112,112,
- 112,112,112,112,112,112,112,112,112,112,49170,0,51,50,51,52,
- 53,50244,17476,56,50,51,52,53,54,55,56,57,48,65535,30583,30583,
- 107,64,108,67,110,81,111,52,111,111,111,111,111,63,111,111,
- 111,111,111,111,111,111,111,111,111,111,111,111,111,111,63,111,
- 111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,63,
- 111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,
- 49169,0,1,50,39552,51,39679,56,50,51,52,53,54,55,56,57,
- 48,16498,6912,49,50,51,39681,52,110,110,110,110,110,63,110,110,
- 110,110,110,110,110,110,110,110,110,110,110,110,110,110,63,110,
- 110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,63,
- 110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,
- 49168,65535,102,16,102,32831,103,32832,104,32833,106,48,50,2,51,39168,
- 52,39423,53,39424,97,65535,65535,65534,98,65535,65535,65535,99,32768,100,48,
- 50,32769,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_sequence.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_sequence.toml
deleted file mode 100644
index 72722a369cb..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_long_sequence.toml
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_long_sequence.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 48,97,32754,65535,65535,98,99,100,63,101,102,103,104,105,106,107,108,
- 109,110,111,112,113,114,115,116,63,117,118,119,120,121,122,65,
- 66,67,68,69,70,71,72,73,74,63,75,76,77,78,79,80,
- 81,82,83,84,85,86,87,88,89,90,32755,65535,65534,97,98,99,
- 100,63,101,102,103,104,105,106,107,108,109,110,111,112,113,114,
- 115,116,63,117,118,119,120,121,122,65,66,67,68,69,70,71,
- 72,73,74,63,75,76,77,78,79,80,81,82,83,84,85,86,
- 87,88,89,90,63,97,98,99,100,101,102,103,104,105,106,107,
- 108,109,110,111,112,63,113,114,115,116,117,118,119,120,121,122,
- 65,66,67,68,69,70,63,71,72,73,74,75,76,77,78,79,
- 80,81,82,83,84,85,86,63,87,88,89,90,97,98,99,100,
- 101,102,103,104,105,106,107,108,63,109,110,111,112,113,114,115,
- 116,117,118,119,120,121,122,65,66,63,67,68,69,70,71,72,
- 73,74,75,76,77,78,79,80,81,82,63,83,84,85,86,87,
- 88,89,90,97,98,99,100,101,102,103,104,63,105,106,107,108,
- 109,110,111,112,113,114,115,116,117,118,119,120,63,121,122,65,
- 66,67,68,69,70,71,72,73,74,75,76,77,78,63,79,80,
- 81,82,83,84,85,86,87,88,89,90,97,98,99,100,63,101,
- 102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,63,
- 117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,
- 63,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,
- 90,65535,65535,65533,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_shortest_branch.toml b/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_shortest_branch.toml
deleted file mode 100644
index 639cb0314c3..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/char16trie/test_shortest_branch.toml
+++ /dev/null
@@ -1,11 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: test_shortest_branch.toml
-#
-# machine-generated by: ucharstrietest.c
-
-[ucharstrie]
-data = [
- 1,97,33768,98,34768,
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.16.toml
deleted file mode 100644
index 7febd4c3b47..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.16.toml
+++ /dev/null
@@ -1,113 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: free-blocks.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "free-blocks.16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0x80,0xc0,0xc0,
- 0xc0,0xc0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,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code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x740,1,0x780,2,0x880,3,0x110000,1
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.32.toml
deleted file mode 100644
index 002b6f260df..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.32.toml
+++ /dev/null
@@ -1,113 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: free-blocks.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "free-blocks.32"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0x80,0xc0,0xc0,
- 0xc0,0xc0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0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- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 1,0xad
-]
-indexLength = 1024
-dataLength = 258
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 1
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x1
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x740,1,0x780,2,0x880,3,0x110000,1
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.8.toml
deleted file mode 100644
index c8c469cedc4..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.8.toml
+++ /dev/null
@@ -1,113 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: free-blocks.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "free-blocks.8"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0x80,0xc0,0xc0,
- 0xc0,0xc0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,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1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 1,1,1,0xad
-]
-indexLength = 1024
-dataLength = 260
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x1
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x740,1,0x780,2,0x880,3,0x110000,1
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.small16.toml
deleted file mode 100644
index 8a88bcb0318..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/free-blocks.small16.toml
+++ /dev/null
@@ -1,53 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: free-blocks.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "free-blocks.small16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0x80,0xc0,0xc0,
- 0xc0,0xc0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_16 = [
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 1,0xad
-]
-indexLength = 64
-dataLength = 258
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x1
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x740,1,0x780,2,0x880,3,0x110000,1
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.16.toml
deleted file mode 100644
index 4977ec0d856..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.16.toml
+++ /dev/null
@@ -1,117 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: grow-data.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "grow-data.16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0x60,0x80,0xa0,0xc0,
- 0xc0,0xc0,0xe0,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100
-]
-data_16 = [
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,0xad
-]
-indexLength = 1024
-dataLength = 322
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x100
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x720,2,0x7a0,3,0x8a0,4,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.32.toml
deleted file mode 100644
index 01ea3c3adff..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.32.toml
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: grow-data.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "grow-data.32"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0x60,0x80,0xa0,0xc0,
- 0xc0,0xc0,0xe0,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100
-]
-data_32 = [
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 0xad
-]
-indexLength = 1024
-dataLength = 321
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 1
-index3NullOffset = 0x7fff
-dataNullOffset = 0x100
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x720,2,0x7a0,3,0x8a0,4,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.8.toml
deleted file mode 100644
index ef2c0956a6e..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.8.toml
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: grow-data.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "grow-data.8"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0x60,0x80,0xa0,0xc0,
- 0xc0,0xc0,0xe0,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100
-]
-data_8 = [
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,0xad
-]
-indexLength = 1024
-dataLength = 324
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x100
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x720,2,0x7a0,3,0x8a0,4,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.small16.toml
deleted file mode 100644
index 1e761f166ca..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/grow-data.small16.toml
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: grow-data.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "grow-data.small16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0x60,0x80,0xa0,0xc0,
- 0xc0,0xc0,0xe0,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,
- 0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100,0x100
-]
-data_16 = [
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,0xad
-]
-indexLength = 64
-dataLength = 322
-highStart = 0xa00
-shifted12HighStart = 0x1
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x100
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,1,0x720,2,0x7a0,3,0x8a0,4,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/planes.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/planes.toml
deleted file mode 100644
index d5f5e7d8160..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/planes.toml
+++ /dev/null
@@ -1,140 +0,0 @@
-# This file is part of ICU4X. For terms of use, please see the file
-# called LICENSE at the top level of the ICU4X source tree
-# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-[code_point_map.data]
-long_name = "planes"
-name = "planes"
-ranges = [
- [0x0, 0xffff, 0],
- [0x10000, 0x1ffff, 1],
- [0x20000, 0x2ffff, 2],
- [0x30000, 0x3ffff, 3],
- [0x40000, 0x4ffff, 4],
- [0x50000, 0x5ffff, 5],
- [0x60000, 0x6ffff, 6],
- [0x70000, 0x7ffff, 7],
- [0x80000, 0x8ffff, 8],
- [0x90000, 0x9ffff, 9],
- [0xa0000, 0xaffff, 10],
- [0xb0000, 0xbffff, 11],
- [0xc0000, 0xcffff, 12],
- [0xd0000, 0xdffff, 13],
- [0xe0000, 0xeffff, 14],
- [0xf0000, 0xfffff, 15],
- [0x100000, 0x10ffff, 16],
-]
-
-[code_point_trie.struct]
-long_name = "planes"
-name = "planes"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x288,0x290,0x290,0x290,0x2b0,0x2b0,0x2b0,0x2b0,0x2d0,0x2d0,0x2d0,0x2d0,0x2f0,0x2f0,0x2f0,0x2f0,
- 0x310,0x310,0x310,0x310,0x330,0x330,0x330,0x330,0x350,0x350,0x350,0x350,0x370,0x370,0x370,0x370,
- 0x390,0x390,0x390,0x390,0x3b0,0x3b0,0x3b0,0x3b0,0x3d0,0x3d0,0x3d0,0x3d0,0x3f0,0x3f0,0x3f0,0x3f0,
- 0x410,0x410,0x410,0x410,0x430,0x430,0x430,0x430,0x450,0x450,0x450,0x450,0x470,0x470,0x470,0x470,
- 0,0x10,0x20,0x30,0x40,0x50,0x60,0x70,0,0x10,0x20,0x30,0,0x10,0x20,0x30,
- 0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,
- 0,0x10,0x20,0x30,0,0x10,0x20,0x30,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,
- 0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,
- 0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x110,0x110,0x110,
- 0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,
- 0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x110,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,
- 0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,
- 0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x120,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,
- 0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,
- 0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x130,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,
- 0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,
- 0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x140,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,
- 0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,
- 0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x150,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,
- 0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,
- 0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x160,0x80,0x88,0x88,0x88,0x88,0x88,0x88,0x88,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,
- 0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,0xa8,
- 0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,
- 0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,0xc8,
- 0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,
- 0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,
- 0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,
- 0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,0x108,
- 0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,
- 0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,0x128,
- 0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,
- 0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,0x148,
- 0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,
- 0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,0x168,
- 0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,
- 0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,0x188,
- 0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,
- 0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,0x1a8,
- 0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,
- 0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,0x1c8,
- 0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,
- 0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,0x1e8,
- 0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,
- 0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,0x208,
- 0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,
- 0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,0x228,
- 0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,
- 0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,0x248,
- 0x268,0x268,0x268,0x268,0x268,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xe,0xe,0xe,0xe,0xe,0xe,0xe,
- 0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,
- 0x10,0x10,0x10,0
-]
-indexLength = 1168
-dataLength = 372
-highStart = 0x100000
-shifted12HighStart = 0x100
-type = 1
-valueWidth = 2
-index3NullOffset = 0x2
-dataNullOffset = 0x0
-nullValue = 0x0
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.16.toml
deleted file mode 100644
index b9ec8ed16ec..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.16.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-empty.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-empty.16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0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 130
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 0
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x3
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,3
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.32.toml
deleted file mode 100644
index cc3e1672643..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.32.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-empty.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-empty.32"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0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ue = 0x3
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,3
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.8.toml
deleted file mode 100644
index 5ce7bba5b5f..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.8.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-empty.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-empty.8"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_8 = [
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,0xad
-]
-indexLength = 1024
-dataLength = 132
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x3
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,3
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.small16.toml
deleted file mode 100644
index f61d9fe18ad..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-empty.small16.toml
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-empty.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-empty.small16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_16 = [
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,0xad
-]
-indexLength = 64
-dataLength = 130
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x3
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,3
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.16.toml
deleted file mode 100644
index 6eac4b7bdc8..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.16.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-single-value.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-single-value.16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,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,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_16 = [
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,0xad
-]
-indexLength = 1024
-dataLength = 130
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 0
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.32.toml
deleted file mode 100644
index 9db848236d6..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.32.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-single-value.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-single-value.32"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0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0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_32 = [
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 0xad
-]
-indexLength = 1024
-dataLength = 129
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 0
-valueWidth = 1
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.8.toml
deleted file mode 100644
index c92b7a8e1e5..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.8.toml
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-single-value.8
-#
-# machine-generated by: ucptriet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0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_8 = [
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,0xad
-]
-indexLength = 1024
-dataLength = 132
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.small16.toml
deleted file mode 100644
index 568362f5565..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set-single-value.small16.toml
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set-single-value.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set-single-value.small16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-]
-data_16 = [
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 5,0xad
-]
-indexLength = 64
-dataLength = 130
-highStart = 0x0
-shifted12HighStart = 0x0
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x0
-nullValue = 0x5
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,3,0x110000,5
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.16.toml
deleted file mode 100644
index e064217ae6f..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.16.toml
+++ /dev/null
@@ -1,138 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set1.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set1.16"
-index = [
- 0,0x40,0x40,0x59,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,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0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xfb,0x121,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x14d,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0,0,0,0,0,0,
- 0,0,0,0,0,0,0xf,0x10,0x10,0x11,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0,0xad
-]
-indexLength = 1248
-dataLength = 492
-highStart = 0xf0200
-shifted12HighStart = 0xf1
-type = 0
-valueWidth = 0
-index3NullOffset = 0x4
-dataNullOffset = 0x0
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x40,0,0xe7,0x34,0x3400,0,0x9fa6,0x61,0xda9e,0x31,0xdada,0,0xeeee,0xff,
- 0x11111,1,0x44444,0x61,0xf0003,0,0xf0004,0xf,0xf0006,0x10,0xf0007,0x11,0xf0040,0x12,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.32.toml
deleted file mode 100644
index 9b7299b37ff..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.32.toml
+++ /dev/null
@@ -1,138 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set1.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set1.32"
-index = [
- 0,0x40,0x40,0x59,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
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0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x495,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x4bc,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4df,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x1ba,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x1c6,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0x1d3,0x1da,0x1da,0x1da,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x439,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0x455,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0x475
-]
-data_32 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0,0,0,0,0,0,
- 0,0,0,0,0,0,0xf,0x10,0x10,0x11,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0,0xad
-]
-indexLength = 1248
-dataLength = 492
-highStart = 0xf0200
-shifted12HighStart = 0xf1
-type = 0
-valueWidth = 1
-index3NullOffset = 0x4
-dataNullOffset = 0x0
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x40,0,0xe7,0x34,0x3400,0,0x9fa6,0x61,0xda9e,0x31,0xdada,0,0xeeee,0xff,
- 0x11111,1,0x44444,0x61,0xf0003,0,0xf0004,0xf,0xf0006,0x10,0xf0007,0x11,0xf0040,0x12,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.8.toml
deleted file mode 100644
index 4d06bf9d3bb..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.8.toml
+++ /dev/null
@@ -1,138 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set1.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set1.8"
-index = [
- 0,0x40,0x40,0x59,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0xb3,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,
- 0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd9,0xd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,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,
- 0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x13b,0x14d,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x495,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x49e,0x4bc,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,
- 0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4bf,0x4df,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,
- 0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x17b,0x1ba,0x99,0x99,0x99,0x99,0x99,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x1c6,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0x1d3,0x1da,0x1da,0x1da,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x3bc,0x439,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,
- 0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0xd0,0x455,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0x475
-]
-data_8 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0,0,0,0,0,0,
- 0,0,0,0,0,0,0xf,0x10,0x10,0x11,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0,0xad
-]
-indexLength = 1248
-dataLength = 492
-highStart = 0xf0200
-shifted12HighStart = 0xf1
-type = 0
-valueWidth = 2
-index3NullOffset = 0x4
-dataNullOffset = 0x0
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x40,0,0xe7,0x34,0x3400,0,0x9fa6,0x61,0xda9e,0x31,0xdada,0,0xeeee,0xff,
- 0x11111,1,0x44444,0x61,0xf0003,0,0xf0004,0xf,0xf0006,0x10,0xf0007,0x11,0xf0040,0x12,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.small16.toml
deleted file mode 100644
index 1a724177591..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set1.small16.toml
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set1.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set1.small16"
-index = [
- 0,0x40,0x40,0x59,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x17f,0x199,0x1aa,0x1bd,0x1d5,0x199,0x199,0x199,0x199,0x199,0x199,0x199,0x199,0x199,0x199,0x199,
- 0x199,0x1f3,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,
- 0x1f6,0x1f6,0x1f6,0x1f6,0x1f6,0x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x99,0x99,0x99,
- 0x99,0x99,0x99,0xee,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0xfb,
- 0x102,0x102,0x102,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x7d,
- 0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,0xad,0xad,0xad,0xad,0xad,0xad,0xad,
- 0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,
- 0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xb3,0xce,0xce,0xce,0xce,0xce,0xce,
- 0xce,0xce,0xce,0xce,0xce,0xce,0xce,0xce,0xce,0xce,0xe5,0xf3,0xf3,0xf3,0xf3,0xf3,
- 0xf3,0xf3,0xf3,0xf3,0x105,0x114,0x114,0x114,0x114,0x114,0x114,0x114,0x114,0x123,0xad,0xad,
- 0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,0xad,
- 0xad,0xad,0xad,0xad,0xad,0x13f,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,0x15f
-]
-data_16 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0,0,0,0,0,0,0,
- 0,0,0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0xff,0xff,0xff,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x61,0x61,0,0,0,0,0,0,0,0,0,0,0,0,0xf,0x10,
- 0x10,0x11,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x12,0x12,0xad,0,0xad
-]
-indexLength = 535
-dataLength = 277
-highStart = 0xf0200
-shifted12HighStart = 0xf1
-type = 1
-valueWidth = 0
-index3NullOffset = 0x4
-dataNullOffset = 0x0
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x40,0,0xe7,0x34,0x3400,0,0x9fa6,0x61,0xda9e,0x31,0xdada,0,0xeeee,0xff,
- 0x11111,1,0x44444,0x61,0xf0003,0,0xf0004,0xf,0xf0006,0x10,0xf0007,0x11,0xf0040,0x12,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.16.toml
deleted file mode 100644
index 79bed6eae23..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.16.toml
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set2-overlap.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set2-overlap.16"
-index = [
- 0,0x40,0x72,0x95,0xb3,0xb3,0xb3,0xb3,0xf2,0xf2,0xf2,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0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0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0x45e,0x45e,0x45e,0x45e,0x45e,0x45e,0x45e,0x462,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0x132,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,
- 0x13e,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x14d,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x155,0x161,0x161,0x161,0x161,
- 0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x167,0x172,0xb3,0xb3,0xb3,0xb3,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0x408,0x421,
- 0x42b,0x43e
-]
-data_16 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,0,0,0,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,0x7a,0x7a,0x7a,0x7a,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,2,0,0,0,0,0,0,0,0,0,0,0,7,7,7,
- 7,7,0,0xad
-]
-indexLength = 1154
-dataLength = 388
-highStart = 0x30000
-shifted12HighStart = 0x30
-type = 0
-valueWidth = 0
-index3NullOffset = 0xb
-dataNullOffset = 0xb3
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x21,0,0x72,0x5555,0xdd,3,0xde,4,0x201,0,0x240,6,0x241,0,
- 0x280,6,0x281,0,0x2c0,6,0x2f883,0,0x2f987,0x7a,0x2fa98,5,0x2fedc,0x7a,0x2ffaa,1,
- 0x2ffab,2,0x2ffbb,0,0x2ffc0,7,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.32.toml
deleted file mode 100644
index 7582d9608ee..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.32.toml
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set2-overlap.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set2-overlap.32"
-index = [
- 0,0x40,0x72,0x95,0xb3,0xb3,0xb3,0xb3,0xf2,0xf2,0xf2,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0x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0x135,0x135,0x135,
- 0x13e,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x14d,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x155,0x161,0x161,0x161,0x161,
- 0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x167,0x172,0xb3,0xb3,0xb3,0xb3,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0x408,0x421,
- 0x42b,0x43e
-]
-data_32 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,0,0,0,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,0x7a,0x7a,0x7a,0x7a,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,2,0,0,0,0,0,0,0,0,0,0,0,7,7,7,
- 7,7,0,0xad
-]
-indexLength = 1154
-dataLength = 388
-highStart = 0x30000
-shifted12HighStart = 0x30
-type = 0
-valueWidth = 1
-index3NullOffset = 0xb
-dataNullOffset = 0xb3
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x21,0,0x72,0x5555,0xdd,3,0xde,4,0x201,0,0x240,6,0x241,0,
- 0x280,6,0x281,0,0x2c0,6,0x2f883,0,0x2f987,0x7a,0x2fa98,5,0x2fedc,0x7a,0x2ffaa,1,
- 0x2ffab,2,0x2ffbb,0,0x2ffc0,7,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.small16.toml
deleted file mode 100644
index 08741aca228..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set2-overlap.small16.toml
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set2-overlap.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set2-overlap.small16"
-index = [
- 0,0x40,0x72,0x95,0xb3,0xb3,0xb3,0xb3,0xf2,0xf2,0xf2,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0xee,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xfa,0,0x10,0x20,0x30,
- 0x40,0x50,0x60,0x70,0x72,0x82,0x92,0xa2,0x95,0xa5,0xb5,0xc5,0xb3,0xc3,0xd3,0xe3,
- 0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,0xf2,0x102,0x112,0x122,
- 0xf2,0x102,0x112,0x122,0xf2,0x102,0x112,0x122,0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,
- 0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,
- 0xb3,0xc3,0xd3,0xe3,0xb3,0xc3,0xd3,0xe3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,0xb3,
- 0x132,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,
- 0x13e,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x145,0x14d,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,
- 0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x135,0x155,0x161,0x161,0x161,0x161,
- 0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x161,0x167,0x172,0xb3,0xb3,0xb3,0xb3,0x4c,0x6c,
- 0x78,0x78,0x78,0x78,0x78,0x78,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xb,0xb,0xb,0xb,0xb,0xb,0x98,0xb1,0xbb,0xce
-]
-data_16 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,0x5555,
- 0x5555,0x5555,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,0,0,0,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,0x7a,0x7a,0x7a,0x7a,5,5,5,5,5,5,5,5,5,5,5,
- 5,5,5,5,5,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7a,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,2,0,0,0,0,0,0,0,0,0,0,0,7,7,7,
- 7,7,0,0xad
-]
-indexLength = 282
-dataLength = 388
-highStart = 0x30000
-shifted12HighStart = 0x30
-type = 1
-valueWidth = 0
-index3NullOffset = 0xb
-dataNullOffset = 0xb3
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,0,0x21,0,0x72,0x5555,0xdd,3,0xde,4,0x201,0,0x240,6,0x241,0,
- 0x280,6,0x281,0,0x2c0,6,0x2f883,0,0x2f987,0x7a,0x2fa98,5,0x2fedc,0x7a,0x2ffaa,1,
- 0x2ffab,2,0x2ffbb,0,0x2ffc0,7,0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.16.toml
deleted file mode 100644
index c94365e84cc..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.16.toml
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set3-initial-9.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set3-initial-9.16"
-index = [
- 0,0x40,0x5c,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x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c0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xf7,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x177,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x1a6,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x1da,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,
- 0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,
- 0x1e6,0x1e6,0x1e6,0x1e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3,3,3,
- 3,3,3,3,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,0xad
-]
-indexLength = 1024
-dataLength = 552
-highStart = 0xce00
-shifted12HighStart = 0xd
-type = 0
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0x80
-nullValue = 0x9
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,9,0x31,9,0xa4,1,0x3400,9,0x6789,2,0x9000,9,0xa000,4,0xabcd,9,
- 0xbcde,3,0xcccc,9,0x110000,6
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.32.toml
deleted file mode 100644
index 1a0c9732c8d..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.32.toml
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set3-initial-9.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set3-initial-9.32"
-index = [
- 0,0x40,0x5c,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0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,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x177,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x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,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 4,4,4,4,4,4,4,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,0xad
-]
-indexLength = 1024
-dataLength = 551
-highStart = 0xce00
-shifted12HighStart = 0xd
-type = 0
-valueWidth = 1
-index3NullOffset = 0x7fff
-dataNullOffset = 0x80
-nullValue = 0x9
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,9,0x31,9,0xa4,1,0x3400,9,0x6789,2,0x9000,9,0xa000,4,0xabcd,9,
- 0xbcde,3,0xcccc,9,0x110000,6
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.8.toml
deleted file mode 100644
index 5008268b71a..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.8.toml
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set3-initial-9.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set3-initial-9.8"
-index = [
- 0,0x40,0x5c,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80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xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xf7,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,0x137,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x177,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,0x184,
- 0x184,0x184,0x184,0x1a6,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x1da,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,
- 0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,0x1e6,
- 0x1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,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 9,9,9,9,9,9,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 6,6,6,6,6,6,6,0xad
-]
-indexLength = 1024
-dataLength = 552
-highStart = 0xce00
-shifted12HighStart = 0xd
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x80
-nullValue = 0x9
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,9,0x31,9,0xa4,1,0x3400,9,0x6789,2,0x9000,9,0xa000,4,0xabcd,9,
- 0xbcde,3,0xcccc,9,0x110000,6
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.small16.toml
deleted file mode 100644
index aee1538455d..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/set3-initial-9.small16.toml
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: set3-initial-9.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "set3-initial-9.small16"
-index = [
- 0,0x40,0x5c,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x11c,0x136,0x14e,0x16d,0,0x10,0x20,0x30,0x40,0x50,0x60,0x70,0x5c,0x6c,0x7c,0x8c,
- 0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,
- 0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,0x80,0x90,0xa0,0xb0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,
- 0xc7,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,
- 0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,
- 0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0xd7,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0xe7,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,
- 0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,
- 0xf4,0xf4,0xf4,0xf4,0xf4,0xf6,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x104,0x110,0x110,0x110,0x110,0x110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ength = 290
-highStart = 0xce00
-shifted12HighStart = 0xd
-type = 1
-valueWidth = 0
-index3NullOffset = 0x3
-dataNullOffset = 0x80
-nullValue = 0x9
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0,9,0x31,9,0xa4,1,0x3400,9,0x6789,2,0x9000,9,0xa000,4,0xabcd,9,
- 0xbcde,3,0xcccc,9,0x110000,6
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.16.toml
deleted file mode 100644
index c8156e69b00..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.16.toml
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: short-all-same.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "short-all-same.small16"
-index = [
- 0,0x40,0x80,0xc0,0x100,0x140,0x180,0x1c0,0x200,0x240,0x280,0x2c0,0x300,0x340,0x380,0x3c0,
- 0x400,0x440,0x480,0x4c0,0x500,0x540,0x580,0x5c0,0x600,0x640,0x680,0x6c0,0x700,0x740,0x780,0x7c0,
- 0x800,0x840,0x880,0x8c0,0x900,0x940,0x980,0x9c0,0xa00,0xa40,0xa80,0xac0,0xb00,0xb40,0xb80,0xbc0,
- 0xc00,0xc40,0xc80,0xcc0,0xd00,0xd40,0xd80,0xdc0,0xe00,0xe40,0xe80,0xec0,0xf00,0xf40,0xf80,0xfc0
-]
-data_16 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
- 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,
- 0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,
- 0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,
- 0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,
- 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,
- 0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,
- 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
- 0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,
- 0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,
- 0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,
- 0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,
- 0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,
- 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
- 0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,
- 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,
- 0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,
- 0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,
- 0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,
- 0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,
- 0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,
- 0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,
- 0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,
- 0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,
- 0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,
- 0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,
- 0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,
- 0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
- 0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,
- 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,
- 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,
- 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
- 0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,
- 0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,
- 0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,
- 0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,
- 0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,
- 0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,
- 0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,
- 0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,
- 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
- 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,
- 0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,
- 0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,
- 0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,
- 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
- 0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,
- 0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,
- 0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,
- 0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,
- 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
- 0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,
- 0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,
- 0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,
- 0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,
- 0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,
- 0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,
- 0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,
- 0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,
- 0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,
- 0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,
- 0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,
- 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,
- 0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,
- 0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,
- 0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,
- 0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,
- 0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
- 0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,
- 0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,
- 0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,
- 0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,
- 0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,
- 0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,
- 0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,
- 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,
- 0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,
- 0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,
- 0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,
- 0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,
- 0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,
- 0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,
- 0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,
- 0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,
- 0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,
- 0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,
- 0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,
- 0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,
- 0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,
- 0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,
- 0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,
- 0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,
- 0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,
- 0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,
- 0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,
- 0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,
- 0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,
- 0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,
- 0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,
- 0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,
- 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,
- 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,
- 0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,
- 0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,
- 0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,
- 0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,
- 0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,
- 0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,
- 0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,
- 0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,
- 0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,
- 0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,
- 0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,
- 0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,
- 0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,
- 0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,
- 0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,
- 0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,
- 0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x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0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,
- 0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,
- 0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,
- 0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0,0xad
-]
-indexLength = 64
-dataLength = 4098
-highStart = 0x1000
-shifted12HighStart = 0x1
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0xfffff
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x10,0,0x20,1,0x30,2,0x40,3,0x50,4,0x60,5,0x70,6,0x80,7,
- 0x90,8,0xa0,9,0xb0,0xa,0xc0,0xb,0xd0,0xc,0xe0,0xd,0xf0,0xe,0x100,0xf,
- 0x110,0x10,0x120,0x11,0x130,0x12,0x140,0x13,0x150,0x14,0x160,0x15,0x170,0x16,0x180,0x17,
- 0x190,0x18,0x1a0,0x19,0x1b0,0x1a,0x1c0,0x1b,0x1d0,0x1c,0x1e0,0x1d,0x1f0,0x1e,0x200,0x1f,
- 0x210,0x20,0x220,0x21,0x230,0x22,0x240,0x23,0x250,0x24,0x260,0x25,0x270,0x26,0x280,0x27,
- 0x290,0x28,0x2a0,0x29,0x2b0,0x2a,0x2c0,0x2b,0x2d0,0x2c,0x2e0,0x2d,0x2f0,0x2e,0x300,0x2f,
- 0x310,0x30,0x320,0x31,0x330,0x32,0x340,0x33,0x350,0x34,0x360,0x35,0x370,0x36,0x380,0x37,
- 0x390,0x38,0x3a0,0x39,0x3b0,0x3a,0x3c0,0x3b,0x3d0,0x3c,0x3e0,0x3d,0x3f0,0x3e,0x400,0x3f,
- 0x410,0x40,0x420,0x41,0x430,0x42,0x440,0x43,0x450,0x44,0x460,0x45,0x470,0x46,0x480,0x47,
- 0x490,0x48,0x4a0,0x49,0x4b0,0x4a,0x4c0,0x4b,0x4d0,0x4c,0x4e0,0x4d,0x4f0,0x4e,0x500,0x4f,
- 0x510,0x50,0x520,0x51,0x530,0x52,0x540,0x53,0x550,0x54,0x560,0x55,0x570,0x56,0x580,0x57,
- 0x590,0x58,0x5a0,0x59,0x5b0,0x5a,0x5c0,0x5b,0x5d0,0x5c,0x5e0,0x5d,0x5f0,0x5e,0x600,0x5f,
- 0x610,0x60,0x620,0x61,0x630,0x62,0x640,0x63,0x650,0x64,0x660,0x65,0x670,0x66,0x680,0x67,
- 0x690,0x68,0x6a0,0x69,0x6b0,0x6a,0x6c0,0x6b,0x6d0,0x6c,0x6e0,0x6d,0x6f0,0x6e,0x700,0x6f,
- 0x710,0x70,0x720,0x71,0x730,0x72,0x740,0x73,0x750,0x74,0x760,0x75,0x770,0x76,0x780,0x77,
- 0x790,0x78,0x7a0,0x79,0x7b0,0x7a,0x7c0,0x7b,0x7d0,0x7c,0x7e0,0x7d,0x7f0,0x7e,0x800,0x7f,
- 0x810,0x80,0x820,0x81,0x830,0x82,0x840,0x83,0x850,0x84,0x860,0x85,0x870,0x86,0x880,0x87,
- 0x890,0x88,0x8a0,0x89,0x8b0,0x8a,0x8c0,0x8b,0x8d0,0x8c,0x8e0,0x8d,0x8f0,0x8e,0x900,0x8f,
- 0x910,0x90,0x920,0x91,0x930,0x92,0x940,0x93,0x950,0x94,0x960,0x95,0x970,0x96,0x980,0x97,
- 0x990,0x98,0x9a0,0x99,0x9b0,0x9a,0x9c0,0x9b,0x9d0,0x9c,0x9e0,0x9d,0x9f0,0x9e,0xa00,0x9f,
- 0xa10,0xa0,0xa20,0xa1,0xa30,0xa2,0xa40,0xa3,0xa50,0xa4,0xa60,0xa5,0xa70,0xa6,0xa80,0xa7,
- 0xa90,0xa8,0xaa0,0xa9,0xab0,0xaa,0xac0,0xab,0xad0,0xac,0xae0,0xad,0xaf0,0xae,0xb00,0xaf,
- 0xb10,0xb0,0xb20,0xb1,0xb30,0xb2,0xb40,0xb3,0xb50,0xb4,0xb60,0xb5,0xb70,0xb6,0xb80,0xb7,
- 0xb90,0xb8,0xba0,0xb9,0xbb0,0xba,0xbc0,0xbb,0xbd0,0xbc,0xbe0,0xbd,0xbf0,0xbe,0xc00,0xbf,
- 0xc10,0xc0,0xc20,0xc1,0xc30,0xc2,0xc40,0xc3,0xc50,0xc4,0xc60,0xc5,0xc70,0xc6,0xc80,0xc7,
- 0xc90,0xc8,0xca0,0xc9,0xcb0,0xca,0xcc0,0xcb,0xcd0,0xcc,0xce0,0xcd,0xcf0,0xce,0xd00,0xcf,
- 0xd10,0xd0,0xd20,0xd1,0xd30,0xd2,0xd40,0xd3,0xd50,0xd4,0xd60,0xd5,0xd70,0xd6,0xd80,0xd7,
- 0xd90,0xd8,0xda0,0xd9,0xdb0,0xda,0xdc0,0xdb,0xdd0,0xdc,0xde0,0xdd,0xdf0,0xde,0xe00,0xdf,
- 0xe10,0xe0,0xe20,0xe1,0xe30,0xe2,0xe40,0xe3,0xe50,0xe4,0xe60,0xe5,0xe70,0xe6,0xe80,0xe7,
- 0xe90,0xe8,0xea0,0xe9,0xeb0,0xea,0xec0,0xeb,0xed0,0xec,0xee0,0xed,0xef0,0xee,0xf00,0xef,
- 0xf10,0xf0,0xf20,0xf1,0xf30,0xf2,0xf40,0xf3,0xf50,0xf4,0xf60,0xf5,0xf70,0xf6,0xf80,0xf7,
- 0xf90,0xf8,0xfa0,0xf9,0xfb0,0xfa,0xfc0,0xfb,0xfd0,0xfc,0xfe0,0xfd,0xff0,0xfe,0x1000,0xff,
- 0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.8.toml
deleted file mode 100644
index e1b26488478..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.8.toml
+++ /dev/null
@@ -1,385 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: short-all-same.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "short-all-same.8"
-index = [
- 0,0x40,0x80,0xc0,0x100,0x140,0x180,0x1c0,0x200,0x240,0x280,0x2c0,0x300,0x340,0x380,0x3c0,
- 0x400,0x440,0x480,0x4c0,0x500,0x540,0x580,0x5c0,0x600,0x640,0x680,0x6c0,0x700,0x740,0x780,0x7c0,
- 0x800,0x840,0x880,0x8c0,0x900,0x940,0x980,0x9c0,0xa00,0xa40,0xa80,0xac0,0xb00,0xb40,0xb80,0xbc0,
- 0xc00,0xc40,0xc80,0xcc0,0xd00,0xd40,0xd80,0xdc0,0xe00,0xe40,0xe80,0xec0,0xf00,0xf40,0xf80,0xfc0,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,
- 0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000,0x1000
-]
-data_8 = [
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
- 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
- 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
- 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
- 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
- 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
- 0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,
- 0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,0xb,
- 0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,
- 0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,0xd,
- 0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,0xe,
- 0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,
- 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,
- 0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,
- 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
- 0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,
- 0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,
- 0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,
- 0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,
- 0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,
- 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
- 0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,
- 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,
- 0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,
- 0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,
- 0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,
- 0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,
- 0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,
- 0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,
- 0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,
- 0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,
- 0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,
- 0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,
- 0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,
- 0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
- 0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,
- 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,
- 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,
- 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
- 0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,
- 0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,
- 0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,
- 0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,
- 0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,
- 0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,
- 0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,
- 0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,
- 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
- 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,
- 0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,
- 0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,
- 0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,
- 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
- 0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,
- 0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,
- 0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,
- 0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,
- 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
- 0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,
- 0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,
- 0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,
- 0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,
- 0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,
- 0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,
- 0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,
- 0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,
- 0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,
- 0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,
- 0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,
- 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,
- 0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,
- 0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,
- 0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,
- 0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,
- 0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
- 0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,
- 0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,
- 0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,
- 0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,
- 0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,
- 0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,
- 0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,
- 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,
- 0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,
- 0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,
- 0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,
- 0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,
- 0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,
- 0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,
- 0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,
- 0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,
- 0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,
- 0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,
- 0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,
- 0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,
- 0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,
- 0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,
- 0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,
- 0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,
- 0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,
- 0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,
- 0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,
- 0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,
- 0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,
- 0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,
- 0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,
- 0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,
- 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,
- 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,
- 0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,
- 0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,
- 0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,
- 0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,
- 0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,
- 0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,
- 0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,
- 0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,
- 0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,
- 0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,
- 0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,
- 0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,
- 0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,
- 0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,
- 0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,
- 0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,
- 0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,
- 0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,
- 0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,
- 0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,
- 0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,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,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0xad
-]
-indexLength = 1024
-dataLength = 4164
-highStart = 0x1000
-shifted12HighStart = 0x1
-type = 0
-valueWidth = 2
-index3NullOffset = 0x7fff
-dataNullOffset = 0x1000
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x10,0,0x20,1,0x30,2,0x40,3,0x50,4,0x60,5,0x70,6,0x80,7,
- 0x90,8,0xa0,9,0xb0,0xa,0xc0,0xb,0xd0,0xc,0xe0,0xd,0xf0,0xe,0x100,0xf,
- 0x110,0x10,0x120,0x11,0x130,0x12,0x140,0x13,0x150,0x14,0x160,0x15,0x170,0x16,0x180,0x17,
- 0x190,0x18,0x1a0,0x19,0x1b0,0x1a,0x1c0,0x1b,0x1d0,0x1c,0x1e0,0x1d,0x1f0,0x1e,0x200,0x1f,
- 0x210,0x20,0x220,0x21,0x230,0x22,0x240,0x23,0x250,0x24,0x260,0x25,0x270,0x26,0x280,0x27,
- 0x290,0x28,0x2a0,0x29,0x2b0,0x2a,0x2c0,0x2b,0x2d0,0x2c,0x2e0,0x2d,0x2f0,0x2e,0x300,0x2f,
- 0x310,0x30,0x320,0x31,0x330,0x32,0x340,0x33,0x350,0x34,0x360,0x35,0x370,0x36,0x380,0x37,
- 0x390,0x38,0x3a0,0x39,0x3b0,0x3a,0x3c0,0x3b,0x3d0,0x3c,0x3e0,0x3d,0x3f0,0x3e,0x400,0x3f,
- 0x410,0x40,0x420,0x41,0x430,0x42,0x440,0x43,0x450,0x44,0x460,0x45,0x470,0x46,0x480,0x47,
- 0x490,0x48,0x4a0,0x49,0x4b0,0x4a,0x4c0,0x4b,0x4d0,0x4c,0x4e0,0x4d,0x4f0,0x4e,0x500,0x4f,
- 0x510,0x50,0x520,0x51,0x530,0x52,0x540,0x53,0x550,0x54,0x560,0x55,0x570,0x56,0x580,0x57,
- 0x590,0x58,0x5a0,0x59,0x5b0,0x5a,0x5c0,0x5b,0x5d0,0x5c,0x5e0,0x5d,0x5f0,0x5e,0x600,0x5f,
- 0x610,0x60,0x620,0x61,0x630,0x62,0x640,0x63,0x650,0x64,0x660,0x65,0x670,0x66,0x680,0x67,
- 0x690,0x68,0x6a0,0x69,0x6b0,0x6a,0x6c0,0x6b,0x6d0,0x6c,0x6e0,0x6d,0x6f0,0x6e,0x700,0x6f,
- 0x710,0x70,0x720,0x71,0x730,0x72,0x740,0x73,0x750,0x74,0x760,0x75,0x770,0x76,0x780,0x77,
- 0x790,0x78,0x7a0,0x79,0x7b0,0x7a,0x7c0,0x7b,0x7d0,0x7c,0x7e0,0x7d,0x7f0,0x7e,0x800,0x7f,
- 0x810,0x80,0x820,0x81,0x830,0x82,0x840,0x83,0x850,0x84,0x860,0x85,0x870,0x86,0x880,0x87,
- 0x890,0x88,0x8a0,0x89,0x8b0,0x8a,0x8c0,0x8b,0x8d0,0x8c,0x8e0,0x8d,0x8f0,0x8e,0x900,0x8f,
- 0x910,0x90,0x920,0x91,0x930,0x92,0x940,0x93,0x950,0x94,0x960,0x95,0x970,0x96,0x980,0x97,
- 0x990,0x98,0x9a0,0x99,0x9b0,0x9a,0x9c0,0x9b,0x9d0,0x9c,0x9e0,0x9d,0x9f0,0x9e,0xa00,0x9f,
- 0xa10,0xa0,0xa20,0xa1,0xa30,0xa2,0xa40,0xa3,0xa50,0xa4,0xa60,0xa5,0xa70,0xa6,0xa80,0xa7,
- 0xa90,0xa8,0xaa0,0xa9,0xab0,0xaa,0xac0,0xab,0xad0,0xac,0xae0,0xad,0xaf0,0xae,0xb00,0xaf,
- 0xb10,0xb0,0xb20,0xb1,0xb30,0xb2,0xb40,0xb3,0xb50,0xb4,0xb60,0xb5,0xb70,0xb6,0xb80,0xb7,
- 0xb90,0xb8,0xba0,0xb9,0xbb0,0xba,0xbc0,0xbb,0xbd0,0xbc,0xbe0,0xbd,0xbf0,0xbe,0xc00,0xbf,
- 0xc10,0xc0,0xc20,0xc1,0xc30,0xc2,0xc40,0xc3,0xc50,0xc4,0xc60,0xc5,0xc70,0xc6,0xc80,0xc7,
- 0xc90,0xc8,0xca0,0xc9,0xcb0,0xca,0xcc0,0xcb,0xcd0,0xcc,0xce0,0xcd,0xcf0,0xce,0xd00,0xcf,
- 0xd10,0xd0,0xd20,0xd1,0xd30,0xd2,0xd40,0xd3,0xd50,0xd4,0xd60,0xd5,0xd70,0xd6,0xd80,0xd7,
- 0xd90,0xd8,0xda0,0xd9,0xdb0,0xda,0xdc0,0xdb,0xdd0,0xdc,0xde0,0xdd,0xdf0,0xde,0xe00,0xdf,
- 0xe10,0xe0,0xe20,0xe1,0xe30,0xe2,0xe40,0xe3,0xe50,0xe4,0xe60,0xe5,0xe70,0xe6,0xe80,0xe7,
- 0xe90,0xe8,0xea0,0xe9,0xeb0,0xea,0xec0,0xeb,0xed0,0xec,0xee0,0xed,0xef0,0xee,0xf00,0xef,
- 0xf10,0xf0,0xf20,0xf1,0xf30,0xf2,0xf40,0xf3,0xf50,0xf4,0xf60,0xf5,0xf70,0xf6,0xf80,0xf7,
- 0xf90,0xf8,0xfa0,0xf9,0xfb0,0xfa,0xfc0,0xfb,0xfd0,0xfc,0xfe0,0xfd,0xff0,0xfe,0x1000,0xff,
- 0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.small16.toml
deleted file mode 100644
index c8156e69b00..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/short-all-same.small16.toml
+++ /dev/null
@@ -1,321 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: short-all-same.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "short-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xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,0xf,
- 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
- 0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
- 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12,
- 0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,0x13,
- 0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x14,
- 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
- 0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,
- 0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
- 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
- 0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,0x19,
- 0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,
- 0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,0x1b,
- 0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,
- 0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,
- 0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,
- 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
- 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
- 0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,0x21,
- 0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,0x22,
- 0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,0x23,
- 0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,0x24,
- 0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,0x25,
- 0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,0x26,
- 0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,0x27,
- 0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,
- 0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,0x29,
- 0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,0x2a,
- 0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,0x2b,
- 0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,0x2c,
- 0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,
- 0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
- 0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,0x2f,
- 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
- 0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
- 0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,0x32,
- 0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
- 0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,0x34,
- 0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,
- 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
- 0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,0x37,
- 0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,0x38,
- 0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,
- 0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,
- 0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,0x3b,
- 0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,0x3c,
- 0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,
- 0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,0x3e,
- 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
- 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,
- 0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x41,
- 0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,
- 0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,0x43,
- 0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
- 0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,0x45,
- 0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,0x46,
- 0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,
- 0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,0x48,
- 0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0x49,
- 0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,
- 0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,0x4b,
- 0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,0x4c,
- 0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,
- 0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,0x4e,
- 0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,0x4f,
- 0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,
- 0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,0x51,
- 0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,0x52,
- 0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,0x53,
- 0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,0x54,
- 0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,
- 0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,0x56,
- 0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,0x57,
- 0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,0x58,
- 0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,
- 0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,0x5a,
- 0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,
- 0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,0x5c,
- 0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,0x5d,
- 0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,0x5e,
- 0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,0x5f,
- 0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
- 0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,0x61,
- 0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,0x62,
- 0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,0x63,
- 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,
- 0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,
- 0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x66,
- 0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,0x67,
- 0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,0x68,
- 0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,0x69,
- 0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,0x6a,
- 0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,0x6b,
- 0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,0x6c,
- 0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,0x6d,
- 0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,0x6e,
- 0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,0x6f,
- 0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,
- 0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,0x71,
- 0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,0x72,
- 0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,0x73,
- 0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,0x74,
- 0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,
- 0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,0x76,
- 0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x77,
- 0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,
- 0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,0x79,
- 0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,0x7a,
- 0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,0x7b,
- 0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,0x7c,
- 0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,0x7d,
- 0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,0x7e,
- 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,
- 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
- 0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,0x81,
- 0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,
- 0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,
- 0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,0x84,
- 0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,0x85,
- 0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,0x86,
- 0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,0x87,
- 0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,
- 0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,0x89,
- 0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,0x8a,
- 0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,
- 0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,0x8c,
- 0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,0x8d,
- 0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,0x8e,
- 0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,0x8f,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,0x91,
- 0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,
- 0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,
- 0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,0x94,
- 0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,0x95,
- 0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,0x96,
- 0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,0x97,
- 0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,0x98,
- 0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x99,
- 0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,0x9a,
- 0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x9b,0x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 0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,0xf5,
- 0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,0xf6,
- 0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,
- 0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,0xf8,
- 0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,0xf9,
- 0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,0xfa,
- 0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,
- 0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,
- 0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,
- 0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
- 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
- 0,0xad
-]
-indexLength = 64
-dataLength = 4098
-highStart = 0x1000
-shifted12HighStart = 0x1
-type = 1
-valueWidth = 0
-index3NullOffset = 0x7fff
-dataNullOffset = 0xfffff
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x10,0,0x20,1,0x30,2,0x40,3,0x50,4,0x60,5,0x70,6,0x80,7,
- 0x90,8,0xa0,9,0xb0,0xa,0xc0,0xb,0xd0,0xc,0xe0,0xd,0xf0,0xe,0x100,0xf,
- 0x110,0x10,0x120,0x11,0x130,0x12,0x140,0x13,0x150,0x14,0x160,0x15,0x170,0x16,0x180,0x17,
- 0x190,0x18,0x1a0,0x19,0x1b0,0x1a,0x1c0,0x1b,0x1d0,0x1c,0x1e0,0x1d,0x1f0,0x1e,0x200,0x1f,
- 0x210,0x20,0x220,0x21,0x230,0x22,0x240,0x23,0x250,0x24,0x260,0x25,0x270,0x26,0x280,0x27,
- 0x290,0x28,0x2a0,0x29,0x2b0,0x2a,0x2c0,0x2b,0x2d0,0x2c,0x2e0,0x2d,0x2f0,0x2e,0x300,0x2f,
- 0x310,0x30,0x320,0x31,0x330,0x32,0x340,0x33,0x350,0x34,0x360,0x35,0x370,0x36,0x380,0x37,
- 0x390,0x38,0x3a0,0x39,0x3b0,0x3a,0x3c0,0x3b,0x3d0,0x3c,0x3e0,0x3d,0x3f0,0x3e,0x400,0x3f,
- 0x410,0x40,0x420,0x41,0x430,0x42,0x440,0x43,0x450,0x44,0x460,0x45,0x470,0x46,0x480,0x47,
- 0x490,0x48,0x4a0,0x49,0x4b0,0x4a,0x4c0,0x4b,0x4d0,0x4c,0x4e0,0x4d,0x4f0,0x4e,0x500,0x4f,
- 0x510,0x50,0x520,0x51,0x530,0x52,0x540,0x53,0x550,0x54,0x560,0x55,0x570,0x56,0x580,0x57,
- 0x590,0x58,0x5a0,0x59,0x5b0,0x5a,0x5c0,0x5b,0x5d0,0x5c,0x5e0,0x5d,0x5f0,0x5e,0x600,0x5f,
- 0x610,0x60,0x620,0x61,0x630,0x62,0x640,0x63,0x650,0x64,0x660,0x65,0x670,0x66,0x680,0x67,
- 0x690,0x68,0x6a0,0x69,0x6b0,0x6a,0x6c0,0x6b,0x6d0,0x6c,0x6e0,0x6d,0x6f0,0x6e,0x700,0x6f,
- 0x710,0x70,0x720,0x71,0x730,0x72,0x740,0x73,0x750,0x74,0x760,0x75,0x770,0x76,0x780,0x77,
- 0x790,0x78,0x7a0,0x79,0x7b0,0x7a,0x7c0,0x7b,0x7d0,0x7c,0x7e0,0x7d,0x7f0,0x7e,0x800,0x7f,
- 0x810,0x80,0x820,0x81,0x830,0x82,0x840,0x83,0x850,0x84,0x860,0x85,0x870,0x86,0x880,0x87,
- 0x890,0x88,0x8a0,0x89,0x8b0,0x8a,0x8c0,0x8b,0x8d0,0x8c,0x8e0,0x8d,0x8f0,0x8e,0x900,0x8f,
- 0x910,0x90,0x920,0x91,0x930,0x92,0x940,0x93,0x950,0x94,0x960,0x95,0x970,0x96,0x980,0x97,
- 0x990,0x98,0x9a0,0x99,0x9b0,0x9a,0x9c0,0x9b,0x9d0,0x9c,0x9e0,0x9d,0x9f0,0x9e,0xa00,0x9f,
- 0xa10,0xa0,0xa20,0xa1,0xa30,0xa2,0xa40,0xa3,0xa50,0xa4,0xa60,0xa5,0xa70,0xa6,0xa80,0xa7,
- 0xa90,0xa8,0xaa0,0xa9,0xab0,0xaa,0xac0,0xab,0xad0,0xac,0xae0,0xad,0xaf0,0xae,0xb00,0xaf,
- 0xb10,0xb0,0xb20,0xb1,0xb30,0xb2,0xb40,0xb3,0xb50,0xb4,0xb60,0xb5,0xb70,0xb6,0xb80,0xb7,
- 0xb90,0xb8,0xba0,0xb9,0xbb0,0xba,0xbc0,0xbb,0xbd0,0xbc,0xbe0,0xbd,0xbf0,0xbe,0xc00,0xbf,
- 0xc10,0xc0,0xc20,0xc1,0xc30,0xc2,0xc40,0xc3,0xc50,0xc4,0xc60,0xc5,0xc70,0xc6,0xc80,0xc7,
- 0xc90,0xc8,0xca0,0xc9,0xcb0,0xca,0xcc0,0xcb,0xcd0,0xcc,0xce0,0xcd,0xcf0,0xce,0xd00,0xcf,
- 0xd10,0xd0,0xd20,0xd1,0xd30,0xd2,0xd40,0xd3,0xd50,0xd4,0xd60,0xd5,0xd70,0xd6,0xd80,0xd7,
- 0xd90,0xd8,0xda0,0xd9,0xdb0,0xda,0xdc0,0xdb,0xdd0,0xdc,0xde0,0xdd,0xdf0,0xde,0xe00,0xdf,
- 0xe10,0xe0,0xe20,0xe1,0xe30,0xe2,0xe40,0xe3,0xe50,0xe4,0xe60,0xe5,0xe70,0xe6,0xe80,0xe7,
- 0xe90,0xe8,0xea0,0xe9,0xeb0,0xea,0xec0,0xeb,0xed0,0xec,0xee0,0xed,0xef0,0xee,0xf00,0xef,
- 0xf10,0xf0,0xf20,0xf1,0xf30,0xf2,0xf40,0xf3,0xf50,0xf4,0xf60,0xf5,0xf70,0xf6,0xf80,0xf7,
- 0xf90,0xf8,0xfa0,0xf9,0xfb0,0xfa,0xfc0,0xfb,0xfd0,0xfc,0xfe0,0xfd,0xff0,0xfe,0x1000,0xff,
- 0x110000,0
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.16.toml
deleted file mode 100644
index 56163ddaad9..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.16.toml
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: small0-in-fast.16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "small0-in-fast.16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0x80,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0xd0,0xe1,0xe1,0xe1,0x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0xd1,0xd1,0xd1,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,
- 0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,
- 0x404,0x404,0x404,0x404
-]
-data_16 = [
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,0xad,9,0xad
-]
-indexLength = 1092
-dataLength = 292
-highStart = 0x20000
-shifted12HighStart = 0x20
-type = 0
-valueWidth = 0
-index3NullOffset = 0x404
-dataNullOffset = 0xd1
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x880,1,0x890,0,0x1040,2,0x1051,0,0x10000,3,0x20000,0,0x110000,9
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.32.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.32.toml
deleted file mode 100644
index 9d4685ba2f8..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.32.toml
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: small0-in-fast.32
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "small0-in-fast.32"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0x80,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0xd0,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,
- 0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe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,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,9,0xad
-]
-indexLength = 1092
-dataLength = 291
-highStart = 0x20000
-shifted12HighStart = 0x20
-type = 0
-valueWidth = 1
-index3NullOffset = 0x404
-dataNullOffset = 0xd1
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x880,1,0x890,0,0x1040,2,0x1051,0,0x10000,3,0x20000,0,0x110000,9
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.8.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.8.toml
deleted file mode 100644
index 8f42007065c..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.8.toml
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: small0-in-fast.8
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "small0-in-fast.8"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0x80,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0xd0,0xe1,0xe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,
- 0xd1,0xd1,0xd1,0xd1,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,
- 0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,0x404,
- 0x404,0x404,0x404,0x404
-]
-data_8 = [
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 3,9,9,0xad
-]
-indexLength = 1092
-dataLength = 292
-highStart = 0x20000
-shifted12HighStart = 0x20
-type = 0
-valueWidth = 2
-index3NullOffset = 0x404
-dataNullOffset = 0xd1
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x880,1,0x890,0,0x1040,2,0x1051,0,0x10000,3,0x20000,0,0x110000,9
-]
diff --git a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.small16.toml b/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.small16.toml
deleted file mode 100644
index dd203a39de6..00000000000
--- a/deps/crates/vendor/icu_collections-v2/tests/data/cpt/small0-in-fast.small16.toml
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright (C) 2021 and later: Unicode, Inc. and others.
-# License & terms of use: http://www.unicode.org/copyright.html
-#
-# file name: small0-in-fast.small16
-#
-# machine-generated by: ucptrietest.c
-
-[code_point_trie.struct]
-name = "small0-in-fast.small16"
-index = [
- 0,0x40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0x80,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
- 0xda,0xe3,0xe3,0xe3,0x103,0x103,0x103,0x103,0,0x10,0x20,0x30,0x40,0x50,0x60,0x70,
- 0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,
- 0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,0,0x10,0x20,0x30,
- 0x80,0x90,0xa0,0xb0,0x90,0xa0,0xb0,0xc0,0x90,0xa0,0xb0,0xc0,0x90,0xa0,0xb0,0xc0,
- 0x90,0xa0,0xb0,0xc0,0x90,0xa0,0xb0,0xc0,0x90,0xa0,0xb0,0xc0,0x90,0xa0,0xb0,0xc0,
- 0x90,0xa0,0xb0,0xc0,0x90,0x90,0x90,0x90,0xd0,0xdf,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,
- 0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0,
- 0xe0,0xe0,0xe0,0x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0,0,0,0,0,0,0,
- 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
- 0xad,9,0xad
-]
-indexLength = 291
-dataLength = 243
-highStart = 0x20000
-shifted12HighStart = 0x20
-type = 1
-valueWidth = 0
-index3NullOffset = 0xba
-dataNullOffset = 0xd0
-nullValue = 0x0
-
-[code_point_trie.testdata]
-# Array of (limit, value) pairs
-checkRanges = [
- 0x880,1,0x890,0,0x1040,2,0x1051,0,0x10000,3,0x20000,0,0x110000,9
-]
diff --git a/deps/crates/vendor/icu_locale-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_locale-v2/.cargo_vcs_info.json
deleted file mode 100644
index 0064f117e0b..00000000000
--- a/deps/crates/vendor/icu_locale-v2/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
- },
- "path_in_vcs": "components/locale"
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale-v2/OWNERS b/deps/crates/vendor/icu_locale-v2/OWNERS
deleted file mode 100644
index 07a258f68f0..00000000000
--- a/deps/crates/vendor/icu_locale-v2/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-# This file has been auto-generated by the `gnrt` tool.
-file://third_party/rust/icu_locale/OWNERS
diff --git a/deps/crates/vendor/icu_locale-v2/README.md b/deps/crates/vendor/icu_locale-v2/README.md
deleted file mode 100644
index 418237748bc..00000000000
--- a/deps/crates/vendor/icu_locale-v2/README.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# icu_locale [](https://crates.io/crates/icu_locale)
-
-<!-- cargo-rdme start -->
-
-Canonicalization of locale identifiers based on [`CLDR`] data.
-
-This module is published as its own crate ([`icu_locale`](https://docs.rs/icu_locale/latest/icu_locale/))
-and as part of the [`icu`](https://docs.rs/icu/latest/icu/) crate. See the latter for more details on the ICU4X project.
-
-It currently supports locale canonicalization based upon the canonicalization
-algorithm from [`UTS #35: Unicode LDML 3. LocaleId Canonicalization`],
-as well as the minimize and maximize likely subtags algorithms
-as described in [`UTS #35: Unicode LDML 3. Likely Subtags`].
-
-The maximize method potentially updates a passed in locale in place
-depending up the results of running the 'Add Likely Subtags' algorithm
-from [`UTS #35: Unicode LDML 3. Likely Subtags`].
-
-This minimize method returns a new Locale that is the result of running the
-'Remove Likely Subtags' algorithm from [`UTS #35: Unicode LDML 3. Likely Subtags`].
-
-## Examples
-
-```rust
-use icu::locale::Locale;
-use icu::locale::{LocaleCanonicalizer, TransformResult};
-
-let lc = LocaleCanonicalizer::new_extended();
-
-let mut locale: Locale = "ja-Latn-fonipa-hepburn-heploc"
- .parse()
- .expect("parse failed");
-assert_eq!(lc.canonicalize(&mut locale), TransformResult::Modified);
-assert_eq!(locale, "ja-Latn-alalc97-fonipa".parse::<Locale>().unwrap());
-```
-
-```rust
-use icu::locale::{locale, LocaleExpander, TransformResult};
-
-let lc = LocaleExpander::new_common();
-
-let mut locale = locale!("zh-CN");
-assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
-assert_eq!(locale, locale!("zh-Hans-CN"));
-
-let mut locale = locale!("zh-Hant-TW");
-assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
-assert_eq!(locale, locale!("zh-Hant-TW"));
-```
-
-```rust
-use icu::locale::{locale, LocaleExpander, TransformResult};
-use writeable::assert_writeable_eq;
-
-let lc = LocaleExpander::new_common();
-
-let mut locale = locale!("zh-Hans-CN");
-assert_eq!(lc.minimize(&mut locale.id), TransformResult::Modified);
-assert_eq!(locale, locale!("zh"));
-
-let mut locale = locale!("zh");
-assert_eq!(lc.minimize(&mut locale.id), TransformResult::Unmodified);
-assert_eq!(locale, locale!("zh"));
-```
-
-[`ICU4X`]: ../icu/index.html
-[`CLDR`]: https://cldr.unicode.org/
-[`UTS #35: Unicode LDML 3. Likely Subtags`]: https://www.unicode.org/reports/tr35/#Likely_Subtags.
-[`UTS #35: Unicode LDML 3. LocaleId Canonicalization`]: https://unicode.org/reports/tr35/#LocaleId_Canonicalization,
-
-<!-- cargo-rdme end -->
-
-## More Information
-
-For more information on development, authorship, contributing etc. please visit [`ICU4X home page`](https://github.com/unicode-org/icu4x).
diff --git a/deps/crates/vendor/icu_locale-v2/benches/fixtures/locales.json b/deps/crates/vendor/icu_locale-v2/benches/fixtures/locales.json
deleted file mode 100644
index 0e8ba8b798e..00000000000
--- a/deps/crates/vendor/icu_locale-v2/benches/fixtures/locales.json
+++ /dev/null
@@ -1,41 +0,0 @@
-[
- "en-US",
- "en-GB",
- "es-AR",
- "it",
- "zh-Hans-CN",
- "de-AT",
- "pl",
- "fr-FR",
- "de-AT",
- "sr-Cyrl-SR",
- "nb-NO",
- "fr-FR",
- "mk",
- "uk",
- "und-PL",
- "und-Latn-AM",
- "ug-Cyrl",
- "sr-ME",
- "mn-Mong",
- "lif-Limb",
- "gan",
- "zh-Hant",
- "yue-Hans",
- "unr",
- "unr-Deva",
- "und-Thai-CN",
- "ug-Cyrl",
- "en-Latn-DE",
- "pl-FR",
- "de-CH",
- "tuq",
- "sr-ME",
- "ng",
- "klx",
- "kk-Arab",
- "en-Cyrl",
- "und-Cyrl-UK",
- "und-Arab",
- "und-Arab-FO"
-]
diff --git a/deps/crates/vendor/icu_locale-v2/benches/fixtures/uncanonicalized-locales.json b/deps/crates/vendor/icu_locale-v2/benches/fixtures/uncanonicalized-locales.json
deleted file mode 100644
index 18eadbce68e..00000000000
--- a/deps/crates/vendor/icu_locale-v2/benches/fixtures/uncanonicalized-locales.json
+++ /dev/null
@@ -1,88 +0,0 @@
-[
- "cka",
- "cze",
- "gfx",
- "sgn-BR",
- "sgn-DD",
- "tam",
- "und-aaland",
- "nob-bokmal",
- "no-nynorsk",
- "und-Qaai",
- "en-554",
- "en-084",
- "art-lojban",
- "zh-guoyu",
- "zh-hakka",
- "zh-xiang",
- "aar-x-private",
- "heb-x-private",
- "ces",
- "hy-arevela",
- "hy-arevmda",
- "cel-gaulish",
- "ja-latn-hepburn-heploc",
- "ja-Latn-fonipa-hepburn-heploc",
- "und-Armn-SU",
- "sh",
- "sh-Cyrl",
- "cnr",
- "cnr-BA",
- "ru-SU",
- "ru-810",
- "en-SU",
- "en-810",
- "und-SU",
- "und-810",
- "und-Latn-SU",
- "und-Latn-810",
- "hy-SU",
- "hy-810",
- "und-Armn-SU",
- "und-Armn-810",
- "sr-CS",
- "sr-Latn-CS",
- "sr-Cyrl-CS",
- "az-NT",
- "sl-t-sl-rozaj-biske-1994",
- "DE-T-M0-DIN-K0-QWERTZ",
- "en-t-m0-true",
- "en-t-iw",
- "und-u-rg-no23",
- "und-u-rg-cn11",
- "und-u-rg-cz10a",
- "und-u-rg-fra",
- "und-u-rg-frg",
- "und-u-rg-lud",
- "und-NO-u-rg-no23",
- "und-CN-u-rg-cn11",
- "und-CZ-u-rg-cz10a",
- "und-FR-u-rg-fra",
- "und-FR-u-rg-frg",
- "und-u-rg-lud",
- "und-u-sd-no23",
- "und-u-sd-cn11",
- "und-u-sd-cz10a",
- "und-u-sd-fra",
- "hy-arevela",
- "hy-Armn-arevela",
- "hy-AM-arevela",
- "hy-arevela-fonipa",
- "hy-fonipa-arevela",
- "hy-arevmda",
- "hy-Armn-arevmda",
- "hy-AM-arevmda",
- "hy-arevmda-fonipa",
- "hy-fonipa-arevmda",
- "ja-Latn-hepburn-heploc",
- "ja-Latn-JP-hepburn-heploc",
- "sv-aaland",
- "el-polytoni",
- "ja-Latn-alalc97-hepburn-heploc",
- "ja-Latn-hepburn-alalc97-heploc",
- "ja-Latn-hepburn-heploc-alalc97",
- "ja-Latn-heploc-hepburn",
- "ja-Latn-heploc",
- "ja-Latn-aaland-heploc",
- "ja-Latn-heploc-polytoni"
-]
diff --git a/deps/crates/vendor/icu_locale-v2/benches/locale_canonicalizer.rs b/deps/crates/vendor/icu_locale-v2/benches/locale_canonicalizer.rs
deleted file mode 100644
index 11d8668196a..00000000000
--- a/deps/crates/vendor/icu_locale-v2/benches/locale_canonicalizer.rs
+++ /dev/null
@@ -1,107 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use criterion::{black_box, criterion_group, criterion_main, Criterion};
-use icu_locale::LocaleCanonicalizer;
-use icu_locale::LocaleExpander;
-use icu_locale_core::Locale;
-
-fn canonicalize_bench(c: &mut Criterion) {
- let lc = LocaleCanonicalizer::new_common();
-
- let mut group = c.benchmark_group("uncanonicalized");
-
- let data: Vec<String> =
- serde_json::from_str(include_str!("fixtures/uncanonicalized-locales.json"))
- .expect("Failed to read a fixture");
- let locales: Vec<Locale> = data.iter().map(|s| s.parse().unwrap()).collect();
-
- group.bench_function("clone", |b| {
- b.iter(|| {
- for locale in &locales {
- let _ = black_box(locale).clone();
- }
- })
- });
-
- group.bench_function("canonicalize", |b| {
- b.iter(|| {
- for locale in &locales {
- let mut locale = black_box(locale).clone();
- lc.canonicalize(&mut locale);
- }
- })
- });
-
- group.finish();
-}
-
-fn canonicalize_noop_bench(c: &mut Criterion) {
- let lc = LocaleCanonicalizer::new_common();
-
- let mut group = c.benchmark_group("canonicalized");
-
- // None of these locales require canonicalization, so this measures the cost of calling
- // the canonicalizer on locales that will not be modified.
- let data: Vec<String> = serde_json::from_str(include_str!("fixtures/locales.json"))
- .expect("Failed to read a fixture");
- let locales: Vec<Locale> = data.iter().map(|s| s.parse().unwrap()).collect();
-
- group.bench_function("clone", |b| {
- b.iter(|| {
- for locale in &locales {
- let _ = black_box(locale).clone();
- }
- })
- });
-
- group.bench_function("canonicalize", |b| {
- b.iter(|| {
- for locale in &locales {
- let mut locale = black_box(locale).clone();
- lc.canonicalize(&mut locale);
- }
- })
- });
-
- group.finish();
-}
-
-fn maximize_bench(c: &mut Criterion) {
- let lc = LocaleExpander::new_common();
-
- let mut group = c.benchmark_group("likelysubtags");
-
- let data: Vec<String> = serde_json::from_str(include_str!("fixtures/locales.json"))
- .expect("Failed to read a fixture");
- let locales: Vec<Locale> = data.iter().map(|s| s.parse().unwrap()).collect();
-
- group.bench_function("maximize", |b| {
- b.iter(|| {
- for locale in &locales {
- let mut locale = locale.clone();
- lc.maximize(black_box(&mut locale.id));
- }
- })
- });
-
- group.bench_function("minimize", |b| {
- b.iter(|| {
- for locale in &locales {
- let mut locale = locale.clone();
- lc.minimize(black_box(&mut locale.id));
- }
- })
- });
-
- group.finish();
-}
-
-criterion_group!(
- benches,
- canonicalize_bench,
- canonicalize_noop_bench,
- maximize_bench
-);
-criterion_main!(benches);
diff --git a/deps/crates/vendor/icu_locale-v2/src/canonicalizer.rs b/deps/crates/vendor/icu_locale-v2/src/canonicalizer.rs
deleted file mode 100644
index 880a7fdc9b7..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/canonicalizer.rs
+++ /dev/null
@@ -1,622 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! The collection of code for locale canonicalization.
-
-use crate::provider::*;
-use alloc::vec::Vec;
-use core::cmp::Ordering;
-
-use crate::LocaleExpander;
-use crate::TransformResult;
-use icu_locale_core::extensions::Extensions;
-use icu_locale_core::subtags::{Language, Region, Script};
-use icu_locale_core::{
- extensions::unicode::key,
- subtags::{language, Variant, Variants},
- LanguageIdentifier, Locale,
-};
-use icu_provider::prelude::*;
-use tinystr::TinyAsciiStr;
-
-/// Implements the algorithm defined in *[UTS #35: Annex C, LocaleId Canonicalization]*.
-///
-/// # Examples
-///
-/// ```
-/// use icu::locale::Locale;
-/// use icu::locale::{LocaleCanonicalizer, TransformResult};
-///
-/// let lc = LocaleCanonicalizer::new_extended();
-///
-/// let mut locale: Locale = "ja-Latn-fonipa-hepburn-heploc".parse().unwrap();
-/// assert_eq!(lc.canonicalize(&mut locale), TransformResult::Modified);
-/// assert_eq!(locale, "ja-Latn-alalc97-fonipa".parse().unwrap());
-/// ```
-///
-/// [UTS #35: Annex C, LocaleId Canonicalization]: https://unicode.org/reports/tr35/#LocaleId_Canonicalization
-#[derive(Debug)]
-pub struct LocaleCanonicalizer<Expander = LocaleExpander> {
- /// Data to support canonicalization.
- aliases: DataPayload<LocaleAliasesV1>,
- /// Likely subtags implementation for delegation.
- expander: Expander,
-}
-
-fn uts35_rule_matches<'a, I>(
- source: &LanguageIdentifier,
- language: Language,
- script: Option<Script>,
- region: Option<Region>,
- raw_variants: I,
-) -> bool
-where
- I: Iterator<Item = &'a str>,
-{
- (language.is_unknown() || language == source.language)
- && (script.is_none() || script == source.script)
- && (region.is_none() || region == source.region)
- && {
- // Checks if variants are a subset of source variants.
- // As both iterators are sorted, this can be done linearly.
- let mut source_variants = source.variants.iter();
- 'outer: for raw_variant in raw_variants {
- for source_variant in source_variants.by_ref() {
- match source_variant.as_str().cmp(raw_variant) {
- Ordering::Equal => {
- // The source_variant is equal, move to next raw_variant
- continue 'outer;
- }
- Ordering::Less => {
- // The source_variant is smaller, take the next source_variant
- }
- Ordering::Greater => {
- // The source_variant is greater,
- // raw_variants is not a subset of source_variants
- return false;
- }
- }
- }
- // There are raw_variants left after we exhausted source_variants
- return false;
- }
- true
- }
-}
-
-fn uts35_replacement<'a, I>(
- source: &mut LanguageIdentifier,
- ruletype_has_language: bool,
- ruletype_has_script: bool,
- ruletype_has_region: bool,
- ruletype_variants: Option<I>,
- replacement: &LanguageIdentifier,
-) where
- I: Iterator<Item = &'a str>,
-{
- if ruletype_has_language || (source.language.is_unknown() && !replacement.language.is_unknown())
- {
- source.language = replacement.language;
- }
- if ruletype_has_script || (source.script.is_none() && replacement.script.is_some()) {
- source.script = replacement.script;
- }
- if ruletype_has_region || (source.region.is_none() && replacement.region.is_some()) {
- source.region = replacement.region;
- }
- if let Some(skips) = ruletype_variants {
- // The rule matches if the ruletype variants are a subset of the source variants.
- // This means ja-Latn-fonipa-hepburn-heploc matches against the rule for
- // hepburn-heploc and is canonicalized to ja-Latn-alalc97-fonipa
-
- // We're merging three sorted deduped iterators into a new sequence:
- // sources - skips + replacements
-
- let mut sources = source.variants.iter().peekable();
- let mut replacements = replacement.variants.iter().peekable();
- let mut skips = skips.peekable();
-
- let mut variants: Vec<Variant> = Vec::new();
-
- loop {
- match (sources.peek(), skips.peek(), replacements.peek()) {
- (Some(&source), Some(skip), _)
- if source.as_str().cmp(skip) == Ordering::Greater =>
- {
- skips.next();
- }
- (Some(&source), Some(skip), _) if source.as_str().cmp(skip) == Ordering::Equal => {
- skips.next();
- sources.next();
- }
- (Some(&source), _, Some(&replacement))
- if replacement.cmp(source) == Ordering::Less =>
- {
- variants.push(*replacement);
- replacements.next();
- }
- (Some(&source), _, Some(&replacement))
- if replacement.cmp(source) == Ordering::Equal =>
- {
- variants.push(*source);
- sources.next();
- replacements.next();
- }
- (Some(&source), _, _) => {
- variants.push(*source);
- sources.next();
- }
- (None, _, Some(&replacement)) => {
- variants.push(*replacement);
- replacements.next();
- }
- (None, _, None) => {
- break;
- }
- }
- }
- source.variants = Variants::from_vec_unchecked(variants);
- }
-}
-
-#[inline]
-fn uts35_check_language_rules(
- langid: &mut LanguageIdentifier,
- alias_data: &DataPayload<LocaleAliasesV1>,
-) -> TransformResult {
- if !langid.language.is_unknown() {
- let lang: TinyAsciiStr<3> = langid.language.into();
- let replacement = if lang.len() == 2 {
- alias_data
- .get()
- .language_len2
- .get(&lang.resize().to_unvalidated())
- } else {
- alias_data.get().language_len3.get(&lang.to_unvalidated())
- };
-
- if let Some(replacement) = replacement {
- if let Ok(new_langid) = replacement.parse() {
- uts35_replacement::<core::iter::Empty<&str>>(
- langid,
- true,
- false,
- false,
- None,
- &new_langid,
- );
- return TransformResult::Modified;
- }
- }
- }
-
- TransformResult::Unmodified
-}
-
-impl LocaleCanonicalizer<LocaleExpander> {
- /// A constructor which creates a [`LocaleCanonicalizer`] from compiled data,
- /// using a [`LocaleExpander`] for common locales.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- #[cfg(feature = "compiled_data")]
- pub const fn new_common() -> Self {
- Self::new_with_expander(LocaleExpander::new_common())
- }
-
- icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
- functions: [
- new_common: skip,
- try_new_common_with_buffer_provider,
- try_new_common_unstable,
- Self,
- ]
- );
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_common)]
- pub fn try_new_common_unstable<P>(provider: &P) -> Result<Self, DataError>
- where
- P: DataProvider<LocaleAliasesV1>
- + DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + ?Sized,
- {
- let expander = LocaleExpander::try_new_common_unstable(provider)?;
- Self::try_new_with_expander_unstable(provider, expander)
- }
-
- /// A constructor which creates a [`LocaleCanonicalizer`] from compiled data,
- /// using a [`LocaleExpander`] for all locales.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- #[cfg(feature = "compiled_data")]
- pub const fn new_extended() -> Self {
- Self::new_with_expander(LocaleExpander::new_extended())
- }
-
- icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
- functions: [
- new_extended: skip,
- try_new_extended_with_buffer_provider,
- try_new_extended_unstable,
- Self,
- ]
- );
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_extended)]
- pub fn try_new_extended_unstable<P>(provider: &P) -> Result<Self, DataError>
- where
- P: DataProvider<LocaleAliasesV1>
- + DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + DataProvider<LocaleLikelySubtagsExtendedV1>
- + ?Sized,
- {
- let expander = LocaleExpander::try_new_extended_unstable(provider)?;
- Self::try_new_with_expander_unstable(provider, expander)
- }
-}
-
-impl<Expander: AsRef<LocaleExpander>> LocaleCanonicalizer<Expander> {
- /// Creates a [`LocaleCanonicalizer`] with a custom [`LocaleExpander`] and compiled data.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- #[cfg(feature = "compiled_data")]
- pub const fn new_with_expander(expander: Expander) -> Self {
- Self {
- aliases: DataPayload::from_static_ref(Baked::SINGLETON_LOCALE_ALIASES_V1),
- expander,
- }
- }
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_with_expander)]
- pub fn try_new_with_expander_unstable<P>(
- provider: &P,
- expander: Expander,
- ) -> Result<Self, DataError>
- where
- P: DataProvider<LocaleAliasesV1> + ?Sized,
- {
- let aliases: DataPayload<LocaleAliasesV1> = provider.load(Default::default())?.payload;
-
- Ok(Self { aliases, expander })
- }
-
- icu_provider::gen_buffer_data_constructors!((options: Expander) -> error: DataError,
- functions: [
- new_with_expander: skip,
- try_new_with_expander_with_buffer_provider,
- try_new_with_expander_unstable,
- Self,
- ]
- );
-
- /// The canonicalize method potentially updates a passed in locale in place
- /// depending up the results of running the canonicalization algorithm
- /// from <https://unicode.org/reports/tr35/#LocaleId_Canonicalization>.
- ///
- /// Some BCP47 canonicalization data is not part of the CLDR json package. Because
- /// of this, some canonicalizations are not performed, e.g. the canonicalization of
- /// `und-u-ca-islamicc` to `und-u-ca-islamic-civil`. This will be fixed in a future
- /// release once the missing data has been added to the CLDR json data. See:
- /// <https://github.com/unicode-org/icu4x/issues/746>
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::{Locale, LocaleCanonicalizer, TransformResult};
- ///
- /// let lc = LocaleCanonicalizer::new_extended();
- ///
- /// let mut locale: Locale = "ja-Latn-fonipa-hepburn-heploc".parse().unwrap();
- /// assert_eq!(lc.canonicalize(&mut locale), TransformResult::Modified);
- /// assert_eq!(locale, "ja-Latn-alalc97-fonipa".parse().unwrap());
- /// ```
- pub fn canonicalize(&self, locale: &mut Locale) -> TransformResult {
- let mut result = TransformResult::Unmodified;
-
- // This loops until we get a 'fixed point', where applying the rules do not
- // result in any more changes.
- loop {
- // These are linear searches due to the ordering imposed by the canonicalization
- // rules, where rules with more variants should be considered first. With the
- // current data in CLDR, we will only do this for locales which have variants,
- // or new rules which we haven't special-cased yet (of which there are fewer
- // than 20).
- let modified = if locale.id.variants.is_empty() {
- self.canonicalize_absolute_language_fallbacks(&mut locale.id)
- } else {
- self.canonicalize_language_variant_fallbacks(&mut locale.id)
- };
- if modified {
- result = TransformResult::Modified;
- continue;
- }
-
- if !locale.id.language.is_unknown() {
- // If the region is specified, check sgn-region rules first
- if let Some(region) = locale.id.region {
- if locale.id.language == language!("sgn") {
- if let Some(&sgn_lang) = self
- .aliases
- .get()
- .sgn_region
- .get(®ion.to_tinystr().to_unvalidated())
- {
- uts35_replacement::<core::iter::Empty<&str>>(
- &mut locale.id,
- true,
- false,
- true,
- None,
- &sgn_lang.into(),
- );
- result = TransformResult::Modified;
- continue;
- }
- }
- }
-
- if uts35_check_language_rules(&mut locale.id, &self.aliases)
- == TransformResult::Modified
- {
- result = TransformResult::Modified;
- continue;
- }
- }
-
- if let Some(script) = locale.id.script {
- if let Some(&replacement) = self
- .aliases
- .get()
- .script
- .get(&script.to_tinystr().to_unvalidated())
- {
- locale.id.script = Some(replacement);
- result = TransformResult::Modified;
- continue;
- }
- }
-
- if let Some(region) = locale.id.region {
- let replacement = if region.is_alphabetic() {
- self.aliases
- .get()
- .region_alpha
- .get(®ion.to_tinystr().resize().to_unvalidated())
- } else {
- self.aliases
- .get()
- .region_num
- .get(®ion.to_tinystr().to_unvalidated())
- };
- if let Some(&replacement) = replacement {
- locale.id.region = Some(replacement);
- result = TransformResult::Modified;
- continue;
- }
-
- if let Some(regions) = self
- .aliases
- .get()
- .complex_region
- .get(®ion.to_tinystr().to_unvalidated())
- {
- // Skip if regions are empty
- if let Some(default_region) = regions.get(0) {
- let mut maximized = LanguageIdentifier {
- language: locale.id.language,
- script: locale.id.script,
- region: None,
- variants: Variants::default(),
- };
-
- locale.id.region = Some(
- match (
- self.expander.as_ref().maximize(&mut maximized),
- maximized.region,
- ) {
- (TransformResult::Modified, Some(candidate))
- if regions.iter().any(|x| x == candidate) =>
- {
- candidate
- }
- _ => default_region,
- },
- );
- result = TransformResult::Modified;
- continue;
- }
- }
- }
-
- if !locale.id.variants.is_empty() {
- let mut modified = Vec::with_capacity(0);
- for (idx, &variant) in locale.id.variants.iter().enumerate() {
- if let Some(&updated) = self
- .aliases
- .get()
- .variant
- .get(&variant.to_tinystr().to_unvalidated())
- {
- if modified.is_empty() {
- modified = locale.id.variants.to_vec();
- }
- #[expect(clippy::indexing_slicing)]
- let _ = core::mem::replace(&mut modified[idx], updated);
- }
- }
-
- if !modified.is_empty() {
- modified.sort();
- modified.dedup();
- locale.id.variants = Variants::from_vec_unchecked(modified);
- result = TransformResult::Modified;
- continue;
- }
- }
-
- // Nothing matched in this iteration, we're done.
- break;
- }
-
- if !locale.extensions.transform.is_empty() || !locale.extensions.unicode.is_empty() {
- self.canonicalize_extensions(&mut locale.extensions, &mut result);
- }
- result
- }
-
- fn canonicalize_extensions(&self, extensions: &mut Extensions, result: &mut TransformResult) {
- // Handle Locale extensions in their own loops, because these rules do not interact
- // with each other.
- if let Some(ref mut lang) = extensions.transform.lang {
- while uts35_check_language_rules(lang, &self.aliases) == TransformResult::Modified {
- *result = TransformResult::Modified;
- }
- }
-
- if !extensions.unicode.keywords.is_empty() {
- for key in [key!("rg"), key!("sd")] {
- if let Some(value) = extensions.unicode.keywords.get_mut(&key) {
- if let Some(only_value) = value.as_single_subtag() {
- if let Some(modified_value) = self
- .aliases
- .get()
- .subdivision
- .get(&only_value.to_tinystr().resize().to_unvalidated())
- {
- if let Ok(modified_value) = modified_value.parse() {
- *value = modified_value;
- *result = TransformResult::Modified;
- }
- }
- }
- }
- }
- }
- }
-
- fn canonicalize_language_variant_fallbacks(&self, lid: &mut LanguageIdentifier) -> bool {
- // These language/variant comibnations have around 20 rules
- for LanguageStrStrPair(lang, raw_variants, raw_to) in self
- .aliases
- .get()
- .language_variants
- .iter()
- .map(zerofrom::ZeroFrom::zero_from)
- {
- let raw_variants = raw_variants.split('-');
- // if is_iter_sorted(raw_variants.clone()) { // can we sort at construction?
- if uts35_rule_matches(lid, lang, None, None, raw_variants.clone()) {
- if let Ok(to) = raw_to.parse() {
- uts35_replacement(
- lid,
- !lang.is_unknown(),
- false,
- false,
- Some(raw_variants),
- &to,
- );
- return true;
- }
- }
- }
- false
- }
-
- fn canonicalize_absolute_language_fallbacks(&self, lid: &mut LanguageIdentifier) -> bool {
- for StrStrPair(raw_from, raw_to) in self
- .aliases
- .get()
- .language
- .iter()
- .map(zerofrom::ZeroFrom::zero_from)
- {
- if let Ok(from) = raw_from.parse::<LanguageIdentifier>() {
- if uts35_rule_matches(
- lid,
- from.language,
- from.script,
- from.region,
- from.variants.iter().map(Variant::as_str),
- ) {
- if let Ok(to) = raw_to.parse() {
- uts35_replacement(
- lid,
- !from.language.is_unknown(),
- from.script.is_some(),
- from.region.is_some(),
- Some(from.variants.iter().map(Variant::as_str)),
- &to,
- );
- return true;
- }
- }
- }
- }
- false
- }
-}
-
-#[cfg(test)]
-mod test {
- use super::*;
-
- #[test]
- fn test_uts35_rule_matches() {
- for (source, rule, result) in [
- ("ja", "und", true),
- ("und-heploc-hepburn", "und-hepburn", true),
- ("ja-heploc-hepburn", "und-hepburn", true),
- ("ja-hepburn", "und-hepburn-heploc", false),
- ] {
- let source = source.parse().unwrap();
- let rule = rule.parse::<LanguageIdentifier>().unwrap();
- assert_eq!(
- uts35_rule_matches(
- &source,
- rule.language,
- rule.script,
- rule.region,
- rule.variants.iter().map(Variant::as_str),
- ),
- result,
- "{source}"
- );
- }
- }
-
- #[test]
- fn test_uts35_replacement() {
- for (locale, rule_0, rule_1, result) in [
- (
- "ja-Latn-fonipa-hepburn-heploc",
- "und-hepburn-heploc",
- "und-alalc97",
- "ja-Latn-alalc97-fonipa",
- ),
- ("sgn-DD", "und-DD", "und-DE", "sgn-DE"),
- ("sgn-DE", "sgn-DE", "gsg", "gsg"),
- ] {
- let mut locale: Locale = locale.parse().unwrap();
- let rule_0 = rule_0.parse::<LanguageIdentifier>().unwrap();
- let rule_1 = rule_1.parse().unwrap();
- let result = result.parse::<Locale>().unwrap();
- uts35_replacement(
- &mut locale.id,
- !rule_0.language.is_unknown(),
- rule_0.script.is_some(),
- rule_0.region.is_some(),
- Some(rule_0.variants.iter().map(Variant::as_str)),
- &rule_1,
- );
- assert_eq!(result, locale);
- }
- }
-}
diff --git a/deps/crates/vendor/icu_locale-v2/src/directionality.rs b/deps/crates/vendor/icu_locale-v2/src/directionality.rs
deleted file mode 100644
index 6a2464645d3..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/directionality.rs
+++ /dev/null
@@ -1,255 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use crate::provider::*;
-use crate::LocaleExpander;
-use icu_locale_core::subtags::Script;
-use icu_locale_core::LanguageIdentifier;
-use icu_provider::prelude::*;
-
-/// Represents the direction of a script.
-///
-/// [`LocaleDirectionality`] can be used to get this information.
-#[derive(Debug, PartialEq, Eq, Clone, Copy)]
-#[non_exhaustive]
-pub enum Direction {
- /// The script is left-to-right.
- LeftToRight,
- /// The script is right-to-left.
- RightToLeft,
-}
-
-/// Provides methods to determine the direction of a locale.
-///
-/// The `Expander` generic parameter wraps a [`LocaleExpander`].
-///
-/// # Examples
-///
-/// ```
-/// use icu::locale::{langid, Direction, LocaleDirectionality};
-///
-/// let ld = LocaleDirectionality::new_common();
-///
-/// assert_eq!(ld.get(&langid!("en")), Some(Direction::LeftToRight));
-/// ```
-#[derive(Debug)]
-pub struct LocaleDirectionality<Expander = LocaleExpander> {
- script_direction: DataPayload<LocaleScriptDirectionV1>,
- expander: Expander,
-}
-
-impl LocaleDirectionality<LocaleExpander> {
- /// Creates a [`LocaleDirectionality`] from compiled data, using [`LocaleExpander`]
- /// data for common locales.
- ///
- /// This includes limited likely subtags data, see [`LocaleExpander::new_common()`].
- #[cfg(feature = "compiled_data")]
- pub const fn new_common() -> Self {
- Self::new_with_expander(LocaleExpander::new_common())
- }
-
- // Note: This is a custom impl because the bounds on `try_new_unstable` don't suffice
- #[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER, Self::new_common)]
- #[cfg(feature = "serde")]
- pub fn try_new_common_with_buffer_provider(
- provider: &(impl BufferProvider + ?Sized),
- ) -> Result<Self, DataError> {
- let expander = LocaleExpander::try_new_common_with_buffer_provider(provider)?;
- Self::try_new_with_expander_unstable(&provider.as_deserializing(), expander)
- }
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_common)]
- pub fn try_new_common_unstable<P>(provider: &P) -> Result<LocaleDirectionality, DataError>
- where
- P: DataProvider<LocaleScriptDirectionV1>
- + DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + ?Sized,
- {
- let expander = LocaleExpander::try_new_common_unstable(provider)?;
- Self::try_new_with_expander_unstable(provider, expander)
- }
-
- /// Creates a [`LocaleDirectionality`] from compiled data, using [`LocaleExpander`]
- /// data for all locales.
- ///
- /// This includes all likely subtags data, see [`LocaleExpander::new_extended()`].
- #[cfg(feature = "compiled_data")]
- pub const fn new_extended() -> Self {
- Self::new_with_expander(LocaleExpander::new_extended())
- }
-
- // Note: This is a custom impl because the bounds on `try_new_unstable` don't suffice
- #[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER, Self::new_extended)]
- #[cfg(feature = "serde")]
- pub fn try_new_extended_with_buffer_provider(
- provider: &(impl BufferProvider + ?Sized),
- ) -> Result<Self, DataError> {
- let expander = LocaleExpander::try_new_extended_with_buffer_provider(provider)?;
- Self::try_new_with_expander_unstable(&provider.as_deserializing(), expander)
- }
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_extended)]
- pub fn try_new_extended_unstable<P>(provider: &P) -> Result<LocaleDirectionality, DataError>
- where
- P: DataProvider<LocaleScriptDirectionV1>
- + DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + DataProvider<LocaleLikelySubtagsExtendedV1>
- + ?Sized,
- {
- let expander = LocaleExpander::try_new_extended_unstable(provider)?;
- Self::try_new_with_expander_unstable(provider, expander)
- }
-}
-
-impl<Expander: AsRef<LocaleExpander>> LocaleDirectionality<Expander> {
- /// Creates a [`LocaleDirectionality`] with a custom [`LocaleExpander`] and compiled data.
- ///
- /// This allows using [`LocaleExpander::new_extended()`] with data for all locales.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::{
- /// langid, Direction, LocaleDirectionality, LocaleExpander,
- /// };
- ///
- /// let ld_default = LocaleDirectionality::new_common();
- ///
- /// assert_eq!(ld_default.get(&langid!("jbn")), None);
- ///
- /// let expander = LocaleExpander::new_extended();
- /// let ld_extended = LocaleDirectionality::new_with_expander(expander);
- ///
- /// assert_eq!(
- /// ld_extended.get(&langid!("jbn")),
- /// Some(Direction::RightToLeft)
- /// );
- /// ```
- #[cfg(feature = "compiled_data")]
- pub const fn new_with_expander(expander: Expander) -> Self {
- LocaleDirectionality {
- script_direction: DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_SCRIPT_DIRECTION_V1,
- ),
- expander,
- }
- }
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_with_expander)]
- pub fn try_new_with_expander_unstable<P>(
- provider: &P,
- expander: Expander,
- ) -> Result<Self, DataError>
- where
- P: DataProvider<LocaleScriptDirectionV1> + ?Sized,
- {
- let script_direction = provider.load(Default::default())?.payload;
-
- Ok(LocaleDirectionality {
- script_direction,
- expander,
- })
- }
-
- /// Returns the script direction of the given locale.
- ///
- /// Note that the direction is a property of the script of a locale, not of the language. As such,
- /// when given a locale without an associated script tag (i.e., `locale!("en")` vs. `locale!("en-Latn")`),
- /// this method first tries to infer the script using the language and region before returning its direction.
- ///
- /// If you already have a script struct and want to get its direction, you should use
- /// `Locale::from(Some(my_script))` and call this method.
- ///
- /// This method will return `None` if either a locale's script cannot be determined, or there is no information
- /// for the script.
- ///
- /// # Examples
- ///
- /// Using an existing locale:
- ///
- /// ```
- /// use icu::locale::{langid, Direction, LocaleDirectionality};
- ///
- /// let ld = LocaleDirectionality::new_common();
- ///
- /// assert_eq!(ld.get(&langid!("en-US")), Some(Direction::LeftToRight));
- ///
- /// assert_eq!(ld.get(&langid!("ar")), Some(Direction::RightToLeft));
- ///
- /// assert_eq!(ld.get(&langid!("en-Arab")), Some(Direction::RightToLeft));
- ///
- /// assert_eq!(ld.get(&langid!("foo")), None);
- /// ```
- ///
- /// Using a script directly:
- ///
- /// ```
- /// use icu::locale::subtags::script;
- /// use icu::locale::{Direction, LanguageIdentifier, LocaleDirectionality};
- ///
- /// let ld = LocaleDirectionality::new_common();
- ///
- /// assert_eq!(
- /// ld.get(&LanguageIdentifier::from(Some(script!("Latn")))),
- /// Some(Direction::LeftToRight)
- /// );
- /// ```
- pub fn get(&self, langid: &LanguageIdentifier) -> Option<Direction> {
- let script = self.expander.as_ref().get_likely_script(langid)?;
-
- if self.script_in_ltr(script) {
- Some(Direction::LeftToRight)
- } else if self.script_in_rtl(script) {
- Some(Direction::RightToLeft)
- } else {
- None
- }
- }
-
- /// Returns whether the given locale is right-to-left.
- ///
- /// Note that if this method returns `false`, the locale is either left-to-right or
- /// the [`LocaleDirectionality`] does not include data for the locale.
- /// You should use [`LocaleDirectionality::get`] if you need to differentiate between these cases.
- ///
- /// See [`LocaleDirectionality::get`] for more information.
- pub fn is_right_to_left(&self, langid: &LanguageIdentifier) -> bool {
- self.expander
- .as_ref()
- .get_likely_script(langid)
- .map(|s| self.script_in_rtl(s))
- .unwrap_or(false)
- }
-
- /// Returns whether the given locale is left-to-right.
- ///
- /// Note that if this method returns `false`, the locale is either right-to-left or
- /// the [`LocaleDirectionality`] does not include data for the locale.
- /// You should use [`LocaleDirectionality::get`] if you need to differentiate between these cases.
- ///
- /// See [`LocaleDirectionality::get`] for more information.
- pub fn is_left_to_right(&self, langid: &LanguageIdentifier) -> bool {
- self.expander
- .as_ref()
- .get_likely_script(langid)
- .map(|s| self.script_in_ltr(s))
- .unwrap_or(false)
- }
-
- fn script_in_rtl(&self, script: Script) -> bool {
- self.script_direction
- .get()
- .rtl
- .binary_search(&script.to_tinystr().to_unvalidated())
- .is_ok()
- }
-
- fn script_in_ltr(&self, script: Script) -> bool {
- self.script_direction
- .get()
- .ltr
- .binary_search(&script.to_tinystr().to_unvalidated())
- .is_ok()
- }
-}
diff --git a/deps/crates/vendor/icu_locale-v2/src/exemplar_chars.rs b/deps/crates/vendor/icu_locale-v2/src/exemplar_chars.rs
deleted file mode 100644
index 98385e1a95b..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/exemplar_chars.rs
+++ /dev/null
@@ -1,305 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-//! This module provides APIs for getting exemplar characters for a locale.
-//!
-//! Exemplars are characters used by a language, separated into different sets.
-//! The sets are: main, auxiliary, punctuation, numbers, and index.
-//!
-//! The sets define, according to typical usage in the language,
-//! which characters occur in which contexts with which frequency.
-//! For more information, see the documentation in the
-//! [Exemplars section in Unicode Technical Standard #35](https://unicode.org/reports/tr35/tr35-general.html#Exemplars)
-//! of the LDML specification.
-//!
-//! # Examples
-//!
-//! ```
-//! use icu::locale::exemplar_chars::ExemplarCharacters;
-//! use icu::locale::locale;
-//!
-//! let locale = locale!("en-001").into();
-//! let exemplars_main = ExemplarCharacters::try_new_main(&locale)
-//! .expect("locale should be present");
-//!
-//! assert!(exemplars_main.contains('a'));
-//! assert!(exemplars_main.contains('z'));
-//! assert!(exemplars_main.contains_str("a"));
-//! assert!(!exemplars_main.contains_str("ä"));
-//! assert!(!exemplars_main.contains_str("ng"));
-//! ```
-
-use crate::provider::*;
-use core::ops::Deref;
-use icu_collections::codepointinvliststringlist::CodePointInversionListAndStringList;
-use icu_provider::{marker::ErasedMarker, prelude::*};
-
-/// A wrapper around `UnicodeSet` data (characters and strings)
-#[derive(Debug)]
-pub struct ExemplarCharacters {
- data: DataPayload<ErasedMarker<ExemplarCharactersData<'static>>>,
-}
-
-impl ExemplarCharacters {
- /// Construct a borrowed version of this type that can be queried.
- ///
- /// This avoids a potential small underlying cost per API call (ex: `contains()`) by consolidating it
- /// up front.
- #[inline]
- pub fn as_borrowed(&self) -> ExemplarCharactersBorrowed<'_> {
- ExemplarCharactersBorrowed {
- data: self.data.get(),
- }
- }
-}
-
-/// A borrowed wrapper around code point set data, returned by
-/// [`ExemplarCharacters::as_borrowed()`]. More efficient to query.
-#[derive(Clone, Copy, Debug)]
-pub struct ExemplarCharactersBorrowed<'a> {
- data: &'a ExemplarCharactersData<'a>,
-}
-
-impl<'a> Deref for ExemplarCharactersBorrowed<'a> {
- type Target = CodePointInversionListAndStringList<'a>;
-
- fn deref(&self) -> &Self::Target {
- &self.data.0
- }
-}
-
-impl ExemplarCharactersBorrowed<'static> {
- /// Cheaply converts a [`ExemplarCharactersBorrowed<'static>`] into a [`ExemplarCharacters`].
- ///
- /// Note: Due to branching and indirection, using [`ExemplarCharacters`] might inhibit some
- /// compile-time optimizations that are possible with [`ExemplarCharactersBorrowed`].
- pub const fn static_to_owned(self) -> ExemplarCharacters {
- ExemplarCharacters {
- data: DataPayload::from_static_ref(self.data),
- }
- }
-}
-
-macro_rules! make_exemplar_chars_unicode_set_property {
- (
- // currently unused
- dyn_data_marker: $d:ident;
- data_marker: $data_marker:ty;
- func:
- pub fn $unstable:ident();
- $(#[$attr:meta])*
- pub fn $compiled:ident();
- ) => {
- impl ExemplarCharactersBorrowed<'static> {
- $(#[$attr])*
- #[cfg(feature = "compiled_data")]
- #[inline]
- pub fn $compiled(
- locale: &DataLocale,
- ) -> Result<Self, DataError> {
- Ok(ExemplarCharactersBorrowed {
- data: DataProvider::<$data_marker>::load(
- &crate::provider::Baked,
- DataRequest {
- id: DataIdentifierBorrowed::for_locale(locale),
- ..Default::default()
- })?
- .payload
- .get_static()
- .ok_or_else(|| DataError::custom("Baked provider didn't return static payload"))?
- })
- }
-
- }
- impl ExemplarCharacters {
- $(#[$attr])*
- #[cfg(feature = "compiled_data")]
- pub fn $compiled(
- locale: &DataLocale,
- ) -> Result<ExemplarCharactersBorrowed<'static>, DataError> {
- ExemplarCharactersBorrowed::$compiled(locale)
- }
-
- #[doc = concat!("A version of [`Self::", stringify!($compiled), "()`] that uses custom data provided by a [`DataProvider`].")]
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- pub fn $unstable(
- provider: &(impl DataProvider<$data_marker> + ?Sized),
- locale: &DataLocale,
- ) -> Result<Self, DataError> {
- Ok(Self {
- data:
- provider.load(
- DataRequest {
- id: DataIdentifierBorrowed::for_locale(locale),
- ..Default::default()
- })?
- .payload
- .cast()
- })
- }
- }
- }
-}
-
-make_exemplar_chars_unicode_set_property!(
- dyn_data_marker: ExemplarCharactersMain;
- data_marker: LocaleExemplarCharactersMainV1;
- func:
- pub fn try_new_main_unstable();
-
- /// Get the "main" set of exemplar characters.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::locale;
- /// use icu::locale::exemplar_chars::ExemplarCharacters;
- ///
- /// let exemplars_main = ExemplarCharacters::try_new_main(&locale!("en").into())
- /// .expect("locale should be present");
- ///
- /// assert!(exemplars_main.contains('a'));
- /// assert!(exemplars_main.contains('z'));
- /// assert!(exemplars_main.contains_str("a"));
- /// assert!(!exemplars_main.contains_str("ä"));
- /// assert!(!exemplars_main.contains_str("ng"));
- /// assert!(!exemplars_main.contains_str("A"));
- /// ```
- pub fn try_new_main();
-);
-
-make_exemplar_chars_unicode_set_property!(
- dyn_data_marker: ExemplarCharactersAuxiliary;
- data_marker: LocaleExemplarCharactersAuxiliaryV1;
- func:
- pub fn try_new_auxiliary_unstable();
-
- /// Get the "auxiliary" set of exemplar characters.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::locale;
- /// use icu::locale::exemplar_chars::ExemplarCharacters;
- ///
- /// let exemplars_auxiliary =
- /// ExemplarCharacters::try_new_auxiliary(&locale!("en").into())
- /// .expect("locale should be present");
- ///
- /// assert!(!exemplars_auxiliary.contains('a'));
- /// assert!(!exemplars_auxiliary.contains('z'));
- /// assert!(!exemplars_auxiliary.contains_str("a"));
- /// assert!(exemplars_auxiliary.contains_str("ä"));
- /// assert!(!exemplars_auxiliary.contains_str("ng"));
- /// assert!(!exemplars_auxiliary.contains_str("A"));
- /// ```
- pub fn try_new_auxiliary();
-);
-
-make_exemplar_chars_unicode_set_property!(
- dyn_data_marker: ExemplarCharactersPunctuation;
- data_marker: LocaleExemplarCharactersPunctuationV1;
- func:
- pub fn try_new_punctuation_unstable();
-
- /// Get the "punctuation" set of exemplar characters.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::locale;
- /// use icu::locale::exemplar_chars::ExemplarCharacters;
- ///
- /// let exemplars_punctuation =
- /// ExemplarCharacters::try_new_punctuation(&locale!("en").into())
- /// .expect("locale should be present");
- ///
- /// assert!(!exemplars_punctuation.contains('0'));
- /// assert!(!exemplars_punctuation.contains('9'));
- /// assert!(!exemplars_punctuation.contains('%'));
- /// assert!(exemplars_punctuation.contains(','));
- /// assert!(exemplars_punctuation.contains('.'));
- /// assert!(exemplars_punctuation.contains('!'));
- /// assert!(exemplars_punctuation.contains('?'));
- /// ```
- pub fn try_new_punctuation();
-);
-
-make_exemplar_chars_unicode_set_property!(
- dyn_data_marker: ExemplarCharactersNumbers;
- data_marker: LocaleExemplarCharactersNumbersV1;
- func:
- pub fn try_new_numbers_unstable();
-
- /// Get the "numbers" set of exemplar characters.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::locale;
- /// use icu::locale::exemplar_chars::ExemplarCharacters;
- ///
- /// let exemplars_numbers =
- /// ExemplarCharacters::try_new_numbers(&locale!("en").into())
- /// .expect("locale should be present");
- ///
- /// assert!(exemplars_numbers.contains('0'));
- /// assert!(exemplars_numbers.contains('9'));
- /// assert!(exemplars_numbers.contains('%'));
- /// assert!(exemplars_numbers.contains(','));
- /// assert!(exemplars_numbers.contains('.'));
- /// assert!(!exemplars_numbers.contains('!'));
- /// assert!(!exemplars_numbers.contains('?'));
- /// ```
- pub fn try_new_numbers();
-);
-
-make_exemplar_chars_unicode_set_property!(
- dyn_data_marker: ExemplarCharactersIndex;
- data_marker: LocaleExemplarCharactersIndexV1;
- func:
- pub fn try_new_index_unstable();
-
- /// Get the "index" set of exemplar characters.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::locale;
- /// use icu::locale::exemplar_chars::ExemplarCharacters;
- ///
- /// let exemplars_index =
- /// ExemplarCharacters::try_new_index(&locale!("en").into())
- /// .expect("locale should be present");
- ///
- /// assert!(!exemplars_index.contains('a'));
- /// assert!(!exemplars_index.contains('z'));
- /// assert!(!exemplars_index.contains_str("a"));
- /// assert!(!exemplars_index.contains_str("ä"));
- /// assert!(!exemplars_index.contains_str("ng"));
- /// assert!(exemplars_index.contains_str("A"));
- /// ```
- pub fn try_new_index();
-);
diff --git a/deps/crates/vendor/icu_locale-v2/src/expander.rs b/deps/crates/vendor/icu_locale-v2/src/expander.rs
deleted file mode 100644
index 6b921b44fec..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/expander.rs
+++ /dev/null
@@ -1,606 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use crate::provider::*;
-
-use icu_locale_core::subtags::{Language, Region, Script};
-use icu_locale_core::LanguageIdentifier;
-use icu_provider::prelude::*;
-
-use crate::TransformResult;
-
-/// Implements the *Add Likely Subtags* and *Remove Likely Subtags*
-/// algorithms as defined in *[UTS #35: Likely Subtags]*.
-///
-/// # Examples
-///
-/// Add likely subtags:
-///
-/// ```
-/// use icu::locale::locale;
-/// use icu::locale::{LocaleExpander, TransformResult};
-///
-/// let lc = LocaleExpander::new_common();
-///
-/// let mut locale = locale!("zh-CN");
-/// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
-/// assert_eq!(locale, locale!("zh-Hans-CN"));
-///
-/// let mut locale = locale!("zh-Hant-TW");
-/// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
-/// assert_eq!(locale, locale!("zh-Hant-TW"));
-/// ```
-///
-/// Remove likely subtags:
-///
-/// ```
-/// use icu::locale::{locale, LocaleExpander, TransformResult};
-///
-/// let lc = LocaleExpander::new_common();
-///
-/// let mut locale = locale!("zh-Hans-CN");
-/// assert_eq!(lc.minimize(&mut locale.id), TransformResult::Modified);
-/// assert_eq!(locale, locale!("zh"));
-///
-/// let mut locale = locale!("zh");
-/// assert_eq!(lc.minimize(&mut locale.id), TransformResult::Unmodified);
-/// assert_eq!(locale, locale!("zh"));
-/// ```
-///
-/// Normally, only CLDR locales with Basic or higher coverage are included. To include more
-/// locales for maximization, use [`try_new_extended`](Self::try_new_extended_unstable):
-///
-/// ```
-/// use icu::locale::{locale, LocaleExpander, TransformResult};
-///
-/// let lc = LocaleExpander::new_extended();
-///
-/// let mut locale = locale!("atj");
-/// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
-/// assert_eq!(locale, locale!("atj-Latn-CA"));
-/// ```
-///
-/// [UTS #35: Likely Subtags]: https://www.unicode.org/reports/tr35/#Likely_Subtags
-#[derive(Debug, Clone)]
-pub struct LocaleExpander {
- likely_subtags_l: DataPayload<LocaleLikelySubtagsLanguageV1>,
- likely_subtags_sr: DataPayload<LocaleLikelySubtagsScriptRegionV1>,
- likely_subtags_ext: Option<DataPayload<LocaleLikelySubtagsExtendedV1>>,
-}
-
-struct LocaleExpanderBorrowed<'a> {
- likely_subtags_l: &'a LikelySubtagsForLanguage<'a>,
- likely_subtags_sr: &'a LikelySubtagsForScriptRegion<'a>,
- likely_subtags_ext: Option<&'a LikelySubtagsExtended<'a>>,
-}
-
-impl LocaleExpanderBorrowed<'_> {
- fn get_l(&self, l: Language) -> Option<(Script, Region)> {
- let key = &l.to_tinystr().to_unvalidated();
- self.likely_subtags_l.language.get_copied(key).or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.language.get_copied(key))
- })
- }
-
- fn get_ls(&self, l: Language, s: Script) -> Option<Region> {
- let key = &(
- l.to_tinystr().to_unvalidated(),
- s.to_tinystr().to_unvalidated(),
- );
- self.likely_subtags_l
- .language_script
- .get_copied(key)
- .or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.language_script.get_copied(key))
- })
- }
-
- fn get_lr(&self, l: Language, r: Region) -> Option<Script> {
- let key = &(
- l.to_tinystr().to_unvalidated(),
- r.to_tinystr().to_unvalidated(),
- );
- self.likely_subtags_l
- .language_region
- .get_copied(key)
- .or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.language_region.get_copied(key))
- })
- }
-
- fn get_s(&self, s: Script) -> Option<(Language, Region)> {
- let key = &s.to_tinystr().to_unvalidated();
- self.likely_subtags_sr.script.get_copied(key).or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.script.get_copied(key))
- })
- }
-
- fn get_sr(&self, s: Script, r: Region) -> Option<Language> {
- let key = &(
- s.to_tinystr().to_unvalidated(),
- r.to_tinystr().to_unvalidated(),
- );
- self.likely_subtags_sr
- .script_region
- .get_copied(key)
- .or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.script_region.get_copied(key))
- })
- }
-
- fn get_r(&self, r: Region) -> Option<(Language, Script)> {
- let key = &r.to_tinystr().to_unvalidated();
- self.likely_subtags_sr.region.get_copied(key).or_else(|| {
- self.likely_subtags_ext
- .and_then(|ext| ext.region.get_copied(key))
- })
- }
-
- fn get_und(&self) -> (Language, Script, Region) {
- self.likely_subtags_l.und
- }
-}
-
-#[inline]
-fn update_langid(
- language: Language,
- script: Option<Script>,
- region: Option<Region>,
- langid: &mut LanguageIdentifier,
-) -> TransformResult {
- let mut modified = false;
-
- if langid.language.is_unknown() && !language.is_unknown() {
- langid.language = language;
- modified = true;
- }
-
- if langid.script.is_none() && script.is_some() {
- langid.script = script;
- modified = true;
- }
-
- if langid.region.is_none() && region.is_some() {
- langid.region = region;
- modified = true;
- }
-
- if modified {
- TransformResult::Modified
- } else {
- TransformResult::Unmodified
- }
-}
-
-#[inline]
-fn update_langid_minimize(
- language: Language,
- script: Option<Script>,
- region: Option<Region>,
- langid: &mut LanguageIdentifier,
-) -> TransformResult {
- let mut modified = false;
-
- if langid.language != language {
- langid.language = language;
- modified = true;
- }
-
- if langid.script != script {
- langid.script = script;
- modified = true;
- }
-
- if langid.region != region {
- langid.region = region;
- modified = true;
- }
-
- if modified {
- TransformResult::Modified
- } else {
- TransformResult::Unmodified
- }
-}
-
-impl LocaleExpander {
- /// Creates a [`LocaleExpander`] with compiled data for commonly-used locales
- /// (locales with *Basic* or higher [CLDR coverage]).
- ///
- /// Use this constructor if you want limited likely subtags for data-oriented use cases.
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// [CLDR coverage]: https://www.unicode.org/reports/tr35/tr35-info.html#Coverage_Levels
- #[cfg(feature = "compiled_data")]
- pub const fn new_common() -> Self {
- LocaleExpander {
- likely_subtags_l: DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_LIKELY_SUBTAGS_LANGUAGE_V1,
- ),
- likely_subtags_sr: DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_LIKELY_SUBTAGS_SCRIPT_REGION_V1,
- ),
- likely_subtags_ext: None,
- }
- }
-
- icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
- functions: [
- new_common: skip,
- try_new_common_with_buffer_provider,
- try_new_common_unstable,
- Self
- ]);
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_common)]
- pub fn try_new_common_unstable<P>(provider: &P) -> Result<LocaleExpander, DataError>
- where
- P: DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + ?Sized,
- {
- let likely_subtags_l = provider.load(Default::default())?.payload;
- let likely_subtags_sr = provider.load(Default::default())?.payload;
-
- Ok(LocaleExpander {
- likely_subtags_l,
- likely_subtags_sr,
- likely_subtags_ext: None,
- })
- }
-
- /// Creates a [`LocaleExpander`] with compiled data for all locales.
- ///
- /// Use this constructor if you want to include data for all locales, including ones
- /// that may not have data for other services (i.e. [CLDR coverage] below *Basic*).
- ///
- /// ✨ *Enabled with the `compiled_data` Cargo feature.*
- ///
- /// [📚 Help choosing a constructor](icu_provider::constructors)
- ///
- /// [CLDR coverage]: https://www.unicode.org/reports/tr35/tr35-info.html#Coverage_Levels
- #[cfg(feature = "compiled_data")]
- pub const fn new_extended() -> Self {
- LocaleExpander {
- likely_subtags_l: DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_LIKELY_SUBTAGS_LANGUAGE_V1,
- ),
- likely_subtags_sr: DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_LIKELY_SUBTAGS_SCRIPT_REGION_V1,
- ),
- likely_subtags_ext: Some(DataPayload::from_static_ref(
- Baked::SINGLETON_LOCALE_LIKELY_SUBTAGS_EXTENDED_V1,
- )),
- }
- }
-
- icu_provider::gen_buffer_data_constructors!(() -> error: DataError,
- functions: [
- new_extended: skip,
- try_new_extended_with_buffer_provider,
- try_new_extended_unstable,
- Self
- ]);
-
- #[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new_extended)]
- pub fn try_new_extended_unstable<P>(provider: &P) -> Result<LocaleExpander, DataError>
- where
- P: DataProvider<LocaleLikelySubtagsLanguageV1>
- + DataProvider<LocaleLikelySubtagsScriptRegionV1>
- + DataProvider<LocaleLikelySubtagsExtendedV1>
- + ?Sized,
- {
- let likely_subtags_l = provider.load(Default::default())?.payload;
- let likely_subtags_sr = provider.load(Default::default())?.payload;
- let likely_subtags_ext = Some(provider.load(Default::default())?.payload);
-
- Ok(LocaleExpander {
- likely_subtags_l,
- likely_subtags_sr,
- likely_subtags_ext,
- })
- }
-
- fn as_borrowed(&self) -> LocaleExpanderBorrowed<'_> {
- LocaleExpanderBorrowed {
- likely_subtags_l: self.likely_subtags_l.get(),
- likely_subtags_sr: self.likely_subtags_sr.get(),
- likely_subtags_ext: self.likely_subtags_ext.as_ref().map(|p| p.get()),
- }
- }
-
- /// The maximize method potentially updates a passed in locale in place
- /// depending up the results of running the 'Add Likely Subtags' algorithm
- /// from <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
- ///
- /// If the result of running the algorithm would result in a new locale, the
- /// locale argument is updated in place to match the result, and the method
- /// returns [`TransformResult::Modified`]. Otherwise, the method
- /// returns [`TransformResult::Unmodified`] and the locale argument is
- /// unchanged.
- ///
- /// This function does not guarantee that any particular set of subtags
- /// will be present in the resulting locale.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::{locale, LocaleExpander, TransformResult};
- ///
- /// let lc = LocaleExpander::new_common();
- ///
- /// let mut locale = locale!("zh-CN");
- /// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
- /// assert_eq!(locale, locale!("zh-Hans-CN"));
- ///
- /// let mut locale = locale!("zh-Hant-TW");
- /// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
- /// assert_eq!(locale, locale!("zh-Hant-TW"));
- /// ```
- ///
- /// If there is no data for a particular language, the result is not
- /// modified. Note that [`LocaleExpander::new_extended`] supports
- /// more languages.
- ///
- /// ```
- /// use icu::locale::{locale, LocaleExpander, TransformResult};
- ///
- /// let lc = LocaleExpander::new_common();
- ///
- /// // No subtags data for ccp in the default set:
- /// let mut locale = locale!("ccp");
- /// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
- /// assert_eq!(locale, locale!("ccp"));
- ///
- /// // The extended set supports it:
- /// let lc = LocaleExpander::new_extended();
- /// let mut locale = locale!("ccp");
- /// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
- /// assert_eq!(locale, locale!("ccp-Cakm-BD"));
- ///
- /// // But even the extended set does not support all language subtags:
- /// let mut locale = locale!("mul");
- /// assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
- /// assert_eq!(locale, locale!("mul"));
- /// ```
- pub fn maximize(&self, langid: &mut LanguageIdentifier) -> TransformResult {
- let data = self.as_borrowed();
-
- if !langid.language.is_unknown() && langid.script.is_some() && langid.region.is_some() {
- return TransformResult::Unmodified;
- }
-
- if !langid.language.is_unknown() {
- if let Some(region) = langid.region {
- if let Some(script) = data.get_lr(langid.language, region) {
- return update_langid(Language::UNKNOWN, Some(script), None, langid);
- }
- }
- if let Some(script) = langid.script {
- if let Some(region) = data.get_ls(langid.language, script) {
- return update_langid(Language::UNKNOWN, None, Some(region), langid);
- }
- }
- if let Some((script, region)) = data.get_l(langid.language) {
- return update_langid(Language::UNKNOWN, Some(script), Some(region), langid);
- }
- // Language not found: return unmodified.
- return TransformResult::Unmodified;
- }
- if let Some(script) = langid.script {
- if let Some(region) = langid.region {
- if let Some(language) = data.get_sr(script, region) {
- return update_langid(language, None, None, langid);
- }
- }
- if let Some((language, region)) = data.get_s(script) {
- return update_langid(language, None, Some(region), langid);
- }
- }
- if let Some(region) = langid.region {
- if let Some((language, script)) = data.get_r(region) {
- return update_langid(language, Some(script), None, langid);
- }
- }
-
- // We failed to find anything in the und-SR, und-S, or und-R tables,
- // to fall back to bare "und"
- debug_assert!(langid.language.is_unknown());
- update_langid(
- data.get_und().0,
- Some(data.get_und().1),
- Some(data.get_und().2),
- langid,
- )
- }
-
- /// This returns a new Locale that is the result of running the
- /// 'Remove Likely Subtags' algorithm from
- /// <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
- ///
- /// If the result of running the algorithm would result in a new locale, the
- /// locale argument is updated in place to match the result, and the method
- /// returns [`TransformResult::Modified`]. Otherwise, the method
- /// returns [`TransformResult::Unmodified`] and the locale argument is
- /// unchanged.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::{locale, LocaleExpander, TransformResult};
- ///
- /// let lc = LocaleExpander::new_common();
- ///
- /// let mut locale = locale!("zh-Hans-CN");
- /// assert_eq!(lc.minimize(&mut locale.id), TransformResult::Modified);
- /// assert_eq!(locale, locale!("zh"));
- ///
- /// let mut locale = locale!("zh");
- /// assert_eq!(lc.minimize(&mut locale.id), TransformResult::Unmodified);
- /// assert_eq!(locale, locale!("zh"));
- /// ```
- pub fn minimize(&self, langid: &mut LanguageIdentifier) -> TransformResult {
- self.minimize_impl(langid, true)
- }
-
- /// This returns a new Locale that is the result of running the
- /// 'Remove Likely Subtags, favoring script' algorithm from
- /// <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
- ///
- /// If the result of running the algorithm would result in a new locale, the
- /// locale argument is updated in place to match the result, and the method
- /// returns [`TransformResult::Modified`]. Otherwise, the method
- /// returns [`TransformResult::Unmodified`] and the locale argument is
- /// unchanged.
- ///
- /// # Examples
- ///
- /// ```
- /// use icu::locale::{locale, LocaleExpander, TransformResult};
- ///
- /// let lc = LocaleExpander::new_common();
- ///
- /// let mut locale = locale!("zh-TW");
- /// assert_eq!(
- /// lc.minimize_favor_script(&mut locale.id),
- /// TransformResult::Modified
- /// );
- /// assert_eq!(locale, locale!("zh-Hant"));
- /// ```
- pub fn minimize_favor_script(&self, langid: &mut LanguageIdentifier) -> TransformResult {
- self.minimize_impl(langid, false)
- }
-
- fn minimize_impl(
- &self,
- langid: &mut LanguageIdentifier,
- favor_region: bool,
- ) -> TransformResult {
- let mut max = langid.clone();
- self.maximize(&mut max);
-
- let mut trial = max.clone();
-
- trial.script = None;
- trial.region = None;
- self.maximize(&mut trial);
- if trial == max {
- return update_langid_minimize(max.language, None, None, langid);
- }
-
- if favor_region {
- trial.script = None;
- trial.region = max.region;
- self.maximize(&mut trial);
-
- if trial == max {
- return update_langid_minimize(max.language, None, max.region, langid);
- }
-
- trial.script = max.script;
- trial.region = None;
- self.maximize(&mut trial);
- if trial == max {
- return update_langid_minimize(max.language, max.script, None, langid);
- }
- } else {
- trial.script = max.script;
- trial.region = None;
- self.maximize(&mut trial);
- if trial == max {
- return update_langid_minimize(max.language, max.script, None, langid);
- }
-
- trial.script = None;
- trial.region = max.region;
- self.maximize(&mut trial);
-
- if trial == max {
- return update_langid_minimize(max.language, None, max.region, langid);
- }
- }
-
- update_langid_minimize(max.language, max.script, max.region, langid)
- }
-
- // TODO(3492): consider turning this and a future get_likely_region/get_likely_language public
- #[inline]
- pub(crate) fn get_likely_script(&self, langid: &LanguageIdentifier) -> Option<Script> {
- langid
- .script
- .or_else(|| self.infer_likely_script(langid.language, langid.region))
- }
-
- fn infer_likely_script(&self, language: Language, region: Option<Region>) -> Option<Script> {
- let data = self.as_borrowed();
-
- // proceed through _all possible cases_ in order of specificity
- // (borrowed from LocaleExpander::maximize):
- // 1. language + region
- // 2. language
- // 3. region
- // we need to check all cases, because e.g. for "en-US" the default script is associated
- // with "en" but not "en-US"
- if !language.is_unknown() {
- if let Some(region) = region {
- // 1. we know both language and region
- if let Some(script) = data.get_lr(language, region) {
- return Some(script);
- }
- }
- // 2. we know language, but we either do not know region or knowing region did not help
- if let Some((script, _)) = data.get_l(language) {
- return Some(script);
- }
- }
- if let Some(region) = region {
- // 3. we know region, but we either do not know language or knowing language did not help
- if let Some((_, script)) = data.get_r(region) {
- return Some(script);
- }
- }
- // we could not figure out the script from the given locale
- None
- }
-}
-
-impl AsRef<LocaleExpander> for LocaleExpander {
- fn as_ref(&self) -> &LocaleExpander {
- self
- }
-}
-
-#[cfg(feature = "serde")]
-#[cfg(test)]
-mod tests {
- use super::*;
- use icu_locale_core::locale;
-
- #[test]
- fn test_minimize_favor_script() {
- let lc = LocaleExpander::new_common();
- let mut locale = locale!("yue-Hans");
- assert_eq!(
- lc.minimize_favor_script(&mut locale.id),
- TransformResult::Unmodified
- );
- assert_eq!(locale, locale!("yue-Hans"));
- }
-
- #[test]
- fn test_minimize_favor_region() {
- let lc = LocaleExpander::new_common();
- let mut locale = locale!("yue-Hans");
- assert_eq!(lc.minimize(&mut locale.id), TransformResult::Modified);
- assert_eq!(locale, locale!("yue-CN"));
- }
-}
diff --git a/deps/crates/vendor/icu_locale-v2/src/lib.rs b/deps/crates/vendor/icu_locale-v2/src/lib.rs
deleted file mode 100644
index 2c920010233..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/lib.rs
+++ /dev/null
@@ -1,109 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations
-#![cfg_attr(not(any(test, doc)), no_std)]
-#![cfg_attr(
- not(test),
- deny(
- clippy::indexing_slicing,
- clippy::unwrap_used,
- clippy::expect_used,
- clippy::panic,
- )
-)]
-#![warn(missing_docs)]
-
-//! Canonicalization of locale identifiers based on [`CLDR`] data.
-//!
-//! This module is published as its own crate ([`icu_locale`](https://docs.rs/icu_locale/latest/icu_locale/))
-//! and as part of the [`icu`](https://docs.rs/icu/latest/icu/) crate. See the latter for more details on the ICU4X project.
-//!
-//! It currently supports locale canonicalization based upon the canonicalization
-//! algorithm from [`UTS #35: Unicode LDML 3. LocaleId Canonicalization`],
-//! as well as the minimize and maximize likely subtags algorithms
-//! as described in [`UTS #35: Unicode LDML 3. Likely Subtags`].
-//!
-//! The maximize method potentially updates a passed in locale in place
-//! depending up the results of running the 'Add Likely Subtags' algorithm
-//! from [`UTS #35: Unicode LDML 3. Likely Subtags`].
-//!
-//! This minimize method returns a new Locale that is the result of running the
-//! 'Remove Likely Subtags' algorithm from [`UTS #35: Unicode LDML 3. Likely Subtags`].
-//!
-//! # Examples
-//!
-//! ```
-//! use icu::locale::Locale;
-//! use icu::locale::{LocaleCanonicalizer, TransformResult};
-//!
-//! let lc = LocaleCanonicalizer::new_extended();
-//!
-//! let mut locale: Locale = "ja-Latn-fonipa-hepburn-heploc"
-//! .parse()
-//! .expect("parse failed");
-//! assert_eq!(lc.canonicalize(&mut locale), TransformResult::Modified);
-//! assert_eq!(locale, "ja-Latn-alalc97-fonipa".parse::<Locale>().unwrap());
-//! ```
-//!
-//! ```
-//! use icu::locale::{locale, LocaleExpander, TransformResult};
-//!
-//! let lc = LocaleExpander::new_common();
-//!
-//! let mut locale = locale!("zh-CN");
-//! assert_eq!(lc.maximize(&mut locale.id), TransformResult::Modified);
-//! assert_eq!(locale, locale!("zh-Hans-CN"));
-//!
-//! let mut locale = locale!("zh-Hant-TW");
-//! assert_eq!(lc.maximize(&mut locale.id), TransformResult::Unmodified);
-//! assert_eq!(locale, locale!("zh-Hant-TW"));
-//! ```
-//!
-//! ```
-//! use icu::locale::{locale, LocaleExpander, TransformResult};
-//! use writeable::assert_writeable_eq;
-//!
-//! let lc = LocaleExpander::new_common();
-//!
-//! let mut locale = locale!("zh-Hans-CN");
-//! assert_eq!(lc.minimize(&mut locale.id), TransformResult::Modified);
-//! assert_eq!(locale, locale!("zh"));
-//!
-//! let mut locale = locale!("zh");
-//! assert_eq!(lc.minimize(&mut locale.id), TransformResult::Unmodified);
-//! assert_eq!(locale, locale!("zh"));
-//! ```
-//!
-//! [`ICU4X`]: ../icu/index.html
-//! [`CLDR`]: https://cldr.unicode.org/
-//! [`UTS #35: Unicode LDML 3. Likely Subtags`]: https://www.unicode.org/reports/tr35/#Likely_Subtags.
-//! [`UTS #35: Unicode LDML 3. LocaleId Canonicalization`]: https://unicode.org/reports/tr35/#LocaleId_Canonicalization,
-
-extern crate alloc;
-
-mod canonicalizer;
-mod directionality;
-pub mod exemplar_chars;
-mod expander;
-pub mod fallback;
-pub mod provider;
-
-pub use icu_locale_core::*;
-
-pub use canonicalizer::LocaleCanonicalizer;
-pub use directionality::{Direction, LocaleDirectionality};
-pub use expander::LocaleExpander;
-#[doc(inline)]
-pub use fallback::LocaleFallbacker;
-
-/// Used to track the result of a transformation operation that potentially modifies its argument in place.
-#[derive(Debug, PartialEq)]
-#[allow(clippy::exhaustive_enums)] // this enum is stable
-pub enum TransformResult {
- /// The canonicalization operation modified the locale.
- Modified,
- /// The canonicalization operation did not modify the locale.
- Unmodified,
-}
diff --git a/deps/crates/vendor/icu_locale-v2/src/provider.rs b/deps/crates/vendor/icu_locale-v2/src/provider.rs
deleted file mode 100644
index 6999fde25a5..00000000000
--- a/deps/crates/vendor/icu_locale-v2/src/provider.rs
+++ /dev/null
@@ -1,488 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-// Provider structs must be stable
-#![allow(clippy::exhaustive_structs, clippy::exhaustive_enums)]
-
-//! 🚧 \[Unstable\] Data provider struct definitions for this ICU4X component.
-//!
-//! <div class="stab unstable">
-//! 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-//! including in SemVer minor releases. While the serde representation of data structs is guaranteed
-//! to be stable, their Rust representation might not be. Use with caution.
-//! </div>
-//!
-//! Read more about data providers: [`icu_provider`]
-
-#[cfg(feature = "compiled_data")]
-#[derive(Debug)]
-/// Baked data
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
-/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
-/// </div>
-pub struct Baked;
-
-#[cfg(feature = "compiled_data")]
-#[allow(unused_imports)]
-const _: () = {
- use icu_locale_data::*;
- pub mod icu {
- pub use crate as locale;
- pub use icu_collections as collections;
- }
- make_provider!(Baked);
- impl_locale_aliases_v1!(Baked);
- impl_locale_likely_subtags_extended_v1!(Baked);
- impl_locale_likely_subtags_language_v1!(Baked);
- impl_locale_likely_subtags_script_region_v1!(Baked);
- impl_locale_parents_v1!(Baked);
- impl_locale_script_direction_v1!(Baked);
-
- impl_locale_exemplar_characters_auxiliary_v1!(Baked);
- impl_locale_exemplar_characters_index_v1!(Baked);
- impl_locale_exemplar_characters_main_v1!(Baked);
- impl_locale_exemplar_characters_numbers_v1!(Baked);
- impl_locale_exemplar_characters_punctuation_v1!(Baked);
-};
-
-icu_provider::data_marker!(
- /// Marker for locale alias data.
- LocaleAliasesV1,
- "locale/aliases/v1",
- Aliases<'static>,
- is_singleton = true
-);
-icu_provider::data_marker!(
- /// Marker for data for likely subtags for languages.
- LocaleLikelySubtagsLanguageV1,
- "locale/likely/subtags/language/v1",
- LikelySubtagsForLanguage<'static>,
- is_singleton = true
-);
-icu_provider::data_marker!(
- /// Marker for data for likely subtags for scripts and regions.
- LocaleLikelySubtagsScriptRegionV1,
- "locale/likely/subtags/script/region/v1",
- LikelySubtagsForScriptRegion<'static>,
- is_singleton = true
-);
-icu_provider::data_marker!(
- /// Marker for extended data for likely subtags.
- LocaleLikelySubtagsExtendedV1,
- "locale/likely/subtags/extended/v1",
- LikelySubtagsExtended<'static>,
- is_singleton = true
-);
-icu_provider::data_marker!(
- /// Marker for locale fallback parents data.
- LocaleParentsV1,
- "locale/parents/v1",
- Parents<'static>,
- is_singleton = true
-);
-
-icu_provider::data_marker!(
- /// Marker for script direction data.
- LocaleScriptDirectionV1,
- "locale/script/direction/v1",
- ScriptDirection<'static>,
- is_singleton = true
-);
-
-icu_provider::data_marker!(
- /// Marker for auxiliary exemplar characters data.
- LocaleExemplarCharactersAuxiliaryV1,
- "locale/exemplar/characters/auxiliary/v1",
- ExemplarCharactersData<'static>,
-);
-icu_provider::data_marker!(
- /// Marker for index exemplar characters data.
- LocaleExemplarCharactersIndexV1,
- "locale/exemplar/characters/index/v1",
- ExemplarCharactersData<'static>,
-);
-icu_provider::data_marker!(
- /// Marker for main exemplar characters data.
- LocaleExemplarCharactersMainV1,
- "locale/exemplar/characters/main/v1",
- ExemplarCharactersData<'static>,
-);
-icu_provider::data_marker!(
- /// Marker for numbers exemplar characters data.
- LocaleExemplarCharactersNumbersV1,
- "locale/exemplar/characters/numbers/v1",
- ExemplarCharactersData<'static>,
-);
-icu_provider::data_marker!(
- /// Marker for punctuation exemplar characters data.
- LocaleExemplarCharactersPunctuationV1,
- "locale/exemplar/characters/punctuation/v1",
- ExemplarCharactersData<'static>,
-);
-
-#[cfg(feature = "datagen")]
-/// The latest minimum set of markers required by this component.
-pub const MARKERS: &[DataMarkerInfo] = &[
- LocaleAliasesV1::INFO,
- LocaleExemplarCharactersAuxiliaryV1::INFO,
- LocaleExemplarCharactersIndexV1::INFO,
- LocaleExemplarCharactersMainV1::INFO,
- LocaleExemplarCharactersNumbersV1::INFO,
- LocaleExemplarCharactersPunctuationV1::INFO,
- LocaleLikelySubtagsExtendedV1::INFO,
- LocaleLikelySubtagsLanguageV1::INFO,
- LocaleLikelySubtagsScriptRegionV1::INFO,
- LocaleParentsV1::INFO,
- LocaleScriptDirectionV1::INFO,
-];
-
-#[cfg(doc)]
-use crate::LanguageIdentifier;
-use alloc::borrow::Cow;
-use icu_collections::codepointinvliststringlist::CodePointInversionListAndStringList;
-use icu_locale_core::subtags::{Language, Region, Script, Variant};
-use icu_provider::prelude::*;
-use potential_utf::PotentialUtf8;
-use tinystr::{TinyAsciiStr, UnvalidatedTinyAsciiStr};
-use zerovec::{VarZeroVec, ZeroMap, ZeroSlice, ZeroVec};
-
-// We use raw TinyAsciiStrs for map keys, as we then don't have to
-// validate them as subtags on deserialization. Map lookup can be
-// done even if they are not valid tags (an invalid key will just
-// become inaccessible).
-type UnvalidatedLanguage = UnvalidatedTinyAsciiStr<3>;
-type UnvalidatedScript = UnvalidatedTinyAsciiStr<4>;
-type UnvalidatedRegion = UnvalidatedTinyAsciiStr<3>;
-type UnvalidatedVariant = UnvalidatedTinyAsciiStr<8>;
-type UnvalidatedSubdivision = UnvalidatedTinyAsciiStr<7>;
-type SemivalidatedSubdivision = TinyAsciiStr<7>;
-
-// LanguageIdentifier doesn't have an AsULE implementation, so we have
-// to store strs and parse when needed.
-type UnvalidatedLanguageIdentifier = str;
-type UnvalidatedLanguageIdentifierPair = StrStrPairVarULE;
-type UnvalidatedLanguageVariantsPair = LanguageStrStrPairVarULE;
-
-#[zerovec::make_varule(StrStrPairVarULE)]
-#[zerovec::derive(Debug)]
-#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
-#[cfg_attr(
- feature = "serde",
- derive(serde::Deserialize),
- zerovec::derive(Deserialize)
-)]
-#[cfg_attr(
- feature = "datagen",
- derive(serde::Serialize, databake::Bake),
- zerovec::derive(Serialize),
- databake(path = icu_locale::provider),
-)]
-/// A pair of strings with a [`EncodeAsVarULE`](zerovec::ule::EncodeAsVarULE) implementation.
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-pub struct StrStrPair<'a>(
- #[cfg_attr(feature = "serde", serde(borrow))] pub Cow<'a, str>,
- #[cfg_attr(feature = "serde", serde(borrow))] pub Cow<'a, str>,
-);
-
-#[zerovec::make_varule(LanguageStrStrPairVarULE)]
-#[zerovec::derive(Debug)]
-#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
-#[cfg_attr(
- feature = "serde",
- derive(serde::Deserialize),
- zerovec::derive(Deserialize)
-)]
-#[cfg_attr(
- feature = "datagen",
- derive(serde::Serialize, databake::Bake),
- zerovec::derive(Serialize),
- databake(path = icu_locale::provider),
-)]
-/// A triplet of strings with a [`EncodeAsVarULE`](zerovec::ule::EncodeAsVarULE) implementation.
-pub struct LanguageStrStrPair<'a>(
- pub Language,
- #[cfg_attr(feature = "serde", serde(borrow))] pub Cow<'a, str>,
- #[cfg_attr(feature = "serde", serde(borrow))] pub Cow<'a, str>,
-);
-
-#[derive(PartialEq, Clone, Default, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-#[yoke(prove_covariance_manually)]
-/// This alias data is used for locale canonicalization.
-///
-/// Each field defines a
-/// mapping from an old identifier to a new identifier, based upon the rules in
-/// from <https://unicode.org/reports/tr35/#LocaleId_Canonicalization>. The data
-/// is stored in sorted order, allowing for binary search to identify rules to
-/// apply. It is broken down into smaller vectors based upon some characteristic
-/// of the data, to help avoid unnecessary searches. For example, the `sgn_region`
-/// field contains aliases for sign language and region, so that it is not
-/// necessary to search the data unless the input is a sign language.
-///
-/// The algorithm in tr35 is not guaranteed to terminate on data other than what
-/// is currently in CLDR. For this reason, it is not a good idea to attempt to add
-/// or modify aliases for use in this structure.
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-// TODO: Use validated types as value types
-// Notice: improves the alignment of `language_variants` speeding up canonicalization by upon
-// to 40%. See https://github.com/unicode-org/icu4x/pull/2935 for details.
-#[derive(Debug)]
-pub struct Aliases<'data> {
- /// `[language, variant(-variant)*] -> [langid]`
- /// This is not a map as it's searched linearly according to the canonicalization rules.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_variants: VarZeroVec<'data, UnvalidatedLanguageVariantsPair>,
- /// `sgn-[region] -> [language]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub sgn_region: ZeroMap<'data, UnvalidatedRegion, Language>,
- /// `[language{2}] -> [langid]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_len2: ZeroMap<'data, UnvalidatedTinyAsciiStr<2>, UnvalidatedLanguageIdentifier>,
- /// `[language{3}] -> [langid]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_len3: ZeroMap<'data, UnvalidatedLanguage, UnvalidatedLanguageIdentifier>,
- /// `[langid] -> [langid]`
- /// This is not a map as it's searched linearly according to the canonicalization rules.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language: VarZeroVec<'data, UnvalidatedLanguageIdentifierPair>,
-
- /// `[script] -> [script]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub script: ZeroMap<'data, UnvalidatedScript, Script>,
-
- /// `[region{2}] -> [region]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub region_alpha: ZeroMap<'data, UnvalidatedTinyAsciiStr<2>, Region>,
- /// `[region{3}] -> [region]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub region_num: ZeroMap<'data, UnvalidatedRegion, Region>,
-
- /// `[region] -> [region]+`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub complex_region: ZeroMap<'data, UnvalidatedRegion, ZeroSlice<Region>>,
-
- /// `[variant] -> [variant]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub variant: ZeroMap<'data, UnvalidatedVariant, Variant>,
-
- /// `[value{7}] -> [value{7}]`
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub subdivision: ZeroMap<'data, UnvalidatedSubdivision, SemivalidatedSubdivision>,
-}
-
-icu_provider::data_struct!(
- Aliases<'_>,
- #[cfg(feature = "datagen")]
-);
-
-#[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-/// This likely subtags data is used for the minimize and maximize operations.
-///
-/// Each field defines a mapping from an old identifier to a new identifier,
-/// based upon the rules in
-/// <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
-///
-/// The data is stored is broken down into smaller vectors based upon the rules
-/// defined for the likely subtags maximize algorithm.
-///
-/// For efficiency, only the relevant part of the [`LanguageIdentifier`] is stored
-/// for searching and replacing. E.g., the `language_script` field is used to store
-/// rules for [`LanguageIdentifier`]s that contain a language and a script, but not a
-/// region.
-///
-/// This struct contains mappings when the input contains a language subtag.
-/// Also see [`LikelySubtagsForScriptRegion`].
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-#[yoke(prove_covariance_manually)]
-pub struct LikelySubtagsForLanguage<'data> {
- /// Language and script.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_script: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedScript), Region>,
- /// Language and region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_region: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedRegion), Script>,
- /// Just language.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language: ZeroMap<'data, UnvalidatedLanguage, (Script, Region)>,
- /// Undefined.
- pub und: (Language, Script, Region),
-}
-
-icu_provider::data_struct!(
- LikelySubtagsForLanguage<'_>,
- #[cfg(feature = "datagen")]
-);
-
-#[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-/// This likely subtags data is used for the minimize and maximize operations.
-///
-/// Each field defines a mapping from an old identifier to a new identifier,
-/// based upon the rules in
-/// <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
-///
-/// The data is stored is broken down into smaller vectors based upon the rules
-/// defined for the likely subtags maximize algorithm.
-///
-/// For efficiency, only the relevant part of the [`LanguageIdentifier`] is stored
-/// for searching and replacing. E.g., the `script_region` field is used to store
-/// rules for [`LanguageIdentifier`]s that contain a script and a region, but not a
-/// language.
-///
-/// This struct contains mappings when the input does not contain a language subtag.
-/// Also see [`LikelySubtagsForLanguage`].
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-#[yoke(prove_covariance_manually)]
-pub struct LikelySubtagsForScriptRegion<'data> {
- /// Script and region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub script_region: ZeroMap<'data, (UnvalidatedScript, UnvalidatedRegion), Language>,
- /// Just script.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub script: ZeroMap<'data, UnvalidatedScript, (Language, Region)>,
- /// Just region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub region: ZeroMap<'data, UnvalidatedRegion, (Language, Script)>,
-}
-
-icu_provider::data_struct!(
- LikelySubtagsForScriptRegion<'_>,
- #[cfg(feature = "datagen")]
-);
-
-#[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-/// This likely subtags data is used for full coverage of locales, including ones that
-/// don't otherwise have data in the Common Locale Data Repository (CLDR).
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-#[yoke(prove_covariance_manually)]
-pub struct LikelySubtagsExtended<'data> {
- /// Language and script.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_script: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedScript), Region>,
- /// Language and region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language_region: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedRegion), Script>,
- /// Just language.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub language: ZeroMap<'data, UnvalidatedLanguage, (Script, Region)>,
- /// Script and region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub script_region: ZeroMap<'data, (UnvalidatedScript, UnvalidatedRegion), Language>,
- /// Just script.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub script: ZeroMap<'data, UnvalidatedScript, (Language, Region)>,
- /// Just region.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub region: ZeroMap<'data, UnvalidatedRegion, (Language, Script)>,
-}
-
-icu_provider::data_struct!(
- LikelySubtagsExtended<'_>,
- #[cfg(feature = "datagen")]
-);
-
-/// Locale fallback rules derived from CLDR parent locales data.
-#[derive(Default, Clone, PartialEq, Debug, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-#[yoke(prove_covariance_manually)]
-pub struct Parents<'data> {
- /// Map from language identifier to language identifier, indicating that the language on the
- /// left should inherit from the language on the right.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub parents: ZeroMap<'data, PotentialUtf8, (Language, Option<Script>, Option<Region>)>,
-}
-
-icu_provider::data_struct!(
- Parents<'_>,
- #[cfg(feature = "datagen")]
-);
-
-#[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
-#[cfg_attr(feature = "datagen", databake(path = icu_locale::provider))]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-/// This directionality data is used to determine the script directionality of a locale.
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-#[yoke(prove_covariance_manually)]
-pub struct ScriptDirection<'data> {
- /// Scripts in right-to-left direction.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub rtl: ZeroVec<'data, UnvalidatedScript>,
- /// Scripts in left-to-right direction.
- #[cfg_attr(feature = "serde", serde(borrow))]
- pub ltr: ZeroVec<'data, UnvalidatedScript>,
-}
-
-icu_provider::data_struct!(
- ScriptDirection<'_>,
- #[cfg(feature = "datagen")]
-);
-
-/// A set of characters and strings which share a particular property value.
-///
-/// <div class="stab unstable">
-/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
-/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
-/// to be stable, their Rust representation might not be. Use with caution.
-/// </div>
-#[derive(Debug, Eq, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
-#[cfg_attr(
- feature = "datagen",
- derive(serde::Serialize, databake::Bake),
- databake(path = icu_locale::provider),
-)]
-#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
-pub struct ExemplarCharactersData<'data>(
- #[cfg_attr(feature = "serde", serde(borrow))] pub CodePointInversionListAndStringList<'data>,
-);
-
-icu_provider::data_struct!(
- ExemplarCharactersData<'_>,
- #[cfg(feature = "datagen")]
-);
diff --git a/deps/crates/vendor/icu_locale-v2/tests/fixtures/canonicalize.json b/deps/crates/vendor/icu_locale-v2/tests/fixtures/canonicalize.json
deleted file mode 100644
index 89e6cec052a..00000000000
--- a/deps/crates/vendor/icu_locale-v2/tests/fixtures/canonicalize.json
+++ /dev/null
@@ -1,444 +0,0 @@
-[
- {
- "input": "es",
- "output": "es"
- },
- {
- "input": "en-CA",
- "output": "en-CA"
- },
- {
- "input": "cka",
- "output": "cmr"
- },
- {
- "input": "cze",
- "output": "cs"
- },
- {
- "input": "gfx",
- "output": "vaj"
- },
- {
- "input": "sgn-BR",
- "output": "bzs"
- },
- {
- "input": "sgn-DD",
- "output": "gsg"
- },
- {
- "input": "tam",
- "output": "ta"
- },
- {
- "input": "und-aaland",
- "output": "und-AX"
- },
- {
- "input": "nob-bokmal",
- "output": "nb"
- },
- {
- "input": "no-nynorsk",
- "output": "nn"
- },
- {
- "input": "und-Qaai",
- "output": "und-Zinh"
- },
- {
- "input": "en-554",
- "output": "en-NZ"
- },
- {
- "input": "en-084",
- "output": "en-BZ"
- },
- {
- "input": "art-lojban",
- "output": "jbo"
- },
- {
- "input": "zh-guoyu",
- "output": "zh"
- },
- {
- "input": "zh-hakka",
- "output": "hak"
- },
- {
- "input": "zh-xiang",
- "output": "hsn"
- },
- {
- "input": "aar-x-private",
- "output": "aa-x-private"
- },
- {
- "input": "heb-x-private",
- "output": "he-x-private"
- },
- {
- "input": "ces",
- "output": "cs"
- },
- {
- "input": "hy-arevela",
- "output": "hy"
- },
- {
- "input": "hy-arevmda",
- "output": "hyw"
- },
- {
- "input": "cel-gaulish",
- "output": "xtg"
- },
- {
- "input": "ja-latn-hepburn-heploc",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-fonipa-hepburn-heploc",
- "output": "ja-Latn-alalc97-fonipa"
- },
- {
- "input": "und-Armn-SU",
- "output": "und-Armn-AM"
- },
- {
- "input": "sh",
- "output": "sr-Latn"
- },
- {
- "input": "sh-Cyrl",
- "output": "sr-Cyrl"
- },
- {
- "input": "cnr",
- "output": "sr-ME"
- },
- {
- "input": "cnr-BA",
- "output": "sr-BA"
- },
- {
- "input": "ru-SU",
- "output": "ru-RU"
- },
- {
- "input": "ru-810",
- "output": "ru-RU"
- },
- {
- "input": "en-SU",
- "output": "en-RU"
- },
- {
- "input": "en-810",
- "output": "en-RU"
- },
- {
- "input": "und-SU",
- "output": "und-RU"
- },
- {
- "input": "und-810",
- "output": "und-RU"
- },
- {
- "input": "und-Latn-SU",
- "output": "und-Latn-RU"
- },
- {
- "input": "und-Latn-810",
- "output": "und-Latn-RU"
- },
- {
- "input": "hy-SU",
- "output": "hy-AM"
- },
- {
- "input": "hy-810",
- "output": "hy-AM"
- },
- {
- "input": "und-Armn-SU",
- "output": "und-Armn-AM"
- },
- {
- "input": "und-Armn-810",
- "output": "und-Armn-AM"
- },
- {
- "input": "sr-CS",
- "output": "sr-RS"
- },
- {
- "input": "sr-Latn-CS",
- "output": "sr-Latn-RS"
- },
- {
- "input": "sr-Cyrl-CS",
- "output": "sr-Cyrl-RS"
- },
- {
- "input": "az-NT",
- "output": "az-SA"
- },
- {
- "input": "sl-t-sl-rozaj-biske-1994",
- "output": "sl-t-sl-1994-biske-rozaj"
- },
- {
- "input": "DE-T-M0-DIN-K0-QWERTZ",
- "output": "de-t-k0-qwertz-m0-din"
- },
- {
- "input": "en-t-m0-true",
- "output": "en-t-m0-true"
- },
- {
- "input": "en-t-iw",
- "output": "en-t-he"
- },
- {
- "input": "und-u-rg-no23",
- "output": "und-u-rg-no50"
- },
- {
- "input": "und-u-rg-cn11",
- "output": "und-u-rg-cnbj"
- },
- {
- "input": "und-u-rg-cz10a",
- "output": "und-u-rg-cz110"
- },
- {
- "input": "und-u-rg-fra",
- "output": "und-u-rg-frges"
- },
- {
- "input": "und-u-rg-frg",
- "output": "und-u-rg-frges"
- },
- {
- "input": "und-u-rg-lud",
- "output": "und-u-rg-lucl"
- },
- {
- "input": "und-NO-u-rg-no23",
- "output": "und-NO-u-rg-no50"
- },
- {
- "input": "und-CN-u-rg-cn11",
- "output": "und-CN-u-rg-cnbj"
- },
- {
- "input": "und-CZ-u-rg-cz10a",
- "output": "und-CZ-u-rg-cz110"
- },
- {
- "input": "und-FR-u-rg-fra",
- "output": "und-FR-u-rg-frges"
- },
- {
- "input": "und-FR-u-rg-frg",
- "output": "und-FR-u-rg-frges"
- },
- {
- "input": "und-u-rg-lud",
- "output": "und-u-rg-lucl"
- },
- {
- "input": "und-u-sd-no23",
- "output": "und-u-sd-no50"
- },
- {
- "input": "und-u-sd-cn11",
- "output": "und-u-sd-cnbj"
- },
- {
- "input": "und-u-sd-cz10a",
- "output": "und-u-sd-cz110"
- },
- {
- "input": "und-u-sd-fra",
- "output": "und-u-sd-frges"
- },
- {
- "input": "hy-arevela",
- "output": "hy"
- },
- {
- "input": "hy-Armn-arevela",
- "output": "hy-Armn"
- },
- {
- "input": "hy-AM-arevela",
- "output": "hy-AM"
- },
- {
- "input": "hy-arevela-fonipa",
- "output": "hy-fonipa"
- },
- {
- "input": "hy-fonipa-arevela",
- "output": "hy-fonipa"
- },
- {
- "input": "hy-arevmda",
- "output": "hyw"
- },
- {
- "input": "hy-Armn-arevmda",
- "output": "hyw-Armn"
- },
- {
- "input": "hy-AM-arevmda",
- "output": "hyw-AM"
- },
- {
- "input": "hy-arevmda-fonipa",
- "output": "hyw-fonipa"
- },
- {
- "input": "hy-fonipa-arevmda",
- "output": "hyw-fonipa"
- },
- {
- "input": "ja-Latn-hepburn-heploc",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-JP-hepburn-heploc",
- "output": "ja-Latn-JP-alalc97"
- },
- {
- "input": "sv-aaland",
- "output": "sv-AX"
- },
- {
- "input": "el-polytoni",
- "output": "el-polyton"
- },
- {
- "input": "ja-Latn-alalc97-hepburn-heploc",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-hepburn-alalc97-heploc",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-hepburn-heploc-alalc97",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-heploc-hepburn",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-heploc",
- "output": "ja-Latn-alalc97"
- },
- {
- "input": "ja-Latn-aaland-heploc",
- "output": "ja-Latn-AX-alalc97"
- },
- {
- "input": "ja-Latn-heploc-polytoni",
- "output": "ja-Latn-alalc97-polyton"
- },
- {
- "input": "und-Latn-t-und-hani-m0-names",
- "output": "und-Latn-t-und-hani-m0-prprname",
- "disabled": true
- },
- {
- "input": "und-u-ca-ethiopian-amete-alem",
- "output": "und-u-ca-ethioaa",
- "disabled": true
- },
- {
- "input": "und-u-ca-islamicc",
- "output": "und-u-ca-islamic-civil",
- "disabled": true
- },
- {
- "input": "und-u-ks-primary",
- "output": "und-u-ks-level1",
- "disabled": true
- },
- {
- "input": "und-u-ks-tertiary",
- "output": "und-u-ks-level3",
- "disabled": true
- },
- {
- "input": "und-u-ms-imperial",
- "output": "und-u-ms-uksystem",
- "disabled": true
- },
- {
- "input": "und-u-kb-yes",
- "output": "und-u-kb",
- "disabled": true
- },
- {
- "input": "und-u-kc-yes",
- "output": "und-u-k",
- "disabled": true
- },
- {
- "input": "und-u-kh-yes",
- "output": "und-u-kh",
- "disabled": true
- },
- {
- "input": "und-u-kk-yes",
- "output": "und-u-kk",
- "disabled": true
- },
- {
- "input": "und-u-kn-yes",
- "output": "und-u-kn",
- "disabled": true
- },
- {
- "input": "und-u-ka-yes",
- "output": "und-u-ka-yes",
- "disabled": true
- },
- {
- "input": "und-u-tz-cnckg",
- "output": "und-u-tz-cnsha",
- "disabled": true
- },
- {
- "input": "und-u-tz-eire",
- "output": "und-u-tz-iedub",
- "disabled": true
- },
- {
- "input": "und-u-tz-est",
- "output": "und-u-tz-utcw05",
- "disabled": true
- },
- {
- "input": "und-u-tz-gmt0",
- "output": "und-u-tz-gmt",
- "disabled": true
- },
- {
- "input": "und-u-tz-uct",
- "output": "und-u-tz-utc",
- "disabled": true
- },
- {
- "input": "und-u-tz-zulu",
- "output": "und-u-tz-utc",
- "disabled": true
- }
-]
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale-v2/tests/fixtures/maximize.json b/deps/crates/vendor/icu_locale-v2/tests/fixtures/maximize.json
deleted file mode 100644
index 85f551735a5..00000000000
--- a/deps/crates/vendor/icu_locale-v2/tests/fixtures/maximize.json
+++ /dev/null
@@ -1,214 +0,0 @@
-[
- {
- "input": "en-US",
- "output": "en-Latn-US"
- },
- {
- "input": "en-GB",
- "output": "en-Latn-GB"
- },
- {
- "input": "es-AR",
- "output": "es-Latn-AR"
- },
- {
- "input": "it",
- "output": "it-Latn-IT"
- },
- {
- "input": "zh-Hans-CN",
- "output": "zh-Hans-CN"
- },
- {
- "input": "de-AT",
- "output": "de-Latn-AT"
- },
- {
- "input": "pl",
- "output": "pl-Latn-PL"
- },
- {
- "input": "fr-FR",
- "output": "fr-Latn-FR"
- },
- {
- "input": "de-AT",
- "output": "de-Latn-AT"
- },
- {
- "input": "sr-Cyrl-SR",
- "output": "sr-Cyrl-SR"
- },
- {
- "input": "nb-NO",
- "output": "nb-Latn-NO"
- },
- {
- "input": "fr-FR",
- "output": "fr-Latn-FR"
- },
- {
- "input": "mk",
- "output": "mk-Cyrl-MK"
- },
- {
- "input": "uk",
- "output": "uk-Cyrl-UA"
- },
- {
- "input": "und-PL",
- "output": "pl-Latn-PL"
- },
- {
- "input": "und-Latn-AM",
- "output": "ku-Latn-AM"
- },
- {
- "input": "ug-Cyrl",
- "output": "ug-Cyrl-KZ"
- },
- {
- "input": "sr-ME",
- "output": "sr-Latn-ME"
- },
- {
- "input": "mn-Mong",
- "output": "mn-Mong-CN"
- },
- {
- "input": "lif-Limb",
- "output": "lif-Limb-IN"
- },
- {
- "input": "gan",
- "output": "gan-Hans-CN"
- },
- {
- "input": "zh-Hant",
- "output": "zh-Hant-TW"
- },
- {
- "input": "yue-Hans",
- "output": "yue-Hans-CN"
- },
- {
- "input": "unr",
- "output": "unr-Beng-IN"
- },
- {
- "input": "unr-Deva",
- "output": "unr-Deva-NP"
- },
- {
- "input": "und-Thai-CN",
- "output": "lcp-Thai-CN"
- },
- {
- "input": "ug-Cyrl",
- "output": "ug-Cyrl-KZ"
- },
- {
- "input": "en-Latn-DE",
- "output": "en-Latn-DE"
- },
- {
- "input": "pl-FR",
- "output": "pl-Latn-FR"
- },
- {
- "input": "de-CH",
- "output": "de-Latn-CH"
- },
- {
- "input": "tuq",
- "output": "tuq-Latn-TD"
- },
- {
- "input": "sr-ME",
- "output": "sr-Latn-ME"
- },
- {
- "input": "ng",
- "output": "ng-Latn-NA"
- },
- {
- "input": "klx",
- "output": "klx-Latn-PG"
- },
- {
- "input": "kk-Arab",
- "output": "kk-Arab-CN"
- },
- {
- "input": "en-Cyrl",
- "output": "en-Cyrl-US"
- },
- {
- "input": "und-Cyrl-UK",
- "output": "ru-Cyrl-UK"
- },
- {
- "input": "und-Arab",
- "output": "ar-Arab-EG"
- },
- {
- "input": "und-Arab-FO",
- "output": "ar-Arab-FO"
- },
- {
- "input": "zh-TW",
- "output": "zh-Hant-TW"
- },
- {
- "input": "und",
- "output": "en-Latn-US"
- },
- {
- "input": "zh-SG",
- "output": "zh-Hans-SG"
- },
- {
- "input": "und-TW",
- "output": "zh-Hant-TW"
- },
- {
- "input": "zh-hant-u-nu-Chinese-hc-h23",
- "output": "zh-Hant-TW-u-hc-h23-nu-chinese"
- },
- {
- "input": "und-001",
- "output": "en-Latn-001"
- },
- {
- "input": "und-150",
- "output": "en-Latn-150"
- },
- {
- "input": "und-419",
- "output": "es-Latn-419"
- },
- {
- "input": "und-latn-AQ",
- "output": "en-Latn-AQ"
- },
- {
- "input": "und-Arab-AF",
- "output": "fa-Arab-AF"
- },
- {
- "input": "qaa",
- "output": "qaa"
- },
- {
- "input": "qaa-CH",
- "output": "qaa-CH"
- },
- {
- "input": "qaa-Cyrl",
- "output": "qaa-Cyrl"
- },
- {
- "input": "qaa-Cyrl-CH",
- "output": "qaa-Cyrl-CH"
- }
-]
diff --git a/deps/crates/vendor/icu_locale-v2/tests/fixtures/minimize.json b/deps/crates/vendor/icu_locale-v2/tests/fixtures/minimize.json
deleted file mode 100644
index 8da4d077934..00000000000
--- a/deps/crates/vendor/icu_locale-v2/tests/fixtures/minimize.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "input": "zh-Hant",
- "output": "zh-TW"
- },
- {
- "input": "en-Latn-US",
- "output": "en"
- },
- {
- "input": "en",
- "output": "en"
- },
- {
- "input": "und",
- "output": "en"
- },
- {
- "input": "es-ES-preeuro",
- "output": "es-preeuro"
- },
- {
- "input": "zh-Hant-TW-u-hc-h23-nu-chinese",
- "output": "zh-TW-u-hc-h23-nu-chinese"
- }
-]
diff --git a/deps/crates/vendor/icu_locale-v2/tests/fixtures/mod.rs b/deps/crates/vendor/icu_locale-v2/tests/fixtures/mod.rs
deleted file mode 100644
index 071a039f7d3..00000000000
--- a/deps/crates/vendor/icu_locale-v2/tests/fixtures/mod.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-use serde::Deserialize;
-
-#[derive(Deserialize, Debug)]
-pub struct CanonicalizationTest {
- pub input: String,
- pub output: String,
- pub disabled: Option<bool>,
-}
diff --git a/deps/crates/vendor/icu_locale-v2/tests/locale_canonicalizer.rs b/deps/crates/vendor/icu_locale-v2/tests/locale_canonicalizer.rs
deleted file mode 100644
index b5dceed8556..00000000000
--- a/deps/crates/vendor/icu_locale-v2/tests/locale_canonicalizer.rs
+++ /dev/null
@@ -1,81 +0,0 @@
-// This file is part of ICU4X. For terms of use, please see the file
-// called LICENSE at the top level of the ICU4X source tree
-// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-
-mod fixtures;
-
-use icu_locale::{LocaleCanonicalizer, LocaleExpander, TransformResult};
-use icu_locale_core::Locale;
-use writeable::assert_writeable_eq;
-
-#[test]
-fn test_maximize() {
- let lc = LocaleExpander::new_extended();
-
- let testcases: Vec<fixtures::CanonicalizationTest> =
- serde_json::from_str(include_str!("fixtures/maximize.json"))
- .expect("Failed to read a fixture");
-
- for case in testcases {
- if let Some(true) = case.disabled {
- continue;
- }
- let mut locale: Locale = case.input.parse().unwrap();
- let unmodified = locale.clone();
- let result = lc.maximize(&mut locale.id);
- assert_writeable_eq!(locale, case.output, "{:?}", case);
- if result == TransformResult::Modified {
- assert_ne!(locale, unmodified, "{case:?}");
- } else {
- assert_eq!(locale, unmodified, "{case:?}");
- }
- }
-}
-
-#[test]
-fn test_minimize() {
- let lc = LocaleExpander::new_extended();
-
- let testcases: Vec<fixtures::CanonicalizationTest> =
- serde_json::from_str(include_str!("fixtures/minimize.json"))
- .expect("Failed to read a fixture");
-
- for case in testcases {
- if let Some(true) = case.disabled {
- continue;
- }
- let mut locale: Locale = case.input.parse().unwrap();
- let unmodified = locale.clone();
- let result = lc.minimize(&mut locale.id);
- assert_writeable_eq!(locale, case.output, "{:?}", case);
- if result == TransformResult::Modified {
- assert_ne!(locale, unmodified, "{case:?}");
- } else {
- assert_eq!(locale, unmodified, "{case:?}");
- }
- }
-}
-
-#[test]
-fn test_canonicalize() {
- let lc = LocaleCanonicalizer::new_extended();
-
- let testcases: Vec<fixtures::CanonicalizationTest> =
- serde_json::from_str(include_str!("fixtures/canonicalize.json"))
- .expect("Failed to read a fixture");
-
- for case in testcases {
- if let Some(true) = case.disabled {
- continue;
- }
- let mut locale: Locale = case.input.parse().expect("Unable to parse input");
- let unmodified = locale.clone();
- let result = lc.canonicalize(&mut locale);
- assert_writeable_eq!(locale, case.output, "{:?}", case);
- if result == TransformResult::Modified {
- assert_ne!(locale, unmodified, "{case:?}");
- } else {
- assert_eq!(locale, unmodified, "{case:?}");
- }
- }
-}
diff --git a/deps/crates/vendor/icu_locale_core-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_locale_core-v2/.cargo_vcs_info.json
index 1cd82148c31..8ca0e7bb3ca 100644
--- a/deps/crates/vendor/icu_locale_core-v2/.cargo_vcs_info.json
+++ b/deps/crates/vendor/icu_locale_core-v2/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "a14f2dad852be26bad277ae704abf27a15cbfed1"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "components/locale_core"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale_core-v2/Cargo.lock b/deps/crates/vendor/icu_locale_core-v2/Cargo.lock
index 5b6dc353986..aecd4e2ebf9 100644
--- a/deps/crates/vendor/icu_locale_core-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_locale_core-v2/Cargo.lock
@@ -43,9 +43,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -76,18 +76,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -95,9 +95,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -146,9 +146,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -156,18 +156,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -188,13 +188,13 @@ dependencies = [
[[package]]
name = "databake-derive"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
+checksum = "495503291b258422ea2bb9863d9f4e31eadbc5bcbdbe8b721769fa2c98dc4d41"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
@@ -206,14 +206,14 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "either"
-version = "1.17.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "embedded-io"
@@ -239,9 +239,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "iai"
@@ -251,7 +251,7 @@ checksum = "71a816c97c42258aa5834d07590b718b4c9a598944cd39a52dc25b351185d678"
[[package]]
name = "icu_locale_core"
-version = "2.3.0"
+version = "2.4.0"
dependencies = [
"criterion",
"databake",
@@ -305,9 +305,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "litemap"
@@ -384,9 +384,9 @@ dependencies = [
[[package]]
name = "potential_utf"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
[[package]]
name = "proc-macro2"
@@ -497,14 +497,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -526,9 +526,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -537,13 +537,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
]
[[package]]
@@ -563,14 +563,14 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
dependencies = [
"displaydoc",
"serde_core",
@@ -589,9 +589,9 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
@@ -696,9 +696,9 @@ checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
[[package]]
name = "zerovec"
-version = "0.11.7"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94b5c6b5976d66c1d703c4fd17d3f5e43c8cedaacf604961b171adc7130896d8"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"serde",
"zerofrom",
diff --git a/deps/crates/vendor/icu_locale_core-v2/Cargo.toml b/deps/crates/vendor/icu_locale_core-v2/Cargo.toml
index 9a6383ffd51..68bba1b4986 100644
--- a/deps/crates/vendor/icu_locale_core-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_locale_core-v2/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2024"
rust-version = "1.88"
name = "icu_locale_core"
-version = "2.3.0"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -131,7 +131,7 @@ optional = true
default-features = false
[dependencies.tinystr]
-version = "0.8.4"
+version = "0.8.5"
default-features = false
[dependencies.writeable]
@@ -139,7 +139,7 @@ version = "0.6.4"
default-features = false
[dependencies.zerovec]
-version = "0.11.7"
+version = "0.11.9"
optional = true
default-features = false
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/extensions/private/other.rs b/deps/crates/vendor/icu_locale_core-v2/src/extensions/private/other.rs
index b3d8e074f15..0c039c773e5 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/extensions/private/other.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/extensions/private/other.rs
@@ -13,8 +13,7 @@ impl_tinystr_subtag!(
/// ```
/// use icu::locale::extensions::private::Subtag;
///
- /// let subtag1: Subtag = "Foo".parse()
- /// .expect("Failed to parse a Subtag.");
+ /// let subtag1: Subtag = "Foo".parse().expect("Failed to parse a Subtag.");
///
/// assert_eq!(subtag1.as_str(), "foo");
/// ```
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/attribute.rs b/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/attribute.rs
index 8430fbbeeae..0ab8151f75c 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/attribute.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/attribute.rs
@@ -12,7 +12,7 @@ impl_tinystr_subtag!(
/// # Examples
///
/// ```
- /// use icu::locale::extensions::unicode::{attribute, Attribute};
+ /// use icu::locale::extensions::unicode::{Attribute, attribute};
///
/// let attr: Attribute =
/// "buddhist".parse().expect("Failed to parse an Attribute.");
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/subdivision.rs b/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/subdivision.rs
index b8f98eea480..8d149b662a9 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/subdivision.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/extensions/unicode/subdivision.rs
@@ -25,7 +25,9 @@ impl_tinystr_subtag!(
/// # Examples
///
/// ```
- /// use icu::locale::extensions::unicode::{subdivision_suffix, SubdivisionSuffix};
+ /// use icu::locale::extensions::unicode::{
+ /// SubdivisionSuffix, subdivision_suffix,
+ /// };
///
/// let ss: SubdivisionSuffix =
/// "sct".parse().expect("Failed to parse a SubdivisionSuffix.");
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/langid.rs b/deps/crates/vendor/icu_locale_core-v2/src/langid.rs
index e0cf28ea792..fbbe5b21dc2 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/langid.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/langid.rs
@@ -362,7 +362,7 @@ impl LanguageIdentifier {
/// }
/// }
///
- /// let _: BTreeSet<LanguageIdentifierTotalOrd> = unimplemented!();
+ /// BTreeSet::<LanguageIdentifierTotalOrd>::new();
/// ```
///
/// [`BTreeSet`]: alloc::collections::BTreeSet
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/locale.rs b/deps/crates/vendor/icu_locale_core-v2/src/locale.rs
index edfee9e1715..1d6a27b174d 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/locale.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/locale.rs
@@ -367,7 +367,7 @@ impl Locale {
/// }
/// }
///
- /// let _: BTreeSet<LocaleTotalOrd> = unimplemented!();
+ /// BTreeSet::<LocaleTotalOrd>::new();
/// ```
///
/// [`BTreeSet`]: alloc::collections::BTreeSet
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/calendar.rs b/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/calendar.rs
index 2f1bacdc82b..aeea6daf7a0 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/calendar.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/calendar.rs
@@ -22,7 +22,8 @@ enum_keyword!(
Civil,
/// Hijri calendar, Saudi Arabia sighting
Rgsa
-});
+ }
+);
/// Handles aliases present in `v`. If found, returns a [`CalendarAlgorithm`], else returns None
fn handle_aliases(v: &Value) -> Option<CalendarAlgorithm> {
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/dictionary_break.rs b/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/dictionary_break.rs
index 91556b8e106..c327292aff4 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/dictionary_break.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/preferences/extensions/unicode/keywords/dictionary_break.rs
@@ -29,7 +29,5 @@ struct_keyword!(
.collect::<Result<_, _>>()
.map(Self)
},
- |input: &DictionaryBreakScriptExclusions| {
- input.0.iter().copied().map(Into::into).collect()
- }
+ |input: &DictionaryBreakScriptExclusions| { input.0.iter().copied().map(Into::into).collect() }
);
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/preferences/mod.rs b/deps/crates/vendor/icu_locale_core-v2/src/preferences/mod.rs
index 2791f37e4e9..59848f19919 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/preferences/mod.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/preferences/mod.rs
@@ -91,8 +91,8 @@
//! };
//! use icu::locale::locale;
//!
-//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> () { () }
-//! # fn load_data(locale: ()) -> MyData { MyData {} }
+//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> icu::locale::DataLocale { icu::locale::DataLocale::default() }
+//! # fn load_data(locale: icu::locale::DataLocale) -> MyData { MyData {} }
//! # struct MyData {}
//! define_preferences!(
//! /// Name of the preferences struct
@@ -127,8 +127,9 @@
//! # extensions::unicode::keywords::HourCycle,
//! # };
//! # use icu::locale::locale;
-//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> () { () }
-//! # fn load_data(locale: ()) -> MyData { MyData {} }
+//! # struct DataLocale;
+//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> DataLocale { DataLocale }
+//! # fn load_data(locale: DataLocale) -> MyData { MyData {} }
//! # struct MyData {}
//! # define_preferences!(
//! # /// Name of the preferences struct
@@ -162,8 +163,9 @@
//! # extensions::unicode::keywords::HourCycle,
//! # };
//! # use icu::locale::locale;
-//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> () { () }
-//! # fn load_data(locale: ()) -> MyData { MyData {} }
+//! # struct DataLocale;
+//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> DataLocale { DataLocale }
+//! # fn load_data(locale: DataLocale) -> MyData { MyData {} }
//! # struct MyData {}
//! # define_preferences!(
//! # /// Name of the preferences struct
@@ -208,8 +210,9 @@
//! # extensions::unicode::keywords::HourCycle,
//! # };
//! # use icu::locale::locale;
-//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> () { () }
-//! # fn load_data(locale: ()) -> MyData { MyData {} }
+//! # struct DataLocale;
+//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> DataLocale { DataLocale }
+//! # fn load_data(locale: DataLocale) -> MyData { MyData {} }
//! # struct MyData {}
//! # define_preferences!(
//! # /// Name of the preferences struct
@@ -263,8 +266,9 @@
//! # extensions::unicode::keywords::HourCycle,
//! # };
//! # use icu::locale::locale;
-//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> () { () }
-//! # fn load_data(locale: ()) -> MyData { MyData {} }
+//! # struct DataLocale;
+//! # fn get_data_locale_from_prefs(input: ExampleComponentPreferences) -> DataLocale { DataLocale }
+//! # fn load_data(locale: DataLocale) -> MyData { MyData {} }
//! # struct MyData {}
//! # define_preferences!(
//! # /// Name of the preferences struct
diff --git a/deps/crates/vendor/icu_locale_core-v2/src/subtags/mod.rs b/deps/crates/vendor/icu_locale_core-v2/src/subtags/mod.rs
index 31c72f687ab..c4d5a503c0e 100644
--- a/deps/crates/vendor/icu_locale_core-v2/src/subtags/mod.rs
+++ b/deps/crates/vendor/icu_locale_core-v2/src/subtags/mod.rs
@@ -72,8 +72,7 @@ impl_tinystr_subtag!(
/// ```
/// use icu::locale::subtags::Subtag;
///
- /// let subtag1: Subtag = "Foo".parse()
- /// .expect("Failed to parse a Subtag.");
+ /// let subtag1: Subtag = "Foo".parse().expect("Failed to parse a Subtag.");
///
/// assert_eq!(subtag1.as_str(), "foo");
/// ```
diff --git a/deps/crates/vendor/icu_locale_data-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_locale_data-v2/.cargo_vcs_info.json
deleted file mode 100644
index 80a70c27306..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
- },
- "path_in_vcs": "provider/data/locale"
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale_data-v2/LICENSE b/deps/crates/vendor/icu_locale_data-v2/LICENSE
deleted file mode 100644
index c9be6012c53..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/LICENSE
+++ /dev/null
@@ -1,46 +0,0 @@
-UNICODE LICENSE V3
-
-COPYRIGHT AND PERMISSION NOTICE
-
-Copyright © 2020-2024 Unicode, Inc.
-
-NOTICE TO USER: Carefully read the following legal agreement. BY
-DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
-SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
-TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
-DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of data files and any associated documentation (the "Data Files") or
-software and any associated documentation (the "Software") to deal in the
-Data Files or Software without restriction, including without limitation
-the rights to use, copy, modify, merge, publish, distribute, and/or sell
-copies of the Data Files or Software, and to permit persons to whom the
-Data Files or Software are furnished to do so, provided that either (a)
-this copyright and permission notice appear with all copies of the Data
-Files or Software, or (b) this copyright and permission notice appear in
-associated Documentation.
-
-THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
-KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
-THIRD PARTY RIGHTS.
-
-IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
-BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
-FILES OR SOFTWARE.
-
-Except as contained in this notice, the name of a copyright holder shall
-not be used in advertising or otherwise to promote the sale, use or other
-dealings in these Data Files or Software without prior written
-authorization of the copyright holder.
-
-SPDX-License-Identifier: Unicode-3.0
-
-—
-
-Portions of ICU4X may have been adapted from ICU4C and/or ICU4J.
-ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.
diff --git a/deps/crates/vendor/icu_locale_data-v2/OWNERS b/deps/crates/vendor/icu_locale_data-v2/OWNERS
deleted file mode 100644
index b09cd849229..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-# This file has been auto-generated by the `gnrt` tool.
-file://third_party/rust/icu_locale_data/OWNERS
diff --git a/deps/crates/vendor/icu_locale_data-v2/README.md b/deps/crates/vendor/icu_locale_data-v2/README.md
deleted file mode 100644
index eb237e9ab1c..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# icu_locale_data [](https://crates.io/crates/icu_locale_data)
-
-<!-- cargo-rdme start -->
-
-Data for the `icu_locale` crate
-
-This data was generated with CLDR version 48.2.0, ICU version release-78.1rc, and
-LSTM segmenter version v0.1.0.
-
-<!-- cargo-rdme end -->
-
-## More Information
-
-For more information on development, authorship, contributing etc. please visit [`ICU4X home page`](https://github.com/unicode-org/icu4x).
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_aliases_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_aliases_v1.rs.data
deleted file mode 100644
index f8633043022..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_aliases_v1.rs.data
+++ /dev/null
@@ -1,119 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleAliasesV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 8474B[^1] for the singleton data struct
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_aliases_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- #[doc(hidden)]
- pub const SINGLETON_LOCALE_ALIASES_V1: &'static <icu::locale::provider::LocaleAliasesV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::Aliases {
- language_variants: unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x13\0\r\0\x1B\0*\09\0F\0T\0r\0~\0\x8B\0\x98\0\xA9\0\xB8\0\xC7\0\xD5\0\xE2\0\xF0\0\xFF\0\x0C\x01aa\0\x05\0saahossyart\x06\0lojbanjbocel\x07\0gaulishxtghy\0\x07\0arevmdahywno\0\x06\0bokmalnbno\0\x07\0nynorsknnund\x0E\0hepburn-heplocund-alalc97zh\0\x05\0guoyuzhzh\0\x05\0hakkahakzh\0\x05\0xianghsnund\x06\0aalandund-AXund\x07\0arevelaundund\x07\0arevmdaundund\x06\0bokmalundund\x05\0hakkaundund\x06\0lojbanundund\x07\0nynorskundund\x05\0saahoundund\x05\0xiangund") },
- sgn_region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"BR\0CO\0DE\0DK\0ES\0FR\0GB\0GR\0IE\0IT\0JP\0MX\0NI\0NL\0NO\0PT\0SE\0US\0ZA\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"bzscsngsgdslsspfslbfigssisgisejslmfsncsdsensipsrswlasesfs") })
- },
- language_len2: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"bhiniwjijwmoshtltw") }, unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x03\0\x05\0\x07\0\t\0\x0B\0\r\0\x14\0\x17\0bhoidheyijvrosr-Latnfilak") })
- },
- language_len3: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"aamaarabkadpafragpaisajpajtajuakaalbalsamharaarbargarmasdasmaueavaaveaymayrayxazeazjbakbambaqbazbccbclbelbenbgmbhkbicbihbisbjdbjqbkbblgbodbosbrebtbbulburbxkbxrcatccqceschachechichuchvcjrckacldclscmkcmncnrcorcoscoycqucrecwdcymczedafdandapdekdeudgodhddikdiqditdivdjldkldrhdrrdrwduddujdutdwldzoekkellelpemkengepoeskesteusewefaofasfatfijfinfrafrefryfucfulgavgazgbcgbogeogergfxggnggoggrgioglagleglggliglvgnogomgregrngtiguggujguvgyahathauhbshdnheahebherhimhinhmohrrhrvhunhyeibiiboiceidoiiiikeikuileillilwinaindipkislitaizijarjavjegjpnkalkankaskatkaukazkdvkgckgdkghkgmkhkkhmkikkinkirkmrknckngkojkomkonkorkppkpvkrmktrkuakurkvskwqkxekxlkzhkzjkztlaklaolatlavlbklegliilimlinlitllolmmltzlubluglvsmacmahmalmaomarmaymegmgxmhrmkdmlgmltmntmofmolmonmrimsamstmupmwdmwjmyamydmytnadnaunavnbfnblnbxncpndendonepnldnlnnlrnnonnsnnxnobnomnoonornpintentsnxunyaociojgojioriormoryossounpanpatpbupcrperpesplipltpmcpmkpmupnbpolporppapprprpprsprypuspuzquequzrmrrmyrohronrumrunrussagsansapscasccscrsglsinskkslksloslvsmdsmesmosnasnbsndsomsotspaspysqisrcsrdsrpsswsulsumsunswaswcsweswhszdtahtamtattduteltggtgktglthathcthwthxtibtidtietirtkktlwtmktmptnetnftontpwtsftsntsottqtukturtwiuigukrumuunpuokurduzbuznvenvievolwelwgwwitwiwwlnwolxbaxhoxiaxkhxpexrqxsjxslxssybdyddyenyidyiyymaymtyoryosyuuzaizhazhozirzkbzsmzulzyb") }, unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\xAA\x01\x03\0\x05\0\x07\0\t\0\x0B\0\x0E\0\x11\0\x14\0\x17\0\x1A\0\x1C\0\x1E\0 \0\"\0$\0&\0(\0*\0-\0/\x002\x004\x006\08\0:\0=\0?\0A\0C\0E\0G\0J\0M\0P\0R\0T\0W\0Z\0]\0`\0b\0e\0h\0k\0n\0p\0r\0t\0w\0y\0{\0~\0\x81\0\x83\0\x86\0\x88\0\x8A\0\x8C\0\x8E\0\x90\0\x92\0\x95\0\x98\0\x9B\0\x9D\0\xA0\0\xA2\0\xA7\0\xA9\0\xAB\0\xAE\0\xB1\0\xB3\0\xB5\0\xB7\0\xB9\0\xBC\0\xBE\0\xC1\0\xC4\0\xC6\0\xC9\0\xCC\0\xCF\0\xD2\0\xD5\0\xD7\0\xDA\0\xDD\0\xDF\0\xE2\0\xE7\0\xEA\0\xED\0\xEF\0\xF2\0\xF4\0\xF6\0\xF8\0\xFB\0\xFE\0\0\x01\x02\x01\x04\x01\x06\x01\x08\x01\n\x01\x0C\x01\x0E\x01\x10\x01\x12\x01\x14\x01\x16\x01\x18\x01\x1A\x01\x1C\x01\x1E\x01!\x01#\x01&\x01)\x01+\x01-\x010\x013\x016\x019\x01<\x01>\x01@\x01B\x01E\x01G\x01J\x01M\x01O\x01Q\x01T\x01V\x01X\x01[\x01^\x01`\x01b\x01i\x01l\x01o\x01q\x01s\x01v\x01x\x01z\x01}\x01\x7F\x01\x81\x01\x83\x01\x86\x01\x88\x01\x8A\x01\x8C\x01\x8E\x01\x90\x01\x92\x01\x94\x01\x97\x01\x9A\x01\x9C\x01\x9E\x01\xA0\x01\xA2\x01\xA4\x01\xA7\x01\xAA\x01\xAC\x01\xAF\x01\xB1\x01\xB3\x01\xB5\x01\xB7\x01\xB9\x01\xBB\x01\xBD\x01\xC0\x01\xC3\x01\xC6\x01\xC9\x01\xCC\x01\xCE\x01\xD0\x01\xD2\x01\xD4\x01\xD6\x01\xD8\x01\xDA\x01\xDC\x01\xDF\x01\xE1\x01\xE3\x01\xE5\x01\xE8\x01\xEA\x01\xED\x01\xF0\x01\xF2\x01\xF4\x01\xF7\x01\xFA\x01\xFD\x01\0\x02\x03\x02\x06\x02\t\x02\x0C\x02\x0E\x02\x10\x02\x12\x02\x15\x02\x18\x02\x1B\x02\x1D\x02\x1F\x02!\x02$\x02'\x02)\x02+\x02-\x02/\x021\x023\x025\x027\x029\x02;\x02>\x02A\x02D\x02F\x02H\x02J\x02M\x02P\x02R\x02T\x02V\x02X\x02[\x02^\x02a\x02d\x02f\x02i\x02l\x02o\x02q\x02s\x02v\x02x\x02{\x02~\x02\x80\x02\x82\x02\x84\x02\x86\x02\x89\x02\x8C\x02\x8E\x02\x91\x02\x94\x02\x96\x02\x99\x02\x9C\x02\x9E\x02\xA0\x02\xA3\x02\xA6\x02\xA9\x02\xAB\x02\xAD\x02\xAF\x02\xB1\x02\xB3\x02\xB5\x02\xB7\x02\xB9\x02\xBC\x02\xBE\x02\xC1\x02\xC3\x02\xC6\x02\xC8\x02\xCA\x02\xCC\x02\xCE\x02\xD1\x02\xD4\x02\xD7\x02\xDA\x02\xDC\x02\xDE\x02\xE1\x02\xE4\x02\xE6\x02\xEB\x02\xEE\x02\xF0\x02\xF3\x02\xF5\x02\xF7\x02\xFA\x02\xFD\x02\xFF\x02\x01\x03\x03\x03\x05\x03\x07\x03\t\x03\x0B\x03\x0E\x03\x11\x03\x13\x03\x15\x03\x18\x03\x1A\x03\x1D\x03\x1F\x03!\x03#\x03&\x03(\x03*\x03,\x03/\x031\x033\x035\x037\x03:\x03<\x03>\x03@\x03B\x03D\x03G\x03J\x03L\x03N\x03S\x03U\x03W\x03Z\x03\\\x03^\x03`\x03c\x03e\x03h\x03j\x03m\x03o\x03r\x03u\x03x\x03z\x03}\x03\x80\x03\x82\x03\x85\x03\x88\x03\x8B\x03\x8E\x03\x91\x03\x96\x03\x98\x03\x9B\x03\x9E\x03\xA0\x03\xA2\x03\xA5\x03\xA7\x03\xA9\x03\xAB\x03\xAD\x03\xAF\x03\xB2\x03\xB5\x03\xB8\x03\xBA\x03\xBC\x03\xBE\x03\xC0\x03\xC2\x03\xC4\x03\xC6\x03\xC9\x03\xCC\x03\xCF\x03\xD1\x03\xD3\x03\xD6\x03\xD8\x03\xDB\x03\xDE\x03\xE1\x03\xE4\x03\xE7\x03\xEA\x03\xED\x03\xF0\x03\xF2\x03\xF5\x03\xF7\x03\xFA\x03\xFD\x03\0\x04\x02\x04\x05\x04\x08\x04\x0B\x04\r\x04\x0F\x04\x12\x04\x15\x04\x17\x04\x19\x04aasaaabdzafapfamiapcaebjrbaksqsqamararanhysnzasktzavaeayaynunazazbabmeunvobalbikbebnbcgfblbirbhobidrlbzcebkibabobsbrbebbgmyluybuacarkicschcezhcucvmomcmrsyrsaxchzhsr-MEkwcopijquhcrcrcycsdnjdanjzsqmdedoimwrdinzzadifdvdzeaqdmnkzkfa-AFuthdwunldbtdzetelamqmaneneoiketeueefofaakfjfifrfrfyffffdevomwnygrbkadevajgvresggtuaougdgaglkzkgvgonkokelgnnycgnguduzgbahthasr-Latnhaihmnhehzsrxhihojalhrhuhyopaigisioiiiuiuieilmgaliaidikisitezajgkjvoybjaklknkskakrkkzkdtdfncqkmlplumnkmkirwkykukrkgkwvkvkgkojkmkvbmfdtpkjkugdjyamtvdkrudgldtpdtpksplolalvbncenlraqlilnltngtrmxlblulglvmkmhmlmimrmscirjbkchmmkmgmtwnnxntromnmimsmryrajdmwvajmyaogmryxnynanvnrunrgllkdzndngnenlazdnrknnnbrngvnbcbrdtdnoneekopijbppnyocojojoromorosvajpakxrpsadxfafapimghuwcrrphrlahplptbfylcqgufa-AFprtpspubququemxromrmrorornrusgsaaqthlesrhrisksioybskskslkmbsesmsnibasdsostesklnsqscscsrsssgdulwsuswsw-CDsvswumitytattdtptebjptgfilthtpoolaoybboitdrastitwmweotdgtyjkakfa-AFtotpntajtntstmhtktrakugukdelwroemauruzuzvevivocywgbnolnwowawocaxxhacnwawkpedmwsujdenzkorkiyiynqyiyrmlrrmtmyozomyugzapzazhscvkjhmszuza") })
- },
- language: zerovec::vecs::VarZeroVec16::new(),
- script: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"Qaai") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"Zinh") })
- },
- region_alpha: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"BUCTDDDYFXHVJTMINHNQPUPZQURHTPUKVDWKYDZR") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"MM\0KI\0DE\0BJ\0FR\0BF\0UM\0UM\0VU\0AQ\0UM\0PA\0EU\0ZW\0TL\0GB\0VN\0UM\0YE\0CD\0") })
- },
- region_num: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"004008010012016020024028031032036040044048050051052056060064068070072074076084086090092096100104108112116120124132136140144148152156158162166170174175178180184188191192196203204208212214218222226230231232233234238239242246248249250254258260262266268270275276278280288292296300304308312316320324328332334336340344348352356360364368372376380384388392398400404408410414417418422426428430434438440442446450454458462466470474478480484492496498499500504508512516520524528531533534535540548554558562566570574578580581583584585586591598600604608612616620624626630634638642643646652654659660662663666670674678682686688690694702703704705706710716720724728729732736740744748752756760762764768772776780784788792795796798800804807818826831832833834840850854858860862876882886887894958959960962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AF\0AL\0AQ\0DZ\0AS\0AD\0AO\0AG\0AZ\0AR\0AU\0AT\0BS\0BH\0BD\0AM\0BB\0BE\0BM\0BT\0BO\0BA\0BW\0BV\0BR\0BZ\0IO\0SB\0VG\0BN\0BG\0MM\0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0XN\0XO\0XP\0XQ\0XR\0XS\0XT\0XU\0XV\0XW\0XX\0XY\0XZ\0ZZ\0") })
- },
- complex_region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"062172200530532536582810830890891AN\0CS\0FQ\0NT\0PC\0SU\0YU\0") }, unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x12\0\x06\0*\x000\09\0B\0H\0T\0\x81\0\x87\0\x99\0\x9F\0\xA8\0\xAE\0\xB4\0\xBA\0\xC6\0\xF3\x00034143RU\0AM\0AZ\0BY\0GE\0KG\0KZ\0MD\0TJ\0TM\0UA\0UZ\0CZ\0SK\0CW\0SX\0BQ\0CW\0SX\0BQ\0SA\0IQ\0FM\0MH\0MP\0PW\0RU\0AM\0AZ\0BY\0EE\0GE\0KZ\0KG\0LV\0LT\0MD\0TJ\0TM\0UA\0UZ\0JE\0GG\0RS\0ME\0SI\0HR\0MK\0BA\0RS\0ME\0CW\0SX\0BQ\0RS\0ME\0AQ\0TF\0SA\0IQ\0FM\0MH\0MP\0PW\0RU\0AM\0AZ\0BY\0EE\0GE\0KZ\0KG\0LV\0LT\0MD\0TJ\0TM\0UA\0UZ\0RS\0ME\0") })
- },
- variant: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"heploc\0\0polytoni") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"alalc97\0polyton\0") })
- },
- subdivision: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"cn11\0\0\0cn12\0\0\0cn13\0\0\0cn14\0\0\0cn15\0\0\0cn21\0\0\0cn22\0\0\0cn23\0\0\0cn31\0\0\0cn32\0\0\0cn33\0\0\0cn34\0\0\0cn35\0\0\0cn36\0\0\0cn37\0\0\0cn41\0\0\0cn42\0\0\0cn43\0\0\0cn44\0\0\0cn45\0\0\0cn46\0\0\0cn50\0\0\0cn51\0\0\0cn52\0\0\0cn53\0\0\0cn54\0\0\0cn61\0\0\0cn62\0\0\0cn63\0\0\0cn64\0\0\0cn65\0\0\0cn71\0\0\0cn91\0\0\0cn92\0\0\0cz10a\0\0cz10b\0\0cz10c\0\0cz10d\0\0cz10e\0\0cz10f\0\0cz611\0\0cz612\0\0cz613\0\0cz614\0\0cz615\0\0cz621\0\0cz622\0\0cz623\0\0cz624\0\0cz626\0\0cz627\0\0czjc\0\0\0czjm\0\0\0czka\0\0\0czkr\0\0\0czli\0\0\0czmo\0\0\0czol\0\0\0czpa\0\0\0czpl\0\0\0czpr\0\0\0czst\0\0\0czus\0\0\0czvy\0\0\0czzl\0\0\0fi01\0\0\0fra\0\0\0\0frb\0\0\0\0frbl\0\0\0frc\0\0\0\0frcp\0\0\0frd\0\0\0\0fre\0\0\0\0frf\0\0\0\0frg\0\0\0\0frgf\0\0\0frgp\0\0\0frgua\0\0frh\0\0\0\0fri\0\0\0\0frj\0\0\0\0frk\0\0\0\0frl\0\0\0\0frlre\0\0frm\0\0\0\0frmay\0\0frmf\0\0\0frmq\0\0\0frn\0\0\0\0frnc\0\0\0fro\0\0\0\0frp\0\0\0\0frpf\0\0\0frpm\0\0\0frq\0\0\0\0frr\0\0\0\0frre\0\0\0frs\0\0\0\0frt\0\0\0\0frtf\0\0\0fru\0\0\0\0frv\0\0\0\0frwf\0\0\0fryt\0\0\0laxn\0\0\0lud\0\0\0\0lug\0\0\0\0lul\0\0\0\0mrnkc\0\0nlaw\0\0\0nlcw\0\0\0nlsx\0\0\0no23\0\0\0nzn\0\0\0\0nzs\0\0\0\0omba\0\0\0omsh\0\0\0plds\0\0\0plkp\0\0\0pllb\0\0\0plld\0\0\0pllu\0\0\0plma\0\0\0plmz\0\0\0plop\0\0\0plpd\0\0\0plpk\0\0\0plpm\0\0\0plsk\0\0\0plsl\0\0\0plwn\0\0\0plwp\0\0\0plzp\0\0\0shta\0\0\0tteto\0\0ttrcm\0\0ttwto\0\0twkhq\0\0twtnq\0\0twtpq\0\0twtxq\0\0usas\0\0\0usgu\0\0\0usmp\0\0\0uspr\0\0\0usum\0\0\0usvi\0\0\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"cnbj\0\0\0cntj\0\0\0cnhe\0\0\0cnsx\0\0\0cnmn\0\0\0cnln\0\0\0cnjl\0\0\0cnhl\0\0\0cnsh\0\0\0cnjs\0\0\0cnzj\0\0\0cnah\0\0\0cnfj\0\0\0cnjx\0\0\0cnsd\0\0\0cnha\0\0\0cnhb\0\0\0cnhn\0\0\0cngd\0\0\0cngx\0\0\0cnhi\0\0\0cncq\0\0\0cnsc\0\0\0cngz\0\0\0cnyn\0\0\0cnxz\0\0\0cnsn\0\0\0cngs\0\0\0cnqh\0\0\0cnnx\0\0\0cnxj\0\0\0twzzzz\0hkzzzz\0mozzzz\0cz110\0\0cz111\0\0cz112\0\0cz113\0\0cz114\0\0cz115\0\0cz663\0\0cz632\0\0cz633\0\0cz634\0\0cz635\0\0cz641\0\0cz642\0\0cz643\0\0cz644\0\0cz646\0\0cz647\0\0cz31\0\0\0cz64\0\0\0cz41\0\0\0cz52\0\0\0cz51\0\0\0cz80\0\0\0cz71\0\0\0cz53\0\0\0cz32\0\0\0cz10\0\0\0cz20\0\0\0cz42\0\0\0cz63\0\0\0cz72\0\0\0axzzzz\0frges\0\0frnaq\0\0blzzzz\0frara\0\0cpzzzz\0frbfc\0\0frbre\0\0frcvl\0\0frges\0\0gfzzzz\0gpzzzz\0gpzzzz\0frcor\0\0frbfc\0\0fridf\0\0frocc\0\0frnaq\0\0rezzzz\0frges\0\0ytzzzz\0mfzzzz\0mqzzzz\0frocc\0\0nczzzz\0frhdf\0\0frnor\0\0pfzzzz\0pmzzzz\0frnor\0\0frpdl\0\0rezzzz\0frhdf\0\0frnaq\0\0tfzzzz\0frpac\0\0frara\0\0wfzzzz\0ytzzzz\0laxs\0\0\0lucl\0\0\0luec\0\0\0luca\0\0\0mr13\0\0\0awzzzz\0cwzzzz\0sxzzzz\0no50\0\0\0nzauk\0\0nzcan\0\0ombj\0\0\0omsj\0\0\0pl02\0\0\0pl04\0\0\0pl08\0\0\0pl10\0\0\0pl06\0\0\0pl12\0\0\0pl14\0\0\0pl16\0\0\0pl20\0\0\0pl18\0\0\0pl22\0\0\0pl26\0\0\0pl24\0\0\0pl28\0\0\0pl30\0\0\0pl32\0\0\0tazzzz\0tttob\0\0ttmrc\0\0tttob\0\0twkhh\0\0twtnn\0\0twnwt\0\0twtxg\0\0aszzzz\0guzzzz\0mpzzzz\0przzzz\0umzzzz\0vizzzz\0") })
- },
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleAliasesV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleAliasesV1>, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_ALIASES_V1), metadata: icu_provider::DataResponseMetadata::default() })
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleAliasesV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_aliases_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleAliasesV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
- ($ provider : ty , DRY) => {
- __impl_locale_aliases_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleAliasesV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleAliasesV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_aliases_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleAliasesV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleAliasesV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleAliasesV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
-}
-#[doc(inline)]
-pub use __impl_locale_aliases_v1 as impl_locale_aliases_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_auxiliary_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_auxiliary_v1.rs.data
deleted file mode 100644
index 812ff6123ea..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_auxiliary_v1.rs.data
+++ /dev/null
@@ -1,1107 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleExemplarCharactersAuxiliaryV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 824B for the lookup data structure (168 data identifiers)
-/// * 34390B[^1] for the actual data (148 unique structs)
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `icu_provider/baked`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_exemplar_characters_auxiliary_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- const DATA_LOCALE_EXEMPLAR_CHARACTERS_AUXILIARY_V1: icu_provider::baked::zerotrie::Data<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1> = {
- const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1zabcdefghijklmnopqrstuvwxyz\0\0\0\0\0\0\0\0\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x02\x15?Wi\x94\xBE\xD1\xFE\x1A\"Xr\x95\xB5\xBC\xDB\xDE\xEFIp\x8C\x9A\x9D\xA6\xBB\xC5fkrsz\x01\x02\x07\n\x80\x81\x82-MA\x83\x84t\x85\x86\xC9aeghlnrsu\x07\x08\x0B\r\x0F\x10\x13\x15l-Latn\x87\x88\x89c\x8Ao\x8Bo\x8C\x8D\x8Ex\x8F\x90\0a\x90\x01\xC5aesvy\x02\x05\n\x0C\x90\x02b\x90\x03\x90\x04w\x90\x05\x90\x01\x90\x06\xC4aeos\x02\x04\x07\x90\x07\x90\x08i\x90\tb\x90\n\xC7elnostu\x02\x0E\x15\x17\x19\x1B\x90\x0B\x90\x0C-polyton\x90\r\x90\x0E-ZA\x90\x0F\x90\0\x90\x10\x90\x11\x90\x12\xC6afiory\x07\x0E\x13\x15\x1C\x90\x13-AF\x90\x14-Adlm\x90\x15\x90\x16l\x90\x17\x90\x18\x90\x19-CA\x90\x1A\x90\x1B\xC4adlu\x05\x07\t\x90\x1Ca\x90\x1D\x90\x1E\x90\x1F\x90 \xC8aeirstuy\x07\t\x12\x14\x17\x19\x1B\x90!-NE\x90\"\x90#\x90$-Latn\x90%\x90\0b\x90&\x90'\x90(\x90)\xC7adegist\x02\x04\x06\x08\n\x0C\x90\x0E\x90\x0E\x90*\x90+\x90,\x90-\x90.\xC2av\x02\x90/\x900\xC9aegmnosuy\x02\x05\x08\n\x0C\x18 \"\x901a\x902p\x903\x904\x905\x906k\x90$-Latn\x907\x908-Deva\x8F\x909\x90:\xC6bimotv\x02\x05\x08\n\x0C\x90;j\x90<o\x90\x0E\x90=\x90>\x90?\xC8aiklnrty\x03\x05\x07\t\r\x0F\x11i\x90@\x90A\x90B\x90C\x90Di\x8F\x90E\x90F\x90G\xC6deloqs\x08\n\x0C\x0E\x11s\x90H-NL\x90I\x90$\x90J\x90Ko\x90Lo\x90M\xC2cr\x02\x90N\x8F\xC6aclmst\x02\x05\x07\n\x11\x90Om\x90P\x90Qs\x90R\x90S-PK\x90T\x90Uu\x90V\xC4amou\x03\x05\x07j\x90W\x90X\x90Y\x90\x01\xD0acdhikloqrtuvwyz\x05\n\x12\x15\x17\x19\x1B\x1D\x1E')+-47\x90Zh\x90[\x90\\n\x90]\x90^-Deva\x8Fn\x90_\x90`\x90a\x90b\x90c\x86\x90d-Latn\x90e\x90f\x90g\x90h\x90i-CD\x90jr\x90kl\x90l\xCAaeghiknort\x01\x03\x05\x07\t\x0B\r\x0F\x11\x8F\x90m\x90n\x90o\x90p\x90q\x90r\x90s\x90t\x90u\xC5gknrz\x02\x04\x07\t\x90v\x90wd\x90\r\x90x\x90y-Cyrl\x90n\xC3eim\x03\x05c\x90z\x90{w\x90|o\x90}\xC2hn\x02\x90\x0Er\x90~\xC3oru\x02\x05\x90rl\x90\x7Fe\x91\0-Hans\x91\x01\xC2hu\t\x91\x02-Hant\x91\x03\x90\x0E" };
- const VALUES: &'static [<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE1\0\0\xE3\0\0\xE8\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF4\0\0\xF9\0\0\xFB\0\0\xFC\0\0\xFE\0\0") }, 14u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0j\0\0k\0\0q\0\0r\0\0v\0\0w\0\0z\0\0{\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0") }, 14u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"@\x06\0A\x06\0o\x06\0p\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\x9C\x06\0\x9D\x06\0\xA2\x06\0\xA3\x06\0\xA4\x06\0\xA6\x06\0\xA7\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xCC\x06\0\xCD\x06\0\x0C \0\x10 \0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"o\x06\0p\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\x9C\x06\0\x9D\x06\0\xA2\x06\0\xA3\x06\0\xA4\x06\0\xA6\x06\0\xA7\x06\0\xAA\x06\0\xAD\x06\0\xAE\x06\0\xAF\x06\0\xB0\x06\0\xCC\x06\0\xCD\x06\0c\x07\0d\x07\0\x0C \0\x10 \0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xB0\t\0\xB1\t\0\xCE\t\0\xCF\t\0\xF2\t\0\xF3\t\0\x0C \0\x0E \0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"j\0\0l\0\0w\0\0x\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"w\0\0x\0\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"D\x01\0E\x01\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\n\0\x04\0\x08\0\x0C\0\x10\0\x14\0\x18\0\x1C\0 \0$\0\xD0\xB0\xCC\x81\xD0\xB5\xCC\x81\xD0\xBE\xCC\x81\xD1\x83\xCC\x81\xD1\x8B\xCC\x81\xD1\x8D\xCC\x81\xD1\x8E\xCC\x81\xD1\x8F\xCC\x81\xD1\x91\xCC\x81\xD1\x96\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"K\x04\0L\x04\0M\x04\0N\x04\0P\x04\0R\x04\0]\x04\0^\x04\0c\x04\0d\x04\0k\x04\0l\x04\0") }, 7u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x06\0\x04\0\x08\0\x0C\0\x10\0\x14\0\xD0\xB0\xCC\x80\xD0\xBE\xCC\x80\xD1\x83\xCC\x80\xD1\x8A\xCC\x80\xD1\x8E\xCC\x80\xD1\x8F\xCC\x80") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\t\0\x03\t\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\x0C\t\0\x0F\t\0\x11\t\0\x13\t\0\x15\t\0") }, 11u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"d\0\0e\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0\xDF\0\0\xE0\0\0\xE3\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEF\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF5\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFC\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x07\x01\0\x08\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x1B\x01\0\x1C\x01\0)\x01\0*\x01\0+\x01\0,\x01\0-\x01\0.\x01\x003\x01\x004\x01\0H\x01\0I\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0Y\x01\0Z\x01\0a\x01\0b\x01\0k\x01\0l\x01\0m\x01\0n\x01\0\x7F\x01\0\x80\x01\0\x92\x01\0\x93\x01\0\xB4\x01\0\xB5\x01\0\xCE\x01\0\xCF\x01\0\xD0\x01\0\xD1\x01\0\xD2\x01\0\xD3\x01\0\xD4\x01\0\xD5\x01\0S\x02\0T\x02\0W\x02\0X\x02\0c\x02\0d\x02\0\x8B\x02\0\x8C\x02\0\x92\x02\0\x93\x02\0\x1B\x1E\0\x1C\x1E\0-\x1E\0.\x1E\0u\x1E\0v\x1E\0\xBD\x1E\0\xBE\x1E\0") }, 53u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x1D\0\x03\0\x05\0\x08\0\x0B\0\x0E\0\x11\0\x13\0\x16\0\x1A\0\x1E\0\"\0&\0*\0.\x002\x006\0:\0>\0B\0F\0J\0N\0R\0V\0Z\0^\0b\0f\0a\xCC\xB0hwm\xCC\x84m\xCC\x8Cn\xCC\x84o\xCC\xB0xw\xC5\x8Bw\xC7\x9D\xCC\x83\xC7\x9D\xCC\x84\xC7\x9D\xCC\xB0\xC9\x94\xCC\x83\xC9\x94\xCC\x84\xC9\x94\xCC\x8C\xC9\x94\xCC\xB0\xC9\x99\xCC\x8C\xC9\x9B\xCC\x83\xC9\x9B\xCC\x84\xC9\x9B\xCC\x8C\xC9\x9B\xCC\xB0\xC9\xA9\xCC\x83\xC9\xA9\xCC\x84\xC9\xA9\xCC\xB0\xCA\x8A\xCC\x83\xCA\x8A\xCC\x84\xCA\x8A\xCC\x8C\xCA\x8A\xCC\xB0\xCC\x83\xC5\xA9\xCC\x83\xCA\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF0\t\0\xFA\t\0\x0C \0\x0E \0") }, 12u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0\xE0\0\0\xEA\0\0\xEB\0\0\xF0\0\0\xF2\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x0C \0\x0E \0") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0z\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x04\0\x08\0\x0C\0\x10\0\x14\0\x18\0\x1C\0 \0\xD0\xB0\xCC\x81\xD0\xB5\xCC\x81\xD0\xB8\xCC\x81\xD0\xBE\xCC\x81\xD1\x83\xCC\x81\xD1\x8B\xCC\x81\xD1\x8D\xCC\x81\xD1\x8E\xCC\x81\xD1\x8F\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xBA\0\0\xBB\0\0\xE1\0\0\xE7\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF1\0\0\xF2\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0@\x01\0A\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0f\0\0g\0\0j\0\0k\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0\xF1\0\0\xF2\0\0") }, 8u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0>\x01\0?\x01\0B\x01\0C\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0U\x01\0V\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10\x15\0\x17\x15\0") }, 7u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"k\0\0l\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE8\0\0\xF1\0\0\xF2\0\0\xF8\0\0\xF9\0\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE7\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFD\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0\xFF\x01\0\0\x02\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE4\0\0\xE5\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF8\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x1F\x01\0 \x01\0+\x01\0,\x01\0-\x01\0.\x01\x000\x01\x002\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0_\x01\0`\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\r\t\0\x0E\t\0\x11\t\0\x12\t\0E\t\0F\t\0\x0C \0\x0E \0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFE\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x05\x01\0\x06\x01\0\x0F\x01\0\x10\x01\0\x11\x01\0\x12\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x17\x01\0\x18\x01\0\x19\x01\0\x1A\x01\0\x1F\x01\0 \x01\0+\x01\0,\x01\0-\x01\0.\x01\x000\x01\x002\x01\0:\x01\0;\x01\0>\x01\0?\x01\0H\x01\0I\x01\0M\x01\0N\x01\0O\x01\0P\x01\0Q\x01\0R\x01\0S\x01\0T\x01\0Y\x01\0Z\x01\0_\x01\0`\x01\0e\x01\0f\x01\0k\x01\0l\x01\0m\x01\0n\x01\0o\x01\0p\x01\0q\x01\0r\x01\0|\x01\0}\x01\0") }, 57u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0j\0\0k\0\0q\0\0r\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x15\x01\0\x16\x01\0-\x01\0.\x01\0O\x01\0P\x01\0S\x01\0T\x01\0m\x01\0n\x01\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x1F\0\x08\x1F\0\x10\x1F\0\x16\x1F\0 \x1F\0(\x1F\x000\x1F\08\x1F\0B\x1F\0E\x1F\0P\x1F\0X\x1F\0b\x1F\0h\x1F\0p\x1F\0q\x1F\0r\x1F\0s\x1F\0t\x1F\0u\x1F\0v\x1F\0w\x1F\0x\x1F\0y\x1F\0z\x1F\0{\x1F\0|\x1F\0}\x1F\0\xB6\x1F\0\xB7\x1F\0\xC6\x1F\0\xC7\x1F\0\xD2\x1F\0\xD3\x1F\0\xD6\x1F\0\xD8\x1F\0\xE2\x1F\0\xE3\x1F\0\xE6\x1F\0\xE8\x1F\0\xF6\x1F\0\xF7\x1F\0") }, 63u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE4\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0a\x01\0b\x01\0k\x01\0l\x01\0m\x01\0n\x01\0\x13\x1E\0\x14\x1E\0=\x1E\0>\x1E\0E\x1E\0F\x1E\0K\x1E\0L\x1E\0q\x1E\0r\x1E\0") }, 43u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0\xFE\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE4\0\0\xE5\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF8\0\0\xFC\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE7\0\0\xE8\0\0\xF0\0\0\xF2\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\x06\0&\x06\0@\x06\0A\x06\0C\x06\0D\x06\0I\x06\0K\x06\0N\x06\0Q\x06\0R\x06\0S\x06\0V\x06\0W\x06\0p\x06\0q\x06\0\x0C \0\x10 \0") }, 15u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\x06\0&\x06\0C\x06\0D\x06\0I\x06\0K\x06\0N\x06\0Q\x06\0R\x06\0S\x06\0V\x06\0W\x06\0p\x06\0q\x06\0|\x06\0}\x06\0\x81\x06\0\x82\x06\0\x85\x06\0\x86\x06\0\x89\x06\0\x8A\x06\0\x93\x06\0\x94\x06\0\x96\x06\0\x97\x06\0\x9A\x06\0\x9B\x06\0\xAB\x06\0\xAC\x06\0\xBC\x06\0\xBD\x06\0\x0C \0\x10 \0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b">\xE9\x01D\xE9\x01") }, 6u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xE4\0\0\xE6\0\0\xEC\0\0\xED\0\0\xF6\0\0\xF8\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x05\x01\0\x06\x01\0\x07\x01\0\x08\x01\0\x0B\x01\0\x0C\x01\0\r\x01\0\x0E\x01\0\x0F\x01\0\x10\x01\0\x11\x01\0\x12\x01\0\x13\x01\0\x14\x01\0\x17\x01\0\x18\x01\0\x19\x01\0\x1A\x01\0\x1B\x01\0\x1C\x01\0\x1F\x01\0 \x01\0#\x01\0$\x01\0'\x01\0(\x01\0+\x01\0,\x01\0/\x01\x002\x01\x007\x01\08\x01\0:\x01\0;\x01\0<\x01\0=\x01\0>\x01\0?\x01\0B\x01\0C\x01\0D\x01\0E\x01\0F\x01\0G\x01\0H\x01\0I\x01\0K\x01\0L\x01\0Q\x01\0R\x01\0S\x01\0T\x01\0U\x01\0V\x01\0Y\x01\0Z\x01\0[\x01\0\\\x01\0]\x01\0^\x01\0_\x01\0`\x01\0c\x01\0d\x01\0e\x01\0f\x01\0g\x01\0h\x01\0k\x01\0l\x01\0o\x01\0p\x01\0q\x01\0r\x01\0s\x01\0t\x01\0z\x01\0{\x01\0|\x01\0}\x01\0\xE5\x01\0\xE6\x01\0\xE7\x01\0\xE8\x01\0\xE9\x01\0\xEA\x01\0\xEF\x01\0\xF0\x01\0\x19\x02\0\x1A\x02\0\x1B\x02\0\x1C\x02\0\x1F\x02\0 \x02\0\x92\x02\0\x93\x02\0") }, 80u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEF\0\0\xF2\0\0\xF5\0\0\xF9\0\0\xFC\0\0") }, 15u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0w\0\0y\0\0z\0\0{\0\0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE6\0\0\xEC\0\0\xEE\0\0\xF1\0\0\xF4\0\0\xF5\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFB\0\0\x01\x01\0\x02\x01\0\x07\x01\0\x08\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\x003\x01\x004\x01\0Y\x01\0Z\x01\0a\x01\0b\x01\0\x7F\x01\0\x80\x01\0\xD4\x01\0\xD5\x01\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1\0\0\xE2\0\0\xE3\0\0\xE6\0\0\xEC\0\0\xEE\0\0\xF1\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFB\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0\xD4\x01\0\xD5\x01\0") }, 16u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE6\0\0\xE7\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"j\0\0l\0\0q\0\0r\0\0v\0\0{\0\0\xE5\0\0\xE6\0\0\x0B\x01\0\x0C\x01\0!\x01\0\"\x01\0\x03\x1E\0\x04\x1E\0\x0B\x1E\0\x0C\x1E\0\x1F\x1E\0 \x1E\0A\x1E\0B\x1E\0W\x1E\0X\x1E\0a\x1E\0b\x1E\0k\x1E\0l\x1E\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0)\x01\0*\x01\0i\x01\0j\x01\0") }, 7u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"j\0\0l\0\0q\0\0r\0\0v\0\0{\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x0B\x01\0\x0C\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0!\x01\0\"\x01\0+\x01\0,\x01\0-\x01\0.\x01\x001\x01\x002\x01\0B\x01\0C\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0_\x01\0`\x01\0k\x01\0l\x01\0m\x01\0n\x01\0\x19\x02\0\x1A\x02\0\x0B\x1E\0\x0C\x1E\0\x1F\x1E\0 \x1E\0A\x1E\0B\x1E\0W\x1E\0X\x1E\0a\x1E\0b\x1E\0k\x1E\0l\x1E\0") }, 53u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0Q\x02\0R\x02\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF0\n\0\xF1\n\0\x0C \0\x0E \0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"p\0\0r\0\0v\0\0w\0\0x\0\0y\0\0\xE0\0\0\xE3\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEF\0\0\xF2\0\0\xF5\0\0\xF9\0\0\xFC\0\0") }, 19u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0r\xCC\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"p\0\0r\0\0v\0\0w\0\0x\0\0y\0\0\xE0\0\0\xE3\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEF\0\0\xF2\0\0\xF5\0\0\xF9\0\0\xFC\0\0") }, 19u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x03\0r\xCC\x83\xCA\xBCy") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xB0\x05\0\xBA\x05\0\xBB\x05\0\xBE\x05\0\xBF\x05\0\xC0\x05\0\xC1\x05\0\xC3\x05\0\xC4\x05\0\xC5\x05\0\xF4\x05\0\xF5\x05\0\x0E \0\x10 \0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"D\t\0E\t\0\x0C \0\x0E \0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF1\0\0\xF2\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0M\x01\0N\x01\0O\x01\0P\x01\0[\x01\0\\\x01\0k\x01\0l\x01\0\r\x1E\0\x0E\x1E\0%\x1E\0&\x1E\x007\x1E\08\x1E\0A\x1E\0B\x1E\0E\x1E\0F\x1E\0G\x1E\0H\x1E\0[\x1E\0\\\x1E\0c\x1E\0d\x1E\0m\x1E\0n\x1E\0") }, 18u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\x03\0\x06\0\t\0l\xCC\xA5m\xCC\x90r\xCC\xA5r\xCC\xA5\xCC\x84") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFE\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x05\x01\0\x06\x01\0\x0F\x01\0\x10\x01\0\x11\x01\0\x12\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x17\x01\0\x18\x01\0\x19\x01\0\x1A\x01\0\x1F\x01\0 \x01\0+\x01\0,\x01\0-\x01\0.\x01\x000\x01\x002\x01\0:\x01\0;\x01\0>\x01\0?\x01\0H\x01\0I\x01\0M\x01\0N\x01\0O\x01\0P\x01\0Q\x01\0R\x01\0S\x01\0T\x01\0U\x01\0V\x01\0[\x01\0\\\x01\0_\x01\0`\x01\0e\x01\0f\x01\0k\x01\0l\x01\0m\x01\0n\x01\0o\x01\0p\x01\0q\x01\0r\x01\0z\x01\0{\x01\0|\x01\0}\x01\0") }, 59u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"x\0\0y\0\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0z\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x87\x05\0\x88\x05\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFE\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 34u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x03\0l\xCA\xBCn\xCA\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0\xE0\0\0\xE2\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF4\0\0\xF9\0\0\xFB\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0D\x01\0E\x01\0M\x01\0N\x01\0k\x01\0l\x01\0\xF9\x01\0\xFA\x01\0?\x1E\0@\x1E\0") }, 21u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x07\0\x03\0\x08\0\r\0\x12\0\x17\0\x1C\0m\xCC\x80\xE1\xBB\x8B\xCC\x80\xE1\xBB\x8B\xCC\x81\xE1\xBB\x8D\xCC\x80\xE1\xBB\x8D\xCC\x81\xE1\xBB\xA5\xCC\x80\xE1\xBB\xA5\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x90\xA4\0\xC7\xA4\0") }, 55u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0w\0\0x\0\0z\0\0{\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xDF\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFD\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x11N\0\x12N\0\xA5N\0\xA6N\0\xA8N\0\xA9N\0LQ\0MQ\0NQ\0OQ\0\xE7Q\0\xE8Q\0CR\0DR\0oS\0pS\0\tV\0\nV\0\x14V\0\x15V\0\x18V\0\x19V\0\xECX\0\xEDX\0\xFAX\0\xFBX\0\t[\0\n[\0\xC5[\0\xC6[\0\xF3]\0\xF4]\0\x9A^\0\x9B^\0\xB5^\0\xB6^\0\x18_\0\x19_\0W_\0X_\0\xB6`\0\xB7`\0\x15a\0\x16a\0\nb\0\x0Bb\0\x0Cb\0\rb\0\xFCb\0\xFDb\0\xC3c\0\xC4c\0\xA7e\0\xA8e\0\x0Cf\0\rf\0Vg\0Wg\0vh\0wh\0\xB5h\0\xB6h\0Ti\0Ui\0Xn\0Yn\0\x1Aq\0\x1Bq\0\xEDq\0\xEEq\0,r\0-r\0Lr\0Mr\0]r\0^r\0ar\0br\0\xD0r\0\xD1r\0\xD7r\0\xD8r\0\xFCr\0\xFDr\0*s\0+s\0Es\0Fs\0xv\0yv\0\x91w\0\x92w\0\x87x\0\x88x\0Zy\0[y\0\x84y\0\x85y\0\x8Ey\0\x8Fy\0\xE4y\0\xE5y\0\xFFz\0\0{\0F}\0G}\0M~\0N~\0k\x7F\0l\x7F\0\x8F\x81\0\x90\x81\0\x92\x82\0\x93\x82\0\xC4\x87\0\xC5\x87\0\xF9\x87\0\xFA\x87\0\r\x88\0\x0E\x88\0#\x88\0$\x88\0\x1B\x8D\0\x1C\x8D\0D\x8E\0E\x8E\0\xB0\x8F\0\xB1\x8F\0I\x91\0J\x91\0\xF2\x92\0\xF3\x92\0\x04\x93\0\x05\x93\0(\x93\0)\x93\0\x8F\x95\0\x90\x95\0\xA9\x95\0\xAA\x95\0\xC0\x96\0\xC1\x96\0\xC9\x96\0\xCA\x96\0\xF3\x9C\0\xF4\x9C\0 \x9F\0!\x9F\0\x8D\x9F\0\x8E\x9F\0") }, 75u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"f\0\0g\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF1\x10\0\xFB\x10\0\0-\0&-\0") }, 48u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0w\0\0x\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xF0\0\0\xF2\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0)\x01\0*\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0i\x01\0j\x01\0k\x01\0l\x01\0m\x01\0n\x01\0X\x1D\0Y\x1D\0\xBD\x1E\0\xBE\x1E\0") }, 47u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x03\0n\xCC\x88rr") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0e\0\0l\0\0m\0\0q\0\0r\0\0w\0\0y\0\0z\0\0{\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE9\0\0\xEA\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0\xB0\x02\0\xB1\x02\0I\x1D\0J\x1D\0M\x1D\0N\x1D\0\x7F \0\x80 \0") }, 49u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x9D\x17\0\x9F\x17\0\xB4\x17\0\xB6\x17\0\xCC\x17\0\xCD\x17\0\xCE\x17\0\xD0\x17\0\xD1\x17\0\xD2\x17\0\x0B \0\x0C \0") }, 9u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDE\x0C\0\xDF\x0C\0\x0C \0\x0E \0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x11\0\x13\x11\0a\x11\0v\x11\0\xA8\x11\0\xC3\x11\0\x18N\0\x19N\x002N\x003N\0CN\0DN\0EN\0FN\0VN\0WN\0]N\0_N\0kN\0lN\0~N\0\x7FN\0\x82N\0\x83N\0\x98N\0\x99N\0\xA4N\0\xA5N\0\xACN\0\xADN\0\xC7N\0\xC8N\0\xCAN\0\xCCN\0\xF6N\0\xF8N\0\x01O\0\x02O\0\x0BO\0\x0CO\0\x0EO\0\x0FO\0=O\0>O\0sO\0tO\0vO\0wO\0\x83O\0\x84O\0\x86O\0\x87O\0\x8AO\0\x8BO\0\x9BO\0\x9CO\0\xC2O\0\xC3O\0\xD3O\0\xD4O\0\xF1O\0\xF2O\0\x0BP\0\x0CP\0\x1EP\0\x1FP\0&P\0'P\0(P\0)P\0GP\0IP\0eP\0fP\0\x80P\0\x81P\0\x91P\0\x92P\0\xBEP\0\xBFP\0\xC5P\0\xC6P\0\xD1P\0\xD2P\0\xF9P\0\xFAP\0\x06Q\0\x07Q\0\tQ\0\nQ\0:Q\0;Q\0IQ\0JQ\0KQ\0LQ\0bQ\0cQ\0gQ\0hQ\0lQ\0mQ\0qQ\0rQ\0vQ\0xQ\0|Q\0}Q\0\x80Q\0\x81Q\0\xA0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0\xBA}\0\xBB}\0\xCA}\0\xCB}\0k~\0l~\0m~\0n~\0|~\0}~\0:\x7F\0;\x7F\0P\x7F\0Q\x7F\0k\x7F\0l\x7F\0\x85\x7F\0\x86\x7F\0\x88\x7F\0\x89\x7F\0\x8C\x7F\0\x8D\x7F\0\x94\x7F\0\x95\x7F\0\xA4\x7F\0\xA5\x7F\0\xB9\x7F\0\xBA\x7F\0\xF9\x7F\0\xFA\x7F\0\x03\x80\0\x04\x80\0\x06\x80\0\x07\x80\0\t\x80\0\n\x80\0\x15\x80\0\x16\x80\0-\x80\0.\x80\0?\x80\0@\x80\0\x8C\x80\0\x8D\x80\0\x9D\x80\0\x9E\x80\0\xA1\x80\0\xA2\x80\0\xA9\x80\0\xAA\x80\0\xAF\x80\0\xB0\x80\0\xB1\x80\0\xB2\x80\0\xDB\x80\0\xDC\x80\0\xF1\x80\0\xF2\x80\0\x1A\x81\0\x1C\x81\0T\x81\0U\x81\0q\x81\0r\x81\0\x88\x81\0\x89\x81\0\x8F\x81\0\x90\x81\0\xA0\x81\0\xA1\x81\0\xD8\x81\0\xD9\x81\0\xFC\x81\0\xFD\x81\0\x05\x82\0\x06\x82\0\n\x82\0\x0B\x82\0!\x82\0\"\x82\0n\x82\0o\x82\0q\x82\0r\x82\0\x8E\x82\0\x8F\x82\0\xA5\x82\0\xA6\x82\0\xA9\x82\0\xAA\x82\0\xB9\x82\0\xBA\x82\0\xDB\x82\0\xDC\x82\0\xDF\x82\0\xE0\x82\0\xE6\x82\0\xE7\x82\0\xFD\x82\0\xFE\x82\0\x04\x83\0\x05\x83\0\x96\x83\0\x97\x83\0\xC5\x83\0\xC6\x83\0\xCA\x83\0\xCB\x83\0\xCC\x83\0\xCD\x83\0\xD3\x83\0\xD4\x83\0\xEB\x83\0\xEC\x83\0\xF0\x83\0\xF1\x83\0=\x84\0>\x84\0[\x84\0\\\x84\0u\x84\0v\x84\0\xCB\x84\0\xCC\x84\0N\x85\0O\x85\0h\x85\0i\x85\0\x91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8\x8D\0\xE9\x8D\0\x1E\x8E\0\x1F\x8E\0G\x8E\0H\x8E\0v\x8E\0w\x8E\0\xAC\x8E\0\xAD\x8E\0\xC0\x8E\0\xC1\x8E\0\xCA\x8E\0\xCB\x8E\0\xCC\x8E\0\xCE\x8E\0\xFB\x8E\0\xFC\x8E\0\x03\x8F\0\x04\x8F\0\x15\x8F\0\x16\x8F\0N\x8F\0O\x8F\0_\x8F\0`\x8F\0\x9C\x8F\0\x9D\x8F\0\xD1\x8F\0\xD2\x8F\0\xE6\x8F\0\xE7\x8F\0\xF2\x8F\0\xF3\x8F\0\x02\x90\0\x03\x90\0\x11\x90\0\x12\x90\0\x15\x90\0\x16\x90\x005\x90\x006\x90\0N\x90\0O\x90\0c\x90\0d\x90\0}\x90\0~\x90\0\x8F\x90\0\x90\x90\0\xA3\x90\0\xA4\x90\0\xAF\x90\0\xB0\x90\0\xB1\x90\0\xB2\x90\0\xCA\x90\0\xCB\x90\0\xCE\x90\0\xCF\x90\0\xE1\x90\0\xE2\x90\0\xED\x90\0\xEE\x90\0j\x91\0k\x91\0\xB5\x91\0\xB6\x91\0\xD1\x91\0\xD2\x91\0\x10\x92\0\x11\x92\0\x1E\x92\0\x1F\x92\0@\x92\0A\x92\0E\x92\0F\x92\0W\x92\0X\x92\0d\x92\0e\x92\0\xB6\x92\0\xB7\x92\0\xF8\x92\0\xF9\x92\0\xFC\x92\0\xFD\x92\0!\x93\0\"\x93\0$\x93\0%\x93\0&\x93\0'\x93\0.\x93\0/\x93\0K\x93\0L\x93\0u\x93\0v\x93\0\x8C\x93\0\x8D\x93\0\xA7\x93\0\xA8\x93\0\xE1\x93\0\xE2\x93\0Q\x94\0S\x94\0[\x94\0\\\x94\0\x8B\x95\0\x8C\x95\0\x93\x95\0\x94\x95\0\x98\x95\0\x99\x95\0\xA3\x95\0\xA4\x95\0\xA8\x95\0\xA9\x95\0\xD5\x95\0\xD6\x95\0\xDC\x95\0\xDD\x95\0M\x96\0N\x96\0\x8E\x96\0\x8F\x96\0\x94\x96\0\x95\x96\0\x99\x96\0\x9A\x96\0\xC7\x96\0\xC8\x96\0\xE3\x96\0\xE4\x96\0\x8F\x97\0\x90\x97\0\xA0\x97\0\xA1\x97\0\xA8\x97\0\xA9\x97\0\xAB\x97\0\xAC\x97\0\x03\x98\0\x04\x98\08\x98\09\x98\0F\x98\0G\x98\0g\x98\0h\x98\0\xE2\x98\0\xE3\x98\0\x03\x99\0\x04\x99\0(\x99\0)\x99\0I\x99\0J\x99\0K\x99\0L\x99\0Q\x99\0R\x99\0\xD2\x99\0\xD3\x99\0\xD5\x99\0\xD6\x99\0\xF1\x99\0\xF2\x99\0\x0E\x9A\0\x10\x9A\0+\x9A\0,\x9A\0E\x9A\0F\x9A\0U\x9A\0V\x9A\0Z\x9A\0[\x9A\0e\x9A\0f\x9A\0\xA8\x9A\0\xA9\x9A\0\xD8\x9A\0\xD9\x9A\0<\x9B\0=\x9B\0A\x9B\0B\x9B\0\xAB\x9B\0\xAC\x9B\0\xE4\x9B\0\xE5\x9B\0\xE8\x9B\0\xE9\x9B\0G\x9C\0H\x9C\0\xE9\x9C\0\xEA\x9C\0Q\x9D\0R\x9D\0`\x9D\0a\x9D\0\xC4\x9D\0\xC5\x9D\0\xD7\x9D\0\xD8\x9D\0\x1E\x9E\0\x1F\x9E\0\x92\x9E\0\x93\x9E\0\xB4\x9E\0\xB5\x9E\0\xD4\x9E\0\xD5\x9E\0\x13\x9F\0\x14\x9F\0\x95\x9F\0\x96\x9F\0\x9C\x9F\0\x9D\x9F\0") }, 822u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE4\0\0\xE7\0\0\xE8\0\0\xEA\0\0\xEB\0\0\xF0\0\0\xF2\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"&\x06\0'\x06\0N\x06\0Q\x06\0T\x06\0X\x06\0_\x06\0`\x06\0\x0E \0\x10 \0") }, 11u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xE7\0\0\xE8\0\0\xEA\0\0\xEB\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF8\0\0\xFB\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"2\x04\x003\x04\0D\x04\0E\x04\0F\x04\0G\x04\0I\x04\0J\x04\0L\x04\0M\x04\0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xDF\0\0\xE4\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x1F\x01\0 \x01\0+\x01\0,\x01\0-\x01\0.\x01\x000\x01\x002\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0_\x01\0`\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 40u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF5\0\0\xF6\0\0M\x01\0N\x01\0S\x01\0T\x01\0Y\x01\0Z\x01\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD0\x0E\0\xDA\x0E\0\x0B \0\x0C \0") }, 11u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0y\0\0\xE0\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF1\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF9\0\0\xFB\0\0)\x01\0*\x01\0i\x01\0j\x01\0\xBD\x1E\0\xBE\x1E\0") }, 19u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x19\0\x02\0\x04\0\x07\0\x0C\0\x11\0\x16\0\x19\0\x1E\0!\0$\0'\0+\0/\x003\x007\0;\0?\0C\0G\0M\0S\0W\0[\0_\0chdzd\xC5\xBEi\xCC\x87\xCC\x80i\xCC\x87\xCC\x81i\xCC\x87\xCC\x83j\xCC\x83j\xCC\x87\xCC\x83l\xCC\x83m\xCC\x83r\xCC\x83\xC4\x85\xCC\x81\xC4\x85\xCC\x83\xC4\x97\xCC\x81\xC4\x97\xCC\x83\xC4\x99\xCC\x81\xC4\x99\xCC\x83\xC4\xAF\xCC\x81\xC4\xAF\xCC\x83\xC4\xAF\xCC\x87\xCC\x81\xC4\xAF\xCC\x87\xCC\x83\xC5\xAB\xCC\x81\xC5\xAB\xCC\x83\xC5\xB3\xCC\x81\xC5\xB3\xCC\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0z\0\0M\x01\0N\x01\0W\x01\0X\x01\0") }, 6u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\r\t\0\x0F\t\0\x11\t\0\x13\t\0\x15\t\0a\t\0b\t\0") }, 13u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x06\0\xE0\xA4\x85\xE0\xA4\x82\xE0\xA4\x85\xE0\xA4\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0e\0\0f\0\0h\0\0j\0\0k\0\0l\0\0m\0\0q\0\0r\0\0s\0\0t\0\0v\0\0w\0\0x\0\0{\0\0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"P\x04\0Q\x04\0]\x04\0^\x04\0") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\r\0\x04\r\0\x0C\r\0\r\r\0>\r\0D\r\0F\r\0I\r\0J\r\0L\r\0M\r\0N\r\0W\r\0X\r\0`\r\0b\r\0z\r\0\x80\r\0\x0C \0\x0E \0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x97\x04\0\x98\x04\0\xBB\x04\0\xBC\x04\0\xCA\x04\0\xCB\x04\0\xD9\x04\0\xDA\x04\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x02\t\0\r\t\0\x0E\t\x001\t\x002\t\0<\t\0=\t\0D\t\0E\t\0\x0C \0\x0E \0") }, 7u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0y\0\0z\0\0") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\"\x10\0#\x10\0(\x10\0)\x10\x003\x10\x005\x10\0@\x10\0J\x10\0P\x10\0[\x10\0b\x10\0c\x10\0d\x10\0f\x10\0u\x10\0v\x10\0}\x10\0\x7F\x10\0\x86\x10\0\x87\x10\0\x88\x10\0\x89\x10\0\x8A\x10\0\x8B\x10\0\x8F\x10\0\x9A\x10\0") }, 45u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE6\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF8\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x19\x01\0\x1A\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE8\0\0\xF0\0\0\xF2\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFD\0\0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE1\0\0\xE2\0\0\xE4\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEE\0\0\xEF\0\0\xF1\0\0\xF2\0\0\xF4\0\0\xF5\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0\xFE\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1\0\0\xE2\0\0\xE3\0\0\xE5\0\0\xE7\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xED\0\0\xEE\0\0\xF1\0\0\xF2\0\0\xF6\0\0\xF7\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0\r\x01\0\x0E\x01\0\x11\x01\0\x12\x01\0D\x01\0E\x01\0K\x01\0L\x01\0a\x01\0b\x01\0g\x01\0h\x01\0~\x01\0\x7F\x01\0\xCE\x01\0\xCF\x01\0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE8\x07\0\xEB\x07\0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0z\0\0{\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE2\0\0\xE7\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF1\0\0\xF2\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x03\n\0\x04\n\0\x0C \0\x0E \0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 8u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x05\0\xE1\xBA\xB9\xCC\x80\xE1\xBB\x8D\xCC\x80") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0\xDF\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xEC\0\0\xEE\0\0\xF0\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"h\0\0i\0\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD2\x06\0\xD3\x06\0\x0C \0\x10 \0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x0C \0\x10 \0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE4\0\0\xE7\0\0\xE8\0\0\xE9\0\0\xEB\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0h\0\0j\0\0k\0\0o\0\0p\0\0r\0\0s\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0\xE0\0\0\xF0\0\0\xF2\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 49u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x03\0\x05\0chhphqh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x06\t\0\x0C\t\0\x0F\t\0\x11\t\0\x13\t\0\x15\t\0") }, 10u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1\0\0\xE3\0\0\xE4\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE2\0\0\xE4\0\0\xE6\0\0\xE7\0\0\xEC\0\0\xF1\0\0\xF2\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0_\x01\0`\x01\0c\x01\0d\x01\0") }, 14u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\r\t\0\x0E\t\0\x11\t\0\x12\t\0E\t\0F\t\0I\t\0J\t\0\x0C \0\x0E \0") }, 6u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"2\x04\x003\x04\x005\x04\08\x04\0D\x04\0E\x04\0F\x04\0G\x04\0H\x04\0K\x04\0L\x04\0M\x04\0N\x04\0P\x04\0Q\x04\0R\x04\0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"k\0\0l\0\0q\0\0r\0\0w\0\0z\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xDF\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF7\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFD\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"k\0\0l\0\0w\0\0z\0\0\xE7\0\0\xE8\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\x11\x01\0\x12\x01\0a\x01\0b\x01\0Y\x02\0Z\x02\0%\x1E\0&\x1E\0") }, 11u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"&\x06\0'\x06\0N\x06\0Q\x06\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"(\x10\0)\x10\x003\x10\x005\x10\0@\x10\0J\x10\0P\x10\0[\x10\0e\x10\0f\x10\0\x90\x10\0\x9A\x10\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x8E\r\0\x91\r\0\xA6\r\0\xA7\r\0\xF3\r\0\xF4\r\0\x0B \0\x0E \0") }, 8u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0Q\x01\0R\x01\0S\x01\0T\x01\0Y\x01\0Z\x01\0k\x01\0l\x01\0m\x01\0n\x01\0q\x01\0r\x01\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0z\0\0\xE0\0\0\xE3\0\0\xE4\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x07\x01\0\x08\x01\0\x11\x01\0\x12\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 43u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0e\0\0f\0\0i\0\0j\0\0o\0\0q\0\0u\0\0w\0\0z\0\0{\0\0") }, 8u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x05\0\x04\0\x08\0\x0C\0\x10\0\xD0\xB0\xCC\x82\xD0\xB5\xCC\x82\xD0\xB8\xCC\x82\xD0\xBE\xCC\x82\xD1\x83\xCC\x82") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0z\0\0\xE5\0\0\xE6\0\0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE0\0\0\xE9\0\0\xEA\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1\0\0\xE4\0\0\xE6\0\0\xE9\0\0\xEB\0\0\xEC\0\0\xED\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0+\x01\0,\x01\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0x\0\0y\0\0") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x0F\x07\0\x10\x07\0-\x07\x000\x07\0M\x07\0P\x07\0\x0C \0\x0E \0") }, 9u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0\xDF\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xF0\0\0\xF1\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFE\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x05\x01\0\x06\x01\0\r\x01\0\x0E\x01\0\x0F\x01\0\x10\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0\x19\x01\0\x1A\x01\0\x1B\x01\0\x1C\x01\0+\x01\0,\x01\0-\x01\0.\x01\0>\x01\0?\x01\0H\x01\0I\x01\0S\x01\0T\x01\0U\x01\0V\x01\0Y\x01\0Z\x01\0a\x01\0b\x01\0e\x01\0f\x01\0k\x01\0l\x01\0m\x01\0n\x01\0o\x01\0p\x01\0~\x01\0\x7F\x01\0") }, 51u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"f\x0C\0p\x0C\0\x0C \0\x0E \0") }, 12u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"F\x04\0G\x04\0I\x04\0J\x04\0K\x04\0M\x04\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x0B \0\x0C \0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x07\x12\0\x08\x12\0G\x12\0H\x12\0\x87\x12\0\x88\x12\0\xAF\x12\0\xB0\x12\0\xCF\x12\0\xD0\x12\0\xEF\x12\0\xF0\x12\0\xF8\x12\0\0\x13\0\x0F\x13\0\x10\x13\0\x18\x13\0 \x13\0X\x13\0[\x13\0\x80\x13\0\x9A\x13\0\x80-\0\x97-\0\xA0-\0\xA7-\0\xA8-\0\xAF-\0\xB0-\0\xB7-\0\xB8-\0\xBF-\0\xC0-\0\xC7-\0\xC8-\0\xCF-\0\xD0-\0\xD7-\0\xD8-\0\xDF-\0") }, 131u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0{\0\0") }, 5u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0e\0\0g\0\0h\0\0j\0\0k\0\0q\0\0s\0\0w\0\0{\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0\x03\x01\0\x04\x01\0\x15\x01\0\x16\x01\0-\x01\0.\x01\0O\x01\0P\x01\0S\x01\0T\x01\0m\x01\0n\x01\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"q\0\0r\0\0w\0\0y\0\0\xDF\0\0\xE7\0\0\xE8\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF8\0\0\xFC\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x93\x04\0\x94\x04\0\x9B\x04\0\x9C\x04\0") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"&\x06\0'\x06\0\x0E \0\x10 \0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"J\x04\0L\x04\0M\x04\0N\x04\0Q\x04\0R\x04\0") }, 4u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\n\0\x04\0\x08\0\x0C\0\x10\0\x14\0\x18\0\x1C\0 \0$\0\xD0\xB0\xCC\x81\xD0\xB5\xCC\x81\xD0\xB8\xCC\x81\xD0\xBE\xCC\x81\xD1\x83\xCC\x81\xD1\x8E\xCC\x81\xD1\x8F\xCC\x81\xD1\x94\xCC\x81\xD1\x96\xCC\x81\xD1\x97\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x06\0\x04\x06\0\"\x06\0%\x06\0&\x06\0'\x06\0)\x06\0*\x06\0G\x06\0H\x06\0J\x06\0S\x06\0T\x06\0U\x06\0V\x06\0Y\x06\0p\x06\0q\x06\0z\x06\0~\x06\0\xBA\x06\0\xBB\x06\0\xC2\x06\0\xC4\x06\0\x0C \0\x10 \0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0w\0\0x\0\0\xE0\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0") }, 40u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"k\0\0l\0\0q\0\0r\0\0w\0\0x\0\0y\0\0z\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE1\0\0\xE2\0\0\xE7\0\0\xE8\0\0\xED\0\0\xEE\0\0\xFA\0\0\xFB\0\0\x07\x01\0\x08\x01\0B\x01\0C\x01\0_\x01\0`\x01\0c\x01\0d\x01\0\xF5\x01\0\xF6\x01\0\xA3\x02\0\xA4\x02\0\xA6\x02\0\xA7\x02\0\x11\x1E\0\x12\x1E\0") }, 18u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0z\xCC\xA7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"f\0\0g\0\0j\0\0k\0\0w\0\0x\0\0z\0\0{\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0c\0\0d\0\0e\0\0g\0\0h\0\0q\0\0r\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"h\0\0i\0\0v\0\0w\0\0z\0\0{\0\0\xE3\0\0\xE4\0\0") }, 4u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"D\t\0E\t\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"c\0\0d\0\0f\0\0g\0\0h\0\0i\0\0j\0\0k\0\0l\0\0m\0\0o\0\0p\0\0q\0\0r\0\0v\0\0w\0\0z\0\0{\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\xE0\0\0\xE3\0\0\xE4\0\0\xF0\0\0\xF1\0\0\xF7\0\0\xF8\0\0\xFD\0\0\xFF\0\0\0\x01\0\x01\x01\0\x02\x01\0\x03\x01\0\x04\x01\0\x13\x01\0\x14\x01\0\x15\x01\0\x16\x01\0+\x01\0,\x01\0-\x01\0.\x01\0M\x01\0N\x01\0O\x01\0P\x01\0S\x01\0T\x01\0k\x01\0l\x01\0m\x01\0n\x01\0\xF9\x1E\0\xFA\x1E\0") }, 50u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"MN\0NN\0\xC2N\0\xC3N\0\x0FO\0\x10O\0PO\0QO\0\xB6O\0\xB7O\0\xF3P\0\xF4P\0FQ\0GQ\0LQ\0MQ\0yQ\0zQ\0\xF8Q\0\xF9Q\0+R\0,R\08R\09R\0\xF3R\0\xF4R\0QS\0RS\0^S\0_S\0`S\0aS\0\xF6S\0\xF7S\0\x05V\0\x06V\0$X\0%X\0\x8EX\0\x8FX\0\xE4X\0\xE5X\0eY\0fY\0\\[\0][\0\xC7\\\0\xC8\\\0\xBC]\0\xBD]\0\xFD]\0\xFE]\0\x17h\0\x18h\0Ti\0Ui\0\x85m\0\x86m\0>n\0?n\0\x8Eo\0\x8Fo\0Xp\0Yp\0\xE6q\0\xE7q\0\xC4r\0\xC5r\x003t\x004t\0Zt\0[t\0+u\0,u\0\x91x\0\x92x\0\x01y\0\x02y\0\x9C~\0\x9D~\0G\x82\0H\x82\0\x92\x82\0\x93\x82\0\xD7\x82\0\xD8\x82\0(\x83\0)\x83\0\xEC\x84\0\xED\x84\0\xA9\x86\0\xAA\x86\0\0\x87\0\x01\x87\0\xD8\x88\0\xD9\x88\0,\x8B\0-\x8B\0K\x91\0L\x91\0\xB4\x96\0\xB5\x96\0\xC0\x96\0\xC1\x96\0\xEA\x9A\0\xEB\x9A\0") }, 53u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"MN\0NN\0\xC2N\0\xC3N\0\x0FO\0\x10O\0PO\0QO\0\xA3O\0\xA4O\0\xF3P\0\xF4P\0FQ\0GQ\0QQ\0RQ\08R\09R\0\xCBR\0\xCCR\0QS\0RS\0^S\0_S\0\x80T\0\x81T\0\x05V\0\x06V\0$X\0%X\0\x8EX\0\x8FX\0\xE4X\0\xE5X\0\\[\0][\0\x7F\\\0\x80\\\0\xC7\\\0\xC8\\\0\xFD]\0\xFE]\0\x9Ce\0\x9De\0\x19f\0\x1Af\0<f\0=f\0\x17h\0\x18h\0Ti\0Ui\0Qm\0Rm\0\x85m\0\x86m\0Xn\0Yn\0\x8Eo\0\x8Fo\0\x7Fp\0\x80p\0\xC4r\0\xC5r\x003t\x004t\0Zt\0[t\0+u\0,u\0\x91x\0\x92x\0\x01y\0\x02y\0\xF0~\0\xF1~\0\x92\x82\0\x93\x82\0\xD7\x82\0\xD8\x82\0(\x83\0)\x83\x005\x83\x006\x83\0\xEC\x84\0\xED\x84\0\xA9\x86\0\xAA\x86\0\xF0\x86\0\xF1\x86\0\0\x87\0\x01\x87\0\xD8\x88\0\xD9\x88\0,\x8C\0-\x8C\0c\x8D\0d\x8D\0K\x91\0L\x91\0\xFD\x95\0\xFE\x95\0G\x96\0H\x96\0\x1C\x97\0\x1D\x97\0") }, 53u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10N\0\x11N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x7F\0\x1A\x7F\0\x1B\x7F\0\x1D\x7F\0\x1E\x7F\0$\x7F\0%\x7F\0-\x7F\0.\x7F\x000\x7F\x001\x7F\0i\x7F\0j\x7F\0\x94\x7F\0\x95\x7F\0\x9A\x7F\0\x9B\x7F\0\xA1\x7F\0\xA2\x7F\0\xB9\x7F\0\xBA\x7F\0\xE9\x7F\0\xEA\x7F\0\xF1\x7F\0\xF2\x7F\0\x15\x80\0\x16\x80\0\x18\x80\0\x1A\x80\08\x80\09\x80\0;\x80\0<\x80\0=\x80\0>\x80\0?\x80\0@\x80\0B\x80\0C\x80\0F\x80\0G\x80\0K\x80\0L\x80\0\x83\x80\0\x84\x80\0\x86\x80\0\x88\x80\0\x8B\x80\0\x8D\x80\0\x98\x80\0\x99\x80\0\x9B\x80\0\x9C\x80\0\x9D\x80\0\x9E\x80\0\xA0\x80\0\xA1\x80\0\xA2\x80\0\xA3\x80\0\xAA\x80\0\xAB\x80\0\xAE\x80\0\xAF\x80\0\xB4\x80\0\xB5\x80\0\xBA\x80\0\xBB\x80\0\xBE\x80\0\xC1\x80\0\xC3\x80\0\xC4\x80\0\xDA\x80\0\xDB\x80\0\xE7\x80\0\xE8\x80\0\xF0\x80\0\xF1\x80\0\xF3\x80\0\xF4\x80\0\x02\x81\0\x03\x81\0\t\x81\0\x0B\x81\0\x0F\x81\0\x11\x81\0\x13\x81\0\x14\x81\0\x16\x81\0\x17\x81\0\x1A\x81\0\x1B\x81\0/\x81\x000\x81\0>\x81\0?\x81\0K\x81\0L\x81\0T\x81\0V\x81\0e\x81\0f\x81\0n\x81\0o\x81\0z\x81\0|\x81\0\x80\x81\0\x81\x81\0\x8A\x81\0\x8B\x81\0\x8F\x81\0\x90\x81\0\x9B\x81\0\x9E\x81\0\xA8\x81\0\xA9\x81\0\xC0\x81\0\xC1\x81\0\xCA\x81\0\xCB\x81\0\xFC\x81\0\xFD\x81\0\0\x82\0\x01\x82\0\x05\x82\0\x07\x82\0\x14\x82\0\x15\x82\x001\x82\x002\x82\x005\x82\x007\x82\0G\x82\0H\x82\0X\x82\0Y\x82\0n\x82\0o\x82\0p\x82\0q\x82\0s\x82\0t\x82\0\x8B\x82\0\x8C\x82\0\x99\x82\0\x9A\x82\0\x9C\x82\0\x9D\x82\0\xA5\x82\0\xA6\x82\0\xAF\x82\0\xB0\x82\0\xB9\x82\0\xBA\x82\0\xBD\x82\0\xBE\x82\0\xC7\x82\0\xC8\x82\0\xD1\x82\0\xD2\x82\0\xD4\x82\0\xD5\x82\0\xDB\x82\0\xDD\x82\0\xDE\x82\0\xE0\x82\0\xE3\x82\0\xE4\x82\0\xF9\x82\0\xFA\x82\0\x01\x83\0\x02\x83\0\x04\x83\0\x06\x83\0\t\x83\0\n\x83\0\x0E\x83\0\x0F\x83\0'\x83\0(\x83\0,\x83\0-\x83\x005\x83\x006\x83\08\x83\09\x83\0F\x83\0G\x83\0T\x83\0U\x83\0a\x83\0b\x83\0d\x83\0e\x83\0g\x83\0h\x83\0k\x83\0l\x83\0\x93\x83\0\x94\x83\0\xB4\x83\0\xB5\x83\0\xB9\x83\0\xBB\x83\0\xBD\x83\0\xBE\x83\0\xC7\x83\0\xC8\x83\0\xCA\x83\0\xCB\x83\0\xCC\x83\0\xCD\x83\0\xE0\x83\0\xE1\x83\0\xF1\x83\0\xF2\x83\0\x0C\x84\0\r\x84\0\x0E\x84\0\x0F\x84\0\x1D\x84\0\x1E\x84\0c\x84\0d\x84\0i\x84\0j\x84\0k\x84\0m\x84\0q\x84\0r\x84\0u\x84\0v\x84\0\x9C\x84\0\x9D\x84\0\xB2\x84\0\xB3\x84\0\xB8\x84\0\xB9\x84\0\xC4\x84\0\xC5\x84\0\xFF\x84\0\0\x85\0\x13\x85\0\x14\x85\0\x17\x85\0\x18\x85\0\x1A\x85\0\x1B\x85\0,\x85\0-\x85\0<\x85\0>\x85\0I\x85\0K\x85\0t\x85\0u\x85\0~\x85\0\x7F\x85\0\x87\x85\0\x88\x85\0\x9B\x85\0\x9C\x85\0\xAF\x85\0\xB0\x85\0\xD0\x85\0\xD1\x85\0\xD5\x85\0\xD6\x85\0\xFB\x85\0\xFC\x85\0\x11\x86\0\x12\x86\0O\x86\0Q\x86\0Z\x86\0[\x86\0\x80\x86\0\x81\x86\0\x82\x86\0\x83\x86\0\x8A\x86\0\x8B\x86\0\x8C\x86\0\x8D\x86\0\x93\x86\0\x94\x86\0\x95\x86\0\x96\x86\0\x9D\x86\0\x9E\x86\0\xA3\x86\0\xA5\x86\0\xAA\x86\0\xAB\x86\0\xAF\x86\0\xB0\x86\0\xC0\x86\0\xC1\x86\0\xC6\x86\0\xC7\x86\0\xCE\x86\0\xCF\x86\0\xD0\x86\0\xD1\x86\0\xDB\x86\0\xDC\x86\0\xE4\x86\0\xE5\x86\0\xF0\x86\0\xF1\x86\0\xFE\x86\0\xFF\x86\0\0\x87\0\x01\x87\0\x08\x87\0\t\x87\0\x12\x87\0\x14\x87\0\x15\x87\0\x16\x87\0\x17\x87\0\x19\x87\0!\x87\0\"\x87\0%\x87\0&\x87\x004\x87\x005\x87\0;\x87\0<\x87\0G\x87\0H\x87\0I\x87\0J\x87\0L\x87\0M\x87\0N\x87\0O\x87\0W\x87\0X\x87\0Y\x87\0Z\x87\0`\x87\0a\x87\0t\x87\0u\x87\0\x82\x87\0\x84\x87\0\xBA\x87\0\xBB\x87\0\xC0\x87\0\xC1\x87\0\xC6\x87\0\xC7\x87\0\xCB\x87\0\xCC\x87\0\xD1\x87\0\xD2\x87\0\x15\x88\0\x16\x88\0E\x88\0F\x88\0M\x88\0N\x88\0T\x88\0U\x88\0Y\x88\0Z\x88\0k\x88\0m\x88\0p\x88\0q\x88\0w\x88\0x\x88\0\x81\x88\0\x82\x88\0\x84\x88\0\x85\x88\0\x8D\x88\0\x8E\x88\0\x96\x88\0\x97\x88\0\x9C\x88\0\x9D\x88\0\xB1\x88\0\xB2\x88\0\xD9\x88\0\xDA\x88\0\xF3\x88\0\xF4\x88\0\xF8\x88\0\xFA\x88\0\x02\x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\x94\0\xA7\x94\0\xA8\x94\0\xA9\x94\0\xAA\x94\0\xAE\x94\0\xB0\x94\0\xB3\x94\0\xB4\x94\0\xBE\x94\0\xBF\x94\0\xC2\x94\0\xC3\x94\0\xC5\x94\0\xC6\x94\0\xD0\x94\0\xD1\x94\0\xDB\x94\0\xDC\x94\0\xDD\x94\0\xDE\x94\0\xF0\x94\0\xF1\x94\0\xF2\x94\0\xF3\x94\0\xF8\x94\0\xF9\x94\0\x04\x95\0\x05\x95\0\x08\x95\0\t\x95\0\x0C\x95\0\r\x95\0\x10\x95\0\x12\x95\0\x1A\x95\0\x1B\x95\0#\x95\0&\x95\0/\x95\x001\x95\09\x95\0:\x95\0;\x95\0<\x95\0@\x95\0A\x95\0P\x95\0R\x95\0V\x95\0W\x95\0p\x95\0q\x95\0v\x95\0w\x95\0\xEF\x95\0\xF0\x95\0\xF8\x95\0\xF9\x95\0\xFA\x95\0\xFB\x95\0\xFD\x95\0\xFE\x95\0\0\x96\0\x01\x96\0\x0E\x96\0\x0F\x96\x001\x96\x002\x96\0K\x96\0M\x96\0U\x96\0V\x96\0a\x96\0b\x96\0h\x96\0i\x96\0\x85\x96\0\x86\x96\0\x8B\x96\0\x8C\x96\0\x98\x96\0\x9A\x96\0\xA7\x96\0\xA8\x96\0\xB6\x96\0\xB7\x96\0\xC0\x96\0\xC2\x96\0\xC7\x96\0\xC8\x96\0\xCC\x96\0\xCD\x96\0\xCF\x96\0\xD0\x96\0\xD5\x96\0\xD6\x96\0\xF9\x96\0\xFA\x96\0\x04\x97\0\x05\x97\0\t\x97\0\n\x97\0\x0E\x97\0\x0F\x97\0\x1C\x97\0\x1D\x97\0\x1E\x97\0\x1F\x97\0>\x97\0?\x97\0a\x97\0b\x97\0t\x97\0u\x97\0v\x97\0w\x97\0\x8D\x97\0\x8E\x97\0\xA0\x97\0\xA1\x97\0\xAD\x97\0\xAE\x97\0\xE7\x97\0\xE8\x97\0\xED\x97\0\xEE\x97\0\xF5\x97\0\xF6\x97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x9E\0K\x9E\0O\x9E\0P\x9E\0f\x9E\0g\x9E\0\xCF\x9E\0\xD0\x9E\0\xD4\x9E\0\xD5\x9E\0\xDB\x9E\0\xDC\x9E\0\xEF\x9E\0\xF0\x9E\0\x0E\x9F\0\x0F\x9F\0,\x9F\0-\x9F\0\x87\x9F\0\x88\x9F\0") }, 1465u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"(N\0)N\x006N\x007N\0?N\0@N\0MN\0NN\0sN\0tN\0\x85N\0\x86N\0\xA0N\0\xA1N\0\xC2N\0\xC3N\0\x0FO\0\x10O\0PO\0QO\0\xB6O\0\xB7O\0\xCFO\0\xD0O\0\tP\0\nP\0}P\0~P\0\x85P\0\x86P\0\x98P\0\x99P\0\xF3P\0\xF4P\0?Q\0@Q\0FQ\0GQ\0LQ\0MQ\0yQ\0zQ\0\x82Q\0\x83Q\0\x96Q\0\x97Q\0\xABQ\0\xACQ\0\xCBQ\0\xCCQ\0\xCDQ\0\xCEQ\0\xE0Q\0\xE1Q\0\xF5Q\0\xF6Q\0\xF8Q\0\xF9Q\0\x12R\0\x13R\0(R\0)R\0+R\0,R\0.R\0/R\08R\09R\0CR\0DR\0\xF3R\0\xF4R\0\xF9R\0\xFAR\0\xFER\0\xFFR\0\x15S\0\x16S\0\x19S\0\x1BS\0#S\0$S\0/S\x000S\08S\09S\0QS\0RS\0^S\0_S\0`S\0aS\0iS\0jS\0yS\0zS\0\x82S\0\x83S\0\xB6S\0\xB7S\0\xC9S\0\xCAS\0\xF6S\0\xF7S\0;T\0<T\0\xFAT\0\xFBT\0\x07U\0\x08U\x005U\x006U\0dU\0eU\0\xAAU\0\xABU\0\xB2U\0\xB3U\0\x1FV\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05\x83\0(\x83\0)\x83\x005\x83\x006\x83\08\x83\09\x83\0\x93\x83\0\x94\x83\0\x96\x83\0\x97\x83\0\xC7\x83\0\xC8\x83\0\xCC\x83\0\xCD\x83\0\xF1\x83\0\xF2\x83\0\x0E\x84\0\x0F\x84\x005\x84\x006\x84\0u\x84\0v\x84\0\x9C\x84\0\x9D\x84\0\xB8\x84\0\xB9\x84\0\xC4\x84\0\xC5\x84\0\xC9\x84\0\xCA\x84\0\xEC\x84\0\xED\x84\0\x14\x85\0\x15\x85\0%\x85\0&\x85\0,\x85\0-\x85\0I\x85\0J\x85\0~\x85\0\x7F\x85\0\x91\x85\0\x92\x85\0\xAF\x85\0\xB0\x85\0\x0B\x86\0\x0C\x86\0\x11\x86\0\x12\x86\0?\x86\0@\x86\0M\x86\0N\x86\0k\x86\0l\x86\0y\x86\0z\x86\0\x8A\x86\0\x8B\x86\0\x93\x86\0\x94\x86\0\xA9\x86\0\xAA\x86\0\xAF\x86\0\xB0\x86\0\xDB\x86\0\xDC\x86\0\0\x87\0\x01\x87\0\x18\x87\0\x19\x87\0%\x87\0&\x87\x004\x87\x005\x87\0Y\x87\0Z\x87\0_\x87\0a\x87\0f\x87\0g\x87\0t\x87\0u\x87\0x\x87\0y\x87\0\x82\x87\0\x84\x87\0\x9E\x87\0\x9F\x87\0\xBA\x87\0\xBB\x87\0\xC0\x87\0\xC1\x87\0\xC4\x87\0\xC5\x87\0\xCB\x87\0\xCC\x87\0\xD1\x87\0\xD2\x87\0\xF3\x87\0\xF4\x87\0\xFB\x87\0\xFC\x87\0\x05\x88\0\x06\x88\0\x15\x88\0\x16\x88\0\x1F\x88\0 \x88\0#\x88\0$\x88\0k\x88\0l\x88\0\x8D\x88\0\x8E\x88\0\xCF\x88\0\xD0\x88\0\xD8\x88\0\xDA\x88\0\xF1\x88\0\xF2\x88\0\xF9\x88\0\xFA\x88\0\x10\x89\0\x11\x89\0j\x89\0k\x89\0o\x89\0p\x89\0~\x89\0\x7F\x89\0\x1D\x8A\0\x1E\x8A\0:\x8A\0;\x8A\0\x0E\x8B\0\x0F\x8B\0,\x8B\0-\x8B\0N\x8C\0O\x8C\0T\x8C\0V\x8C\0Z\x8C\0[\x8C\0x\x8C\0z\x8C\0\x1B\x8D\0\x1C\x8D\0\xC6\x8D\0\xC7\x8D\0\xE8\x8D\0\xE9\x8D\0\xEA\x8D\0\xEB\x8D\0)\x8E\0*\x8E\0\xAC\x8E\0\xAD\x8E\0\xF8\x8E\0\xF9\x8E\0N\x8F\0O\x8F\0\x9C\x8F\0\x9D\x8F\0\xA3\x8F\0\xA4\x8F\0\xB5\x8F\0\xB6\x8F\0^\x90\0_\x90\0\x91\x90\0\x92\x90\0\x19\x91\0\x1A\x91\0K\x91\0L\x91\0j\x91\0k\x91\0\xAC\x91\0\xAD\x91\0\xC6\x91\0\xC7\x91\0\xD8\x91\0\xD9\x91\0\x14\x92\0\x16\x92\0E\x92\0F\x92\0[\x92\0\\\x92\0d\x92\0e\x92\0\xC1\x92\0\xC2\x92\0(\x93\0)\x93\x006\x93\x007\x93\0J\x93\0K\x93\0\x9A\x93\0\x9B\x93\0\xAC\x93\0\xAD\x93\0\xC8\x93\0\xC9\x93\0\xE2\x93\0\xE3\x93\0:\x94\0;\x94\0p\x94\0q\x94\0}\x94\0~\x94\0\x7F\x94\0\x80\x94\0\xA9\x95\0\xAA\x95\0\x1C\x96\0\x1D\x96\x001\x96\x002\x96\0\xB4\x96\0\xB5\x96\0\xB6\x96\0\xB7\x96\0\xB9\x96\0\xBA\x96\0\xC0\x96\0\xC1\x96\0\xCC\x96\0\xCD\x96\0\x04\x97\0\x05\x97\0\x1C\x97\0\x1D\x97\0Q\x97\0R\x97\0Y\x97\0Z\x97\0t\x97\0u\x97\0\xA0\x97\0\xA1\x97\0\xAD\x97\0\xAE\x97\0\xED\x97\0\xEE\x97\0\x0C\x98\0\r\x98\08\x98\09\x98\0[\x98\0\\\x98\0\xB1\x98\0\xB2\x98\0\xC6\x98\0\xC7\x98\0\xEA\x98\0\xEB\x98\0\x03\x99\0\x04\x99\0\x0C\x99\0\r\x99\0\x1A\x99\0\x1B\x99\x005\x99\x006\x99\0>\x99\0?\x99\0\xDD\x99\0\xDE\x99\0\xF1\x99\0\xF2\x99\0U\x9A\0V\x9A\0\xB0\x9A\0\xB1\x9A\0\xB7\x9A\0\xB8\x9A\0\xCF\x9A\0\xD0\x9A\0\xDF\x9A\0\xE0\x9A\0\r\x9B\0\x0E\x9B\0/\x9B\x000\x9B\x002\x9B\x003\x9B\0w\x9B\0x\x9B\0\x91\x9B\0\x92\x9B\0\xC9\x9B\0\xCB\x9B\0\xE8\x9B\0\xE9\x9B\0w\x9C\0x\x9C\0\xE9\x9C\0\xEA\x9C\0\xF6\x9C\0\xF7\x9C\0(\x9D\0)\x9D\0a\x9D\0b\x9D\0\xB4\x9D\0\xB5\x9D\0\x1A\x9E\0\x1B\x9E\0u\x9E\0v\x9E\0}\x9E\0~\x9E\0\xCD\x9E\0\xCE\x9E\0\xDB\x9E\0\xDC\x9E\0\xF9\x9E\0\xFA\x9E\0\xFD\x9E\0\xFE\x9E\0\x0E\x9F\0\x0F\x9F\0,\x9F\0-\x9F\0\x90\x9F\0\x91\x9F\0\xA0\x9F\0\xA1\x9F\0") }, 495u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- ];
- unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1>, icu_provider::DataError> {
- let mut metadata = icu_provider::DataResponseMetadata::default();
- let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_AUXILIARY_V1, req.id, req.metadata.attributes_prefix_match) {
- payload
- } else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1 as icu_provider::DataMarker>::INFO.fallback_config);
- let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
- loop {
- if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_AUXILIARY_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
- metadata.locale = Some(fallback_iterator.take());
- break payload;
- }
- if fallback_iterator.get().is_unknown() {
- return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1 as icu_provider::DataMarker>::INFO, req));
- }
- fallback_iterator.step();
- }
- };
- Ok(icu_provider::DataResponse { payload, metadata })
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_exemplar_characters_auxiliary_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleExemplarCharactersAuxiliaryV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok(icu_provider::baked::DataStore::iter(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_AUXILIARY_V1).collect())
- }
- }
- };
- ($ provider : ty , DRY) => {};
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_exemplar_characters_auxiliary_v1!($provider, ITER);
- };
-}
-#[doc(inline)]
-pub use __impl_locale_exemplar_characters_auxiliary_v1 as impl_locale_exemplar_characters_auxiliary_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_index_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_index_v1.rs.data
deleted file mode 100644
index 4125fa21fa5..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_index_v1.rs.data
+++ /dev/null
@@ -1,869 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleExemplarCharactersIndexV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 690B for the lookup data structure (146 data identifiers)
-/// * 13345B[^1] for the actual data (114 unique structs)
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `icu_provider/baked`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_exemplar_characters_index_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- const DATA_LOCALE_EXEMPLAR_CHARACTERS_INDEX_V1: icu_provider::baked::zerotrie::Data<icu::locale::provider::LocaleExemplarCharactersIndexV1> = {
- const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1zabcdefghijklmnopqrstuvwxyz\0\0\0\0\0\0\0\0\0\0\x01\x01\x01\x01\x01\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x145Mc}\x9C\xAB\xCD\xE2\xEA\x1A-Qcj~\x81\x90\xDA\x03\x18\x1B\x1E 4\xC6fkmrsz\x01\x02\x03\x04\x07\x80\x81\x82\x83\x84t\x85\x86\xC6aegnrs\x08\t\n\x0B\x0E\x87l-Latn\x88\x89\x8A\x8B\x8Cx\x8D\x8E-Cyrl\x8F\xC6aehsvy\x01\x03\x06\x08\n\x80b\x80r\x90\0\x90\x01\x90\x02\x90\x03\xC4aeos\x02\x08\x0B\x90\x04\x80-AT\x90\x05i\x90\x06b\x90\x07\xC7elnostu\x02\x04\x05\x07\t\x0B\x90\x08\x90\t\x80\x90\n\x90\x0B\x90\x0C\x80\xC6afiory\x02\t\x0E\x10\x11\x90\r-Adlm\x90\x0E\x90\x0Fl\x90\x10\x90\x11\x80\x90\x12\xC4adlu\x01\x03\x05\x80\x90\x13\x90\x0B\x90\x14\xC7aeirsuy\x07\t\x0B\r\x10\x12\x90\x15-NE\x90\x16\x90\x17\x90\x18\x90\x19b\x90\x1A\x90\x1B\x90\x1C\xC6adgist\x01\x02\x04\x06\x08\x80\x80\x90\x1D\x90\x1E\x90\x1F\x80\xC2av\x02\x90 \x90!\xC9aegkmnouy\x02\x05\x08\x11\x13\x15\x1A\x1C\x90\"a\x90#p\x90$\x90%-Arab\x90&\x90'\x90(\x90)k\x90*\x90+\x90,\xC5biotv\x01\x03\x05\x07\x80j\x80\x90-\x90.\x90/\xC9aiklnrsty\x03\x05\x07\t\x0B\r\x0E\x10i\x900\x901\x902\x903\x904\x905\x80\x906\x907\xC4delo\x05\x07\x08s-NL\x80\x90\x18\x80\x90\x04\xC2mr\x01\x80\x908\xC5aclst\x02\x05\x07\t\x909m\x90:\x90;\x90<\x80u\x90=\xC4mouw\x02\x04\x06\x90>\x90?\x90@\x80\xCFacdhikloqruvwyz\x05\n\x0C\x0F\x11\x13\x15\x17\x19 \"$&)\x90\x06h\x90A\x90Bn\x90C\x90Dn\x90E\x90F\x90G\x90H\x90I\x90J\x8F-Latn\x8E\x90K\x90\x0F\x90:r\x90Ll\x90M\xCAaeghikorty\x02\x04\x06\x08\n\x0C\x0E\x10\x12\x90N\x90O\x90P\x90Q\x90R\x90S\x90T\x90U\x90Vv\x90,\xC5gknrz\x02\x04\x07\t\x90W\x90Xd\x90Y\x90Z\x90[i\x90\\o\x90]h\x80\xC3oru\x02\x05\x90^l\x90_e\x90`-Hans\x80\xC3ahu\x01\t\x80\x80-Hant\x90a\x80" };
- const VALUES: &'static [<icu::locale::provider::LocaleExemplarCharactersIndexV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x86\x01\0\x87\x01\0\x90\x01\0\x91\x01\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x12\0\x01\x12\0\x08\x12\0\t\x12\0\x10\x12\0\x11\x12\0\x18\x12\0\x19\x12\0 \x12\0!\x12\0(\x12\0)\x12\x000\x12\x001\x12\08\x12\09\x12\0@\x12\0A\x12\0H\x12\0I\x12\0`\x12\0a\x12\0h\x12\0i\x12\0p\x12\0q\x12\0x\x12\0y\x12\0\x80\x12\0\x81\x12\0\x88\x12\0\x89\x12\0\x90\x12\0\x91\x12\0\x98\x12\0\x99\x12\0\xA0\x12\0\xA1\x12\0\xA8\x12\0\xA9\x12\0\xB0\x12\0\xB1\x12\0\xB8\x12\0\xB9\x12\0\xC8\x12\0\xC9\x12\0\xD0\x12\0\xD1\x12\0\xD8\x12\0\xD9\x12\0\xE0\x12\0\xE1\x12\0\xE8\x12\0\xE9\x12\0\xF0\x12\0\xF1\x12\0\0\x13\0\x01\x13\0\x08\x13\0\t\x13\0\x10\x13\0\x11\x13\0 \x13\0!\x13\0(\x13\0)\x13\x000\x13\x001\x13\08\x13\09\x13\0@\x13\0A\x13\0H\x13\0I\x13\0P\x13\0Q\x13\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0I\x06\0J\x06\0K\x06\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x82\t\0\x84\t\0\x85\t\0\x8C\t\0\x8F\t\0\x91\t\0\x93\t\0\xA9\t\0\xAA\t\0\xB0\t\0\xB2\t\0\xB3\t\0\xB6\t\0\xBA\t\0\xBC\t\0\xBD\t\0\xCD\t\0\xCF\t\0\xF0\t\0\xF2\t\0") }, 49u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0J\0\0L\0\0W\0\0X\0\0[\0\0\xD1\0\0\xD2\0\0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC7\0\0\xC8\0\0\xD6\0\0\xD7\0\0\xDC\0\0\xDD\0\0\x1E\x01\0\x1F\x01\x000\x01\x001\x01\0^\x01\0_\x01\0\x8F\x01\0\x90\x01\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\x000\x04\0\x92\x04\0\x93\x04\0\x98\x04\0\x99\x04\0\xA0\x04\0\xA1\x04\0\xA2\x04\0\xA3\x04\0\xAA\x04\0\xAB\x04\0\xAE\x04\0\xAF\x04\0\xBA\x04\0\xBB\x04\0\xD8\x04\0\xD9\x04\0\xE8\x04\0\xE9\x04\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0Q\0\0R\0\0V\0\0W\0\0X\0\0Y\0\0[\0\0\xC1\0\0\xC2\0\0\xC9\0\0\xCA\0\0\xD3\0\0\xD4\0\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0ChDhGhKhRhShThZh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x06\x04\0\x07\x04\0\x10\x04\0\x18\x04\0\x19\x04\0)\x04\0+\x04\x000\x04\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10\x04\0*\x04\0.\x04\x000\x04\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x85\t\0\x8C\t\0\x8F\t\0\x91\t\0\x93\t\0\x99\t\0\x9A\t\0\x9E\t\0\x9F\t\0\xA9\t\0\xAA\t\0\xB1\t\0\xB2\t\0\xB3\t\0\xB6\t\0\xBA\t\0") }, 41u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xA6\x95\xE0\xA7\x8D\xE0\xA6\xB7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0Q\0\0R\0\0[\0\0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\x0B\t\0\r\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0\x19\t\0\x1A\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0") }, 45u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xA4\xA1\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x06\x01\0\x07\x01\0\x0C\x01\0\r\x01\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 30u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x03\0\x05\0D\xC5\xBDLJNJ") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\x04\0\x03\x04\0\x08\x04\0\x0C\x04\0\x0F\x04\0\x19\x04\0\x1A\x04\0)\x04\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xA0\x13\0\xA1\x13\0\xA6\x13\0\xA7\x13\0\xAD\x13\0\xAE\x13\0\xB3\x13\0\xB4\x13\0\xB9\x13\0\xBA\x13\0\xBE\x13\0\xBF\x13\0\xC6\x13\0\xC7\x13\0\xCC\x13\0\xCD\x13\0\xD3\x13\0\xD4\x13\0\xDC\x13\0\xDD\x13\0\xE3\x13\0\xE4\x13\0\xE9\x13\0\xEA\x13\0\xEF\x13\0\xF0\x13\0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x0C\x01\0\r\x01\0X\x01\0Y\x01\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 30u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0CH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\x000\x04\0\xAA\x04\0\xAB\x04\0\xD0\x04\0\xD1\x04\0\xD6\x04\0\xD7\x04\0\xF2\x04\0\xF3\x04\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0") }, 26u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0CHDDFFLLNGPHRHTH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC5\0\0\xC7\0\0\xD8\0\0\xD9\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC4\0\0\xC5\0\0\xD6\0\0\xD7\0\0\xDC\0\0\xDD\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\r\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0`\t\0b\t\0") }, 48u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x06\x01\0\x07\x01\0\x0C\x01\0\r\x01\0A\x01\0B\x01\0Z\x01\0[\x01\0`\x01\0a\x01\0y\x01\0z\x01\0}\x01\0~\x01\0") }, 33u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0Ch") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0J\0\0K\0\0Q\0\0R\0\0[\0\0J\x01\0K\x01\0\x86\x01\0\x87\x01\0\x89\x01\0\x8A\x01\0\x90\x01\0\x92\x01\0\x94\x01\0\x95\x01\0\xB2\x01\0\xB3\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x91\x03\0\xA2\x03\0\xA3\x03\0\xAA\x03\0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0Q\0\0R\0\0W\0\0Z\0\0[\0\0\x08\x01\0\t\x01\0\x1C\x01\0\x1D\x01\0$\x01\0%\x01\x004\x01\x005\x01\0\\\x01\0]\x01\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xD1\0\0\xD2\0\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC4\0\0\xC5\0\0\xD5\0\0\xD7\0\0\xDC\0\0\xDD\0\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\"\x06\0#\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\xA9\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xCC\x06\0\xCD\x06\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\xE9\x01\x01\xE9\x01\x1B\xE9\x01\x1C\xE9\x01") }, 2u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC4\0\0\xC6\0\0\xD6\0\0\xD7\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xD1\0\0\xD2\0\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0Ng") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC1\0\0\xC2\0\0\xC6\0\0\xC7\0\0\xCD\0\0\xCE\0\0\xD0\0\0\xD1\0\0\xD3\0\0\xD4\0\0\xD8\0\0\xD9\0\0\xDA\0\0\xDB\0\0\xDD\0\0\xDE\0\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0Q\0\0R\0\0Y\0\0Z\0\0[\0\0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0J\0\0L\0\0Q\0\0R\0\0V\0\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x85\n\0\x8C\n\0\x8D\n\0\x8E\n\0\x8F\n\0\x92\n\0\x93\n\0\xA9\n\0\xAA\n\0\xB1\n\0\xB2\n\0\xB4\n\0\xB5\n\0\xBA\n\0") }, 47u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x05\0\x06\0\x0C\0\x15\0\x1E\0\xE0\xAA\x85\xE0\xAA\x82\xE0\xAA\x85\xE0\xAA\x83\xE0\xAA\x95\xE0\xAB\x8D\xE0\xAA\xB7\xE0\xAA\x9C\xE0\xAB\x8D\xE0\xAA\x9E\xE0\xAA\xA4\xE0\xAB\x8D\xE0\xAA\xB0") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0P\0\0R\0\0V\0\0W\0\0X\0\0Y\0\0[\0\0\x81\x01\0\x82\x01\0\x8A\x01\0\x8B\x01\0\x98\x01\0\x99\x01\0\xB3\x01\0\xB4\x01\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x81\x01\0\x82\x01\0\x8A\x01\0\x8B\x01\0\x98\x01\0\x99\x01\0\xB3\x01\0\xB4\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD0\x05\0\xDA\x05\0\xDB\x05\0\xDD\x05\0\xDE\x05\0\xDF\x05\0\xE0\x05\0\xE3\x05\0\xE4\x05\0\xE5\x05\0\xE6\x05\0\xEB\x05\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\x0C\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0") }, 44u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x06\x01\0\x07\x01\0\x0C\x01\0\r\x01\0\x10\x01\0\x11\x01\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 31u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x03\0\x05\0D\xC5\xBDLJNJ") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x06\x01\0\x07\x01\0\x0C\x01\0\r\x01\0A\x01\0B\x01\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 31u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0CHD\xC5\xB9") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC1\0\0\xC2\0\0\xC9\0\0\xCA\0\0\xCD\0\0\xCE\0\0\xD3\0\0\xD4\0\0\xD6\0\0\xD7\0\0\xDA\0\0\xDB\0\0\xDC\0\0\xDD\0\0P\x01\0Q\x01\0p\x01\0q\x01\0") }, 35u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x02\0\x04\0\x07\0\t\0\x0B\0\r\0\x0F\0\x11\0CSDZDZSGYLYNYSZTYZS") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"1\x05\0W\x05\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0D\x1E\0E\x1E\0\xCA\x1E\0\xCB\x1E\0\xCC\x1E\0\xCD\x1E\0\xE4\x1E\0\xE5\x1E\0") }, 30u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0CHGBGHGWKPKWNWNYSH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0U\0\0V\0\0[\0\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x18\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0\x12\0\x14\0\x16\0\x18\0\x1A\0\x1C\0\x1E\0 \0\"\0$\0&\0(\0*\0,\0.\0BBCHDDGGHLHMHNHXIEJJMGNBNDNGNJNRNYNZRRSHSSUOZHZZ") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC1\0\0\xC2\0\0\xC6\0\0\xC7\0\0\xC9\0\0\xCA\0\0\xCD\0\0\xCE\0\0\xD0\0\0\xD1\0\0\xD3\0\0\xD4\0\0\xD6\0\0\xD7\0\0\xDA\0\0\xDB\0\0\xDD\0\0\xDF\0\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"B0\0C0\0K0\0L0\0U0\0V0\0_0\0`0\0j0\0k0\0o0\0p0\0~0\0\x7F0\0\x840\0\x850\0\x890\0\x8A0\0\x8F0\0\x900\0") }, 10u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0F\0\0G\0\0Q\0\0R\0\0V\0\0W\0\0X\0\0Y\0\0Z\0\0\xC2\0\0\xC3\0\0\xC5\0\0\xC6\0\0\xC8\0\0\xCB\0\0\xCC\0\0\xCD\0\0\xD2\0\0\xD3\0\0\xD9\0\0\xDA\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD0\x10\0\xF1\x10\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0Q\0\0R\0\0W\0\0X\0\0Y\0\0Z\0\0[\0\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0B\0\0E\0\0L\0\0M\0\0Q\0\0R\0\0W\0\0Y\0\0Z\0\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x06\x04\0\x07\x04\0\x10\x04\x000\x04\0\x92\x04\0\x93\x04\0\x9A\x04\0\x9B\x04\0\xA2\x04\0\xA3\x04\0\xAE\x04\0\xAF\x04\0\xB0\x04\0\xB1\x04\0\xBA\x04\0\xBB\x04\0\xD8\x04\0\xD9\x04\0\xE8\x04\0\xE9\x04\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0\"\x06\0'\x06\0)\x06\0*\x06\0+\x06\0,\x06\0.\x06\0/\x06\x000\x06\x001\x06\x005\x06\09\x06\0:\x06\0A\x06\0G\x06\0H\x06\0K\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\xAD\x06\0\xAE\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC6\x06\0\xC8\x06\0\xCB\x06\0\xCC\x06\0\xD5\x06\0\xD6\x06\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x80\x17\0\x9D\x17\0\x9F\x17\0\xA3\x17\0\xA5\x17\0\xA8\x17\0\xA9\x17\0\xB2\x17\0\xB3\x17\0\xB4\x17\0") }, 46u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x85\x0C\0\x8D\x0C\0\x8E\x0C\0\x91\x0C\0\x92\x0C\0\xA9\x0C\0\xAA\x0C\0\xB4\x0C\0\xB5\x0C\0\xBA\x0C\0\xDE\x0C\0\xDF\x0C\0\xE0\x0C\0\xE2\x0C\0") }, 52u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"11\x0021\x0041\x0051\x0071\081\091\0:1\0A1\0C1\0E1\0F1\0G1\0I1\0J1\0O1\0") }, 14u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0") }, 48u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC7\0\0\xC8\0\0\xCA\0\0\xCB\0\0\xCE\0\0\xCF\0\0\xDB\0\0\xDC\0\0^\x01\0_\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\x000\x04\0\xA2\x04\0\xA3\x04\0\xAE\x04\0\xAF\x04\0\xE8\x04\0\xE9\x04\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\x0E\0\x83\x0E\0\x84\x0E\0\x85\x0E\0\x87\x0E\0\x89\x0E\0\x8A\x0E\0\x8B\x0E\0\x8D\x0E\0\x8E\x0E\0\x94\x0E\0\x98\x0E\0\x99\x0E\0\xA0\x0E\0\xA1\x0E\0\xA4\x0E\0\xA5\x0E\0\xA6\x0E\0\xA7\x0E\0\xA8\x0E\0\xAA\x0E\0\xAC\x0E\0\xAD\x0E\0\xAF\x0E\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x06\0\x06\0\x0C\0\x12\0\x18\0\x1E\0\xE0\xBA\xAB\xE0\xBA\x87\xE0\xBA\xAB\xE0\xBA\x8D\xE0\xBA\xAB\xE0\xBA\x99\xE0\xBA\xAB\xE0\xBA\xA1\xE0\xBA\xAB\xE0\xBA\xA5\xE0\xBA\xAB\xE0\xBA\xA7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0Q\0\0R\0\0W\0\0Y\0\0[\0\0\x04\x01\0\x05\x01\0\x0C\x01\0\r\x01\0\x16\x01\0\x17\x01\0\x18\x01\0\x19\x01\0.\x01\0/\x01\0`\x01\0a\x01\0j\x01\0k\x01\0r\x01\0s\x01\0}\x01\0~\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\0\x01\0\x01\x01\0\x0C\x01\0\r\x01\0\x12\x01\0\x13\x01\0\"\x01\0#\x01\0*\x01\0+\x01\x006\x01\x007\x01\0;\x01\0<\x01\0E\x01\0F\x01\0`\x01\0a\x01\0j\x01\0k\x01\0}\x01\0~\x01\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\t\0\r\t\0\x0F\t\0\x11\t\0\x13\t\0\x19\t\0\x1A\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0<\t\0=\t\0a\t\0b\t\0") }, 46u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x07\0\x06\0\x0C\0\x15\0\x1E\0$\0-\0\xE0\xA4\x85\xE0\xA4\x82\xE0\xA4\x85\xE0\xA4\x83\xE0\xA4\x95\xE0\xA5\x8D\xE0\xA4\xB7\xE0\xA4\x9C\xE0\xA5\x8D\xE0\xA4\x9E\xE0\xA4\xA1\xE0\xA4\x82\xE0\xA4\xA4\xE0\xA5\x8D\xE0\xA4\xB0\xE0\xA4\xB6\xE0\xA5\x8D\xE0\xA4\xB0") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0B\0\0E\0\0F\0\0H\0\0J\0\0K\0\0L\0\0M\0\0Q\0\0R\0\0S\0\0T\0\0V\0\0W\0\0X\0\0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x03\x04\0\x04\x04\0\x05\x04\0\x06\x04\0\x08\x04\0\x0B\x04\0\x0C\x04\0\r\x04\0\x0F\x04\0\x19\x04\0\x1A\x04\0)\x04\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\r\0\x0C\r\0\x0E\r\0\x11\r\0\x12\r\0)\r\0*\r\0:\r\0") }, 49u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10\x04\x000\x04\0\xAE\x04\0\xAF\x04\0\xE8\x04\0\xE9\x04\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\t\0\x04\t\0\x05\t\0\r\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0=\t\0>\t\0E\t\0F\t\0M\t\0N\t\0P\t\0Q\t\0\r \0\x0E \0") }, 54u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\n\x01\0\x0B\x01\0 \x01\0!\x01\0&\x01\0'\x01\0{\x01\0|\x01\0") }, 30u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x03\0G\xC4\xA6IE*") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x10\0\"\x10\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\x0B\0\x0C\x0B\0\x0F\x0B\0\x11\x0B\0\x13\x0B\0)\x0B\0*\x0B\x001\x0B\x002\x0B\x004\x0B\x006\x0B\0:\x0B\0_\x0B\0`\x0B\0q\x0B\0r\x0B\0") }, 46u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xAC\x95\xE0\xAD\x8D\xE0\xAC\xB7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\n\0\x06\n\0\x15\n\0)\n\0*\n\x001\n\x002\n\x003\n\x005\n\x006\n\08\n\0:\n\0\\\n\0]\n\0r\n\0t\n\0") }, 35u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xA8\xB8\xE0\xA8\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0Q\0\0R\0\0X\0\0Y\0\0[\0\0") }, 23u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0CH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xD3\0\0\xD4\0\0\x06\x01\0\x07\x01\0A\x01\0B\x01\0Z\x01\0[\x01\0y\x01\0z\x01\0{\x01\0|\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0#\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0|\x06\0}\x06\0~\x06\0\x7F\x06\0\x81\x06\0\x82\x06\0\x85\x06\0\x87\x06\0\x89\x06\0\x8A\x06\0\x93\x06\0\x94\x06\0\x96\x06\0\x97\x06\0\x98\x06\0\x99\x06\0\x9A\x06\0\x9B\x06\0\xA9\x06\0\xAA\x06\0\xAB\x06\0\xAC\x06\0\xBC\x06\0\xBD\x06\0\xCC\x06\0\xCD\x06\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0B\0\0H\0\0J\0\0K\0\0O\0\0P\0\0V\0\0W\0\0X\0\0Y\0\0Z\0\0\xD1\0\0\xD2\0\0") }, 16u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0CHLl") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC0\0\0\xC1\0\0\xC8\0\0\xCA\0\0\xCC\0\0\xCD\0\0\xD2\0\0\xD3\0\0\xD9\0\0\xDA\0\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC2\0\0\xC3\0\0\xCE\0\0\xCF\0\0\x02\x01\0\x03\x01\0\x18\x02\0\x19\x02\0\x1A\x02\0\x1B\x02\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\0*\x04\0+\x04\0,\x04\0-\x04\x000\x04\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10\x04\0\x12\x04\0\x13\x04\0\x15\x04\0\x18\x04\0$\x04\0%\x04\0&\x04\0'\x04\0(\x04\0+\x04\0,\x04\0-\x04\0.\x04\0\x94\x04\0\x95\x04\0\xA4\x04\0\xA5\x04\0\xAE\x04\0\xAF\x04\0\xBA\x04\0\xBB\x04\0\xE8\x04\0\xE9\x04\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x04\0\xD0\x94\xD1\x8C\xD0\x9D\xD1\x8C") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0") }, 26u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0TZ") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0K\0\0L\0\0W\0\0Z\0\0[\0\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0J\x06\0K\x06\0z\x06\0|\x06\0}\x06\0\x81\x06\0\x83\x06\0\x85\x06\0\x86\x06\0\x88\x06\0\x8A\x06\0\x8B\x06\0\x8C\x06\0\x8E\x06\0\x8F\x06\0\x90\x06\0\x99\x06\0\x9A\x06\0\xA6\x06\0\xA7\x06\0\xA9\x06\0\xAB\x06\0\xAF\x06\0\xB0\x06\0\xB1\x06\0\xB2\x06\0\xB3\x06\0\xB4\x06\0\xBB\x06\0\xBC\x06\0\xBE\x06\0\xBF\x06\0") }, 50u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x04\0\xD8\xAC\xDA\xBE\xDA\xAF\xDA\xBE") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x04\x10\0\x05\x10\0\x10\x10\0\x12\x10\0\x15\x10\0\x16\x10\0\x19\x10\0\x1F\x10\0\"\x10\0#\x10\0u\x10\0y\x10\0z\x10\0\x82\x10\0\x9E\x10\0\xA0\x10\0\xE0\xA9\0\xE1\xA9\0\xE3\xA9\0\xE4\xA9\0a\xAA\0b\xAA\0j\xAA\0k\xAA\0n\xAA\0o\xAA\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x85\r\0\x8E\r\0\x91\r\0\x97\r\0\x9A\r\0\xA6\r\0\xA7\r\0\xB2\r\0\xB3\r\0\xBC\r\0\xBD\r\0\xBE\r\0\xC0\r\0\xC7\r\0") }, 55u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC4\0\0\xC5\0\0\xD4\0\0\xD5\0\0\x0C\x01\0\r\x01\0\x0E\x01\0\x0F\x01\0=\x01\0>\x01\0`\x01\0a\x01\0d\x01\0e\x01\0}\x01\0~\x01\0") }, 34u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0CH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\x06\x01\0\x07\x01\0\x0C\x01\0\r\x01\0\x10\x01\0\x11\x01\0`\x01\0a\x01\0}\x01\0~\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"B\0\0E\0\0F\0\0I\0\0J\0\0O\0\0Q\0\0U\0\0W\0\0Z\0\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0W\0\0X\0\0[\0\0\xC7\0\0\xC8\0\0\xCB\0\0\xCC\0\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0DHGJLLNJRRSHTHXHZH") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC9\0\0\xCA\0\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x10\x07\0\x11\x07\0\x12\x07\0\x14\x07\0\x15\x07\0\x1C\x07\0\x1D\x07\0\x1E\x07\0\x1F\x07\0$\x07\0%\x07\0'\x07\0(\x07\0-\x07\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xD4\0\0\xD5\0\0\x06\x01\0\x07\x01\0A\x01\0B\x01\0C\x01\0D\x01\0L\x01\0M\x01\0Z\x01\0[\x01\0y\x01\0z\x01\0{\x01\0|\x01\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x85\x0B\0\x8B\x0B\0\x8E\x0B\0\x91\x0B\0\x92\x0B\0\x96\x0B\0\x99\x0B\0\x9B\x0B\0\x9E\x0B\0\xA0\x0B\0\xA3\x0B\0\xA5\x0B\0\xA8\x0B\0\xAB\x0B\0\xAE\x0B\0\xB6\x0B\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\x0C\0\x0C\x0C\0\x0E\x0C\0\x11\x0C\0\x12\x0C\0)\x0C\0*\x0C\x004\x0C\x005\x0C\0:\x0C\0`\x0C\0a\x0C\0") }, 49u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\0&\x04\0'\x04\0)\x04\0*\x04\0+\x04\0-\x04\x000\x04\0\x92\x04\0\x93\x04\0\x9A\x04\0\x9B\x04\0\xB2\x04\0\xB3\x04\0\xB6\x04\0\xB7\x04\0\xE2\x04\0\xE3\x04\0\xEE\x04\0\xEF\x04\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0E\0/\x0E\0") }, 46u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x12\0\x01\x12\0\x08\x12\0\t\x12\0\x10\x12\0\x11\x12\0\x18\x12\0\x19\x12\0 \x12\0!\x12\0(\x12\0)\x12\x000\x12\x001\x12\08\x12\09\x12\0@\x12\0A\x12\0H\x12\0I\x12\0P\x12\0Q\x12\0X\x12\0Y\x12\0`\x12\0a\x12\0h\x12\0i\x12\0p\x12\0q\x12\0x\x12\0y\x12\0\x80\x12\0\x81\x12\0\x88\x12\0\x89\x12\0\x90\x12\0\x91\x12\0\x98\x12\0\x99\x12\0\xA0\x12\0\xA1\x12\0\xA8\x12\0\xA9\x12\0\xB0\x12\0\xB1\x12\0\xB8\x12\0\xB9\x12\0\xC0\x12\0\xC1\x12\0\xC8\x12\0\xC9\x12\0\xD0\x12\0\xD1\x12\0\xD8\x12\0\xD9\x12\0\xE0\x12\0\xE1\x12\0\xE8\x12\0\xE9\x12\0\xF0\x12\0\xF1\x12\0\0\x13\0\x01\x13\0\x08\x13\0\t\x13\0\x10\x13\0\x11\x13\0 \x13\0!\x13\0(\x13\0)\x13\x000\x13\x001\x13\08\x13\09\x13\0@\x13\0A\x13\0H\x13\0I\x13\0P\x13\0Q\x13\0") }, 41u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0Q\0\0R\0\0V\0\0W\0\0X\0\0Y\0\0[\0\0\xC4\0\0\xC5\0\0\xC7\0\0\xC8\0\0\xD6\0\0\xD7\0\0\xDC\0\0\xDE\0\0G\x01\0H\x01\0^\x01\0_\x01\0}\x01\0~\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0B\0\0E\0\0G\0\0H\0\0J\0\0K\0\0Q\0\0S\0\0W\0\0\xBB\x02\0\xBC\x02\0") }, 16u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0NG") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC7\0\0\xC8\0\0\xD6\0\0\xD7\0\0\xDC\0\0\xDD\0\x000\x01\x001\x01\0^\x01\0_\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x04\0\x02\x04\0\x10\x04\x000\x04\0\x96\x04\0\x97\x04\0\xA2\x04\0\xA3\x04\0\xAE\x04\0\xAF\x04\0\xBA\x04\0\xBB\x04\0\xD8\x04\0\xD9\x04\0\xE8\x04\0\xE9\x04\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"'\x06\0)\x06\0*\x06\0+\x06\0,\x06\0-\x06\0.\x06\x000\x06\x001\x06\x005\x06\0:\x06\0;\x06\0A\x06\0G\x06\0H\x06\0K\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\xAD\x06\0\xAE\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC6\x06\0\xC9\x06\0\xCB\x06\0\xCC\x06\0\xD0\x06\0\xD1\x06\0\xD5\x06\0\xD6\x06\0") }, 32u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x04\0\x08\0\x0C\0\x10\0\x14\0\x18\0\x1C\0\xD8\xA6\xD8\xA7\xD8\xA6\xD9\x87\xD8\xA6\xD9\x88\xD8\xA6\xD9\x89\xD8\xA6\xDB\x86\xD8\xA6\xDB\x87\xD8\xA6\xDB\x88\xD8\xA6\xDB\x90") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x04\x04\0\x05\x04\0\x06\x04\0\x08\x04\0\x10\x04\0*\x04\0.\x04\x000\x04\0\x90\x04\0\x91\x04\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0\"\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0G\x06\0H\x06\0I\x06\0y\x06\0z\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x88\x06\0\x89\x06\0\x91\x06\0\x92\x06\0\x98\x06\0\x99\x06\0\xA9\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC1\x06\0\xC2\x06\0\xCC\x06\0\xCD\x06\0\xD2\x06\0\xD3\x06\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0W\0\0X\0\0[\0\0") }, 24u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\x02\0\x05\0\x08\0ChG\xCA\xBBO\xCA\xBBSh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0\xC2\0\0\xC3\0\0\xCA\0\0\xCB\0\0\xD4\0\0\xD5\0\0\x02\x01\0\x03\x01\0\x10\x01\0\x11\x01\0\xA0\x01\0\xA1\x01\0\xAF\x01\0\xB0\x01\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0[\0\0J\x01\0K\x01\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0Q\0\0R\0\0V\0\0W\0\0X\0\0Y\0\0Z\0\0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"A\0\0C\0\0D\0\0F\0\0G\0\0H\0\0I\0\0J\0\0K\0\0L\0\0M\0\0O\0\0P\0\0Q\0\0R\0\0V\0\0W\0\0Z\0\0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x02N\0\x08N\0\tN\0\rN\0\x0EN\0\x14N\0\x15N\0\x1EN\0\x1FN\0&N\0'N\x002N\x003N\0XN\0YN\0~N\0\x7FN\0\x82N\0\x83N\0\xADN\0\xAEN\0\x80P\0\x81P\0\xCEP\0\xCFP\0\xF5P\0\xF6P\0\x10Q\0\x11Q\0\x1FQ\0 Q\x003Q\x004Q\x007Q\08Q\0;Q\0<Q\0\xE2S\0\xE3S\0\xB4V\0\xB5V\0\xCCV\0\xCDV\0\xD1V\0\xD2V\0\xF3^\0\xF4^\0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x01N\0(N\0)N\x006N\x007N\0?N\0@N\0YN\0ZN\0\x85N\0\x86N\0\x8CN\0\x8DN\0\xA0N\0\xA1N\0\xBAN\0\xBBN\0?Q\0@Q\0eQ\0fQ\0kQ\0lQ\0\x82Q\0\x83Q\0\x96Q\0\x97Q\0\xABQ\0\xACQ\0\xE0Q\0\xE1Q\0\xF5Q\0\xF6Q\0\0R\0\x01R\0\x9BR\0\x9CR\0\xF9R\0\xFAR\0\x15S\0\x16S\0\x1AS\0\x1BS\08S\09S\0AS\0BS\0\\S\0]S\0iS\0jS\0\x82S\0\x83S\0\xB6S\0\xB7S\0\xC8S\0\xC9S\0\xE3S\0\xE4S\0\xD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|\x006\x7F\x007\x7F\0Q\x7F\0R\x7F\0\x8A\x7F\0\x8B\x7F\0\xBD\x7F\0\xBE\x7F\0\x01\x80\0\x02\x80\0\x0C\x80\0\r\x80\0\x12\x80\0\x13\x80\x003\x80\x004\x80\0\x7F\x80\0\x80\x80\0\x89\x80\0\x8A\x80\0\xE3\x81\0\xE4\x81\0\xEA\x81\0\xEB\x81\0\xF3\x81\0\xF4\x81\0\xFC\x81\0\xFD\x81\0\x0C\x82\0\r\x82\0\x1B\x82\0\x1C\x82\0\x1F\x82\0 \x82\0n\x82\0o\x82\0r\x82\0s\x82\0x\x82\0y\x82\0M\x86\0N\x86\0k\x86\0l\x86\0@\x88\0A\x88\0L\x88\0M\x88\0c\x88\0d\x88\0~\x89\0\x7F\x89\0\x8B\x89\0\x8C\x89\0\xD2\x89\0\xD3\x89\0\0\x8A\0\x01\x8A\x007\x8C\08\x8C\0F\x8C\0G\x8C\0U\x8C\0V\x8C\0x\x8C\0y\x8C\0\x9D\x8C\0\x9E\x8C\0d\x8D\0e\x8D\0p\x8D\0q\x8D\0\xB3\x8D\0\xB4\x8D\0\xAB\x8E\0\xAC\x8E\0\xCA\x8E\0\xCB\x8E\0\x9B\x8F\0\x9C\x8F\0\xB0\x8F\0\xB1\x8F\0\xB5\x8F\0\xB6\x8F\0\x91\x90\0\x92\x90\0I\x91\0J\x91\0\xC6\x91\0\xC7\x91\0\xCC\x91\0\xCD\x91\0\xD1\x91\0\xD2\x91\0w\x95\0x\x95\0\x80\x95\0\x81\x95\0\x1C\x96\0\x1D\x96\0\xB6\x96\0\xB7\x96\0\xB9\x96\0\xBA\x96\0\xE8\x96\0\xE9\x96\0Q\x97\0R\x97\0^\x97\0_\x97\0b\x97\0c\x97\0i\x97\0j\x97\0\xCB\x97\0\xCC\x97\0\xED\x97\0\xEE\x97\0\xF3\x97\0\xF4\x97\0\x01\x98\0\x02\x98\0\xA8\x98\0\xA9\x98\0\xDB\x98\0\xDC\x98\0\xDF\x98\0\xE0\x98\0\x96\x99\0\x97\x99\0\x99\x99\0\x9A\x99\0\xAC\x99\0\xAD\x99\0\xA8\x9A\0\xA9\x9A\0\xD8\x9A\0\xD9\x9A\0\xDF\x9A\0\xE0\x9A\0%\x9B\0&\x9B\0/\x9B\x000\x9B\x002\x9B\x003\x9B\0<\x9B\0=\x9B\0Z\x9B\0[\x9B\0\xE5\x9C\0\xE6\x9C\0u\x9E\0v\x9E\0\x7F\x9E\0\x80\x9E\0\xA5\x9E\0\xA6\x9E\0\xBB\x9E\0\xBC\x9E\0\xC3\x9E\0\xC4\x9E\0\xCD\x9E\0\xCE\x9E\0\xD1\x9E\0\xD2\x9E\0\xF9\x9E\0\xFA\x9E\0\xFD\x9E\0\xFE\x9E\0\x0E\x9F\0\x0F\x9F\0\x13\x9F\0\x14\x9F\0 \x9F\0!\x9F\0;\x9F\0<\x9F\0J\x9F\0K\x9F\0R\x9F\0S\x9F\0\x8D\x9F\0\x8E\x9F\0\x9C\x9F\0\x9D\x9F\0\xA0\x9F\0\xA1\x9F\0") }, 214u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- ];
- unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleExemplarCharactersIndexV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleExemplarCharactersIndexV1>, icu_provider::DataError> {
- let mut metadata = icu_provider::DataResponseMetadata::default();
- let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_INDEX_V1, req.id, req.metadata.attributes_prefix_match) {
- payload
- } else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::locale::provider::LocaleExemplarCharactersIndexV1 as icu_provider::DataMarker>::INFO.fallback_config);
- let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
- loop {
- if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_INDEX_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
- metadata.locale = Some(fallback_iterator.take());
- break payload;
- }
- if fallback_iterator.get().is_unknown() {
- return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::locale::provider::LocaleExemplarCharactersIndexV1 as icu_provider::DataMarker>::INFO, req));
- }
- fallback_iterator.step();
- }
- };
- Ok(icu_provider::DataResponse { payload, metadata })
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_exemplar_characters_index_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleExemplarCharactersIndexV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok(icu_provider::baked::DataStore::iter(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_INDEX_V1).collect())
- }
- }
- };
- ($ provider : ty , DRY) => {};
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_exemplar_characters_index_v1!($provider, ITER);
- };
-}
-#[doc(inline)]
-pub use __impl_locale_exemplar_characters_index_v1 as impl_locale_exemplar_characters_index_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_main_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_main_v1.rs.data
deleted file mode 100644
index a3e80162ef5..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_main_v1.rs.data
+++ /dev/null
@@ -1,1233 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleExemplarCharactersMainV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 896B for the lookup data structure (181 data identifiers)
-/// * 74297B[^1] for the actual data (166 unique structs)
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `icu_provider/baked`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_exemplar_characters_main_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- const DATA_LOCALE_EXEMPLAR_CHARACTERS_MAIN_V1: icu_provider::baked::zerotrie::Data<icu::locale::provider::LocaleExemplarCharactersMainV1> = {
- const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1zabcdefghijklmnopqrstuvwxyz\0\0\0\0\0\0\0\0\x01\x01\x01\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x14Gd{\xA1\xC1\xD4\xF5\x11\x19v\x90\xB8\xD8\xE4\x03\x06\x1B\x82\xAF\xCB\xD9\xDC\xE5\xFF\xC6fkmrsz\x01\x02\x03\x04\x07\x80\x81\x82\x83\x84t\x85\x86\xC9aeghlnrsu\x08\t\x0C\x0E\x10\x11\x15\x1E\x87l-Latn\x88\x89\x8Ac\x8Bo\x8Co\x8D\x8E\x8Fx\x90\0\x90\x01-Cyrl\x90\x02a\x90\x03\xC6aehsvy\x02\x05\x08\r\x0F\x90\x04b\x90\x05r\x90\x06\x90\x07w\x90\x08\x90\t\x90\n\xC4aeos\x02\t\x0C\x90\x0B\x90\x0C-CH\x90\ri\x90\x0Eb\x90\x0F\xC7elnostu\x02\x0E\x10\x12\x14\x16\x90\x10\x90\x11-polyton\x90\x12\x90\x13\x90\x14\x90\x15\x90\x16\x90\x17\xC6afiory\x02\t\x0E\x10\x12\x90\x18-Adlm\x90\x19\x90\x1Al\x90\x1B\x90\x1C\x90\x1D\x90\x1E\xC4adlu\x05\x07\t\x90\x1Fa\x90 \x90!\x90\"\x90#\xC8aeirstuy\x02\x04\x06\x08\x0B\r\x0F\x90$\x90%\x90&\x90\x01b\x90'\x90(\x90)\x90*\xC7adegist\x02\x04\x06\x08\n\x0C\x90\x13\x90\x13\x90+\x90,\x90-\x90.\x90/\xC2av\x02\x900\x901\xCBaegkmnosuxy\x02\x05\x08\x11\x13\x15!*,E\x902a\x903p\x904\x905-Arab\x906\x907\x908\x909k\x90:-Latn\x90;\x90<-Deva\x90=\x90>v\x90?-\xC3DOT\x05\neva\x90@rya\x90Aelu\x90B\x90C\xC6bimotv\x02\x05\x08\n\x0C\x90Dj\x90Eo\x90\x13\x90F\x90G\x90H\xC9aiklnrsty\x03\x05\x07\t\x0E\x10\x12\x14i\x90I\x90J\x90K\x90L\x90Mi\x90N\x90O\x90\x13\x90P\x90Q\xC6deloqs\x08\n\x0C\x0E\x11s\x90R-NL\x90\x13\x90&\x90S\x90To\x90Uo\x90V\xC3cmr\x02\x04\x90W\x90\x13\x90X\xC6aclmst\x02\x05\x07\n\x11\x90Ym\x90Z\x90[s\x90\\\x90]-PK\x90^\x90_u\x90`\xC5amouw\x03\x05\x07\tj\x90a\x90/\x90b\x90c\x90\x13\xD0acdhikloqrtuvwyz\n\x0F\x18\x1B\x1D\x1F!#%.024AD\x90d\xC2ht\x02\x90e\x90f\x90gn\x90h\x90i-Deva\x90jn\x90k\x90l\x90m\x90n\x90o\x90p\x90\x02-Latn\x90\x01\x90q\x90r\x90s\x90t-\xC2CK\x03D\x90uE\x90\x13r\x90vl\x90w\xCBaeghiknorty\x02\x04\x06\x08\n\x0C\x0E\x10\x12\x14\x90x\x90y\x90z\x90{\x90|\x90}\x90~\x90\x7F\x91\0\x91\x01v\x91\x02\xC5gknrz\x02\x04\x07\t\x91\x03\x91\x04d\x91\x05\x91\x06\x91\x07-Cyrl\x91\x08\xC3eim\x03\x05c\x91\t\x91\nw\x91\x0Bo\x91\x0C\xC2hn\x02\x90\x13r\x91\r\xC3oru\x07\n\x91\x0E-BJ\x91\x0Fl\x91\x10e\x91\x11-Hans\x91\x12\xC3ahu\x02\x0B\x90\x13\x91\x13-Hant\x91\x14\x91\x15" };
- const VALUES: &'static [<icu::locale::provider::LocaleExemplarCharactersMainV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE3\0\0\xE8\0\0\xEC\0\0\xEE\0\0\xF0\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xFB\0\0\xFC\0\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0j\0\0k\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0T\x02\0U\x02\0[\x02\0\\\x02\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x12\0\x07\x12\0\x08\x12\0G\x12\0H\x12\0I\x12\0J\x12\0N\x12\0`\x12\0\x87\x12\0\x88\x12\0\x89\x12\0\x8A\x12\0\x8E\x12\0\x90\x12\0\xAF\x12\0\xB0\x12\0\xB1\x12\0\xB2\x12\0\xB6\x12\0\xB8\x12\0\xBF\x12\0\xC8\x12\0\xCF\x12\0\xD0\x12\0\xD7\x12\0\xD8\x12\0\xEF\x12\0\xF0\x12\0\xF8\x12\0\0\x13\0\x0F\x13\0\x10\x13\0\x11\x13\0\x12\x13\0\x16\x13\0 \x13\0G\x13\0H\x13\0X\x13\0") }, 282u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0;\x06\0A\x06\0S\x06\0p\x06\0q\x06\0") }, 45u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\t\0\x84\t\0\x85\t\0\x8C\t\0\x8F\t\0\x91\t\0\x93\t\0\xA9\t\0\xAA\t\0\xB0\t\0\xB2\t\0\xB3\t\0\xB6\t\0\xBA\t\0\xBC\t\0\xBD\t\0\xBE\t\0\xC4\t\0\xC7\t\0\xC9\t\0\xCB\t\0\xCE\t\0\xF0\t\0\xF2\t\0") }, 59u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\t\0\x0F\0\x15\0\xE0\xA6\x95\xE0\xA7\x8D\xE0\xA6\xB7\xE0\xA6\xA1\xE0\xA6\xBC\xE0\xA6\xA2\xE0\xA6\xBC\xE0\xA6\xAF\xE0\xA6\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0j\0\0l\0\0w\0\0x\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0%\x1E\0&\x1E\x007\x1E\08\x1E\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0w\0\0x\0\0{\0\0\xE7\0\0\xE8\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0\x1F\x01\0 \x01\x000\x01\x002\x01\0_\x01\0`\x01\0Y\x02\0Z\x02\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\x93\x04\0\x94\x04\0\x99\x04\0\x9A\x04\0\xA1\x04\0\xA2\x04\0\xA3\x04\0\xA4\x04\0\xAB\x04\0\xAC\x04\0\xAF\x04\0\xB0\x04\0\xBB\x04\0\xBC\x04\0\xD9\x04\0\xDA\x04\0\xE9\x04\0\xEA\x04\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xF3\0\0\xF4\0\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0chdhghkhrhshthzh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\08\x04\09\x04\0I\x04\0K\x04\0P\x04\0Q\x04\0R\x04\0V\x04\0W\x04\0^\x04\0_\x04\0") }, 32u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x04\0\xD0\xB4\xD0\xB6\xD0\xB4\xD0\xB7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0K\x04\0L\x04\0M\x04\0N\x04\0P\x04\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x02\t\0\x03\t\0\x04\t\0\x05\t\0\x0C\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0>\t\0D\t\0E\t\0F\t\0G\t\0I\t\0K\t\0N\t\0") }, 58u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x15\t\0\x19\t\0\x1A\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0<\t\0=\t\0>\t\0D\t\0E\t\0F\t\0G\t\0I\t\0K\t\0N\t\0") }, 48u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0d\0\0e\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xE0\0\0\xE3\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEF\0\0\xF2\0\0\xF5\0\0\xF9\0\0\xFC\0\0D\x01\0E\x01\0K\x01\0L\x01\0\xDD\x01\0\xDE\x01\0\xF9\x01\0\xFA\x01\0T\x02\0U\x02\0V\x02\0W\x02\0[\x02\0\\\x02\0i\x02\0j\x02\0\x8A\x02\0\x8B\x02\0?\x1E\0@\x1E\0") }, 46u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x17\0\x02\0\x04\0\x07\0\t\0\x0B\0\x0E\0\x12\0\x16\0\x1A\0\x1E\0\"\0&\0*\0.\x002\x006\0:\0>\0B\0F\0J\0N\0gbkpm\xCC\x80nysh\xC5\x8Bm\xC5\x8B\xCC\x80\xC5\x8B\xCC\x81\xC7\x9D\xCC\x80\xC7\x9D\xCC\x81\xC7\x9D\xCC\x82\xC9\x94\xCC\x80\xC9\x94\xCC\x81\xC9\x94\xCC\x82\xC9\x9B\xCC\x80\xC9\x9B\xCC\x81\xC9\x9B\xCC\x82\xC9\xA9\xCC\x80\xC9\xA9\xCC\x81\xC9\xA9\xCC\x82\xCA\x8A\xCC\x80\xCA\x8A\xCC\x81\xCA\x8A\xCC\x82") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\t\0\x84\t\0\x85\t\0\x8D\t\0\x8F\t\0\x91\t\0\x93\t\0\xA9\t\0\xAA\t\0\xB1\t\0\xB2\t\0\xB3\t\0\xB6\t\0\xBA\t\0\xBC\t\0\xC5\t\0\xC7\t\0\xC9\t\0\xCB\t\0\xCF\t\0\xD7\t\0\xD8\t\0\xE0\t\0\xE4\t\0\xFA\t\0\xFB\t\0") }, 68u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\t\0\x0F\0\x15\0\xE0\xA6\x95\xE0\xA7\x8D\xE0\xA6\xB7\xE0\xA6\xA1\xE0\xA6\xBC\xE0\xA6\xA2\xE0\xA6\xBC\xE0\xA6\xAF\xE0\xA6\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0{\0\0\xEA\0\0\xEB\0\0\xF1\0\0\xF2\0\0\xF9\0\0\xFA\0\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0chc\xCA\xBCh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x03\t\0\x05\t\0\x0B\t\0\r\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0\x19\t\0\x1A\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0<\t\0=\t\0>\t\0D\t\0E\t\0F\t\0G\t\0J\t\0K\t\0N\t\0") }, 61u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xA4\xA1\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\x07\x01\0\x08\x01\0\r\x01\0\x0E\x01\0\x11\x01\0\x12\x01\0a\x01\0b\x01\0~\x01\0\x7F\x01\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x03\0\x05\0d\xC5\xBEljnj") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\09\x04\0:\x04\0I\x04\0R\x04\0S\x04\0X\x04\0\\\x04\0_\x04\0`\x04\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\xAF\x04\0\xB0\x04\0\xBB\x04\0\xBC\x04\0\xE9\x04\0\xEA\x04\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xB7\0\0\xB8\0\0\xE0\0\0\xE1\0\0\xE7\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF2\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0f\0\0g\0\0j\0\0k\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF8\x13\0\xFD\x13\0p\xAB\0\xC0\xAB\0") }, 85u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFE\0\0\r\x01\0\x0E\x01\0\x0F\x01\0\x10\x01\0\x1B\x01\0\x1C\x01\0H\x01\0I\x01\0Y\x01\0Z\x01\0a\x01\0b\x01\0e\x01\0f\x01\0o\x01\0p\x01\0~\x01\0\x7F\x01\0") }, 41u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0ch") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x14\0\x02\x14\0\x03\x14\0\x07\x14\0\n\x14\0\x0C\x14\0\r\x14\0\x0E\x14\0\x0F\x14\0\x10\x14\0\x11\x14\0\x12\x14\0\x13\x14\0\x14\x14\0\x15\x14\0\x16\x14\0\x18\x14\0\x19\x14\0\x1A\x14\0\x1B\x14\0\x1F\x14\0!\x14\0\"\x14\0%\x14\0&\x14\0'\x14\0(\x14\0)\x14\0/\x14\x000\x14\x001\x14\x005\x14\08\x14\0:\x14\0J\x14\0K\x14\0L\x14\0M\x14\0N\x14\0R\x14\0U\x14\0W\x14\0k\x14\0l\x14\0m\x14\0q\x14\0r\x14\0t\x14\0\x89\x14\0\x8A\x14\0\x8B\x14\0\x8F\x14\0\x90\x14\0\x92\x14\0\xA3\x14\0\xA4\x14\0\xA5\x14\0\xA9\x14\0\xAA\x14\0\xAC\x14\0\xBC\x14\0\xBD\x14\0\xC0\x14\0\xC1\x14\0\xC2\x14\0\xC6\x14\0\xC7\x14\0\xC9\x14\0\xD3\x14\0\xD4\x14\0\xD5\x14\0\xD9\x14\0\xDA\x14\0\xDC\x14\0\xEB\x14\0\xEC\x14\0\xED\x14\0\xEE\x14\0\xEF\x14\0\xF3\x14\0\xF4\x14\0\xF6\x14\0&\x15\0'\x15\0(\x15\0,\x15\0-\x15\0/\x15\0@\x15\0A\x15\0C\x15\0D\x15\0F\x15\0J\x15\0K\x15\0M\x15\0Q\x15\0R\x15\0}\x15\0~\x15\0") }, 97u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\xAB\x04\0\xAC\x04\0\xD1\x04\0\xD2\x04\0\xD7\x04\0\xD8\x04\0\xF3\x04\0\xF4\x04\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0k\0\0l\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xE0\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE8\0\0\xF0\0\0\xF2\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFE\0\0\xFF\0\0\0\x01\0u\x01\0v\x01\0w\x01\0x\x01\0\x81\x1E\0\x82\x1E\0\x83\x1E\0\x84\x1E\0\x85\x1E\0\x86\x1E\0\xF3\x1E\0\xF4\x1E\0") }, 49u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0chddffllngphrhth") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE5\0\0\xE7\0\0\xF8\0\0\xF9\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xDF\0\0\xE0\0\0\xE4\0\0\xE5\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE4\0\0\xE5\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\r\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0<\t\0E\t\0G\t\0I\t\0K\t\0N\t\0P\t\0S\t\0`\t\0d\t\0") }, 70u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\t\0\x0F\0\xE0\xA4\x95\xE0\xA5\x8D\xE0\xA4\xB7\xE0\xA4\xA1\xE0\xA4\xBC\xE0\xA4\xA2\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xF3\0\0\xF4\0\0\x07\x01\0\x08\x01\0\r\x01\0\x0E\x01\0\x1B\x01\0\x1C\x01\0B\x01\0C\x01\0D\x01\0E\x01\0U\x01\0V\x01\0[\x01\0\\\x01\0a\x01\0b\x01\0z\x01\0{\x01\0~\x01\0\x7F\x01\0") }, 37u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0ch") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0j\0\0k\0\0q\0\0r\0\0{\0\0\xE0\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF4\0\0\xF5\0\0\xF6\0\0\xF9\0\0\xFB\0\0)\x01\0*\x01\0K\x01\0L\x01\0i\x01\0j\x01\0\x92\x01\0\x93\x01\0T\x02\0U\x02\0V\x02\0W\x02\0[\x02\0\\\x02\0c\x02\0d\x02\0\x8B\x02\0\x8C\x02\0\xBD\x1E\0\xBE\x1E\0") }, 45u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x06\0\x04\0\x08\0\x0C\0\x10\0\x14\0\xC9\x94\xCC\x80\xC9\x94\xCC\x81\xC9\x94\xCC\x83\xC9\x9B\xCC\x80\xC9\x9B\xCC\x81\xC9\x9B\xCC\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x90\x03\0\x91\x03\0\xAC\x03\0\xCF\x03\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x90\x03\0\x91\x03\0\xAC\x03\0\xCF\x03\0\0\x1F\0\x08\x1F\0\x10\x1F\0\x16\x1F\0 \x1F\0(\x1F\x000\x1F\08\x1F\0B\x1F\0E\x1F\0P\x1F\0X\x1F\0b\x1F\0h\x1F\0p\x1F\0q\x1F\0r\x1F\0s\x1F\0t\x1F\0u\x1F\0v\x1F\0w\x1F\0x\x1F\0y\x1F\0z\x1F\0{\x1F\0|\x1F\0}\x1F\0\xB6\x1F\0\xB7\x1F\0\xC6\x1F\0\xC7\x1F\0\xD2\x1F\0\xD3\x1F\0\xD6\x1F\0\xD8\x1F\0\xE2\x1F\0\xE3\x1F\0\xE6\x1F\0\xE8\x1F\0\xF6\x1F\0\xF7\x1F\0") }, 99u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\t\x01\0\n\x01\0\x1D\x01\0\x1E\x01\0%\x01\0&\x01\x005\x01\x006\x01\0]\x01\0^\x01\0m\x01\0n\x01\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE4\0\0\xE5\0\0\xF5\0\0\xF7\0\0\xFC\0\0\xFD\0\0a\x01\0b\x01\0~\x01\0\x7F\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE7\0\0\xE8\0\0\xF1\0\0\xF2\0\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0%\x06\0&\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0K\x06\0N\x06\0Q\x06\0R\x06\0T\x06\0U\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\xA9\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xCC\x06\0\xCD\x06\0") }, 43u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\"\xE9\x01>\xE9\x01D\xE9\x01G\xE9\x01K\xE9\x01L\xE9\x01") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE4\0\0\xE6\0\0\xF6\0\0\xF7\0\0a\x01\0b\x01\0~\x01\0\x7F\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xF1\0\0\xF2\0\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0ng") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0w\0\0y\0\0z\0\0\xE1\0\0\xE2\0\0\xE6\0\0\xE7\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF8\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFE\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE6\0\0\xEC\0\0\xEE\0\0\xF0\0\0\xF4\0\0\xF5\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0\0\x01\0S\x01\0T\x01\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0x\0\0y\0\0{\0\0\xE0\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE8\0\0\xEC\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF3\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xFA\0\0\xFE\0\0") }, 41u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0ij\xC3\xADj\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0j\0\0l\0\0q\0\0r\0\0v\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0{\0\0K\x01\0L\x01\0T\x02\0U\x02\0[\x02\0\\\x02\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0j\0\0l\0\0q\0\0r\0\0v\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\n\0\x84\n\0\x85\n\0\x8C\n\0\x8D\n\0\x8E\n\0\x8F\n\0\x92\n\0\x93\n\0\xA9\n\0\xAA\n\0\xB1\n\0\xB2\n\0\xB4\n\0\xB5\n\0\xBA\n\0\xBC\n\0\xC6\n\0\xC7\n\0\xCA\n\0\xCB\n\0\xCE\n\0\xD0\n\0\xD1\n\0\xE0\n\0\xE1\n\0") }, 68u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0p\0\0r\0\0v\0\0w\0\0x\0\0y\0\0{\0\0\x99\x01\0\x9A\x01\0\xB4\x01\0\xB5\x01\0S\x02\0T\x02\0W\x02\0X\x02\0\xBC\x02\0\xBD\x02\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0shts") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD0\x05\0\xEB\x05\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0<\t\0D\t\0E\t\0F\t\0G\t\0J\t\0K\t\0N\t\0P\t\0Q\t\0") }, 67u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xF3\0\0\xF4\0\0\x07\x01\0\x08\x01\0\r\x01\0\x0E\x01\0\x1B\x01\0\x1C\x01\0B\x01\0C\x01\0D\x01\0E\x01\0Y\x01\0Z\x01\0a\x01\0b\x01\0~\x01\0\x7F\x01\0") }, 35u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0chd\xC5\xBA") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0u\0\0v\0\0x\0\0y\0\0{\0\0\xE8\0\0\xE9\0\0\xF2\0\0\xF3\0\0") }, 24u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0F\0anchenngonouounui") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0Q\x01\0R\x01\0q\x01\0r\x01\0") }, 31u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x12\0\x03\0\x05\0\x08\0\x0C\0\x0E\0\x11\0\x14\0\x16\0\x19\0\x1B\0\x1E\0 \0#\0%\0(\0*\0,\0ccscsddzddzsdzdzsggygyllylynnynysszszttytyzszzs") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\x05\0\x87\x05\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0{\0\0E\x1E\0F\x1E\0\xCB\x1E\0\xCC\x1E\0\xCD\x1E\0\xCE\x1E\0\xE5\x1E\0\xE6\x1E\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0chgbghgwkpkwnwnysh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\xA0\0\x8D\xA4\0") }, 1165u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0w\0\0x\0\0z\0\0\xE1\0\0\xE2\0\0\xE6\0\0\xE7\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF3\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFF\0\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unch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\0\xA8\x7F\0\xAA\x7F\0\xBD\x7F\0\xBE\x7F\0\xC1\x7F\0\xC2\x7F\0\xCC\x7F\0\xCD\x7F\0\xD2\x7F\0\xD3\x7F\0\xFB\x7F\0\xFD\x7F\0\x01\x80\0\x02\x80\0\x03\x80\0\x04\x80\0\x05\x80\0\x06\x80\0\x10\x80\0\x11\x80\0\x15\x80\0\x16\x80\0\x17\x80\0\x18\x80\x003\x80\x004\x80\0V\x80\0W\x80\0^\x80\0_\x80\0t\x80\0u\x80\0w\x80\0x\x80\0\x89\x80\0\x8A\x80\0\x8C\x80\0\x8D\x80\0\x96\x80\0\x97\x80\0\x98\x80\0\x99\x80\0\x9D\x80\0\x9E\x80\0\xA1\x80\0\xA3\x80\0\xA5\x80\0\xA6\x80\0\xA9\x80\0\xAB\x80\0\xAF\x80\0\xB0\x80\0\xB2\x80\0\xB3\x80\0\xBA\x80\0\xBB\x80\0\xC3\x80\0\xC4\x80\0\xC6\x80\0\xC7\x80\0\xCC\x80\0\xCD\x80\0\xCE\x80\0\xCF\x80\0\xDE\x80\0\xDF\x80\0\xF4\x80\0\xF5\x80\0\xF8\x80\0\xF9\x80\0\xFD\x80\0\xFE\x80\0\x02\x81\0\x03\x81\0\x05\x81\0\x06\x81\0\x07\x81\0\t\x81\0\n\x81\0\x0B\x81\0\x1A\x81\0\x1B\x81\x001\x81\x002\x81\x003\x81\x004\x81\0N\x81\0O\x81\0P\x81\0Q\x81\0U\x81\0V\x81\0k\x81\0l\x81\0p\x81\0q\x81\0x\x81\0{\x81\0\x9A\x81\0\x9B\x81\0\x9C\x81\0\x9E\x81\0\xA8\x81\0\xA9\x81\0\xB3\x81\0\xB4\x81\0\xC6\x81\0\xC7\x81\0\xD3\x81\0\xD4\x81\0\xE3\x81\0\xE4\x81\0\xE8\x81\0\xE9\x81\0\xEA\x81\0\xEB\x81\0\xED\x81\0\xEE\x81\0\xF3\x81\0\xF5\x81\0\xFC\x81\0\xFD\x81\0\x08\x82\0\t\x82\0\x0C\x82\0\r\x82\0\x0E\x82\0\x0F\x82\0\x17\x82\0\x18\x82\0\x1E\x82\0 \x82\0*\x82\0+\x82\0,\x82\0-\x82\x006\x82\08\x82\09\x82\0:\x82\0G\x82\0H\x82\0f\x82\0g\x82\0o\x82\0p\x82\0r\x82\0s\x82\0v\x82\0w\x82\0\x8B\x82\0\x8C\x82\0\x9D\x82\0\x9E\x82\0\xAF\x82\0\xB0\x82\0\xB1\x82\0\xB2\x82\0\xB3\x82\0\xB4\x82\0\xB8\x82\0\xB9\x82\0\xBD\x82\0\xBE\x82\0\xD7\x82\0\xD8\x82\0\xDB\x82\0\xDC\x82\0\xE5\x82\0\xE7\x82\0\xF1\x82\0\xF2\x82\0\x02\x83\0\x03\x83\0\x0E\x83\0\x0F\x83\0(\x83\0)\x83\x006\x83\x007\x83\0I\x83\0J\x83\0R\x83\0S\x83\0X\x83\0Y\x83\0w\x83\0x\x83\0\xCA\x83\0\xCB\x83\0\xCC\x83\0\xCD\x83\0\xD3\x83\0\xD4\x83\0\xDC\x83\0\xDD\x83\0\xEF\x83\0\xF0\x83\0\x0E\x84\0\x0F\x84\0=\x84\0>\x84\0I\x84\0J\x84\0W\x84\0X\x84\0[\x84\0\\\x84\0l\x84\0m\x84\0\xB8\x84\0\xB9\x84\0\xC4\x84\0\xC5\x84\0\xCB\x84\0\xCC\x84\0\x11\x85\0\x12\x85\x005\x85\x006\x85\0=\x85\0>\x85\0\x84\x85\0\x85\x85\0\xA6\x85\0\xA7\x85\0\xAA\x85\0\xAD\x85\0\xCD\x85\0\xCE\x85\0\xE4\x85\0\xE5\x85\0\xE9\x85\0\xEA\x85\0\xFB\x85\0\xFC\x85\0N\x86\0O\x86\0P\x86\0Q\x86\0Z\x86\0[\x86\0\\\x86\0]\x86\0^\x86\0_\x86\0k\x86\0l\x86\0y\x86\0z\x86\0\x8A\x86\0\x8B\x86\0\x95\x86\0\x96\x86\0\xC7\x86\0\xC8\x86\0\xCD\x86\0\xCE\x86\0\xEE\x86\0\xEF\x86\0\x02\x87\0\x03\x87\0\x1C\x87\0\x1D\x87\0\x8D\x87\0\x8E\x87\0@\x88\0A\x88\0F\x88\0G\x88\0L\x88\0M\x88\0S\x88\0T\x88\0W\x88\0X\x88\0[\x88\0\\\x88\0]\x88\0^\x88\0a\x88\0b\x88\0c\x88\0d\x88\0h\x88\0i\x88\0p\x88\0q\x88\0w\x88\0x\x88\0\x8B\x88\0\x8C\x88\0\x96\x88\0\x97\x88\0\xAB\x88\0\xAC\x88\0\xC1\x88\0\xC3\x88\0\xC5\x88\0\xC6\x88\0\xCF\x88\0\xD0\x88\0\xD5\x88\0\xD6\x88\0\xDC\x88\0\xDD\x88\0\xF8\x88\0\xF9\x88\0\xFD\x88\0\xFF\x88\0\x07\x89\0\x08\x89\0\x10\x89\0\x11\x89\0\x12\x89\0\x13\x89\0_\x89\0`\x89\0r\x89\0s\x89\0\x7F\x89\0\x80\x89\0\x81\x89\0\x82\x89\0\x86\x89\0\x88\x89\0\x8B\x89\0\x8C\x89\0\x8F\x89\0\x90\x89\0\x96\x89\0\x97\x89\0\x9A\x89\0\x9B\x89\0\xA7\x89\0\xA8\x89\0\xAA\x89\0\xAB\x89\0\xB3\x89\0\xB4\x89\0\xD2\x89\0\xD3\x89\0\xE3\x89\0\xE4\x89\0\xE6\x89\0\xE7\x89\0\0\x8A\0\x01\x8A\0\x02\x8A\0\x04\x8A\0\x08\x8A\0\t\x8A\0\x0E\x8A\0\x0F\x8A\0\x13\x8A\0\x14\x8A\0\x17\x8A\0\x19\x8A\0\x1F\x8A\0 \x8A\0*\x8A\0+\x8A\0-\x8A\0.\x8A\x001\x8A\x002\x8A\x003\x8A\x005\x8A\0:\x8A\0;\x8A\0<\x8A\0=\x8A\0P\x8A\0Q\x8A\0T\x8A\0V\x8A\0^\x8A\0_\x8A\0`\x8A\0a\x8A\0c\x8A\0d\x8A\0f\x8A\0g\x8A\0i\x8A\0j\x8A\0n\x8A\0o\x8A\0p\x8A\0t\x8A\0\x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\x90\0\x06\x90\0\x07\x90\0\x0F\x90\0\x11\x90\0\x13\x90\0\x15\x90\0\x1A\x90\0\x1B\x90\0\x1D\x90\0\x1E\x90\0\x1F\x90\0!\x90\0#\x90\0$\x90\0.\x90\0/\x90\x001\x90\x003\x90\08\x90\09\x90\0B\x90\0C\x90\0E\x90\0F\x90\0G\x90\0H\x90\0J\x90\0L\x90\0M\x90\0O\x90\0S\x90\0V\x90\0\\\x90\0]\x90\0`\x90\0b\x90\0c\x90\0d\x90\0i\x90\0j\x90\0m\x90\0o\x90\0u\x90\0v\x90\0w\x90\0y\x90\0z\x90\0{\x90\0\x7F\x90\0\x80\x90\0\x84\x90\0\x85\x90\0\xA3\x90\0\xA4\x90\0\xA6\x90\0\xA7\x90\0\xAA\x90\0\xAB\x90\0\xB8\x90\0\xB9\x90\0\xCA\x90\0\xCB\x90\0\xCE\x90\0\xCF\x90\0\xE1\x90\0\xE2\x90\0\xE8\x90\0\xE9\x90\0\xED\x90\0\xEE\x90\0\xF5\x90\0\xF6\x90\0\xF7\x90\0\xF8\x90\0\xFD\x90\0\xFE\x90\0L\x91\0O\x91\0R\x91\0S\x91\0T\x91\0U\x91\0b\x91\0c\x91\0j\x91\0k\x91\0l\x91\0m\x91\0u\x91\0v\x91\0w\x91\0y\x91\0\x92\x91\0\x93\x91\0\x9C\x91\0\x9D\x91\0\xB8\x91\0\xB9\x91\0\xC7\x91\0\xC9\x91\0\xCC\x91\0\xD0\x91\0\xD1\x91\0\xD2\x91\0\xDC\x91\0\xDE\x91\0\xE3\x91\0\xE4\x91\0\r\x92\0\x0E\x92\x004\x92\x005\x92\0D\x92\0E\x92\0[\x92\0\\\x92\0b\x92\0c\x92\0q\x92\0r\x92\0\x80\x92\0\x81\x92\0\x83\x92\0\x84\x92\0\x85\x92\0\x86\x92\0\x98\x92\0\x99\x92\0\xAD\x92\0\xAE\x92\0\xED\x92\0\xEE\x92\0\xF3\x92\0\xF4\x92\0\xFC\x92\0\xFD\x92\0 \x93\0!\x93\0&\x93\0'\x93\0,\x93\0-\x93\0.\x93\x000\x93\x002\x93\x003\x93\0K\x93\0L\x93\0[\x93\0\\\x93\0u\x93\0v\x93\0\x8C\x93\0\x8D\x93\0\x96\x93\0\x97\x93\0\xAE\x93\0\xAF\x93\0\xE1\x93\0\xE2\x93\0\x18\x94\0\x19\x94\0Q\x94\0R\x94\0w\x95\0x\x95\0\x80\x95\0\x81\x95\0\x89\x95\0\x8A\x95\0\x8B\x95\0\x8C\x95\0\x91\x95\0\x92\x95\0\x93\x95\0\x94\x95\0\xA2\x95\0\xA4\x95\0\xA5\x95\0\xA6\x95\0\xB2\x95\0\xB3\x95\0\xC7\x95\0\xC8\x95\0\xD8\x95\0\xD9\x95\0\x1C\x96\0\x1D\x96\0*\x96\0+\x96\x002\x96\x003\x96\0;\x96\0<\x96\0D\x96\0E\x96\0M\x96\0N\x96\0P\x96\0Q\x96\0[\x96\0\\\x96\0b\x96\0f\x96\0j\x96\0k\x96\0p\x96\0q\x96\0s\x96\0t\x96\0u\x96\0w\x96\0x\x96\0y\x96\0z\x96\0{\x96\0}\x96\0~\x96\0\x85\x96\0\x87\x96\0\x8A\x96\0\x8B\x96\0\x8E\x96\0\x90\x96\0\x94\x96\0\x95\x96\0\x99\x96\0\x9A\x96\0\x9B\x96\0\x9D\x96\0\xA0\x96\0\xA1\x96\0\xA3\x96\0\xA4\x96\0\xB7\x96\0\xB8\x96\0\xBB\x96\0\xBC\x96\0\xC4\x96\0\xC8\x96\0\xCC\x96\0\xCD\x96\0\xD1\x96\0\xD2\x96\0\xE2\x96\0\xE4\x96\0\xE8\x96\0\xE9\x96\0\xEA\x96\0\xEB\x96\0\xF0\x96\0\xF1\x96\0\xF2\x96\0\xF3\x96\0\xF6\x96\0\xF8\x96\0\xFB\x96\0\xFC\x96\0\0\x97\0\x01\x97\0\x07\x97\0\x08\x97\0\n\x97\0\x0B\x97\0\x1C\x97\0\x1D\x97\0'\x97\0(\x97\x002\x97\x003\x97\0R\x97\0S\x97\0Y\x97\0Z\x97\0^\x97\0_\x97\0b\x97\0c\x97\0i\x97\0j\x97\0t\x97\0u\x97\0\xD3\x97\0\xD4\x97\0\xF3\x97\0\xF4\x97\0\xFB\x97\0\xFC\x97\0\xFF\x97\0\0\x98\0\x02\x98\0\x04\x98\0\x05\x98\0\x07\x98\0\x08\x98\0\t\x98\0\x10\x98\0\x14\x98\0\x18\x98\0\x19\x98\0,\x98\0.\x98\0;\x98\0=\x98\0L\x98\0O\x98\0T\x98\0V\x98\0X\x98\0Y\x98\0^\x98\0_\x98\0g\x98\0h\x98\0\xA8\x98\0\xA9\x98\0\xDB\x98\0\xDC\x98\0\xDF\x98\0\xE0\x98\0\xE2\x98\0\xE3\x98\0\xEF\x98\0\xF0\x98\0\xF2\x98\0\xF3\x98\0\xFC\x98\0\xFF\x98\0\x05\x99\0\x06\x99\0\n\x99\0\x0B\x99\0\x0C\x99\0\r\x99\0\x13\x99\0\x14\x99\0(\x99\0)\x99\0\x96\x99\0\x97\x99\0\x99\x99\0\x9A\x99\0\xAC\x99\0\xAD\x99\0\xC4\x99\0\xC7\x99\0\xD0\x99\0\xD1\x99\0\xD2\x99\0\xD3\x99\0\x0E\x9A\0\x0F\x9A\0\x12\x9A\0\x14\x9A\x000\x9A\x001\x9A\0Z\x9A\0[\x9A\0\xA8\x9A\0\xA9\x9A\0\xB8\x9A\0\xB9\x9A\0\xC4\x9A\0\xC5\x9A\0\xD8\x9A\0\xD9\x9A\0\xEA\x9A\0\xEB\x9A\x001\x9B\x002\x9B\0<\x9B\0=\x9B\0B\x9B\0C\x9B\0E\x9B\0F\x9B\0T\x9B\0U\x9B\0Z\x9B\0[\x9B\0\xAE\x9B\0\xAF\x9B\0\xE8\x9B\0\xE9\x9B\0\xE5\x9C\0\xE6\x9C\0\xF4\x9C\0\xF5\x9C\0\x8F\x9D\0\x90\x9D\0\xB4\x9D\0\xB5\x9D\0\x7F\x9E\0\x80\x9E\0\x93\x9E\0\x94\x9E\0\x97\x9E\0\x98\x9E\0\xA6\x9E\0\xA7\x9E\0\xBA\x9E\0\xBC\x9E\0\xC4\x9E\0\xC5\x9E\0\xD2\x9E\0\xD3\x9E\0\xD9\x9E\0\xDA\x9E\0\x13\x9F\0\x14\x9F\0;\x9F\0<\x9F\0b\x9F\0c\x9F\0") }, 2311u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0f\0\0g\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xE2\0\0\xE3\0\0\xE5\0\0\xE6\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xD0\x10\0\xF1\x10\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0w\0\0x\0\0{\0\0\xF1\0\0\xF2\0\0") }, 24u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\x02\0\x04\0\x06\0djlhnhtx") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0e\0\0l\0\0m\0\0q\0\0r\0\0w\0\0y\0\0z\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE9\0\0\xEA\0\0\xF3\0\0\xF4\0\0)\x01\0*\x01\0i\x01\0j\x01\0\xBD\x1E\0\xBE\x1E\0\xF9\x1E\0\xFA\x1E\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0V\x04\0W\x04\0\x93\x04\0\x94\x04\0\x9B\x04\0\x9C\x04\0\xA3\x04\0\xA4\x04\0\xAF\x04\0\xB0\x04\0\xB1\x04\0\xB2\x04\0\xBB\x04\0\xBC\x04\0\xD9\x04\0\xDA\x04\0\xE9\x04\0\xEA\x04\0") }, 42u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0\"\x06\0'\x06\0)\x06\0*\x06\0+\x06\0,\x06\0.\x06\0/\x06\x000\x06\x001\x06\x005\x06\09\x06\0:\x06\0A\x06\0G\x06\0H\x06\0K\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\xAD\x06\0\xAE\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC6\x06\0\xC8\x06\0\xCB\x06\0\xCC\x06\0\xD5\x06\0\xD6\x06\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x80\x17\0\x9D\x17\0\x9F\x17\0\xA3\x17\0\xA5\x17\0\xA8\x17\0\xA9\x17\0\xB4\x17\0\xB6\x17\0\xCC\x17\0\xCD\x17\0\xCE\x17\0\xD0\x17\0\xD1\x17\0\xD2\x17\0\xD3\x17\0") }, 72u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x06\0\xE1\x9E\xA2\xE1\x9E\xB6\xE1\x9E\xA7\xE1\x9E\x80") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x82\x0C\0\x84\x0C\0\x85\x0C\0\x8D\x0C\0\x8E\x0C\0\x91\x0C\0\x92\x0C\0\xA9\x0C\0\xAA\x0C\0\xB4\x0C\0\xB5\x0C\0\xBA\x0C\0\xBC\x0C\0\xC5\x0C\0\xC6\x0C\0\xC9\x0C\0\xCA\x0C\0\xCE\x0C\0\xD5\x0C\0\xD7\x0C\0\xE0\x0C\0\xE2\x0C\0") }, 71u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\xAC\0\xA4\xD7\0") }, 11172u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0<\t\0D\t\0E\t\0F\t\0G\t\0J\t\0K\t\0N\t\0P\t\0Q\t\0f\t\0p\t\0") }, 77u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x06\0\x0C\0\x12\0\x18\0\x1E\0$\0*\0\xE0\xA4\x95\xE0\xA4\xBC\xE0\xA4\x96\xE0\xA4\xBC\xE0\xA4\x97\xE0\xA4\xBC\xE0\xA4\x9C\xE0\xA4\xBC\xE0\xA4\xA1\xE0\xA4\xBC\xE0\xA4\xA2\xE0\xA4\xBC\xE0\xA4\xAB\xE0\xA4\xBC\xE0\xA4\xAF\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE3\0\0\xE4\0\0\xE7\0\0\xE8\0\0\xEA\0\0\xEB\0\0\xF1\0\0\xF2\0\0\xF4\0\0\xF6\0\0\xF8\0\0\xF9\0\0)\x01\0*\x01\0\xBD\x1E\0\xBE\x1E\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b" \x06\0%\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0G\x06\0H\x06\0I\x06\0r\x06\0s\x06\0y\x06\0z\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x88\x06\0\x89\x06\0\x91\x06\0\x92\x06\0\x98\x06\0\x99\x06\0\xA9\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xBA\x06\0\xBB\x06\0\xBE\x06\0\xBF\x06\0\xC1\x06\0\xC2\x06\0\xC4\x06\0\xC5\x06\0\xC6\x06\0\xC7\x06\0\xCC\x06\0\xCD\x06\0\xD2\x06\0\xD3\x06\0") }, 46u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x03\t\0\x05\t\0\x0B\t\0\x0F\t\0\x10\t\0\x11\t\0\x12\t\0\x13\t\0\x14\t\0\x15\t\0\x18\t\0\x1A\t\0\x1D\t\0\x1F\t\0\"\t\0$\t\0'\t\0(\t\0)\t\0*\t\0-\t\0.\t\x001\t\x002\t\x003\t\x005\t\x007\t\08\t\0:\t\0<\t\0=\t\0>\t\0F\t\0G\t\0J\t\0K\t\0N\t\0") }, 50u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x06\0\xE0\xA4\x9A\xE0\xA4\xBC\xE0\xA4\x9B\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE7\0\0\xE8\0\0\xEA\0\0\xEB\0\0\xEE\0\0\xEF\0\0\xFB\0\0\xFC\0\0_\x01\0`\x01\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0f\0\0g\0\0q\0\0r\0\0w\0\0y\0\0z\0\0\xF1\0\0\xF2\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0M\x01\0N\x01\0k\x01\0l\x01\0\r\x1E\0\x0E\x1E\x007\x1E\08\x1E\0E\x1E\0F\x1E\0G\x1E\0H\x1E\0[\x1E\0\\\x1E\0m\x1E\0n\x1E\0") }, 33u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0aa\xC4\x81\xC4\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\x0B\t\0\x0F\t\0\x10\t\0\x13\t\0\x14\t\0\x15\t\0\x16\t\0\x17\t\0\x18\t\0\x19\t\0\x1B\t\0\x1C\t\0\x1D\t\0\x1E\t\0 \t\0!\t\0\"\t\0#\t\0%\t\0&\t\0'\t\0(\t\0)\t\0*\t\0+\t\0,\t\0-\t\0.\t\x001\t\x002\t\x004\t\x005\t\x006\t\08\t\0:\t\0=\t\0C\t\0G\t\0H\t\0K\t\0L\t\0M\t\0N\t\0") }, 42u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x05\0\x06\0\x0C\0\x12\0\x18\0\xE0\xA4\x85\xE0\xA4\xBD\xE0\xA4\x86\xE0\xA4\xBD\xE0\xA4\x8F\xE0\xA4\xBD\xE0\xA4\x93\xE0\xA4\xBD\xE0\xA4\xA1\xE0\xA4\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0B\0\x04\x0B\0\x05\x0B\0\x0B\x0B\0\x0F\x0B\0\x10\x0B\0\x15\x0B\0\x16\x0B\0\x17\x0B\0\x18\x0B\0\x19\x0B\0\x1B\x0B\0\x1C\x0B\0\x1D\x0B\0\x1E\x0B\0 \x0B\0!\x0B\0\"\x0B\0#\x0B\0%\x0B\0&\x0B\0'\x0B\0(\x0B\0)\x0B\0*\x0B\0+\x0B\0,\x0B\0-\x0B\0.\x0B\0/\x0B\x000\x0B\x001\x0B\x002\x0B\x004\x0B\08\x0B\0:\x0B\0<\x0B\0=\x0B\0>\x0B\0C\x0B\0G\x0B\0H\x0B\0M\x0B\0N\x0B\0_\x0B\0`\x0B\0q\x0B\0r\x0B\0") }, 40u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x04\0\x08\0\xE0\xAC\x85:\xE0\xAC\x86:\xE0\xAC\x8F:") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0C\0\x04\x0C\0\x05\x0C\0\x0B\x0C\0\x0E\x0C\0\x10\x0C\0\x12\x0C\0\x14\x0C\0\x15\x0C\0\x16\x0C\0\x17\x0C\0\x18\x0C\0\x1A\x0C\0\x1B\x0C\0\x1C\x0C\0\x1D\x0C\0\x1E\x0C\0 \x0C\0!\x0C\0\"\x0C\0#\x0C\0%\x0C\0&\x0C\0'\x0C\0(\x0C\0)\x0C\0*\x0C\0+\x0C\0,\x0C\0-\x0C\0.\x0C\x001\x0C\x002\x0C\x003\x0C\x005\x0C\x006\x0C\08\x0C\0:\x0C\0>\x0C\0C\x0C\0F\x0C\0H\x0C\0J\x0C\0L\x0C\0M\x0C\0N\x0C\0") }, 43u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE0\xB0\xA1\xE0\xB0\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\x002\x04\x003\x04\0D\x04\0E\x04\0F\x04\0G\x04\0I\x04\0J\x04\0L\x04\0M\x04\0P\x04\0Q\x04\0R\x04\0\xA3\x04\0\xA4\x04\0\xAF\x04\0\xB0\x04\0\xE9\x04\0\xEA\x04\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE4\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE4\0\0\xE5\0\0\xE6\0\0\xED\0\0\xEE\0\0\xF0\0\0\xF1\0\0\xF5\0\0\xF6\0\0\xF7\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFD\0\0") }, 46u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\x0E\0\x83\x0E\0\x84\x0E\0\x85\x0E\0\x87\x0E\0\x89\x0E\0\x8A\x0E\0\x8B\x0E\0\x8D\x0E\0\x8E\x0E\0\x94\x0E\0\x98\x0E\0\x99\x0E\0\xA0\x0E\0\xA1\x0E\0\xA4\x0E\0\xA5\x0E\0\xA6\x0E\0\xA7\x0E\0\xA8\x0E\0\xAA\x0E\0\xAC\x0E\0\xAD\x0E\0\xBA\x0E\0\xBB\x0E\0\xBE\x0E\0\xC0\x0E\0\xC5\x0E\0\xC6\x0E\0\xC7\x0E\0\xC8\x0E\0\xCE\x0E\0\xDC\x0E\0\xDE\x0E\0") }, 55u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0y\0\0{\0\0\x05\x01\0\x06\x01\0\r\x01\0\x0E\x01\0\x17\x01\0\x18\x01\0\x19\x01\0\x1A\x01\0/\x01\x000\x01\0a\x01\0b\x01\0k\x01\0l\x01\0s\x01\0t\x01\0~\x01\0\x7F\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\x01\x01\0\x02\x01\0\r\x01\0\x0E\x01\0\x13\x01\0\x14\x01\0#\x01\0$\x01\0+\x01\0,\x01\x007\x01\08\x01\0<\x01\0=\x01\0F\x01\0G\x01\0a\x01\0b\x01\0k\x01\0l\x01\0~\x01\0\x7F\x01\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\t\0\x04\t\0\x15\t\0\x19\t\0\x1A\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0<\t\0=\t\0>\t\0C\t\0G\t\0I\t\0K\t\0M\t\0") }, 44u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x05\0\t\0\x12\0\x18\0!\0\xE0\xA4\x95\xE0\xA5\x8D\xE0\xA4\xB7\xE0\xA4\x9C\xE0\xA5\x8D\xE0\xA4\x9E\xE0\xA4\xA1\xE0\xA4\x82\xE0\xA4\xA4\xE0\xA5\x8D\xE0\xA4\xB0\xE0\xA4\xB6\xE0\xA5\x8D\xE0\xA4\xB0") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0e\0\0f\0\0h\0\0j\0\0k\0\0l\0\0m\0\0q\0\0r\0\0s\0\0t\0\0v\0\0w\0\0x\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0M\x01\0N\x01\0k\x01\0l\x01\0") }, 18u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0ngwh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\09\x04\0:\x04\0I\x04\0S\x04\0T\x04\0U\x04\0V\x04\0X\x04\0[\x04\0\\\x04\0]\x04\0_\x04\0`\x04\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x05\r\0\x0C\r\0\x0E\r\0\x11\r\0\x12\r\0)\r\0*\r\0:\r\0") }, 49u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x06\0\xE0\xB4\x85\xE0\xB4\x82\xE0\xB4\x85\xE0\xB4\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\xAF\x04\0\xB0\x04\0\xE9\x04\0\xEA\x04\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x81\t\0\x84\t\0\x85\t\0\x8C\t\0\x8F\t\0\x91\t\0\x93\t\0\xA9\t\0\xAA\t\0\xB1\t\0\xB2\t\0\xB3\t\0\xB6\t\0\xBA\t\0\xBC\t\0\xBD\t\0\xBE\t\0\xC4\t\0\xC7\t\0\xC9\t\0\xCB\t\0\xCE\t\0\xF1\t\0\xF2\t\0") }, 59u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x06\0\x0C\0\xE0\xA6\xA1\xE0\xA6\xBC\xE0\xA6\xA2\xE0\xA6\xBC\xE0\xA6\xAF\xE0\xA6\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\t\0\x04\t\0\x05\t\0\r\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0=\t\0D\t\0E\t\0F\t\0G\t\0J\t\0K\t\0N\t\0P\t\0Q\t\0") }, 64u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\t\0\xE0\xA4\x95\xE0\xA5\x8D\xE0\xA4\xB7\xE0\xA4\x9C\xE0\xA5\x8D\xE0\xA4\x9E") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0y\0\0z\0\0{\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0\x0B\x01\0\x0C\x01\0!\x01\0\"\x01\0'\x01\0(\x01\0|\x01\0}\x01\0") }, 33u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0g\xC4\xA7") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x10\0\"\x10\0#\x10\0(\x10\0)\x10\x003\x10\x006\x10\0@\x10\0O\x10\0P\x10\0") }, 60u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE4\0\0\xE6\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE4\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF3\0\0\xF4\0\0\xF6\0\0\xF7\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0") }, 36u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x02\0ij\xC3\xADj\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE1\0\0\xE5\0\0\xE7\0\0\xE9\0\0\xEA\0\0\xF2\0\0\xF5\0\0\xF8\0\0\xF9\0\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xCA\x07\0\xE8\x07\0\xEB\x07\0\xF6\x07\0") }, 41u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0z\0\0\xEA\0\0\xEB\0\0\xF4\0\0\xF5\0\0a\x01\0b\x01\0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE2\0\0\xE7\0\0\xEA\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF0\0\0\xF2\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xFC\0\0\xFD\0\0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0B\0\x04\x0B\0\x05\x0B\0\x0C\x0B\0\x0F\x0B\0\x11\x0B\0\x13\x0B\0)\x0B\0*\x0B\x001\x0B\x002\x0B\x004\x0B\x005\x0B\0:\x0B\0<\x0B\0=\x0B\0>\x0B\0D\x0B\0G\x0B\0I\x0B\0K\x0B\0N\x0B\0_\x0B\0`\x0B\0q\x0B\0r\x0B\0") }, 62u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\t\0\x0F\0\xE0\xAC\x95\xE0\xAD\x8D\xE0\xAC\xB7\xE0\xAC\xA1\xE0\xAC\xBC\xE0\xAC\xA2\xE0\xAC\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\n\0\x03\n\0\x05\n\0\x0B\n\0\x0F\n\0\x11\n\0\x13\n\0)\n\0*\n\x001\n\x002\n\x003\n\x005\n\x006\n\08\n\0:\n\0<\n\0=\n\0>\n\0C\n\0G\n\0I\n\0K\n\0N\n\0\\\n\0]\n\0f\n\0u\n\0") }, 69u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x06\0\x06\0\x0C\0\x12\0\x18\0\x1E\0\xE0\xA8\x96\xE0\xA8\xBC\xE0\xA8\x97\xE0\xA8\xBC\xE0\xA8\x9C\xE0\xA8\xBC\xE0\xA8\xAB\xE0\xA8\xBC\xE0\xA8\xB2\xE0\xA8\xBC\xE0\xA8\xB8\xE0\xA8\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0{\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\xB9\x1E\0\xBA\x1E\0\xCD\x1E\0\xCE\x1E\0") }, 30u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x07\0\x02\0\x04\0\x06\0\x08\0\n\0\x0F\0chgbkpshzh\xE1\xBA\xB9\xCC\x81\xE1\xBB\x8D\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0{\0\0\xF3\0\0\xF4\0\0\x05\x01\0\x06\x01\0\x07\x01\0\x08\x01\0\x19\x01\0\x1A\x01\0B\x01\0C\x01\0D\x01\0E\x01\0[\x01\0\\\x01\0z\x01\0{\x01\0|\x01\0}\x01\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0h\0\0i\0\0k\0\0l\0\0w\0\0z\0\0{\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xEA\0\0\xEB\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 28u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0F\0cccheuggghn-s-css") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0%\x06\0&\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0J\x06\0S\x06\0T\x06\0U\x06\0p\x06\0q\x06\0|\x06\0}\x06\0~\x06\0\x7F\x06\0\x81\x06\0\x82\x06\0\x85\x06\0\x87\x06\0\x89\x06\0\x8A\x06\0\x93\x06\0\x94\x06\0\x96\x06\0\x97\x06\0\x98\x06\0\x99\x06\0\x9A\x06\0\x9B\x06\0\xA9\x06\0\xAA\x06\0\xAB\x06\0\xAC\x06\0\xAF\x06\0\xB0\x06\0\xBC\x06\0\xBD\x06\0\xCC\x06\0\xCE\x06\0\xD0\x06\0\xD1\x06\0") }, 60u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0%\x06\0&\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0J\x06\0S\x06\0T\x06\0U\x06\0p\x06\0q\x06\0|\x06\0}\x06\0~\x06\0\x7F\x06\0\x81\x06\0\x82\x06\0\x85\x06\0\x87\x06\0\x89\x06\0\x8A\x06\0\x93\x06\0\x94\x06\0\x96\x06\0\x97\x06\0\x98\x06\0\x99\x06\0\x9A\x06\0\x9B\x06\0\xA9\x06\0\xAA\x06\0\xAB\x06\0\xAC\x06\0\xAF\x06\0\xB0\x06\0\xBC\x06\0\xBD\x06\0\xCC\x06\0\xCE\x06\0\xD0\x06\0\xD1\x06\0\xD2\x06\0\xD3\x06\0") }, 61u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE4\0\0\xE7\0\0\xE8\0\0\xE9\0\0\xEB\0\0\xED\0\0\xEE\0\0\xF2\0\0\xF6\0\0\xFA\0\0\xFB\0\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0h\0\0j\0\0k\0\0o\0\0p\0\0r\0\0s\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xF1\0\0\xF2\0\0") }, 15u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x07\0\x02\0\x06\0\t\0\x0B\0\x0E\0\x11\0chch\xCA\xBCk\xCA\xBCllp\xCA\xBCq\xCA\xBCt\xCA\xBC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\x06\t\0\x15\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0>\t\0D\t\0E\t\0F\t\0G\t\0I\t\0K\t\0N\t\0") }, 49u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE2\0\0\xE3\0\0\xEE\0\0\xEF\0\0\x03\x01\0\x04\x01\0\x19\x02\0\x1A\x02\0\x1B\x02\0\x1C\x02\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\r\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\0:\t\0<\t\0E\t\0G\t\0I\t\0K\t\0N\t\0P\t\0S\t\0`\t\0d\t\0") }, 70u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\x002\x04\x003\x04\x005\x04\08\x04\0D\x04\0E\x04\0F\x04\0G\x04\0H\x04\0K\x04\0L\x04\0M\x04\0N\x04\0\x95\x04\0\x96\x04\0\xA5\x04\0\xA6\x04\0\xAF\x04\0\xB0\x04\0\xBB\x04\0\xBC\x04\0\xE9\x04\0\xEA\x04\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x04\0\xD0\xB4\xD1\x8C\xD0\xBD\xD1\x8C") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"Z\x1C\0~\x1C\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0k\0\0l\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xE9\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF3\0\0\xF9\0\0\xFA\0\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0k\0\0l\0\0w\0\0z\0\0{\0\0\xE0\0\0\xE1\0\0\xE2\0\0\xE3\0\0\xE8\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\xED\0\0\xEE\0\0\xEF\0\0\xF2\0\0\xF3\0\0\xF4\0\0\xF5\0\0\xF9\0\0\xFA\0\0\xFB\0\0\xFC\0\0\r\x1E\0\x0E\x1E\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0#\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0I\x06\0J\x06\0K\x06\0z\x06\0|\x06\0}\x06\0\x81\x06\0\x83\x06\0\x85\x06\0\x86\x06\0\x88\x06\0\x8A\x06\0\x8B\x06\0\x8C\x06\0\x8E\x06\0\x8F\x06\0\x90\x06\0\x99\x06\0\x9A\x06\0\xA6\x06\0\xA7\x06\0\xA9\x06\0\xAB\x06\0\xAF\x06\0\xB0\x06\0\xB1\x06\0\xB2\x06\0\xB3\x06\0\xB4\x06\0\xBB\x06\0\xBC\x06\0\xBE\x06\0\xBF\x06\0") }, 52u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x04\0\xD8\xAC\xDA\xBE\xDA\xAF\xDA\xBE") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x02\t\0\x03\t\0\x05\t\0\x0B\t\0\x0F\t\0\x11\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x003\t\x005\t\0:\t\0<\t\0=\t\0>\t\0F\t\0G\t\0J\t\0K\t\0N\t\0{\t\0}\t\0~\t\0\x80\t\0") }, 63u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x04\x10\0\x05\x10\0\x10\x10\0\x12\x10\0\x15\x10\0\x16\x10\0\x19\x10\0\x1F\x10\0\"\x10\0#\x10\0-\x10\x002\x10\x005\x10\x007\x10\08\x10\09\x10\0:\x10\0>\x10\0b\x10\0c\x10\0u\x10\0y\x10\0z\x10\0\x8B\x10\0\x9E\x10\0\xA0\x10\0\xE0\xA9\0\xE1\xA9\0\xE3\xA9\0\xE6\xA9\0a\xAA\0b\xAA\0f\xAA\0k\xAA\0n\xAA\0o\xAA\0") }, 58u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x82\r\0\x84\r\0\x85\r\0\x8E\r\0\x91\r\0\x97\r\0\x9A\r\0\xA6\r\0\xA7\r\0\xB2\r\0\xB3\r\0\xBC\r\0\xBD\r\0\xBE\r\0\xC0\r\0\xC7\r\0\xCA\r\0\xCB\r\0\xCF\r\0\xD5\r\0\xD6\r\0\xD7\r\0\xD8\r\0\xE0\r\0\xF2\r\0\xF3\r\0") }, 74u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE1\0\0\xE2\0\0\xE4\0\0\xE5\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF5\0\0\xFA\0\0\xFB\0\0\xFD\0\0\xFE\0\0\r\x01\0\x0E\x01\0\x0F\x01\0\x10\x01\0:\x01\0;\x01\0>\x01\0?\x01\0H\x01\0I\x01\0U\x01\0V\x01\0a\x01\0b\x01\0e\x01\0f\x01\0~\x01\0\x7F\x01\0") }, 43u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x03\0\x02\0\x04\0chdzd\xC5\xBE") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0z\0\0{\0\0\r\x01\0\x0E\x01\0a\x01\0b\x01\0~\x01\0\x7F\x01\0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"b\0\0e\0\0f\0\0i\0\0j\0\0o\0\0q\0\0u\0\0w\0\0z\0\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0w\0\0x\0\0{\0\0\xE7\0\0\xE8\0\0\xEB\0\0\xEC\0\0") }, 27u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\t\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0dhgjllnjrrshthxhzh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0v\0\0w\0\0x\0\0y\0\0z\0\0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE9\0\0\xEA\0\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0\xE0\0\0\xE1\0\0\xE4\0\0\xE6\0\0\xE9\0\0\xEA\0\0\xF6\0\0\xF7\0\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0x\0\0y\0\0{\0\0") }, 23u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0ch") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0x\0\0y\0\0{\0\0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x07\0\x0E\x07\0\x10\x07\0-\x07\x000\x07\0K\x07\0") }, 70u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0{\0\0\xE3\0\0\xE4\0\0\xF4\0\0\xF6\0\0\x07\x01\0\x08\x01\0B\x01\0C\x01\0D\x01\0E\x01\0M\x01\0N\x01\0O\x01\0P\x01\0[\x01\0\\\x01\0z\x01\0{\x01\0|\x01\0}\x01\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x83\x0B\0\x84\x0B\0\x85\x0B\0\x8B\x0B\0\x8E\x0B\0\x91\x0B\0\x92\x0B\0\x96\x0B\0\x99\x0B\0\x9B\x0B\0\x9C\x0B\0\x9D\x0B\0\x9E\x0B\0\xA0\x0B\0\xA3\x0B\0\xA5\x0B\0\xA8\x0B\0\xAB\x0B\0\xAE\x0B\0\xB6\x0B\0\xB7\x0B\0\xBA\x0B\0\xBE\x0B\0\xC3\x0B\0\xC6\x0B\0\xC9\x0B\0\xCA\x0B\0\xCE\x0B\0") }, 47u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0C\0\x04\x0C\0\x05\x0C\0\r\x0C\0\x0E\x0C\0\x11\x0C\0\x12\x0C\0)\x0C\0*\x0C\x004\x0C\x005\x0C\0:\x0C\0>\x0C\0E\x0C\0F\x0C\0I\x0C\0J\x0C\0N\x0C\0U\x0C\0W\x0C\0`\x0C\0b\x0C\0") }, 70u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0F\x04\0G\x04\0I\x04\0J\x04\0K\x04\0M\x04\0P\x04\0Q\x04\0R\x04\0\x93\x04\0\x94\x04\0\x9B\x04\0\x9C\x04\0\xB3\x04\0\xB4\x04\0\xB7\x04\0\xB8\x04\0\xE3\x04\0\xE4\x04\0\xEF\x04\0\xF0\x04\0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\x0E\0;\x0E\0@\x0E\0O\x0E\0") }, 73u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\x12\0\x07\x12\0\x08\x12\0G\x12\0H\x12\0I\x12\0J\x12\0N\x12\0P\x12\0W\x12\0X\x12\0Y\x12\0Z\x12\0^\x12\0`\x12\0\x87\x12\0\x88\x12\0\x89\x12\0\x8A\x12\0\x8E\x12\0\x90\x12\0\xAF\x12\0\xB0\x12\0\xB1\x12\0\xB2\x12\0\xB6\x12\0\xB8\x12\0\xBF\x12\0\xC0\x12\0\xC1\x12\0\xC2\x12\0\xC6\x12\0\xC8\x12\0\xCF\x12\0\xD0\x12\0\xD7\x12\0\xD8\x12\0\xEF\x12\0\xF0\x12\0\xF8\x12\0\0\x13\0\x0F\x13\0\x10\x13\0\x11\x13\0\x12\x13\0\x16\x13\0 \x13\0X\x13\0_\x13\0`\x13\0") }, 301u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0{\0\0\xE4\0\0\xE5\0\0\xE7\0\0\xE8\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFE\0\0H\x01\0I\x01\0_\x01\0`\x01\0~\x01\0\x7F\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xEA\0\0\xEB\0\0\xF4\0\0\xF5\0\0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0e\0\0g\0\0h\0\0j\0\0k\0\0q\0\0s\0\0w\0\0\xE1\0\0\xE2\0\0\xE9\0\0\xEA\0\0\xED\0\0\xEE\0\0\xF3\0\0\xF4\0\0\xFA\0\0\xFB\0\0\x01\x01\0\x02\x01\0\x13\x01\0\x14\x01\0+\x01\0,\x01\0M\x01\0N\x01\0k\x01\0l\x01\0\xBB\x02\0\xBC\x02\0") }, 26u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0ng") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0q\0\0r\0\0w\0\0y\0\0{\0\0\xE7\0\0\xE8\0\0\xF6\0\0\xF7\0\0\xFC\0\0\xFD\0\0\x1F\x01\0 \x01\x000\x01\x002\x01\0_\x01\0`\x01\0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\x97\x04\0\x98\x04\0\xA3\x04\0\xA4\x04\0\xAF\x04\0\xB0\x04\0\xBB\x04\0\xBC\x04\0\xD9\x04\0\xDA\x04\0\xE9\x04\0\xEA\x04\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0P\x04\0Q\x04\0R\x04\0\xA3\x04\0\xA4\x04\0\xAF\x04\0\xB0\x04\0\xE9\x04\0\xEA\x04\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"'\x06\0)\x06\0*\x06\0+\x06\0,\x06\0-\x06\0.\x06\x000\x06\x001\x06\x005\x06\0:\x06\0;\x06\0A\x06\0G\x06\0H\x06\0K\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x98\x06\0\x99\x06\0\xAD\x06\0\xAE\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC6\x06\0\xC9\x06\0\xCB\x06\0\xCC\x06\0\xD0\x06\0\xD1\x06\0\xD5\x06\0\xD6\x06\0") }, 32u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x04\0\x08\0\x0C\0\x10\0\x14\0\x18\0\x1C\0\xD8\xA6\xD8\xA7\xD8\xA6\xD9\x87\xD8\xA6\xD9\x88\xD8\xA6\xD9\x89\xD8\xA6\xDB\x86\xD8\xA6\xDB\x87\xD8\xA6\xDB\x88\xD8\xA6\xDB\x90") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xBC\x02\0\xBD\x02\x000\x04\0J\x04\0L\x04\0M\x04\0N\x04\0P\x04\0T\x04\0U\x04\0V\x04\0X\x04\0\x91\x04\0\x92\x04\0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(zerovec::ZeroVec::new(), 0u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\x06\0\"\x06\0'\x06\0)\x06\0*\x06\0;\x06\0A\x06\0C\x06\0D\x06\0G\x06\0H\x06\0I\x06\0y\x06\0z\x06\0~\x06\0\x7F\x06\0\x86\x06\0\x87\x06\0\x88\x06\0\x89\x06\0\x91\x06\0\x92\x06\0\x98\x06\0\x99\x06\0\xA9\x06\0\xAA\x06\0\xAF\x06\0\xB0\x06\0\xBE\x06\0\xBF\x06\0\xC1\x06\0\xC2\x06\0\xCC\x06\0\xCD\x06\0\xD2\x06\0\xD3\x06\0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0w\0\0x\0\0{\0\0\xBC\x02\0\xBD\x02\0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x04\0\x02\0\x05\0\x08\0chg\xCA\xBBo\xCA\xBBsh") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"0\x04\0F\x04\0G\x04\0I\x04\0J\x04\0K\x04\0M\x04\0P\x04\0Q\x04\0R\x04\0^\x04\0_\x04\0\x93\x04\0\x94\x04\0\x9B\x04\0\x9C\x04\0\xB3\x04\0\xB4\x04\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0k\0\0l\0\0q\0\0r\0\0w\0\0x\0\0y\0\0z\0\0{\0\0\xE0\0\0\xE1\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xED\0\0\xF2\0\0\xF4\0\0\xF9\0\0\xFA\0\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0f\0\0g\0\0j\0\0k\0\0w\0\0x\0\0z\0\0\xE0\0\0\xE4\0\0\xE8\0\0\xEB\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF6\0\0\xF9\0\0\xFB\0\0\xFD\0\0\xFE\0\0\x03\x01\0\x04\x01\0\x11\x01\0\x12\x01\0)\x01\0*\x01\0i\x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ointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0b\0\0c\0\0d\0\0e\0\0g\0\0h\0\0q\0\0r\0\0{\0\0") }, 22u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x05\0\x02\0\x04\0\x06\0\x08\0khphthtttth") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0h\0\0i\0\0v\0\0w\0\0z\0\0\xE0\0\0\xE1\0\0\xE9\0\0\xEA\0\0\xEB\0\0\xEC\0\0\xF1\0\0\xF2\0\0\xF3\0\0\xF4\0\0K\x01\0L\x01\0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\x01\t\0\x04\t\0\x05\t\0\x0B\t\0\r\t\0\x0E\t\0\x0F\t\0\x12\t\0\x13\t\0)\t\0*\t\x001\t\x002\t\x004\t\x005\t\x007\t\08\t\0:\t\0<\t\0D\t\0E\t\0F\t\0G\t\0J\t\0K\t\0N\t\0P\t\0Q\t\0\x0C \0\x0E \0") }, 66u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xE0\0\0\xE2\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF4\0\0\xF9\0\0\xFB\0\0D\x01\0E\x01\0\xF9\x01\0\xFA\x01\0?\x1E\0@\x1E\0c\x1E\0d\x1E\0\xB9\x1E\0\xBA\x1E\0\xCD\x1E\0\xCE\x1E\0") }, 37u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x08\0\x02\0\x05\0\x08\0\x0B\0\x10\0\x15\0\x1A\0gbm\xCC\x80m\xCC\x84n\xCC\x84\xE1\xBA\xB9\xCC\x80\xE1\xBA\xB9\xCC\x81\xE1\xBB\x8D\xCC\x80\xE1\xBB\x8D\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0q\0\0r\0\0v\0\0w\0\0x\0\0y\0\0z\0\0\xE0\0\0\xE2\0\0\xE8\0\0\xEA\0\0\xEC\0\0\xEE\0\0\xF2\0\0\xF4\0\0\xF9\0\0\xFB\0\0T\x02\0U\x02\0[\x02\0\\\x02\0") }, 33u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x06\0\x02\0\x04\0\x08\0\x0C\0\x10\0gbsh\xC9\x94\xCC\x80\xC9\x94\xCC\x81\xC9\x9B\xCC\x80\xC9\x9B\xCC\x81") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0c\0\0d\0\0f\0\0g\0\0h\0\0i\0\0j\0\0k\0\0l\0\0m\0\0o\0\0p\0\0q\0\0r\0\0v\0\0w\0\0z\0\0\xE3\0\0\xE4\0\0)\x01\0*\x01\0i\x01\0j\x01\0\xBD\x1E\0\xBE\x1E\0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x02N\0\x03N\0\x04N\0\x08N\0\x0EN\0\x11N\0\x12N\0\x14N\0\x15N\0\x16N\0\x17N\0\x18N\0\x1AN\0\x1FN\0 N\0&N\0'N\0-N\0.N\x002N\x003N\08N\0:N\0;N\0<N\0CN\0DN\0EN\0FN\0HN\0IN\0KN\0LN\0NN\0PN\0VN\0WN\0XN\0ZN\0]N\0^N\0_N\0`N\0~N\0\x7FN\0\x82N\0\x83N\0\x86N\0\x87N\0\x88N\0\x89N\0\x8BN\0\x8DN\0\x8EN\0\x8FN\0\x91N\0\x93N\0\x94N\0\x96N\0\x9BN\0\x9CN\0\x9EN\0\x9FN\0\xA1N\0\xA2N\0\xA4N\0\xA7N\0\xA8N\0\xA9N\0\xABN\0\xADN\0\xAEN\0\xAFN\0\xBAN\0\xBBN\0\xC0N\0\xC2N\0\xC7N\0\xC8N\0\xCAN\0\xCCN\0\xCDN\0\xCEN\0\xD4N\0\xD5N\0\xD6N\0\xD7N\0\xD8N\0\xDAN\0\xE3N\0\xE6N\0\xF0N\0\xF1N\0\xF2N\0\xF3N\0\xF6N\0\xF7N\0\xFBN\0\xFCN\0\xFDN\0\xFEN\0\x01O\0\x02O\0\nO\0\x0BO\0\rO\0\x0EO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7F\0\x8A\x7F\0\x8B\x7F\0\x8E\x7F\0\x8F\x7F\0\x9E\x7F\0\x9F\x7F\0\xA4\x7F\0\xA5\x7F\0\xA9\x7F\0\xAA\x7F\0\xBD\x7F\0\xBE\x7F\0\xC1\x7F\0\xC2\x7F\0\xD2\x7F\0\xD3\x7F\0\xD4\x7F\0\xD5\x7F\0\xF0\x7F\0\xF1\x7F\0\xF9\x7F\0\xFA\x7F\0\xFB\x7F\0\xFD\x7F\0\0\x80\0\x02\x80\0\x03\x80\0\x04\x80\0\x05\x80\0\x06\x80\0\x0C\x80\0\x0E\x80\0\x10\x80\0\x11\x80\0\x17\x80\0\x18\x80\x003\x80\x004\x80\x006\x80\x007\x80\0J\x80\0K\x80\0V\x80\0W\x80\0Z\x80\0[\x80\0^\x80\0_\x80\0o\x80\0q\x80\0r\x80\0s\x80\0w\x80\0x\x80\0}\x80\0\x7F\x80\0\x89\x80\0\x8A\x80\0\x8C\x80\0\x8D\x80\0\x9A\x80\0\x9B\x80\0\xA1\x80\0\xA2\x80\0\xA5\x80\0\xA6\x80\0\xA9\x80\0\xAA\x80\0\xAF\x80\0\xB0\x80\0\xB2\x80\0\xB3\x80\0\xBA\x80\0\xBB\x80\0\xCC\x80\0\xCD\x80\0\xCE\x80\0\xCF\x80\0\xD6\x80\0\xD7\x80\0\xDE\x80\0\xDF\x80\0\xE1\x80\0\xE2\x80\0\xF8\x80\0\xF9\x80\0\xFD\x80\0\xFE\x80\0\x06\x81\0\x07\x81\0\x08\x81\0\t\x81\0\x16\x81\0\x17\x81\0+\x81\0,\x81\0P\x81\0Q\x81\0S\x81\0U\x81\0f\x81\0g\x81\0p\x81\0q\x81\0s\x81\0t\x81\0y\x81\0z\x81\0\x7F\x81\0\x80\x81\0\x9A\x81\0\x9B\x81\0\xA0\x81\0\xA1\x81\0\xBD\x81\0\xBE\x81\0\xC2\x81\0\xC3\x81\0\xC9\x81\0\xCA\x81\0\xD8\x81\0\xD9\x81\0\xDF\x81\0\xE0\x81\0\xE3\x81\0\xE4\x81\0\xE5\x81\0\xE6\x81\0\xE8\x81\0\xE9\x81\0\xEA\x81\0\xEB\x81\0\xED\x81\0\xEE\x81\0\xF3\x81\0\xF5\x81\0\xFA\x81\0\xFB\x81\0\x07\x82\0\x0B\x82\0\x0C\x82\0\x0E\x82\0\x12\x82\0\x13\x82\0\x1E\x82\0 \x82\0*\x82\0+\x82\0,\x82\0-\x82\09\x82\0:\x82\0f\x82\0g\x82\0o\x82\0p\x82\0r\x82\0s\x82\0~\x82\0\x7F\x82\0\x99\x82\0\x9A\x82\0\x9D\x82\0\x9E\x82\0\xAC\x82\0\xAE\x82\0\xB1\x82\0\xB2\x82\0\xB3\x82\0\xB4\x82\0\xBD\x82\0\xBE\x82\0\xE3\x82\0\xE4\x82\0\xE5\x82\0\xE7\x82\0\xF1\x82\0\xF2\x82\0\x04\x83\0\x06\x83\0+\x83\0,\x83\x002\x83\x003\x83\x005\x83\x007\x83\08\x83\09\x83\0I\x83\0J\x83\0R\x83\0S\x83\0w\x83\0x\x83\0|\x83\0}\x83\0\x89\x83\0\x8B\x83\0\x8E\x83\0\x8F\x83\0\x93\x83\0\x94\x83\0\x96\x83\0\x97\x83\0\xAB\x83\0\xAC\x83\0\xC7\x83\0\xC8\x83\0\xCC\x83\0\xCD\x83\0\xDC\x83\0\xDD\x83\0\xE9\x83\0\xEA\x83\0\xEF\x83\0\xF0\x83\0\xF2\x83\0\xF3\x83\0\x04\x84\0\x05\x84\0\n\x84\0\x0B\x84\0\x0E\x84\0\x0F\x84\0,\x84\0-\x84\x005\x84\x006\x84\0=\x84\0>\x84\0I\x84\0J\x84\0W\x84\0X\x84\0[\x84\0\\\x84\0a\x84\0b\x84\0u\x84\0v\x84\0\x82\x84\0\x83\x84\0\x99\x84\0\x9A\x84\0\x9C\x84\0\x9D\x84\0\xB2\x84\0\xB3\x84\0\xB8\x84\0\xB9\x84\0\xBC\x84\0\xBD\x84\0\xC4\x84\0\xC5\x84\0\xC9\x84\0\xCA\x84\0\xCB\x84\0\xCC\x84\0\xEE\x84\0\xEF\x84\0\x14\x85\0\x16\x85\0!\x85\0\"\x85\0#\x85\0$\x85\0%\x85\0&\x85\0,\x85\0-\x85\0I\x85\0J\x85\0m\x85\0n\x85\0~\x85\0\x7F\x85\0\x84\x85\0\x85\x85\0\x91\x85\0\x92\x85\0\xA6\x85\0\xA7\x85\0\xA9\x85\0\xAB\x85\0\xAF\x85\0\xB0\x85\0\xC9\x85\0\xCA\x85\0\xCD\x85\0\xCE\x85\0\xCF\x85\0\xD0\x85\0\xDD\x85\0\xDE\x85\0\xE4\x85\0\xE6\x85\0\x06\x86\0\x08\x86\0\x0B\x86\0\x0C\x86\0\x11\x86\0\x12\x86\0-\x86\0.\x86\0?\x86\0@\x86\0N\x86\0O\x86\0U\x86\0V\x86\0[\x86\0\\\x86\0_\x86\0`\x86\0g\x86\0h\x86\0\x8A\x86\0\x8B\x86\0\x93\x86\0\x94\x86\0\xAF\x86\0\xB0\x86\0\xC7\x86\0\xC8\x86\0\xCB\x86\0\xCC\x86\0\xD9\x86\0\xDA\x86\0\x02\x87\0\x03\x87\0\x1C\x87\0\x1D\x87\0%\x87\0&\x87\x004\x87\x005\x87\0Y\x87\0Z\x87\0_\x87\0a\x87\0f\x87\0g\x87\0v\x87\0w\x87\0\x82\x87\0\x84\x87\0\x8D\x87\0\x8E\x87\0\x9E\x87\0\x9F\x87\0\xA2\x87\0\xA3\x87\0\xBA\x87\0\xBB\x87\0\xC0\x87\0\xC1\x87\0\xC4\x87\0\xC5\x87\0\xCB\x87\0\xCC\x87\0\xD1\x87\0\xD2\x87\0\xF2\x87\0\xF4\x87\0\xF9\x87\0\xFA\x87\0\xFB\x87\0\xFC\x87\0\x05\x88\0\x06\x88\0\r\x88\0\x0E\x88\0\x15\x88\0\x16\x88\0#\x88\0$\x88\0;\x88\0<\x88\0@\x88\0A\x88\0L\x88\0M\x88\0S\x88\0T\x88\0W\x88\0X\x88\0[\x88\0\\\x88\0]\x88\0^\x88\0a\x88\0b\x88\0c\x88\0d\x88\0h\x88\0i\x88\0k\x88\0l\x88\0\x8B\x88\0\x8C\x88\0\x8D\x88\0\x8E\x88\0\xAB\x88\0\xAC\x88\0\xC1\x88\0\xC3\x88\0\xCF\x88\0\xD0\x88\0\xD5\x88\0\xD6\x88\0\xDC\x88\0\xDE\x88\0\xE1\x88\0\xE2\x88\0\xF1\x88\0\xF2\x88\0\xF9\x88\0\xFA\x88\0\xFD\x88\0\xFE\x88\0\x07\x89\0\x08\x89\0\x10\x89\0\x11\x89\x002\x89\x003\x89\0j\x89\0k\x89\0o\x89\0p\x89\0\x7F\x89\0\x80\x89\0\x81\x89\0\x82\x89\0\x86\x89\0\x87\x89\0\x8B\x89\0\x8C\x89\0\x8F\x89\0\x90\x89\0\x96\x89\0\x97\x89\0\xAA\x89\0\xAB\x89\0\xBA\x89\0\xBB\x89\0\xBD\x89\0\xBE\x89\0\xC0\x89\0\xC1\x89\0\xD2\x89\0\xD3\x89\0\xE3\x89\0\xE4\x89\0\xF8\x89\0\xF9\x89\0\0\x8A\0\x01\x8A\0\x02\x8A\0\x03\x8A\0\x08\x8A\0\t\x8A\0\n\x8A\0\x0B\x8A\0\x0E\x8A\0\x0F\x8A\0\x13\x8A\0\x14\x8A\0\x17\x8A\0\x19\x8A\0\x1D\x8A\0\x1E\x8A\0%\x8A\0&\x8A\0*\x8A\0+\x8A\0-\x8A\0.\x8A\x001\x8A\x002\x8A\x004\x8A\x005\x8A\0:\x8A\0=\x8A\0U\x8A\0V\x8A\0^\x8A\0_\x8A\0b\x8A\0c\x8A\0f\x8A\0g\x8A\0i\x8A\0j\x8A\0q\x8A\0t\x8A\0\x87\x8A\0\x88\x8A\0\x8C\x8A\0\x8E\x8A\0\x93\x8A\0\x94\x8A\0\x95\x8A\0\x96\x8A\0\x9E\x8A\0\x9F\x8A\0\xA0\x8A\0\xA1\x8A\0\xA4\x8A\0\xA5\x8A\0\xAA\x8A\0\xAB\x8A\0\xB0\x8A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6\x8F\0\xCE\x8F\0\xCF\x8F\0\xD1\x8F\0\xD2\x8F\0\xD4\x8F\0\xD5\x8F\0\xE6\x8F\0\xE7\x8F\0\xEA\x8F\0\xEC\x8F\0\xF0\x8F\0\xF1\x8F\0\xF4\x8F\0\xF5\x8F\0\xF7\x8F\0\xF8\x8F\0\xFD\x8F\0\xFE\x8F\0\0\x90\0\x02\x90\0\x03\x90\0\x04\x90\0\x06\x90\0\x07\x90\0\x0F\x90\0\x11\x90\0\x14\x90\0\x15\x90\0\x19\x90\0\x1C\x90\0\x1D\x90\0\x1E\x90\0\x1F\x90\0!\x90\0\"\x90\0$\x90\x001\x90\x003\x90\08\x90\09\x90\0<\x90\0=\x90\0G\x90\0H\x90\0J\x90\0L\x90\0M\x90\0O\x90\0S\x90\0V\x90\0Y\x90\0Z\x90\0\\\x90\0]\x90\0`\x90\0a\x90\0i\x90\0j\x90\0m\x90\0o\x90\0r\x90\0s\x90\0w\x90\0y\x90\0z\x90\0{\x90\0\x7F\x90\0\x82\x90\0\x84\x90\0\x85\x90\0\x8A\x90\0\x8B\x90\0\x8F\x90\0\x90\x90\0\xA3\x90\0\xA4\x90\0\xA6\x90\0\xA7\x90\0\xAA\x90\0\xAB\x90\0\xB1\x90\0\xB2\x90\0\xCE\x90\0\xCF\x90\0\xE8\x90\0\xE9\x90\0\xED\x90\0\xEE\x90\0\xF5\x90\0\xF6\x90\0\xFD\x90\0\xFE\x90\0\x02\x91\0\x03\x91\0\t\x91\0\n\x91\0\x19\x91\0\x1A\x91\0-\x91\0.\x91\x000\x91\x001\x91\0I\x91\0J\x91\0M\x91\0N\x91\0R\x91\0S\x91\0j\x91\0k\x91\0w\x91\0y\x91\0\x89\x91\0\x8A\x91\0\x92\x91\0\x93\x91\0\x9C\x91\0\x9D\x91\0\xAB\x91\0\xAD\x91\0\xC7\x91\0\xC8\x91\0\xCB\x91\0\xD0\x91\0\xD1\x91\0\xD2\x91\0\xDD\x91\0\xDE\x91\0\xE3\x91\0\xE4\x91\x004\x92\x005\x92\0E\x92\0F\x92\0b\x92\0c\x92\0d\x92\0e\x92\0\x80\x92\0\x81\x92\0\x85\x92\0\x86\x92\0\x96\x92\0\x97\x92\0\x98\x92\0\x99\x92\0\xB3\x92\0\xB4\x92\0\xB7\x92\0\xB8\x92\0\xC1\x92\0\xC2\x92\0\xD2\x92\0\xD3\x92\0\xFC\x92\0\xFD\x92\0\x04\x93\0\x05\x93\0\"\x93\0#\x93\0&\x93\0'\x93\0(\x93\0)\x93\0+\x93\0,\x93\0/\x93\x000\x93\x006\x93\x007\x93\0J\x93\0L\x93\0u\x93\0v\x93\0~\x93\0\x7F\x93\0\x8A\x93\0\x8B\x93\0\x96\x93\0\x97\x93\0\xAE\x93\0\xAF\x93\0\xC8\x93\0\xC9\x93\0\xE1\x93\0\xE3\x93\0\x18\x94\0\x19\x94\0!\x94\0\"\x94\x005\x94\x006\x94\0Q\x94\0R\x94\0\x7F\x94\0\x80\x94\0w\x95\0x\x95\0\x80\x95\0\x81\x95\0\x83\x95\0\x84\x95\0\x89\x95\0\x8A\x95\0\x8B\x95\0\x8C\x95\0\x8F\x95\0\x90\x95\0\x92\x95\0\x94\x95\0\xA3\x95\0\xA4\x95\0\xA9\x95\0\xAA\x95\0\xB1\x95\0\xB2\x95\0\xC6\x95\0\xC7\x95\0\xCA\x95\0\xCB\x95\0\xCD\x95\0\xCE\x95\0\xD0\x95\0\xD1\x95\0\xDC\x95\0\xDD\x95\0\xE1\x95\0\xE2\x95\x001\x96\x003\x96\0;\x96\0<\x96\0?\x96\0A\x96\0D\x96\0E\x96\0M\x96\0N\x96\0P\x96\0Q\x96\0b\x96\0e\x96\0j\x96\0k\x96\0p\x96\0q\x96\0s\x96\0t\x96\0u\x96\0y\x96\0}\x96\0~\x96\0\x86\x96\0\x87\x96\0\x8A\x96\0\x8B\x96\0\x8E\x96\0\x8F\x96\0\x94\x96\0\x95\x96\0\x9B\x96\0\x9D\x96\0\xA8\x96\0\xA9\x96\0\xAA\x96\0\xAB\x96\0\xB1\x96\0\xB2\x96\0\xBB\x96\0\xBC\x96\0\xC4\x96\0\xC7\x96\0\xC9\x96\0\xCA\x96\0\xCC\x96\0\xCD\x96\0\xD6\x96\0\xD7\x96\0\xD9\x96\0\xDA\x96\0\xDC\x96\0\xDD\x96\0\xDE\x96\0\xDF\x96\0\xE2\x96\0\xE4\x96\0\xE8\x96\0\xE9\x96\0\xEA\x96\0\xEB\x96\0\xF2\x96\0\xF3\x96\0\xF6\x96\0\xF8\x96\0\xFB\x96\0\xFC\x96\0\0\x97\0\x01\x97\0\x07\x97\0\x08\x97\0\r\x97\0\x0E\x97\0\x1C\x97\0\x1D\x97\0'\x97\0(\x97\x002\x97\x003\x97\08\x97\0:\x97\0B\x97\0C\x97\0H\x97\0I\x97\0R\x97\0S\x97\0V\x97\0W\x97\0Y\x97\0Z\x97\0\\\x97\0]\x97\0^\x97\0_\x97\0`\x97\0a\x97\0b\x97\0c\x97\0i\x97\0j\x97\0t\x97\0u\x97\0|\x97\0}\x97\0\x8B\x97\0\x8C\x97\0\xAD\x97\0\xAE\x97\0\xC3\x97\0\xC4\x97\0\xCB\x97\0\xCC\x97\0\xD3\x97\0\xD4\x97\0\xF3\x97\0\xF4\x97\0\xFB\x97\0\xFC\x97\0\xFF\x97\0\0\x98\0\x01\x98\0\x03\x98\0\x05\x98\0\x07\x98\0\x08\x98\0\t\x98\0\x0C\x98\0\r\x98\0\x10\x98\0\x12\x98\0\x13\x98\0\x14\x98\0\x17\x98\0\x19\x98\0\x1E\x98\0\x1F\x98\0-\x98\0.\x98\08\x98\09\x98\0;\x98\0<\x98\0F\x98\0G\x98\0L\x98\0N\x98\0O\x98\0P\x98\0X\x98\0Y\x98\0[\x98\0\\\x98\0^\x98\0_\x98\0g\x98\0h\x98\0o\x98\0p\x98\0\xA8\x98\0\xA9\x98\0\xB1\x98\0\xB2\x98\0\xC4\x98\0\xC5\x98\0\xC6\x98\0\xC7\x98\0\xDB\x98\0\xDC\x98\0\x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0\x80\x9E\0\x97\x9E\0\x98\x9E\0\xA5\x9E\0\xA6\x9E\0\xB5\x9E\0\xB6\x9E\0\xBB\x9E\0\xBD\x9E\0\xC3\x9E\0\xC4\x9E\0\xCE\x9E\0\xCF\x9E\0\xD1\x9E\0\xD2\x9E\0\xD8\x9E\0\xD9\x9E\0\xDB\x9E\0\xDC\x9E\0\xDE\x9E\0\xDF\x9E\0\xE8\x9E\0\xE9\x9E\0\x13\x9F\0\x14\x9F\0 \x9F\0!\x9F\0,\x9F\0-\x9F\0;\x9F\0<\x9F\0J\x9F\0L\x9F\0R\x9F\0S\x9F\0a\x9F\0b\x9F\0\x8D\x9F\0\x8E\x9F\0\x90\x9F\0\x91\x9F\0\x9C\x9F\0\x9D\x9F\0") }, 2470u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x02N\0\x03N\0\x04N\0\x07N\0\x0FN\0\x11N\0\x12N\0\x13N\0\x15N\0\x16N\0\x17N\0\x18N\0\x1BN\0\x1CN\0\x1EN\0\"N\0#N\0$N\0&N\0*N\0+N\0-N\0.N\x000N\x001N\x002N\x003N\x004N\x005N\08N\0<N\0=N\0?N\0CN\0DN\0EN\0FN\0HN\0JN\0KN\0MN\0NN\0QN\0TN\0UN\0VN\0WN\0XN\0ZN\0]N\0^N\0_N\0bN\0fN\0gN\0pN\0rN\0\x86N\0\x87N\0\x88N\0\x8AN\0\x8BN\0\x8DN\0\x8EN\0\x90N\0\x91N\0\x93N\0\x94N\0\x96N\0\x9AN\0\x9CN\0\xA1N\0\xA2N\0\xA4N\0\xA9N\0\xABN\0\xADN\0\xAEN\0\xAFN\0\xB2N\0\xB3N\0\xBAN\0\xBBN\0\xBFN\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\x05\x7F\0\x06\x7F\0\x13\x7F\0\x14\x7F\0\x16\x7F\0\x17\x7F\0\x18\x7F\0\x19\x7F\0\x1A\x7F\0\x1B\x7F\0)\x7F\0+\x7F\x004\x7F\x005\x7F\08\x7F\09\x7F\0:\x7F\0;\x7F\0Q\x7F\0R\x7F\0U\x7F\0V\x7F\0W\x7F\0X\x7F\0Z\x7F\0[\x7F\0b\x7F\0c\x7F\0j\x7F\0k\x7F\0n\x7F\0o\x7F\0r\x7F\0s\x7F\0\x8A\x7F\0\x8B\x7F\0\x8E\x7F\0\x8F\x7F\0\x9E\x7F\0\x9F\x7F\0\xA4\x7F\0\xA5\x7F\0\xBD\x7F\0\xBE\x7F\0\xC1\x7F\0\xC2\x7F\0\xD4\x7F\0\xD5\x7F\0\xD8\x7F\0\xD9\x7F\0\xF0\x7F\0\xF1\x7F\0\xFB\x7F\0\xFD\x7F\0\0\x80\0\x02\x80\0\x03\x80\0\x04\x80\0\x05\x80\0\x06\x80\0\x0C\x80\0\x0E\x80\0\x10\x80\0\x11\x80\0\x17\x80\0\x18\x80\x003\x80\x004\x80\x006\x80\x007\x80\0;\x80\0<\x80\0J\x80\0K\x80\0L\x80\0M\x80\0T\x80\0U\x80\0Z\x80\0[\x80\0j\x80\0k\x80\0\x89\x80\0\x8A\x80\0\x9A\x80\0\x9B\x80\0\xA1\x80\0\xA2\x80\0\xA5\x80\0\xA6\x80\0\xA9\x80\0\xAA\x80\0\xAF\x80\0\xB0\x80\0\xB2\x80\0\xB3\x80\0\xC6\x80\0\xC7\x80\0\xCC\x80\0\xCD\x80\0\xCE\x80\0\xCF\x80\0\xD6\x80\0\xD7\x80\0\xDC\x80\0\xDD\x80\0\xDE\x80\0\xDF\x80\0\xE1\x80\0\xE2\x80\0\xF8\x80\0\xF9\x80\0\xFD\x80\0\xFE\x80\0\x06\x81\0\x07\x81\0\x11\x81\0\x12\x81\0\x1A\x81\0\x1B\x81\x001\x81\x002\x81\08\x81\09\x81\0J\x81\0K\x81\0S\x81\0U\x81\0p\x81\0q\x81\0\x7F\x81\0\x80\x81\0\xE3\x81\0\xE4\x81\0\xEA\x81\0\xEB\x81\0\xED\x81\0\xEE\x81\0\xF3\x81\0\xF5\x81\0\x0C\x82\0\x0E\x82\0\x12\x82\0\x13\x82\0\x1E\x82\0 \x82\0*\x82\0+\x82\0,\x82\0-\x82\x000\x82\x001\x82\09\x82\0:\x82\0o\x82\0p\x82\0r\x82\0s\x82\0z\x82\0{\x82\0~\x82\0\x7F\x82\0\x82\x82\0\x83\x82\0\x9D\x82\0\x9E\x82\0\xA6\x82\0\xA7\x82\0\xAC\x82\0\xAD\x82\0\xB1\x82\0\xB2\x82\0\xB3\x82\0\xB4\x82\0\xCD\x82\0\xCE\x82\0\xCF\x82\0\xD0\x82\0\xE5\x82\0\xE7\x82\0\xF1\x82\0\xF2\x82\0\x03\x83\0\x04\x83\0\x05\x83\0\x06\x83\0+\x83\0,\x83\x006\x83\x007\x83\0I\x83\0J\x83\0P\x83\0Q\x83\0R\x83\0S\x83\0c\x83\0d\x83\0o\x83\0p\x83\0w\x83\0x\x83\0|\x83\0}\x83\0\x89\x83\0\x8A\x83\0\x8E\x83\0\x8F\x83\0\xAB\x83\0\xAC\x83\0\xB1\x83\0\xB3\x83\0\xB7\x83\0\xB8\x83\0\xDC\x83\0\xDD\x83\0\xE9\x83\0\xEA\x83\0\xF2\x83\0\xF3\x83\0\x04\x84\0\x05\x84\0$\x84\0&\x84\0'\x84\0)\x84\0=\x84\0>\x84\0[\x84\0\\\x84\0a\x84\0b\x84\0\x82\x84\0\x83\x84\0\x8B\x84\0\x8C\x84\0\x99\x84\0\x9A\x84\0\xB2\x84\0\xB3\x84\0\xDD\x84\0\xDE\x84\0\x15\x85\0\x16\x85\0!\x85\0\"\x85\0\x84\x85\0\x85\x85\0\xAA\x85\0\xAB\x85\0\xCF\x85\0\xD0\x85\0\xE4\x85\0\xE5\x85\0N\x86\0O\x86\0Q\x86\0R\x86\0Z\x86\0[\x86\0k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\0I\x91\0J\x91\0M\x91\0N\x91\0R\x91\0S\x91\0w\x91\0y\x91\0\x89\x91\0\x8A\x91\0\x92\x91\0\x93\x91\0\xC7\x91\0\xC8\x91\0\xCA\x91\0\xCB\x91\0\xCC\x91\0\xD0\x91\0\xD1\x91\0\xD2\x91\0t\x92\0u\x92\0\x88\x94\0\x89\x94\0\x93\x94\0\x94\x94\0\x9F\x94\0\xA0\x94\0\xA2\x94\0\xA3\x94\0\xA6\x94\0\xA7\x94\0\xB1\x94\0\xB2\x94\0\xB5\x94\0\xB6\x94\0\xC1\x94\0\xC2\x94\0\xC3\x94\0\xC4\x94\0\xDC\x94\0\xDD\x94\0\xE2\x94\0\xE3\x94\0\xED\x94\0\xEE\x94\0\xF6\x94\0\xF7\x94\0\0\x95\0\x02\x95\0\x05\x95\0\x06\x95\0\x0B\x95\0\x0C\x95\0\x10\x95\0\x11\x95\0\x19\x95\0\x1A\x95\0!\x95\0\"\x95\0&\x95\0'\x95\0.\x95\0/\x95\0G\x95\0H\x95\0Q\x95\0R\x95\0\\\x95\0]\x95\0\x7F\x95\0\x80\x95\0\xE8\x95\0\xE9\x95\0\xEA\x95\0\xEB\x95\0\xED\x95\0\xEF\x95\0\xF0\x95\0\xF1\x95\0\xF2\x95\0\xF3\x95\0\xF4\x95\0\xF5\x95\0\xF7\x95\0\xF8\x95\0\xF9\x95\0\xFA\x95\0\xFB\x95\0\xFC\x95\0\x01\x96\0\x02\x96\0\x05\x96\0\x06\x96\0\x07\x96\0\x08\x96\0\x10\x96\0\x11\x96\0\x14\x96\0\x15\x96\0\x17\x96\0\x18\x96\0\x1F\x96\0 \x96\x002\x96\x007\x96\0;\x96\0<\x96\0?\x96\0A\x96\0D\x96\0G\x96\0H\x96\0I\x96\0M\x96\0N\x96\0P\x96\0Q\x96\0b\x96\0c\x96\0d\x96\0e\x96\0i\x96\0k\x96\0u\x96\0x\x96\0\x86\x96\0\x87\x96\0\x8F\x96\0\x91\x96\0\x94\x96\0\x95\x96\0\x9C\x96\0\x9D\x96\0\xBE\x96\0\xBF\x96\0\xC4\x96\0\xC7\x96\0\xC9\x96\0\xCA\x96\0\xE8\x96\0\xE9\x96\0\xEA\x96\0\xEB\x96\0\xF3\x96\0\xF4\x96\0\xF6\x96\0\xF8\x96\0\xFE\x96\0\xFF\x96\0\0\x97\0\x01\x97\0\x07\x97\0\x08\x97\0\r\x97\0\x0E\x97\x002\x97\x003\x97\08\x97\0:\x97\0R\x97\0S\x97\0V\x97\0W\x97\0Y\x97\0Z\x97\0^\x97\0_\x97\0`\x97\0a\x97\0b\x97\0c\x97\0i\x97\0j\x97\0|\x97\0}\x97\0\x8B\x97\0\x8C\x97\0\x91\x97\0\x92\x97\0\xE6\x97\0\xE7\x97\0\xE9\x97\0\xEA\x97\0\xF3\x97\0\xF4\x97\0\xF5\x97\0\xF6\x97\0\x1E\x98\0\x1F\x98\0u\x98\0w\x98\0y\x98\0|\x98\0}\x98\0\x80\x98\0\x84\x98\0\x85\x98\0\x86\x98\0\x88\x98\0\x91\x98\0\x92\x98\0\x97\x98\0\x99\x98\0\x9C\x98\0\x9E\x98\0\xCE\x98\0\xCF\x98\0\xD8\x98\0\xD9\x98\0\xDE\x98\0\xE0\x98\0\x10\x99\0\x11\x99\0m\x99\0o\x99\0p\x99\0r\x99\0|\x99\0}\x99\0\x86\x99\0\x87\x99\0\x96\x99\0\x97\x99\0\x99\x99\0\x9A\x99\0l\x9A\0m\x9A\0q\x9A\0r\x9A\0v\x9A\0w\x9A\0{\x9A\0|\x9A\0~\x9A\0\x7F\x9A\0\x82\x9A\0\x83\x9A\0\x8C\x9A\0\x8D\x9A\0\x91\x9A\0\x92\x9A\0\x97\x9A\0\x98\x9A\0\x9A\x9A\0\x9B\x9A\0\xA8\x9A\0\xA9\x9A\0\xD8\x9A\0\xD9\x9A\0<\x9B\0=\x9B\0A\x9B\0C\x9B\0E\x9B\0F\x9B\0T\x9B\0U\x9B\0|\x9C\0}\x9C\0\x81\x9C\0\x82\x9C\0\x9C\x9C\0\x9D\x9C\0\x1F\x9E\0 \x9E\0!\x9E\0\"\x9E\0#\x9E\0$\x9E\0?\x9E\0@\x9E\0E\x9E\0F\x9E\0p\x9E\0q\x9E\0\x7F\x9E\0\x80\x9E\0\xA6\x9E\0\xA7\x9E\0\xBB\x9E\0\xBC\x9E\0\xC4\x9E\0\xC5\x9E\0\xCE\x9E\0\xCF\x9E\0\xD1\x9E\0\xD2\x9E\0\xD8\x9E\0\xD9\x9E\0\x13\x9F\0\x14\x9F\0 \x9F\0!\x9F\0;\x9F\0<\x9F\0P\x9F\0Q\x9F\0\x7F\x9F\0\x80\x9F\0\x84\x9F\0\x85\x9F\0\x99\x9F\0\x9A\x9F\0\x9F\x9F\0\xA0\x9F\0") }, 2124u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x02N\0\x03N\0\x04N\0\x07N\0\x0FN\0\x11N\0\x12N\0\x13N\0\x15N\0\x16N\0\x17N\0\x18N\0\x1BN\0\x1CN\0\x1EN\0\"N\0#N\0$N\0&N\0'N\0(N\0*N\0+N\0-N\0.N\x000N\x001N\x002N\x003N\x004N\x005N\08N\0<N\0=N\0?N\0CN\0DN\0EN\0FN\0HN\0JN\0KN\0QN\0TN\0UN\0VN\0WN\0XN\0ZN\0]N\0^N\0_N\0bN\0fN\0gN\0pN\0rN\0~N\0\x7FN\0\x86N\0\x87N\0\x88N\0\x8AN\0\x8BN\0\x8DN\0\x8EN\0\x90N\0\x91N\0\x93N\0\x94N\0\x96N\0\x9AN\0\x9CN\0\xA1N\0\xA2N\0\xA4N\0\xA9N\0\xABN\0\xADN\0\xAEN\0\xAFN\0\xB2N\0\xB3N\0\xBAN\0\xBBN\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x80\0\x05\x80\0\x06\x80\0\x0C\x80\0\x0E\x80\0\x10\x80\0\x11\x80\0\x17\x80\0\x18\x80\x003\x80\x004\x80\x006\x80\x007\x80\0J\x80\0K\x80\0L\x80\0M\x80\0T\x80\0U\x80\0X\x80\0Y\x80\0Z\x80\0[\x80\0j\x80\0k\x80\0\x89\x80\0\x8A\x80\0\x96\x80\0\x97\x80\0\x9A\x80\0\x9B\x80\0\xA1\x80\0\xA2\x80\0\xA4\x80\0\xA6\x80\0\xA9\x80\0\xAA\x80\0\xAF\x80\0\xB0\x80\0\xB2\x80\0\xB3\x80\0\xC1\x80\0\xC2\x80\0\xC6\x80\0\xC7\x80\0\xCC\x80\0\xCD\x80\0\xCE\x80\0\xCF\x80\0\xD6\x80\0\xD7\x80\0\xDC\x80\0\xDD\x80\0\xDE\x80\0\xDF\x80\0\xE1\x80\0\xE2\x80\0\xF6\x80\0\xF7\x80\0\xF8\x80\0\xF9\x80\0\xFD\x80\0\xFE\x80\0\x06\x81\0\x07\x81\0\x11\x81\0\x12\x81\x001\x81\x002\x81\08\x81\09\x81\0J\x81\0K\x81\0P\x81\0Q\x81\0S\x81\0T\x81\0p\x81\0q\x81\0y\x81\0z\x81\0~\x81\0\x80\x81\0\xC2\x81\0\xC3\x81\0\xE3\x81\0\xE4\x81\0\xEA\x81\0\xEB\x81\0\xED\x81\0\xEE\x81\0\xF3\x81\0\xF5\x81\0\x0C\x82\0\x0E\x82\0\x12\x82\0\x13\x82\0\x1E\x82\0 \x82\0*\x82\0+\x82\0,\x82\0-\x82\x000\x82\x001\x82\09\x82\0:\x82\0o\x82\0p\x82\0r\x82\0s\x82\0z\x82\0{\x82\0~\x82\0\x7F\x82\0\x82\x82\0\x83\x82\0\x92\x82\0\x93\x82\0\x9D\x82\0\x9E\x82\0\xA6\x82\0\xA7\x82\0\xAC\x82\0\xAE\x82\0\xB1\x82\0\xB2\x82\0\xB3\x82\0\xB4\x82\0\xCD\x82\0\xCE\x82\0\xCF\x82\0\xD0\x82\0\xD7\x82\0\xD8\x82\0\xE5\x82\0\xE7\x82\0\xF1\x82\0\xF2\x82\0\x02\x83\0\x04\x83\0(\x83\0)\x83\0+\x83\0,\x83\x006\x83\x007\x83\0I\x83\0J\x83\0P\x83\0Q\x83\0R\x83\0S\x83\0c\x83\0d\x83\0o\x83\0p\x83\0w\x83\0x\x83\0\x89\x83\0\x8A\x83\0\x8E\x83\0\x8F\x83\0\xAA\x83\0\xAC\x83\0\xB1\x83\0\xB3\x83\0\xB7\x83\0\xB8\x83\0\xDC\x83\0\xDD\x83\0\xE9\x83\0\xEA\x83\0\xF2\x83\0\xF3\x83\0\x04\x84\0\x05\x84\0\r\x84\0\x0E\x84\0$\x84\0&\x84\0'\x84\0)\x84\0=\x84\0>\x84\0W\x84\0X\x84\0[\x84\0\\\x84\0a\x84\0b\x84\0\x82\x84\0\x83\x84\0\x8B\x84\0\x8C\x84\0\x99\x84\0\x9A\x84\0\xC9\x84\0\xCA\x84\0\xDD\x84\0\xDE\x84\0\xEC\x84\0\xED\x84\0\x11\x85\0\x12\x85\0!\x85\0\"\x85\0\x84\x85\0\x85\x85\0\xAA\x85\0\xAB\x85\0\xC9\x85\0\xCA\x85\0\xCF\x85\0\xD0\x85\0\xE4\x85\0\xE5\x85\0N\x86\0O\x86\0Q\x86\0R\x86\0k\x86\0l\x86\0y\x86\0z\x86\0}\x86\0\x7F\x86\0\x81\x86\0\x82\x86\0\xC7\x86\0\xC8\x86\0\xCB\x86\0\xCC\x86\0\xD9\x86\0\xDA\x86\0\xEE\x86\0\xEF\x86\0\x02\x87\0\x03\x87\0\x1C\x87\0\x1D\x87\0v\x87\0w\x87\0\x8D\x87\0\x8E\x87\0\xF9\x87\0\xFA\x87\0\"\x88\0#\x88\0@\x88\0A\x88\0L\x88\0M\x88\0W\x88\0X\x88\0a\x88\0b\x88\0c\x88\0d\x88\0e\x88\0f\x88\0h\x88\0i\x88\0\x8B\x88\0\x8C\x88\0\xAB\x88\0\xAC\x88\0\xA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C2\x8F\0\xC5\x8F\0\xC6\x8F\0\xC7\x8F\0\xC9\x8F\0\xCE\x8F\0\xCF\x8F\0\xD0\x8F\0\xD2\x8F\0\xD4\x8F\0\xD5\x8F\0\xD8\x8F\0\xDA\x8F\0\xDB\x8F\0\xE0\x8F\0\xE6\x8F\0\xE7\x8F\0\xEA\x8F\0\xEC\x8F\0\xF0\x8F\0\xF1\x8F\0\xF7\x8F\0\xF8\x8F\0\xFD\x8F\0\xFE\x8F\0\0\x90\0\x04\x90\0\x06\x90\0\x07\x90\0\t\x90\0\x0B\x90\0\x0F\x90\0\x11\x90\0\x12\x90\0\x13\x90\0\x14\x90\0\x15\x90\0\x1A\x90\0\x1C\x90\0\x1D\x90\0\x1E\x90\0\x1F\x90\0!\x90\0\"\x90\0#\x90\08\x90\09\x90\0;\x90\0=\x90\0G\x90\0H\x90\0M\x90\0N\x90\0S\x90\0T\x90\0W\x90\0X\x90\0m\x90\0o\x90\0u\x90\0v\x90\0\x7F\x90\0\x81\x90\0\x93\x90\0\x94\x90\0\xA3\x90\0\xA4\x90\0\xA6\x90\0\xA7\x90\0\xAA\x90\0\xAB\x90\0\xAE\x90\0\xAF\x90\0\xB1\x90\0\xB2\x90\0\xBB\x90\0\xBC\x90\0\xCE\x90\0\xCF\x90\0\xD1\x90\0\xD2\x90\0\xE8\x90\0\xE9\x90\0\xED\x90\0\xEE\x90\0\xFD\x90\0\xFE\x90\0\x02\x91\0\x03\x91\0I\x91\0J\x91\0K\x91\0L\x91\0M\x91\0N\x91\0R\x91\0S\x91\0w\x91\0y\x91\0\x89\x91\0\x8A\x91\0\x92\x91\0\x93\x91\0\xC7\x91\0\xC8\x91\0\xCA\x91\0\xCB\x91\0\xCC\x91\0\xD0\x91\0\xD1\x91\0\xD2\x91\0\x88\x94\0\x89\x94\0\x93\x94\0\x94\x94\0\x9F\x94\0\xA0\x94\0\xA2\x94\0\xA3\x94\0\xA6\x94\0\xA7\x94\0\xB1\x94\0\xB2\x94\0\xBB\x94\0\xBC\x94\0\xC1\x94\0\xC2\x94\0\xC3\x94\0\xC4\x94\0\xDC\x94\0\xDD\x94\0\xE2\x94\0\xE3\x94\0\xED\x94\0\xEE\x94\0\xF6\x94\0\xF7\x94\0\xFA\x94\0\xFB\x94\0\xFE\x94\0\xFF\x94\0\0\x95\0\x02\x95\0\x05\x95\0\x06\x95\0\x0B\x95\0\x0C\x95\0\x19\x95\0\x1A\x95\0!\x95\0\"\x95\0&\x95\0'\x95\0.\x95\0/\x95\0:\x95\0;\x95\0G\x95\0H\x95\0\\\x95\0]\x95\0m\x95\0n\x95\0\x7F\x95\0\x80\x95\0\xE8\x95\0\xE9\x95\0\xEA\x95\0\xEB\x95\0\xED\x95\0\xEF\x95\0\xF0\x95\0\xF1\x95\0\xF2\x95\0\xF3\x95\0\xF4\x95\0\xF5\x95\0\xF7\x95\0\xF8\x95\0\xF9\x95\0\xFA\x95\0\xFB\x95\0\xFC\x95\0\x01\x96\0\x02\x96\0\x05\x96\0\x06\x96\0\x10\x96\0\x11\x96\0\x14\x96\0\x15\x96\0\x1F\x96\0 \x96\0.\x96\0/\x96\x002\x96\x007\x96\0;\x96\0<\x96\0?\x96\0A\x96\0D\x96\0G\x96\0H\x96\0I\x96\0M\x96\0N\x96\0P\x96\0Q\x96\0b\x96\0c\x96\0d\x96\0e\x96\0i\x96\0k\x96\0u\x96\0x\x96\0\x86\x96\0\x87\x96\0\x8F\x96\0\x91\x96\0\x94\x96\0\x95\x96\0\x9C\x96\0\x9D\x96\0\xBE\x96\0\xBF\x96\0\xC4\x96\0\xC7\x96\0\xC9\x96\0\xCA\x96\0\xE8\x96\0\xE9\x96\0\xEA\x96\0\xEB\x96\0\xEF\x96\0\xF0\x96\0\xF3\x96\0\xF4\x96\0\xF6\x96\0\xF8\x96\0\xFE\x96\0\xFF\x96\0\0\x97\0\x01\x97\0\x07\x97\0\x08\x97\0\r\x97\0\x0E\x97\0\x16\x97\0\x17\x97\x002\x97\x003\x97\08\x97\0:\x97\0R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\x9E\0\xD8\x9E\0\xD9\x9E\0\x13\x9F\0\x14\x9F\0 \x9F\0!\x9F\0;\x9F\0<\x9F\0P\x9F\0Q\x9F\0\x7F\x9F\0\x80\x9F\0\x84\x9F\0\x85\x9F\0\x99\x9F\0\x9A\x9F\0\x9F\x9F\0\xA0\x9F\0") }, 2210u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0N\0\x02N\0\x03N\0\x04N\0\x08N\0\x0EN\0\x11N\0\x12N\0\x14N\0\x15N\0\x16N\0\x17N\0\x18N\0\x1AN\0\x1FN\0 N\0&N\0'N\0-N\0.N\x002N\x003N\08N\0:N\0;N\0<N\0CN\0DN\0EN\0FN\0HN\0IN\0KN\0LN\0NN\0PN\0VN\0WN\0XN\0ZN\0]N\0^N\0_N\0`N\0~N\0\x7FN\0\x82N\0\x83N\0\x86N\0\x87N\0\x88N\0\x89N\0\x8BN\0\x8DN\0\x8EN\0\x8FN\0\x91N\0\x93N\0\x94N\0\x96N\0\x9BN\0\x9CN\0\x9EN\0\x9FN\0\xA1N\0\xA2N\0\xA4N\0\xA7N\0\xA8N\0\xA9N\0\xABN\0\xADN\0\xAEN\0\xAFN\0\xBAN\0\xBBN\0\xC0N\0\xC2N\0\xC7N\0\xC8N\0\xCAN\0\xCCN\0\xCDN\0\xCEN\0\xD4N\0\xD5N\0\xD6N\0\xD7N\0\xD8N\0\xDAN\0\xE3N\0\xE6N\0\xF0N\0\xF1N\0\xF2N\0\xF3N\0\xF6N\0\xF7N\0\xFBN\0\xFCN\0\xFDN\0\xFEN\0\x01O\0\x02O\0\nO\0\x0BO\0\rO\0\x0EO\0\x10O\0\x12O\0\x19O\0\x1AO\0/O\x001O\x004O\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007\x80\0J\x80\0K\x80\0V\x80\0W\x80\0Z\x80\0[\x80\0^\x80\0_\x80\0o\x80\0q\x80\0r\x80\0s\x80\0w\x80\0x\x80\0}\x80\0~\x80\0\x89\x80\0\x8A\x80\0\x9A\x80\0\x9B\x80\0\xA1\x80\0\xA2\x80\0\xA5\x80\0\xA6\x80\0\xA9\x80\0\xAA\x80\0\xAF\x80\0\xB0\x80\0\xB2\x80\0\xB3\x80\0\xCC\x80\0\xCD\x80\0\xCE\x80\0\xCF\x80\0\xD6\x80\0\xD7\x80\0\xDE\x80\0\xDF\x80\0\xE1\x80\0\xE2\x80\0\xF8\x80\0\xF9\x80\0\xFD\x80\0\xFE\x80\0\x06\x81\0\x07\x81\0+\x81\0,\x81\0S\x81\0U\x81\0f\x81\0g\x81\0p\x81\0q\x81\0s\x81\0t\x81\0\x7F\x81\0\x80\x81\0\xBD\x81\0\xBE\x81\0\xC9\x81\0\xCA\x81\0\xD8\x81\0\xD9\x81\0\xE3\x81\0\xE4\x81\0\xE5\x81\0\xE6\x81\0\xE8\x81\0\xE9\x81\0\xEA\x81\0\xEB\x81\0\xED\x81\0\xEE\x81\0\xF3\x81\0\xF5\x81\0\xFA\x81\0\xFB\x81\0\x07\x82\0\x0B\x82\0\x0C\x82\0\x0E\x82\0\x12\x82\0\x13\x82\0\x1E\x82\0 \x82\0*\x82\0+\x82\0,\x82\0-\x82\09\x82\0:\x82\0f\x82\0g\x82\0o\x82\0p\x82\0r\x82\0s\x82\0~\x82\0\x7F\x82\0\x9D\x82\0\x9E\x82\0\xAC\x82\0\xAD\x82\0\xB1\x82\0\xB2\x82\0\xB3\x82\0\xB4\x82\0\xE5\x82\0\xE7\x82\0\xF1\x82\0\xF2\x82\0\x05\x83\0\x06\x83\0+\x83\0,\x83\x002\x83\x003\x83\x006\x83\x007\x83\0I\x83\0J\x83\0R\x83\0S\x83\0w\x83\0x\x83\0|\x83\0}\x83\0\x89\x83\0\x8B\x83\0\x8E\x83\0\x8F\x83\0\xAB\x83\0\xAC\x83\0\xDC\x83\0\xDD\x83\0\xE9\x83\0\xEA\x83\0\xEF\x83\0\xF0\x83\0\xF2\x83\0\xF3\x83\0\x04\x84\0\x05\x84\0\n\x84\0\x0B\x84\0,\x84\0-\x84\0=\x84\0>\x84\0I\x84\0J\x84\0W\x84\0X\x84\0[\x84\0\\\x84\0a\x84\0b\x84\0\x82\x84\0\x83\x84\0\x99\x84\0\x9A\x84\0\xB2\x84\0\xB3\x84\0\xBC\x84\0\xBD\x84\0\xCB\x84\0\xCC\x84\0\xEE\x84\0\xEF\x84\0\x15\x85\0\x16\x85\0!\x85\0\"\x85\0#\x85\0$\x85\0m\x85\0n\x85\0\x84\x85\0\x85\x85\0\xA6\x85\0\xA7\x85\0\xA9\x85\0\xAB\x85\0\xC9\x85\0\xCA\x85\0\xCD\x85\0\xCE\x85\0\xCF\x85\0\xD0\x85\0\xDD\x85\0\xDE\x85\0\xE4\x85\0\xE6\x85\0\x06\x86\0\x08\x86\0-\x86\0.\x86\0N\x86\0O\x86\0U\x86\0V\x86\0[\x86\0\\\x86\0_\x86\0`\x86\0g\x86\0h\x86\0\xC7\x86\0\xC8\x86\0\xCB\x86\0\xCC\x86\0\xD9\x86\0\xDA\x86\0\x02\x87\0\x03\x87\0\x1C\x87\0\x1D\x87\0v\x87\0w\x87\0\x8D\x87\0\x8E\x87\0\xA2\x87\0\xA3\x87\0\xF2\x87\0\xF3\x87\0\xF9\x87\0\xFA\x87\0\r\x88\0\x0E\x88\0;\x88\0<\x88\0@\x88\0A\x88\0L\x88\0M\x88\0S\x88\0T\x88\0W\x88\0X\x88\0[\x88\0\\\x88\0]\x88\0^\x88\0a\x88\0b\x88\0c\x88\0d\x88\0h\x88\0i\x88\0\x8B\x88\0\x8C\x88\0\xAB\x88\0\xAC\x88\0\xC1\x88\0\xC3\x88\0\xD5\x88\0\xD6\x88\0\xDC\x88\0\xDE\x88\0\xE1\x88\0\xE2\x88\0\xFD\x88\0\xFE\x88\0\x07\x89\0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x7F\x90\0\x82\x90\0\x84\x90\0\x85\x90\0\x8A\x90\0\x8B\x90\0\x8F\x90\0\x90\x90\0\xA3\x90\0\xA4\x90\0\xA6\x90\0\xA7\x90\0\xAA\x90\0\xAB\x90\0\xB1\x90\0\xB2\x90\0\xCE\x90\0\xCF\x90\0\xE8\x90\0\xE9\x90\0\xED\x90\0\xEE\x90\0\xF5\x90\0\xF6\x90\0\xFD\x90\0\xFE\x90\0\x02\x91\0\x03\x91\0\t\x91\0\n\x91\0-\x91\0.\x91\x000\x91\x001\x91\0I\x91\0J\x91\0M\x91\0N\x91\0R\x91\0S\x91\0w\x91\0y\x91\0\x89\x91\0\x8A\x91\0\x92\x91\0\x93\x91\0\x9C\x91\0\x9D\x91\0\xAB\x91\0\xAC\x91\0\xC7\x91\0\xC8\x91\0\xCB\x91\0\xD0\x91\0\xD1\x91\0\xD2\x91\0\xDD\x91\0\xDE\x91\0\xE3\x91\0\xE4\x91\x004\x92\x005\x92\0b\x92\0c\x92\0\x80\x92\0\x81\x92\0\x85\x92\0\x86\x92\0\x96\x92\0\x97\x92\0\x98\x92\0\x99\x92\0\xB3\x92\0\xB4\x92\0\xB7\x92\0\xB8\x92\0\xD2\x92\0\xD3\x92\0\xFC\x92\0\xFD\x92\0\x04\x93\0\x05\x93\0\"\x93\0#\x93\0&\x93\0'\x93\0+\x93\0,\x93\0/\x93\x000\x93\0K\x93\0L\x93\0u\x93\0v\x93\0~\x93\0\x7F\x93\0\x8A\x93\0\x8B\x93\0\x96\x93\0\x97\x93\0\xAE\x93\0\xAF\x93\0\xE1\x93\0\xE2\x93\0\x18\x94\0\x19\x94\x005\x94\x006\x94\0Q\x94\0R\x94\0w\x95\0x\x95\0\x80\x95\0\x81\x95\0\x83\x95\0\x84\x95\0\x89\x95\0\x8A\x95\0\x8B\x95\0\x8C\x95\0\x8F\x95\0\x90\x95\0\x92\x95\0\x94\x95\0\xA3\x95\0\xA4\x95\0\xB1\x95\0\xB2\x95\0\xC6\x95\0\xC7\x95\0\xCA\x95\0\xCB\x95\0\xCD\x95\0\xCE\x95\0\xD0\x95\0\xD1\x95\0\xDC\x95\0\xDD\x95\0\xE1\x95\0\xE2\x95\x002\x96\x003\x96\0;\x96\0<\x96\0?\x96\0A\x96\0D\x96\0E\x96\0M\x96\0N\x96\0P\x96\0Q\x96\0b\x96\0e\x96\0j\x96\0k\x96\0p\x96\0q\x96\0s\x96\0t\x96\0u\x96\0y\x96\0}\x96\0~\x96\0\x86\x96\0\x87\x96\0\x8A\x96\0\x8B\x96\0\x8E\x96\0\x8F\x96\0\x94\x96\0\x95\x96\0\x9B\x96\0\x9D\x96\0\xA8\x96\0\xA9\x96\0\xAA\x96\0\xAB\x96\0\xB1\x96\0\xB2\x96\0\xBB\x96\0\xBC\x96\0\xC4\x96\0\xC7\x96\0\xC9\x96\0\xCA\x96\0\xD6\x96\0\xD7\x96\0\xD9\x96\0\xDA\x96\0\xDC\x96\0\xDD\x96\0\xDE\x96\0\xDF\x96\0\xE2\x96\0\xE4\x96\0\xE8\x96\0\xE9\x96\0\xEA\x96\0\xEB\x96\0\xF2\x96\0\xF3\x96\0\xF6\x96\0\xF8\x96\0\xFB\x96\0\xFC\x96\0\0\x97\0\x01\x97\0\x07\x97\0\x08\x97\0\r\x97\0\x0E\x97\0'\x97\0(\x97\x002\x97\x003\x97\08\x97\0:\x97\0B\x97\0C\x97\0H\x97\0I\x97\0R\x97\0S\x97\0V\x97\0W\x97\0\\\x97\0]\x97\0^\x97\0_\x97\0`\x97\0a\x97\0b\x97\0c\x97\0i\x97\0j\x97\0|\x97\0}\x97\0\x8B\x97\0\x8C\x97\0\xC3\x97\0\xC4\x97\0\xCB\x97\0\xCC\x97\0\xD3\x97\0\xD4\x97\0\xF3\x97\0\xF4\x97\0\xFB\x97\0\xFC\x97\0\xFF\x97\0\0\x98\0\x01\x98\0\x03\x98\0\x05\x98\0\x07\x98\0\x08\x98\0\t\x98\0\x10\x98\0\x12\x98\0\x13\x98\0\x14\x98\0\x17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D2\x9E\0\xD8\x9E\0\xD9\x9E\0\xDE\x9E\0\xDF\x9E\0\xE8\x9E\0\xE9\x9E\0\x13\x9F\0\x14\x9F\0 \x9F\0!\x9F\0;\x9F\0<\x9F\0J\x9F\0L\x9F\0R\x9F\0S\x9F\0a\x9F\0b\x9F\0\x8D\x9F\0\x8E\x9F\0\x9C\x9F\0\x9D\x9F\0") }, 2179u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"a\0\0{\0\0") }, 26u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\"\0\x02\0\x04\0\x06\0\x08\0\n\0\x0C\0\x0E\0\x10\0\x12\0\x14\0\x16\0\x18\0\x1A\0\x1D\0 \0#\0&\0(\0+\0.\x001\x003\x007\09\0;\0=\0?\0A\0C\0E\0G\0I\0L\0bhchdldygcgqgxhhhlkhklkpncngcngqngxnhlnknkcnkqnkxnqntshnxnyphqhrhshthtltstshxh") },
- )),
- ];
- unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleExemplarCharactersMainV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleExemplarCharactersMainV1>, icu_provider::DataError> {
- let mut metadata = icu_provider::DataResponseMetadata::default();
- let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_MAIN_V1, req.id, req.metadata.attributes_prefix_match) {
- payload
- } else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::locale::provider::LocaleExemplarCharactersMainV1 as icu_provider::DataMarker>::INFO.fallback_config);
- let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
- loop {
- if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_MAIN_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
- metadata.locale = Some(fallback_iterator.take());
- break payload;
- }
- if fallback_iterator.get().is_unknown() {
- return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::locale::provider::LocaleExemplarCharactersMainV1 as icu_provider::DataMarker>::INFO, req));
- }
- fallback_iterator.step();
- }
- };
- Ok(icu_provider::DataResponse { payload, metadata })
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_exemplar_characters_main_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleExemplarCharactersMainV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok(icu_provider::baked::DataStore::iter(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_MAIN_V1).collect())
- }
- }
- };
- ($ provider : ty , DRY) => {};
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_exemplar_characters_main_v1!($provider, ITER);
- };
-}
-#[doc(inline)]
-pub use __impl_locale_exemplar_characters_main_v1 as impl_locale_exemplar_characters_main_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_numbers_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_numbers_v1.rs.data
deleted file mode 100644
index 36978f6dbb4..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_numbers_v1.rs.data
+++ /dev/null
@@ -1,323 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleExemplarCharactersNumbersV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 484B for the lookup data structure (97 data identifiers)
-/// * 3566B[^1] for the actual data (36 unique structs)
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `icu_provider/baked`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_exemplar_characters_numbers_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- const DATA_LOCALE_EXEMPLAR_CHARACTERS_NUMBERS_V1: icu_provider::baked::zerotrie::Data<icu::locale::provider::LocaleExemplarCharactersNumbersV1> = {
- const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1uabcdefhiklmnoprstuxyz\0\0\0\0\0\0\0\0\0\0\0\0\0\x01\x01\x01\x01\x01\x01\x01'=CQs\x90\x9C\xA8\xDA\xE5\xF0\xFB\xFE\x0F\x1AJXmp{\xC2rs\"\x80-\xC5DLMST\x02\x08\x0E\x14Z\x81\xC2BY\x01\x81\x81\xC2AR\x01\x81\x81\xC2AO\x01\x82\x82N\x81\x83\xC6eghlnr\x01\x04\x06\x08\t\x84\x84c\x85o\x85o\x86\x83\x84\xC2sv\x01\x84\x84e-\xC3ACL\x02\x04T\x84H\x87I\x87\xC5nostu\x11\x12\x16\x17-\xC4FNSZ\x02\x04\x06I\x84O\x84E\x84A\x84\x88-CR\x84\x88\x89\xC5afior\x01\x07\x08\t\x8A-Adlm\x8B\x88\x89\x8C-\xC2LM\x02U\x8DA\x8D\xC4eiuy\x01\x02\x03\x81\x85\x84\x84\xC3eit\x01\x02\x8E\x8F-CH\x87\xC8aeknosxy\x01\x03\x04\x06\x08\n!\x84a\x84\x84\x90\0k\x85\x90\x01v-\xC3DOT\x05\neva\x90\x02rya\x90\x03elu\x90\x04\x84\xC3itv\x03\x04j\x90\x05\x88\x84\xC3nry\x02\x03i\x83\x85\x90\x06\xC3eoq\x01\x02\x85\x88o\x90\x07r\x90\x08\xC4alst\x02\x03\x05\x90\t\x84\x90\n-PT\x84\xC3amu\x02\x04j\x85\x90\x0B\x84\xCAachklqrvyz\x08\x0B\x0E\x0F\x10\x11\x17\x18\x1A\x85\xC2ht\x01\x84\x90\x0Cn\x90\rn\x90\x0E\x84\x89\x84-Latn\x8D\x88r\x80l\x84\xC4aehk\x02\x04\x05\x90\x0F\x90\x10\x8D\x84\xC4knrz\x01\x04\x06\x84d\x90\x11\x90\x01\x84-Cyrl\x84nr\x85ue\x90\x12-Hans\x90\x12h\x90\x13-Hant\x90\x12" };
- const VALUES: &'static [<icu::locale::provider::LocaleExemplarCharactersNumbersV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\t\x06\0\n\x06\0\x1C\x06\0\x1D\x06\0`\x06\0m\x06\0\x0E \0\x0F \0\x11 \0\x12 \x000 \x001 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x0E \0\x0F \0\x11 \0\x12 \x000 \x001 \0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"+\0\0/\0\x000\0\0:\0\0j\x06\0k\x06\0\x0E \0\x0F \0\x11 \0\x12 \x000 \x001 \0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xE6\t\0\xF0\t\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0.\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0") }, 16u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0f\t\0p\t\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xB2\0\0\xB4\0\0\x11 \0\x12 \x000 \x002 \0") }, 20u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x02\0\x05\0\xCA\xB2\xE1\xB5\x83\xE1\xB5\x8F\xE1\xB5\x83") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0,\0\0-\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \0\x19 \0\x1A \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0-\0\x000\0\0:\0\x000 \x001 \0\x12\"\0\x13\"\0") }, 15u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0-\0\0.\0\0/\0\x000\0\0:\0\x000 \x001 \0\x12\"\0\x13\"\0") }, 16u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0-\0\0.\0\0/\0\x000\0\0:\0\0\t\x06\0\n\x06\0j\x06\0m\x06\0\xF0\x06\0\xFA\x06\0\x0E \0\x0F \x000 \x001 \0\x12\"\0\x13\"\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"P\xE9\x01Z\xE9\x01") }, 10u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xB2\0\0\xB4\0\0\xB3\x02\0\xB4\x02\0\xE2\x02\0\xE3\x02\0H\x1D\0J\x1D\0\x11 \0\x12 \x000 \x001 \0\x12\"\0\x13\"\0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0'\0\0(\0\0+\0\0.\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xEA\x8B\x8D\xEA\x91\x8D\xEA\x8C\x95\xEA\x87\x96\xEA\x89\xAC\xEA\x83\x98\xEA\x8F\x83\xEA\x89\x86\xEA\x88\xAC") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xE6\x0C\0\xF0\x0C\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0k\x06\0m\x06\0\xF0\x06\0\xFA\x06\0\x0E \0\x0F \0\x11 \0\x12 \x000 \x001 \0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\x001\0\0g\t\0p\t\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\x001\0\0g\x0B\0p\x0B\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\x001\0\0g\x0C\0p\x0C\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0'\0\0(\0\0+\0\0/\0\x000\0\0:\0\0\xAA\0\0\xAB\0\0\xBA\0\0\xBB\0\0\x11 \0\x12 \x000 \x001 \0\x12\"\0\x13\"\0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0@\x10\0J\x10\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0,\0\0-\0\0/\0\0\x0C\x06\0\r\x06\0\xC0\x07\0\xCA\x07\0\x11 \0\x12 \x000 \x001 \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0f\x0B\0p\x0B\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0f\n\0p\n\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\t\x06\0\n\x06\0j\x06\0m\x06\0\xF0\x06\0\xFA\x06\0\x0E \0\x0F \0\x11 \0\x12 \x000 \x001 \0\x12\"\0\x13\"\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0,\0\0.\0\0/\0\x000\0\0:\0\0\x19 \0\x1A \x000 \x001 \0\x12\"\0\x13\"\0") }, 16u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0P\x1C\0Z\x1C\0\x11 \0\x12 \0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xAA\0\0\xAB\0\0X\x1D\0Y\x1D\0\x11 \0\x12 \x000 \x001 \0\x12\"\0\x13\"\0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0@\x10\0J\x10\0\x90\x10\0\x9A\x10\0\x11 \0\x12 \x000 \x001 \0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\xE6\x0B\0\xF0\x0B\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0f\x0C\0p\x0C\0\x11 \0\x12 \x000 \x001 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0\x12\"\0\x13\"\0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0\x070\0\x080\0\0N\0\x01N\0\x03N\0\x04N\0\tN\0\nN\0]N\0^N\0\x8CN\0\x8DN\0\x94N\0\x95N\0kQ\0lQ\0mQ\0nQ\0\xDBV\0\xDCV\0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0+\0\0/\0\x000\0\0:\0\0\x11 \0\x12 \x000 \x001 \0\x070\0\x080\0\0N\0\x01N\0\x03N\0\x04N\0\tN\0\nN\0]N\0^N\0\x8CN\0\x8DN\0\x94N\0\x95N\0kQ\0lQ\0mQ\0nQ\0AS\0BS\0\xDBV\0\xDCV\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- ];
- unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleExemplarCharactersNumbersV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleExemplarCharactersNumbersV1>, icu_provider::DataError> {
- let mut metadata = icu_provider::DataResponseMetadata::default();
- let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_NUMBERS_V1, req.id, req.metadata.attributes_prefix_match) {
- payload
- } else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::locale::provider::LocaleExemplarCharactersNumbersV1 as icu_provider::DataMarker>::INFO.fallback_config);
- let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
- loop {
- if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_NUMBERS_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
- metadata.locale = Some(fallback_iterator.take());
- break payload;
- }
- if fallback_iterator.get().is_unknown() {
- return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::locale::provider::LocaleExemplarCharactersNumbersV1 as icu_provider::DataMarker>::INFO, req));
- }
- fallback_iterator.step();
- }
- };
- Ok(icu_provider::DataResponse { payload, metadata })
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_exemplar_characters_numbers_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleExemplarCharactersNumbersV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok(icu_provider::baked::DataStore::iter(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_NUMBERS_V1).collect())
- }
- }
- };
- ($ provider : ty , DRY) => {};
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_exemplar_characters_numbers_v1!($provider, ITER);
- };
-}
-#[doc(inline)]
-pub use __impl_locale_exemplar_characters_numbers_v1 as impl_locale_exemplar_characters_numbers_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_punctuation_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_punctuation_v1.rs.data
deleted file mode 100644
index 6e67eb38be8..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_exemplar_characters_punctuation_v1.rs.data
+++ /dev/null
@@ -1,729 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleExemplarCharactersPunctuationV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 749B for the lookup data structure (164 data identifiers)
-/// * 13615B[^1] for the actual data (94 unique structs)
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `icu_provider/baked`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_exemplar_characters_punctuation_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- const DATA_LOCALE_EXEMPLAR_CHARACTERS_PUNCTUATION_V1: icu_provider::baked::zerotrie::Data<icu::locale::provider::LocaleExemplarCharactersPunctuationV1> = {
- const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1yabcdefghijklmnopqrstuvxyz\0\0\0\0\0\0\0\0\0\0\x01\x01\x01\x01\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x119Paz\x99\xA8\xC9\xE3\xE68Pp\x88\x98\xB5\xB7\xC3\x127KX`t\xC5fmrsz\x01\x02\x03\x06\x80\x81\x82\x83t\x84\x80\xC9aeghlnrsu\x08\t\x0C\x0E\x10\x11\x13\x14\x85l-Latn\x86\x87\x88c\x89o\x80o\x8A\x8Bx\x80\x8Ca\x85\xC6aehsvy\x01\x03\x05\x08\n\x84b\x8Dr\x80\x8Ew\x8F\x90\0\x80\xC4aeos\x02\x03\x06\x90\x01\x85i\x90\x02b\x90\x03\xC7elnostu\x02\x04\x05\x07\x08\n\x90\x04\x90\x05\x80\x90\x06\x84\x90\x07\x80\xC6afiory\x02\t\x0E\x10\x12\x90\x08-Adlm\x90\t\x90\nl\x90\x0B\x90\x01\x90\x0C\x80\xC4adlu\x03\x05\x06\x80a\x80\x90\r\x84\x80\xC8aeirstuy\x02\x04\x06\x08\x0B\r\x0F\x90\x0E\x90\x0F\x90\x10\x90\x11b\x90\x03\x90\x12\x90\x13\x90\x14\xC7adegist\x01\x02\x04\x06\x08\n\x80\x80\x90\x15\x90\x16\x90\x17\x90\x18\x90\x19a\x90\x1A\xCBaegkmnosuxy\x02\x05\x07\x10\x12\x13\x1E%&;\x90\x1Ba\x90\x1Cp\x80\x90\0-Arab\x90\x1D\x90\x1E\x80\x90\x1Fk\x80-Latn\x90 \x80-Deva\x80\x80v\x80-\xC3DOT\x04\x08eva\x80rya\x80elu\x80\x85\xC6bimotv\x01\x04\x07\x08\n\x85j\x90\x0Co\x90!\x80\x90\"\x90#\xC8aklnrsty\x03\x05\x06\t\x0B\x0C\x0Ei\x90$\x90%\x80\x80i\x80\x90&\x80\x90'\x90(\xC5deloq\x06\x08\t\x0Bs\x85-NL\x80\x90)\x80\x90*o\x90+\xC3cmr\x07\t\x90,-ES\x90-\x90.\x83\xC6aclmst\x02\x04\x06\t\x0B\x90/m\x80\x900s\x90!\x901\x80-PT\x902u\x80\xC3aou\x03\x05j\x903\x904\x85\xD0acdhikloqrtuvwyz\x05\t\x11\x14\x15\x16\x18\x19\x1B$%&'),\x90$h\x905\x906n\x80\x907-Deva\x80n\x90(\x80\x8E\x908\x80\x909\x90:-Latn\x90;\x80\x80\x80\x90<r\x90=l\x900\xCAaeghknorty\x01\x03\x05\x07\t\n\x0B\x0C\x0E\x80\x90>\x90?\x90@\x90A\x80\x80\x80\x90Bv\x90 \xC5gknrz\x02\x04\x07\t\x90C\x90Dd\x90E\x90F\x80\xC3eim\x03\x04c\x90G\x80w\x90H\xC2hn\x01\x80r\x90I\xC3oru\x02\x04\x90Jl\x84e\x90K-Hans\x90L\xC2ah\x01\x80\x90M-Hant\x90K" };
- const VALUES: &'static [<icu::locale::provider::LocaleExemplarCharactersPunctuationV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct] = &[
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0-\0\0.\0\0/\0\0?\0\0@\0\0[\0\0\\\0\0]\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0a\x13\0g\x13\0\x10 \0\x11 \0\x13 \0\x14 \09 \0; \0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0-\0\0/\0\0:\0\0;\0\0[\0\0\\\0\0]\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0\x10 \0\x12 \0\x13 \0\x15 \0& \0' \0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0d\t\0e\t\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA1\0\0\xA2\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\xBF\0\0\xC0\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 37u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 12u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0") }, 15u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \x003 \x004 \0\x16!\0\x17!\0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0-\0\x000\0\0:\0\0;\0\0?\0\0A\0\0[\0\0^\0\0`\0\0a\0\0|\0\0}\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0+\0\0,\0\x000\0\0:\0\0A\0\0[\0\0^\0\0_\0\0`\0\0|\0\0}\0\0~\0\0\x7F\0\0\xA6\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xB0\0\0\xB1\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x16 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0$ \0& \0( \x000 \x004 \09 \0; \0") }, 52u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0d\t\0f\t\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\0-\0\0.\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x11 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1F \0& \0' \x002 \x004 \0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0&\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x14 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0n\x16\0o\x16\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x14 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0! \0& \0' \x002 \x004 \0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\0-\0\0.\0\x000\0\0:\0\0<\0\0?\0\0A\0\0_\0\0`\0\0\xA7\0\0\xA8\0\0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0&\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0@\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0& \0' \0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\x11 \0\x12 \0\x13 \0\x14 \0\x1C \0\x1D \0\x1E \0\x1F \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0+\0\0-\0\x000\0\0:\0\0;\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0k\x06\0m\x06\0\x10 \0\x12 \0& \0' \09 \0; \0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"%\0\0&\0\0-\0\0/\0\0\x11 \0\x12 \x000 \x001 \0^\xE9\x01`\xE9\x01") }, 7u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0&\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x14 \0\x19 \0\x1A \0\x1D \0\x1E \0& \0' \0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0@\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x19 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA1\0\0\xA2\0\0\xA7\0\0\xA8\0\0\xA9\0\0\xAA\0\0\xAE\0\0\xAF\0\0\xB0\0\0\xB1\0\0\xB6\0\0\xB8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0( \0J \0K \0\"!\0#!\0") }, 41u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \x002 \x004 \0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0@\0\0[\0\0\\\0\0]\0\0^\0\0\xBE\x05\0\xBF\x05\0\xF3\x05\0\xF5\x05\0\x10 \0\x12 \0\x13 \0\x15 \0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0d\t\0f\t\0p\t\0q\t\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\0-\0\0.\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x11 \0\x13 \0\x15 \0\x18 \0\x1B \0\x1C \0\x1F \0& \0' \x002 \x004 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0~\0\0\x7F\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0\x13 \0\x14 \0\x19 \0\x1A \0\x1D \0\x1F \0& \0' \0R \0S \0\xE8'\0\xEA'\0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b",\0\0-\0\0.\0\0/\0\0:\0\0;\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0Z\x05\0`\x05\0\x8A\x05\0\x8B\x05\0") }, 12u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1F \0 \0\" \0& \0' \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0%\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0`\0\0\xA7\0\0\xA8\0\0\xB7\0\0\xB8\0\0\x10 \0\x12 \0\x13 \0\x17 \0\x18 \0\x1A \0\x1C \0\x1E \0% \0' \x000 \x001 \x002 \x004 \x005 \x006 \0; \0< \0\x010\0\x040\0\x080\0\x120\0\x140\0\x180\0\x1D0\0\x1F0\x000\xFE\x002\xFE\x003\xFE\0E\xFE\0I\xFE\0S\xFE\0T\xFE\0X\xFE\0Y\xFE\0b\xFE\0c\xFE\0d\xFE\0h\xFE\0i\xFE\0j\xFE\0l\xFE\0\x01\xFF\0\x04\xFF\0\x05\xFF\0\x0B\xFF\0\x0C\xFF\0\x10\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0!\xFF\0;\xFF\0>\xFF\0?\xFF\0@\xFF\0[\xFF\0\\\xFF\0]\xFF\0^\xFF\0") }, 127u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0 \0\" \0& \0' \x002 \x004 \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0\x14 \0\x15 \0\x19 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0`\0\0\xA7\0\0\xA8\0\0\xB6\0\0\xB7\0\0\x10 \0\x12 \0\x14 \0\x17 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0% \0' \x000 \x001 \x002 \x004 \0; \0< \0> \0? \0\x010\0\x040\0\x080\0\x120\0\x140\0\x160\0\x1C0\0\x1D0\0\xFB0\0\xFC0\0\x01\xFF\0\x04\xFF\0\x05\xFF\0\x0B\xFF\0\x0C\xFF\0\x10\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0!\xFF\0;\xFF\0>\xFF\0?\xFF\0@\xFF\0[\xFF\0\\\xFF\0]\xFF\0^\xFF\0a\xFF\0f\xFF\0") }, 85u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\xFB\x10\0\xFC\x10\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0 \0\" \0& \0' \x002 \x004 \0\x16!\0\x17!\0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0-\0\x000\0\0:\0\0;\0\0@\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0(\0\0*\0\0,\0\0/\0\0?\0\0@\0\0[\0\0^\0\0\xD4\x17\0\xD7\x17\0\xD9\x17\0\xDB\x17\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0`\0\0\xA1\0\0\xA2\0\0\xA7\0\0\xA8\0\0\xB6\0\0\xB8\0\0\xBF\0\0\xC0\0\0\x10 \0\x12 \0\x14 \0\x16 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0% \0' \x000 \x001 \x002 \x004 \0; \0< \0> \0? \0\x010\0\x040\0\x080\0\x120\0\x140\0\x160\0\x1C0\0\x1D0\0\xFB0\0\xFC0\0\x01\xFF\0\x04\xFF\0\x05\xFF\0\x0B\xFF\0\x0C\xFF\0\x10\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0!\xFF\0;\xFF\0>\xFF\0?\xFF\0@\xFF\0[\xFF\0\\\xFF\0]\xFF\0^\xFF\0") }, 82u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0\x14 \0\x15 \0\x19 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 24u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1B \0\x1C \0\x1F \0 \0\" \0& \0' \x002 \x004 \0") }, 34u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0a\0\0|\0\0}\0\0~\0\0\x7F\0\0\xA7\0\0\xA8\0\0\x11 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 35u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0'\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"#\0\0$\0\0(\0\0+\0\0-\0\0.\0\0/\0\x000\0\0@\0\0A\0\0[\0\0^\0\0J\x10\0L\x10\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\0.\0\0;\0\0<\0\0?\0\0@\0\0[\0\0^\0\0d\t\0e\t\0\x11 \0\x12 \0\x14 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 19u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\xBF\0\0\xC0\0\0\x11 \0\x12 \0\x13 \0\x14 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xF7\x07\0\xFA\x07\0") }, 3u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x19 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \0\xC5\"\0\xC6\"\0") }, 31u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \0\xC5\"\0\xC6\"\0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0&\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0@\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \x002 \x004 \0") }, 25u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0~\0\0\x7F\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xB0\0\0\xB1\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x1D \0\x1F \0 \0\" \0& \0' \x002 \x004 \0") }, 36u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0'\0\0*\0\0/\0\x000\0\0:\0\0<\0\0[\0\0^\0\0\x0C\x06\0\r\x06\0\xD4\x06\0\xD5\x06\0\x18 \0\x19 \0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 32u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0;\0\0?\0\0A\0\0[\0\0^\0\0`\0\0a\0\0|\0\0}\0\0\xA7\0\0\xA8\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x19 \0\x1C \0\x1F \0& \0' \0") }, 27u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b":\0\0;\0\0") }, 1u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\0-\0\0.\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xAB\0\0\xAC\0\0\xB7\0\0\xB8\0\0\xBB\0\0\xBC\0\0\x10 \0\x11 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0(\0\0*\0\0-\0\0.\0\0/\0\x000\0\0:\0\0;\0\0[\0\0\\\0\0]\0\0^\0\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0m\x06\0n\x06\0\x11 \0\x12 \0\x18 \0\x1A \0\x1D \0\x1E \0& \0' \0") }, 18u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\0/\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0\x13 \0\x14 \0\x1E \0 \0& \0' \0") }, 23u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0~\0\0\x7F\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 33u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0\x13 \0\x14 \0\x19 \0\x1A \0\x1D \0\x1F \0& \0' \0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0#\0\0$\0\0(\0\0+\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0\x13 \0\x14 \0\x18 \0\x19 \0\x1A \0\x1B \0\x1C \0\x1D \0\x1E \0\x1F \0& \0' \0") }, 22u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x11 \0\x12 \0") }, 15u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0-\0\0/\0\0:\0\0;\0\0[\0\0\\\0\0]\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0\0\x07\0\x0E\x07\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0") }, 38u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 21u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\xBB\0\0\xBC\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x003 \0") }, 32u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0\xE2\x80\xB3\xC2\xAB") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0'\0\0+\0\0,\0\x000\0\0:\0\0;\0\0@\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\x11 \0\x12 \0\x13 \0\x15 \0\x1C \0\x1E \0& \0' \0") }, 25u32)
- },
- unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x01\0&,") },
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\xA7\0\0\xA8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 30u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \09 \0; \0") }, 17u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0\xA7\0\0\xA8\0\0\xAB\0\0\xAC\0\0\xBB\0\0\xBC\0\0\x11 \0\x12 \0\x13 \0\x14 \0\x19 \0\x1A \0\x1C \0\x1D \0\x1E \0\x1F \0\x16!\0\x17!\0") }, 26u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0(\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0\x10 \0\x12 \0") }, 14u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"(\0\0*\0\0.\0\0/\0\0:\0\0;\0\0[\0\0\\\0\0]\0\0^\0\0\x0C\x06\0\x0E\x06\0\x1B\x06\0\x1C\x06\0\x1F\x06\0 \x06\0k\x06\0m\x06\0\xD4\x06\0\xD5\x06\0") }, 13u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\x000\0\0:\0\0<\0\0=\0\0>\0\0?\0\0A\0\0[\0\0^\0\0\xAB\0\0\xAC\0\0\xB7\0\0\xB8\0\0\xBB\0\0\xBC\0\0\x10 \0\x16 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0D \0E \0S \0T \0\x080\0\n0\0") }, 39u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0*\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0\\\0\0]\0\0^\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \x002 \x004 \0") }, 28u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0#\0\0'\0\0*\0\0,\0\0/\0\0:\0\0<\0\0?\0\0@\0\0[\0\0^\0\0p\t\0q\t\0\x11 \0\x12 \0\x18 \0\x1A \0\x1C \0\x1E \0") }, 20u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0&\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0& \0' \x002 \x004 \0") }, 29u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0`\0\0\xA7\0\0\xA8\0\0\xB7\0\0\xB8\0\0\x10 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0 \0\" \0% \0( \x000 \x001 \x002 \x004 \x005 \x006 \0; \0< \0> \0? \0\x010\0\x040\0\x080\0\x120\0\x140\0\x160\0\x1D0\0\x1F0\x000\xFE\0E\xFE\0I\xFE\0S\xFE\0T\xFE\0b\xFE\0c\xFE\0d\xFE\0h\xFE\0i\xFE\0j\xFE\0l\xFE\0\x01\xFF\0\x04\xFF\0\x05\xFF\0\x0B\xFF\0\x0C\xFF\0\x10\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0!\xFF\0;\xFF\0>\xFF\0?\xFF\0@\xFF\0[\xFF\0\\\xFF\0]\xFF\0^\xFF\0") }, 130u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0'\0\0(\0\0+\0\0,\0\x000\0\0:\0\0<\0\0?\0\0A\0\0[\0\0^\0\0_\0\0`\0\0\xA7\0\0\xA8\0\0\xB7\0\0\xB8\0\0\x10 \0\x12 \0\x13 \0\x17 \0\x18 \0\x1A \0\x1C \0\x1E \0% \0' \x000 \x001 \x002 \x004 \x005 \x006 \0; \0< \0\x010\0\x040\0\x080\0\x120\0\x140\0\x180\0\x1D0\0\x1F0\x000\xFE\x002\xFE\x003\xFE\0E\xFE\0I\xFE\0S\xFE\0T\xFE\0X\xFE\0Y\xFE\0b\xFE\0c\xFE\0d\xFE\0h\xFE\0i\xFE\0j\xFE\0l\xFE\0\x01\xFF\0\x04\xFF\0\x05\xFF\0\x0B\xFF\0\x0C\xFF\0\x10\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0!\xFF\0;\xFF\0>\xFF\0?\xFF\0@\xFF\0[\xFF\0\\\xFF\0]\xFF\0^\xFF\0") }, 128u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- icu::locale::provider::ExemplarCharactersData(icu::collections::codepointinvliststringlist::CodePointInversionListAndStringList::from_parts_unchecked(
- unsafe {
- #[allow(unused_unsafe)]
- icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0$\0\0%\0\0/\0\0:\0\0A\0\0[\0\0_\0\0`\0\0a\0\0|\0\0}\0\0~\0\0\x7F\0\0\xB7\0\0\xB8\0\0\x11 \0\x12 \0\x13 \0\x15 \0\x18 \0\x1A \0\x1C \0\x1E \0& \0' \0\x010\0\x030\0\n0\0\x0E0\0\x100\0\x120\0\x01\xFF\0\x02\xFF\0\x08\xFF\0\n\xFF\0\x0C\xFF\0\r\xFF\0\x1A\xFF\0\x1C\xFF\0\x1F\xFF\0 \xFF\0\\\xFF\0]\xFF\0^\xFF\0_\xFF\0") }, 53u32)
- },
- zerovec::vecs::VarZeroVec16::new(),
- )),
- ];
- unsafe { icu_provider::baked::zerotrie::Data::from_trie_and_values_unchecked(TRIE, VALUES) }
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleExemplarCharactersPunctuationV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleExemplarCharactersPunctuationV1>, icu_provider::DataError> {
- let mut metadata = icu_provider::DataResponseMetadata::default();
- let payload = if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_PUNCTUATION_V1, req.id, req.metadata.attributes_prefix_match) {
- payload
- } else {
- const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(<icu::locale::provider::LocaleExemplarCharactersPunctuationV1 as icu_provider::DataMarker>::INFO.fallback_config);
- let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone());
- loop {
- if let Some(payload) = icu_provider::baked::DataStore::get(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_PUNCTUATION_V1, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) {
- metadata.locale = Some(fallback_iterator.take());
- break payload;
- }
- if fallback_iterator.get().is_unknown() {
- return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(<icu::locale::provider::LocaleExemplarCharactersPunctuationV1 as icu_provider::DataMarker>::INFO, req));
- }
- fallback_iterator.step();
- }
- };
- Ok(icu_provider::DataResponse { payload, metadata })
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_exemplar_characters_punctuation_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleExemplarCharactersPunctuationV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok(icu_provider::baked::DataStore::iter(&Self::DATA_LOCALE_EXEMPLAR_CHARACTERS_PUNCTUATION_V1).collect())
- }
- }
- };
- ($ provider : ty , DRY) => {};
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_exemplar_characters_punctuation_v1!($provider, ITER);
- };
-}
-#[doc(inline)]
-pub use __impl_locale_exemplar_characters_punctuation_v1 as impl_locale_exemplar_characters_punctuation_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_extended_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_extended_v1.rs.data
deleted file mode 100644
index b4a83a18a7e..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_extended_v1.rs.data
+++ /dev/null
@@ -1,105 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleLikelySubtagsExtendedV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 72738B[^1] for the singleton data struct
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_likely_subtags_extended_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- #[doc(hidden)]
- pub const SINGLETON_LOCALE_LIKELY_SUBTAGS_EXTENDED_V1: &'static <icu::locale::provider::LocaleLikelySubtagsExtendedV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::LikelySubtagsExtended {
- language_script: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"abqLatnarcHatrarcNbatarcPalmbapKraicu\0GlaghakHanthnjHmnglifLimblzzGeormanNkoomeyLatnnanHantpalPhlppi\0Devapi\0Mymrpi\0Sinhpi\0ThaipntCyrlpntLatnstuTaleunrDeva") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"TR\0IQ\0JO\0SY\0IN\0BG\0TW\0LA\0IN\0GE\0GN\0SN\0TW\0CN\0IN\0MM\0LK\0TH\0RU\0TR\0CN\0NP\0") })
- },
- language_region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"abqTR\0hakTW\0lzzGE\0meySN\0nanMO\0nanTW\0pi\0IN\0pi\0LK\0pi\0MM\0pi\0TH\0pntRU\0pntTR\0stuCN\0unrNP\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"LatnHantGeorLatnHantHantDevaSinhMymrThaiCyrlLatnTaleDeva") })
- },
- language: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"aa\0aaaaabaacaadaaeaafaagaahaaiaakaalaanaaoaapaaqaasaataauaawaaxaazab\0abaabbabcabdabeabfabgabhabiablabmabnaboabpabqabrabsabtabuabvabwabxabyabzacaacbacdaceacfachacmacnacpacqacracsactacuacvacwacxacyaczadaadbaddadeadfadgadhadiadjadladnadoadqadradtaduadwadxadyadzae\0aeaaebaecaeeaekaelaemaeqaeraesaeuaewaeyaezafbafdafeafhafiafkafnafoafpafsafuafzagaagbagcagdageagfaggaghagiagjagkaglagmagnagoagqagragsagtaguagvagwagxagyagzahaahbahgahhahiahkahlahmahnahoahpahrahsahtaiaaibaicaidaieaifaigaiiaijaikailaimainaioaipaiqairaitaiwaixaiyajaajgajiajnajwajzakbakcakdakeakfakgakhakiakkaklakoakpakqakraksaktakuakvakwakzalaalcaldalealfalhalialjalkallalmalnaloalpalqalraltalualwalxalyalzamaambamcameamfamgamiamjamkammamnamoampamqamramsamtamuamvamwamxamyamzan\0anaanbancandaneanfanganhanianjankanlanmannanoanpanqanransantanuanvanwanxanyanzaoaaobaocaodaoeaofaogaoiaojaokaolaomaonaoraosaotaoxaozapbapcapdapeapfapgaphapiapjapkaplapmapnapoappaprapsaptapuapvapwapxapyapzaqcaqdaqgaqkaqmaqnaqraqtaqzarcardarearhariarjarkarlarnaroarparqarrarsaruarvarwarxaryarzasaasbascaseasgashasiasjaskaslasnasoasrassasuasvasxasyaszataatbatcatdateatgatiatjatkatlatmatnatoatpatqatratsattatuatvatwatxatyatzauaaucaudaugauhauiaujaukaulaumaunauoaupauqaurautauuauwauyauzav\0avbavdaviavkavlavmavnavoavsavtavuavvawaawbawcaweawgawhawiawkawmawnawoawrawsawtawuawvawwawxawyaxbaxeaxgaxkaxlaxmaxxay\0ayaaybaycaydayeaygayhayiaykaylaynayoaypayqaysaytayuayzazbazdazgazmaznazoaztazzbaababbacbaebafbagbahbajbanbaobapbarbasbaubavbawbaxbaybbabbbbbcbbdbbebbfbbgbbibbjbbkbblbbmbbnbbobbpbbqbbrbbsbbtbbubbvbbwbbxbbybcabcbbcdbcebcfbcgbchbcibcjbckbcmbcnbcobcpbcqbcrbcsbctbcubcvbcwbcybczbdabdbbdcbddbdebdfbdgbdhbdibdjbdkbdlbdmbdnbdobdpbdqbdrbdsbdtbdubdvbdwbdxbdybdzbeabebbecbedbeebefbehbeibejbekbembeobepbeqbesbetbeubevbewbexbeybezbfabfbbfcbfdbfebffbfgbfhbfjbflbfmbfnbfobfpbfqbfsbftbfubfwbfxbfybfzbgabgbbgdbgfbggbgibgjbgnbgobgpbgqbgrbgsbgtbgubgvbgwbgxbgybgzbhabhbbhcbhdbhebhfbhgbhhbhibhjbhlbhmbhnbhpbhqbhrbhsbhtbhubhvbhwbhybhzbi\0biabibbidbiebifbigbikbilbimbinbiobipbiqbirbitbiubivbiwbixbiybizbjabjbbjcbjfbjgbjhbjibjjbjkbjlbjmbjnbjobjpbjrbjsbjtbjubjvbjwbjxbjybjzbkabkcbkdbkfbkgbkhbkibkjbkkbklbkmbknbkobkpbkqbkrbksbktbkubkvbkwbkxbkybkzblablbblcbldbleblfblhblibljblkblmblnblpblqblrblsbltblvblwblxblyblzbm\0bmabmbbmcbmdbmebmfbmgbmhbmibmjbmkbmlbmmbmnbmobmpbmqbmrbmsbmubmvbmwbmxbmzbnabnbbncbndbnebnfbngbnibnjbnkbnmbnnbnobnpbnqbnrbnsbnubnvbnwbnxbnybnzbo\0boabobboebofbohbojbokbolbombonboobopboqborbotboubovbowboxboybozbpabpcbpdbpebpgbphbpibpjbpkbplbpmbpobppbpqbprbpsbptbpubpvbpwbpxbpybpzbqabqbbqcbqdbqfbqgbqibqjbqkbqlbqmbqobqpbqqbqrbqsbqtbqubqvbqwbqxbqzbrabrbbrcbrdbrfbrgbrhbribrjbrkbrlbrmbrnbrobrpbrqbrrbrsbrtbrubrvbrwbrybrzbsabsbbscbsebsfbshbsibsjbskbslbsmbsnbsobspbsqbsrbssbstbsubsvbswbsxbsybtabtcbtdbtebtfbtgbthbtibtjbtmbtnbtobtpbtqbtrbtsbttbtubtvbtwbtxbtybtzbubbucbudbuebufbugbuhbuibujbukbumbunbuobupbuqbusbutbuubuvbuwbuxbuybuzbvabvbbvcbvdbvebvfbvgbvhbvibvjbvkbvmbvnbvobvqbvrbvtbvubvvbvwbvxbvybvzbwabwbbwcbwdbwebwfbwgbwhbwibwjbwkbwlbwmbwobwpbwqbwrbwsbwtbwubwwbwxbwybwzbxabxbbxcbxfbxgbxhbxibxjbxlbxmbxnbxobxpbxqbxsbxubxvbxwbxzbyabybbycbydbyebyfbyhbyibyjbykbylbymbynbypbyrbysbyvbywbyxbyzbzabzbbzcbzdbzebzfbzhbzibzjbzkbzlbzmbznbzobzpbzqbzrbztbzubzvbzwbzxbzybzzcaacabcaccadcaecafcagcahcajcakcalcamcancaocapcaqcarcascavcawcaxcaycazcbbcbccbdcbgcbicbjcbkcblcbncbocbqcbrcbscbtcbucbvcbwcbycccccdcceccgcchccjcclccmccoccpccrcdecdfcdhcdicdjcdmcdncdocdrcdzce\0ceacegcekcencetceycfacfdcfgcfmcgacgccggcgkch\0chbchdchfchgchhchjchkchlchmchnchochpchqchtchwchxchychzciacibcicciecihcimcincipcirciwciycjacjecjhcjicjkcjmcjncjocjpcjscjvcjyckbcklckmcknckockqckrckscktckuckvckxckyckzclaclccleclhclicljclkcllclmclocltcluclwclycmacmecmgcmicmlcmocmrcmscmtcnacnbcnccngcnhcnicnkcnlcnpcnqcnscntcnwcnxco\0coacobcoccodcoecofcogcohcojcokcolcomcoocopcoqcotcoucoxcozcpacpbcpccpgcpicpncpocpscpucpxcpycqdcr\0cracrbcrccrdcrfcrgcrhcricrjcrkcrlcrmcrncrocrqcrscrtcrvcrwcrxcrycrzcsacsbcshcsjcskcsmcsocspcsscstcsvcsycszctactcctdctectgcthctlctmctnctoctpctscttctuctyctzcu\0cuacubcuccuhcuicujcukculcuocupcutcuucuvcuxcuycvgcvncwacwbcwecwgcwtcxhcyacybcyoczhczkczncztdaadacdaddaedagdahdaidajdakdaldamdaodaqdardasdaudavdawdaxdazdbadbbdbddbedbfdbgdbidbjdbldbmdbndbodbpdbqdbtdbudbvdbwdbydccdcrddadddddeddgddiddjddnddoddrddsddwdecdeddeedefdegdehdeideldemdendeqderdesdevdezdgadgbdgcdgddgedggdghdgidgkdgldgndgrdgsdgtdgwdgxdgzdhgdhidhldhmdhndhodhrdhsdhudhvdhwdhxdiadibdicdiddifdigdihdiidijdildindiodipdirdisdiudiwdixdiydizdjadjbdjcdjddjedjfdjidjjdjkdjmdjndjodjrdjudjwdkadkgdkkdkrdksdkxdlgdlmdlndmadmbdmcdmddmedmfdmgdmkdmldmmdmodmrdmsdmudmvdmwdmxdmydnadnddnedngdnidnjdnkdnndnodnrdntdnudnvdnwdnydoadobdocdoedofdohdokdoldondoodopdordosdotdovdowdoxdoydppdrcdredrgdridrldrndrodrqdrsdrtdrudrydshdsidskdsndsodsqdtadtbdtddthdtidtkdtmdtodtpdtrdtsdttdtudtyduadubducduedufdugduhduidukduldumdunduodupduqdurdusduuduvduwduxduyduzdv\0dvadwadwkdwrdwsdwudwwdwydwzdyadybdyddygdyidymdyndyodyrdyudyydz\0dzadzddzedzgdzldzneaaebcebgebkeboebrebuecrecyefaefeefiegaeglegmegoegyehueipeiteivejaekaekeekgekieklekmekoekpekrekyeleelkelmeloeluemaembemeemgemiemmemnempemsemuemwemxemzenaenbencendenfenhenlenmennenoenqenrenvenwenxeotepieraergerherierkerrerserterweseesgeshesiesmessesuesyetbetnetoetretsettetuetxetzeudeveevhevnewoexteyaeyoezaezefaafabfadfaffagfahfaifajfakfalfamfanfapfarfaufaxfayfazfblferffiffmfgrfiafiefiffipfirfitfiwfj\0fkkfkvflaflhflifllflnflrflyfmpfmufnbfngfnifodfoifomfonforfosfpefqsfrcfrdfrkfrmfrofrpfrqfrrfrsfrtfubfudfuefuffuhfuifumfunfuqfurfutfuufuvfuyfvrfwafwegabgacgadgaegafgaggahgaigajgakgalgamgangaogapgaqgargasgatgaugawgaxgaygbagbbgbdgbegbfgbggbhgbigbjgbkgblgbmgbngbpgbqgbrgbsgbugbvgbwgbxgbygbzgccgcdgcfgclgcngcrgctgdbgdcgddgdegdfgdggdhgdigdjgdkgdlgdmgdngdogdqgdrgdtgdugdxgeagebgecgedgefgeggehgeigejgekgelgeqgesgevgewgexgeygezgfkggaggbggdggegggggkgglggtgguggwghaghcgheghkghnghoghrghsghtgiagibgicgidgiegiggihgilgimgingipgiqgirgisgitgixgiygizgjkgjmgjngjrgjugkagkdgkegkngkogkpgkuglbglcgldglhgljglkgllgloglrgluglwgmagmbgmdgmggmhgmlgmmgmngmrgmugmvgmxgmygmzgn\0gnagnbgncgndgnegnggnhgnignjgnkgnlgnmgnngnqgnrgntgnugnwgnzgoagobgocgodgoegofgoggohgoigojgokgolgongoogopgoqgorgosgotgougovgowgoxgoygpagpegpngqagqngqrgragrbgrcgrdgrggrhgrigrjgrmgrqgrrgrsgrtgrugrvgrwgrxgrygrzgslgsngsogspgswgtagtuguagubgucgudguegufguhguigukgulgumgunguogupguqgurgutguuguwguxguzgv\0gvagvcgvegvfgvjgvlgvmgvngvogvpgvrgvsgvygwagwbgwcgwdgwegwfgwggwigwjgwmgwngwrgwtgwugwwgwxgxxgybgydgyegyfgyggyigylgymgyngyogyrgyygyzgzagzigznhaahachadhaehaghahhaihajhakhalhamhanhaohaphaqharhashavhawhaxhayhazhbahbbhbnhbohbuhchhdyhedheghehheihemhgmhgwhhihhrhhyhiahibhidhifhighihhiihijhikhilhiohirhithiwhixhjihkahkehkhhkkhlahlbhldhlthluhmahmbhmdhmfhmjhmmhmnhmphmqhmrhmshmthmuhmvhmwhmyhmzhnahndhnehnghnhhnihnjhnmhnnhnohnsho\0hoahobhochodhoehohhoihojholhomhoohophorhothovhowhoyhpohrahrchrehrkhrmhrohrphrthruhrwhrxhrzhsnhssht\0htihtohtshtuhtxhubhuchudhuehufhughuhhuihukhulhumhuphurhushuthuuhuvhuwhuxhuyhuzhvchvehvkhvnhvvhwahwchwohyahywhz\0iaiianiaribaibbibdibeibgibhiblibmibnibribuibyicaichicridaidbidciddideidiidridsidtiduifaifbifeiffifkifmifuifyigbigeiggigligmignigoigsigwihbihiihpihwiinijcijeijjijnijsik\0ikhikiikkiklikoikpikriktikvikwikxikzilailbilgiliilkilmiloilpiluilvimiimlimnimoimrimsimtimyin\0inbinginhinjinninoinpintio\0ioriouiowipiipoiquiqwireirhiriirkirniruirxiryisaiscisdishisiiskismisnisoistisuitbitditeitiitkitlitmitoitritsittitvitwitxityitziu\0iumivbivviw\0iwkiwmiwoiwsixcixliyaiyoiyxizhizmizrizzjaajabjacjadjaejafjahjajjakjaljamjanjaojaqjasjatjaujaxjayjazjbejbijbjjbkjbmjbnjbojbrjbtjbujbwjctjdajdgjdtjebjeejehjeijekjeljenjerjetjeujgbjgejgkjgojhiji\0jiajibjicjidjiejigjiljimjitjiujivjiyjjejjrjkajkmjkojkujlejmajmbjmcjmdjmijmljmnjmrjmsjmwjmxjnajndjngjnijnjjnljnsjobjodjogjorjowjpajprjqrjrajrbjrrjrtjrujuajubjudjuhjuijukjuljumjunjuojupjurjutjuujuwjuyjvdjvnjw\0jwijyajyejyykaakabkackadkagkahkaikajkakkamkaokapkaqkavkawkaxkaykbakbbkbckbdkbekbgkbhkbikbjkbkkblkbmkbnkbokbpkbqkbrkbskbtkbukbvkbwkbxkbykbzkcakcbkcckcdkcekcfkcgkchkcikcjkckkclkcmkcnkcokcpkcqkcskctkcukcvkcwkcykczkdakdckddkdekdfkdgkdhkdikdjkdkkdlkdmkdnkdpkdqkdrkdtkdwkdxkdykdzkebkeckedkeekefkegkehkeikekkelkemkenkeokerkesketkeukevkewkexkeykezkfakfbkfckfdkfekffkfgkfhkfikfkkflkfmkfnkfokfpkfqkfrkfskfukfvkfwkfxkfykfzkg\0kgakgbkgekgfkgjkgkkglkgokgqkgrkgskgtkgukgvkgwkgxkgykhakhbkhckhdkhekhfkhgkhhkhjkhlkhnkhokhpkhqkhrkhskhtkhukhvkhwkhxkhykhzki\0kiakibkickidkiekifkigkihkijkilkimkiokipkiqkiskitkiukivkiwkixkiykizkj\0kjakjbkjckjdkjekjgkjhkjikjjkjkkjlkjmkjnkjokjpkjqkjrkjskjtkjukjxkjykjzkkakkbkkckkdkkekkfkkgkkhkkikkjkkkkklkkmkkokkpkkqkkrkkskktkkukkvkkwkkxkkykkzkl\0klaklbklckldkleklfklgklhklikljklkkllklmklnkloklpklqklrklskltkluklvklwklxklyklzkmakmbkmckmdkmekmfkmgkmhkmikmjkmkkmlkmmkmnkmokmpkmqkmskmtkmukmvkmwkmxkmykmzknaknbkndkneknfkniknjknkknlknmknnknoknpknqknrknskntknuknvknwknxknyknzkoakockodkoekofkogkohkoikolkookopkoqkoskotkoukovkowkoykozkpakpckpdkpekpfkpgkphkpikpjkpkkplkpmkpnkpokpqkprkpskptkpukpwkpxkpykpzkqakqbkqckqdkqekqfkqgkqhkqikqjkqkkqlkqmkqnkqokqpkqqkqrkqskqtkqukqvkqwkqxkqykqzkr\0krakrbkrckrdkrekrfkrhkrikrjkrkkrlkrnkrokrpkrrkrskrtkrukrvkrwkrxkrykrzksbkscksdkseksfksgkshksiksjkskkslksmksnksokspksqksrksskstksuksvkswksxkszktaktbktcktdktektfktgkthktiktjktkktlktmktnktoktpktqktskttktuktvktwktxktyktzkubkuckudkuekufkugkuhkuikujkukkulkumkunkuokupkuqkuskutkuukuvkuwkuxkuykuzkv\0kvakvbkvckvdkvekvfkvgkvhkvikvjkvlkvmkvnkvokvpkvqkvrkvtkvvkvwkvxkvykvzkw\0kwakwbkwckwdkwekwfkwgkwhkwikwjkwkkwlkwmkwnkwokwpkwrkwskwtkwukwvkwwkwxkwykwzkxakxbkxckxdkxfkxikxjkxkkxmkxnkxokxpkxqkxrkxtkxwkxxkxykxzkyakybkyckydkyekyfkygkyhkyikyjkykkylkymkynkyokyqkyrkyskytkyukyvkywkyxkyykyzkzakzbkzckzdkzekzfkzikzkkzlkzmkznkzokzpkzrkzskzukzvkzwkzxkzykzzla\0laalablacladlaelaglahlailajlallamlanlaplaqlarlaslaulawlaxlazlbblbelbflbilbjlbllbmlbnlbolbqlbrlbtlbulbvlbwlbxlbylbzlcclcdlcelcflchlcllcmlcplcqlcsldaldblddldgldhldildjldkldlldmldnldoldpldqlealeblecledleeleflehleilejleklellemlenleolepleqlerlesletleulevlewlexleylezlfalfnlg\0lgalgblgglghlgilgklgllgmlgnlgolgqlgrlgtlgulgzlhalhhlhilhmlhnlhslhtlhuli\0lialibliclidlielifliglihliklilliolipliqlirlisliulivliwlixliylizljaljeljiljlljpljwljxlkalkblkclkdlkelkhlkilkjlkllkmlknlkolkrlkslktlkulkyllallbllclldllellfllgllilljllklllllmllnllpllqllullxlmalmblmclmdlmelmflmglmhlmilmjlmklmllmnlmplmqlmrlmulmvlmwlmxlmyln\0lnalnblndlnglnhlnilnjlnllnmlnnlnslnulnwlnzloaloblocloeloglohloilojloklollomlonlooloploqlorloslotloulowloxloylozlpalpelpnlpolpxlqrlralrclrglrilrklrllrmlrnlrolrtlrvlrzlsalsdlselsilsmlsrlssltcltglthltiltnltoltsltulu\0lualucludluelufluhluilujluklullumlunluolupluqlurluslutluuluvluwluyluzlvalvilvklvllvulwalwelwglwhlwllwmlwolwtlwwlxmlyalynlzhlzllznlzzmaamabmadmaemafmagmajmakmammanmaqmasmatmaumavmawmaxmazmbambbmbcmbdmbfmbhmbimbjmbkmblmbmmbnmbombpmbqmbrmbsmbtmbumbvmbwmbxmbymbzmcamcbmccmcdmcemcfmcgmchmcimcjmckmclmcmmcnmcomcpmcqmcrmcsmctmcumcvmcwmcxmcymczmdamdbmdcmddmdemdfmdgmdhmdimdjmdkmdmmdnmdpmdqmdrmdsmdtmdumdvmdwmdxmdymdzmeamebmecmedmeemehmejmekmelmemmenmeomepmeqmermesmetmeumevmewmeymezmfamfbmfcmfdmfemffmfgmfhmfimfjmfkmflmfmmfnmfomfpmfqmfrmftmfumfvmfwmfxmfymfzmg\0mgamgbmgcmgdmgemgfmggmghmgimgjmgkmglmgmmgnmgomgpmgqmgrmgsmgtmgumgvmgwmgymgzmh\0mhbmhcmhdmhemhfmhgmhimhjmhkmhlmhmmhnmhomhpmhqmhsmhtmhumhwmhxmhymhzmiamibmicmidmiemifmigmihmiimijmikmilmimminmiomipmiqmirmitmiumiwmixmiymizmjbmjcmjdmjemjgmjhmjimjjmjkmjlmjmmjnmjqmjrmjsmjtmjumjvmjwmjxmjymjzmkamkbmkcmkemkfmkimkjmkkmklmkmmknmkomkpmkrmksmktmkvmkwmkxmkymkzmlamlbmlcmlemlfmlhmlimljmlkmllmlnmlomlpmlrmlsmlumlvmlwmlxmlzmmammbmmcmmdmmemmfmmgmmhmmimmmmmnmmommpmmqmmrmmtmmummvmmwmmxmmymmzmnamnbmncmndmnemnfmngmnhmnjmnkmnlmnmmnnmnpmnqmnrmnsmnumnvmnwmnxmnymnzmo\0moamocmodmoemogmohmoimojmokmommoomopmoqmormosmotmoumovmowmoxmoymozmpampbmpcmpdmpempgmphmpimpjmpkmplmpmmpnmpomppmpqmprmpsmptmpumpvmpwmpxmpympzmqamqbmqcmqemqfmqgmqhmqimqjmqkmqlmqmmqnmqomqpmqqmqrmqsmqtmqumqvmqwmqxmqymqzmramrbmrcmrdmrfmrgmrhmrjmrkmrlmrmmrnmromrpmrqmrrmrsmrtmrumrvmrwmrxmrymrzmsbmsemsfmsgmshmsimsjmskmslmsmmsnmsomspmsqmssmsumsvmswmsxmsymszmtamtbmtcmtdmtemtfmtgmthmtimtjmtkmtlmtmmtnmtomtpmtqmtrmtsmttmtumtvmtwmtxmtymuamubmucmudmuemugmuhmuimujmukmummuomuqmurmusmutmuumuvmuxmuymuzmvamvdmvemvfmvgmvhmvkmvlmvnmvomvpmvqmvrmvsmvtmvumvvmvwmvxmvymvzmwamwbmwcmwemwfmwgmwhmwimwkmwlmwmmwnmwomwpmwqmwrmwsmwtmwumwvmwwmwzmxamxbmxcmxdmxemxfmxgmxhmximxjmxkmxlmxmmxnmxomxpmxqmxrmxsmxtmxumxvmxwmxxmxymxzmybmycmyemyfmygmyhmyjmykmylmymmypmyrmyumyvmywmyxmyymyzmzamzbmzdmzemzhmzimzjmzkmzlmzmmznmzomzpmzqmzrmztmzumzvmzwmzxmzzna\0naanabnacnaenafnagnajnaknalnamnannaonapnaqnarnasnatnawnaxnaynaznb\0nbanbbnbcnbdnbenbhnbinbjnbknbmnbnnbonbpnbqnbrnbtnbunbvnbwnbyncancbnccncdncencfncgnchncincjncknclncmncnnconcqncrnctncuncxncznd\0ndandbndcnddndfndgndhndindjndkndlndmndnndpndqndrndtndundvndwndxndyndzneanebnecnedneenegnehneinejneknemnenneoneqnernetneunewnexneyneznfanfdnflnfrnfung\0ngangbngcngdngenggnghngingjngknglngmngnngpngqngrngsngtngungvngwngxngyngznhanhbnhcnhdnhenhfnhgnhinhknhmnhnnhonhpnhqnhrnhtnhunhvnhwnhxnhynhznianibnidnienifnignihniinijnilnimninnioniqnirnisnitniunivniwnixniyniznjanjbnjdnjhnjinjjnjlnjmnjnnjonjrnjsnjtnjunjxnjynjznkankbnkcnkdnkenkfnkgnkhnkinkjnkknkmnknnkonkqnkrnksnktnkunkvnkwnkxnkznlanlcnlenlgnlinljnlknlmnlonlqnlunlvnlwnlxnlynlznmanmbnmcnmdnmenmfnmgnmhnminmjnmknmlnmmnmnnmonmpnmqnmrnmsnmtnmunmvnmwnmxnmznnannbnncnndnnennfnngnnhnninnjnnknnlnnmnnnnnpnnqnnrnntnnunnvnnwnnynnznoanocnodnoenofnognohnoinojnoknonnopnoqnosnotnounovnownoynpbnpgnphnplnpnnponpsnpunpxnpynqgnqknqlnqmnqnnqqnqtnqynr\0nranrbnrenrfnrgnrinrknrlnrmnrnnrpnrunrxnrznsansbnscnsdnsensfnsgnshnsknsmnsnnsqnssnstnsunsvnswnsxnsynszntdntgntintjntkntmntontpntrntuntxntyntznuanucnudnuenufnugnuhnuinujnuknumnunnuonupnuqnurnusnutnuunuvnuwnuxnuynuznv\0nvhnvmnvonwbnwcnwenwgnwinwmnwonwrnwwnwxnxanxdnxenxgnxinxknxlnxnnxonxqnxrnxxny\0nybnycnydnyenyfnygnyhnyinyjnyknylnymnynnyonypnyqnyrnysnytnyunyvnywnyxnyynzanzbnzdnzinzknzmnzrnzunzynzzoaaoacoaroavobiobkoblobmoboobrobtobuocaocoocuodaodkodtoduofsofuogbogcoggogooguohtohuoiaoieoinoj\0ojbojcojsojvojwokaokbokcokdokeokgokiokkokmokookroksokuokvokxokzolaoldoleolkolmoloolroltoluomaombomcomgomiomkomlomoompomromtomuomwomxonaoneongonionjonkonnonoonponronsontonuonxoodoonooropaopkopmopooptopyoraorcoreorgornoroorrorsortoruorvorworxorzos\0osaoscosiosoospostosuosxotaotbotdoteotiotkotlotmotnotqotrotsottotuotwotxotyotzouboueouioumovdowiowloyboydoymoyyozmpabpacpadpaepafpagpahpaipakpalpampaopappaqparpaspaupavpawpaxpaypazpbbpbcpbepbfpbgpbhpbipblpbmpbnpbopbppbrpbspbtpbvpbypcapcbpccpcdpcepcfpcgpchpcipcjpckpcnpcppcwpdapdcpdnpdopdtpdupeapebpedpeepegpeipekpelpempeopeppeqpevpexpeypezpfapfepflpgapgdpggpgipgkpglpgnpgspguphdphgphhphkphlphmphnphophrphtphuphvphwpi\0piapibpicpidpifpigpihpijpilpimpinpiopippirpispitpiupivpiwpixpiypizpjtpkapkbpkgpkhpknpkopkppkrpkuplaplbplcpldpleplgplhplkpllplnploplrplspluplvplwplzpmapmbpmdpmepmfpmhpmipmjpmlpmmpmnpmopmqpmrpmtpmwpmxpmypmzpnapncpndpnepngpnhpnipnjpnkpnlpnmpnnpnopnppnqpnrpnspntpnvpnwpnypnzpocpoepofpogpohpoipokpomponpoopoppoqpospotpovpowpoyppeppippkpplppmppnppopppppqppspptpqapqmprcprdpreprfprgprhpriprkprmproprqprrprtpruprwprxpsapsepshpsipsmpsnpsqpsspstpsupswptapthptiptnptoptpptrpttptuptvpuapubpucpudpuepufpugpuipujpumpuopuppuqpurputpuupuwpuxpuypwapwbpwgpwmpwnpwopwrpwwpxmpyepympynpyupyxpyypzepzhpznquaqubqucqudqufqugquiqukqulqumqunqupquqqurqusquvquwquxquyqvaqvcqveqvhqviqvjqvlqvmqvnqvoqvpqvsqvwqvzqwaqwcqwhqwmqwsqwtqxaqxcqxhqxlqxnqxoqxpqxqqxrqxtqxuqxwqyaqypraarabracradrafragrahrairakramranraoraprarravrawraxrayrazrbbrbkrblrbprcfrdbrearebreeregreirejrelremrenresretreyrgargnrgrrgsrgurhgrhpriarifrilrimrinrirritriurjgrjirjsrkarkbrkhrkirkmrktrkwrmarmbrmcrmdrmermfrmgrmhrmirmkrmlrmmrmnrmormprmqrmtrmurmwrmxrmzrn\0rndrngrnlrnnrnrrnwrobrocrodroerofrogrolromrooroprorrourowrpnrptrrirrmrrorrtrskrswrtcrthrtmrtwrubrucruerufrugruirukruorupruqrutruuruyruzrwarwkrwlrwmrworwrrxdrxwryusaasabsacsadsaesafsajsaksamsaosaqsarsassausavsawsaxsaysazsbasbbsbcsbdsbesbgsbhsbisbjsbksblsbmsbnsbosbpsbqsbrsbssbtsbusbvsbwsbxsbysbzscbscescfscgschsciscksclscoscpscssctscuscvscwscxsdasdbsdcsdesdfsdgsdhsdjsdksdnsdosdqsdrsdssdusdxse\0seasebsecsedseesefsegsehseisejsekselsenseosepseqsersessetseusevsewseysezsfesfmsfwsg\0sgasgbsgcsgdsgesghsgisgjsgmsgpsgrsgssgtsgusgwsgysgzshashbshcshdsheshgshhshishjshkshmshoshpshqshrshsshtshushvshwshyshzsiasibsidsiesifsigsihsiisijsiksilsimsipsiqsirsissiusivsiwsixsiysizsjasjbsjcsjdsjesjgsjlsjmsjpsjrsjtsjusjwskaskbskcskdskeskfskgskhskiskjskmsknskoskpskqskrskssktskuskvskwskxskyskzslcsldslgslhslisljsllslmslnslpslrsluslwslxslyslzsm\0smasmbsmcsmfsmgsmhsmjsmksmlsmnsmpsmqsmrsmssmtsmusmwsmxsmysmzsn\0sncsnesnfsngsnisnjsnksnlsnmsnnsnosnpsnqsnrsnssnusnvsnwsnxsnysnzsoasobsocsodsoesogsoisoksolsoosopsoqsorsossousovsowsoxsoysozspbspcspdspespgspispksplspmspnsposppspqsprspssptspvsqasqhsqmsqosqqsqtsqusrasrbsresrfsrgsrhsrisrksrlsrmsrnsrosrqsrrsrssrtsrusrvsrwsrxsrysrzss\0ssbsscssdssessfssgsshssjsslssmssnssossqssssstssussvssxssysszstastbstestfstgsthstistjstkstlstmstnstostpstqstrstssttstustvstwstysuasubsucsuesugsuisujsuksuosuqsursussutsuvsuwsuysuzsvasvbsvcsvesvmsvsswbswfswgswiswjswkswmswoswpswqswrswsswtswuswvswwswxswysxbsxesxnsxrsxssxusxwsyasybsycsyisyksylsymsynsyosyssywsyxszaszbszcszgsznszpszvszwszytaatabtactadtaetaftagtajtaktaltantaotaptaqtartastautavtawtaxtaytaztbatbctbdtbetbftbgtbhtbitbjtbktbltbmtbntbotbptbstbttbutbvtbwtbxtbytbztcatcbtcctcdtcetcftcgtchtcitcktcmtcntcotcptcqtcstcutcwtcxtcytcztdatdbtdctddtdetdgtdhtditdjtdktdltdmtdntdotdqtdrtdstdttdvtdxtdyteatebtectedteetegtehteitektemtenteotepteqtertestetteutevtewtexteyteztfitfntfotfrtfttgatgbtgctgdtgetgftghtgitgjtgntgotgptgqtgstgttgutgvtgwtgxtgytgzthdthethfthhthithkthlthmthpthqthrthsthtthuthvthythztictiftigtihtiitijtiktiltimtintiotiptiqtistittiutivtiwtixtiytjatjgtjitjjtjltjntjotjptjstjutjwtkatkbtkdtketkftkgtkltkptkqtkrtkstkttkutkvtkwtkxtkztl\0tlatlbtlctldtlftlgtlitljtlktlltlmtlntlptlqtlrtlstlttlutlvtlxtlytmatmbtmctmdtmetmftmgtmhtmitmjtmltmmtmntmotmqtmrtmttmutmvtmwtmytmztnatnbtnctndtngtnhtnitnktnltnmtnntnotnptnqtnrtnstnttnvtnwtnxtnytobtoctodtoftogtohtoitojtoktoltomtootoptoqtortostoutovtowtoxtoytoztpatpctpetpftpgtpitpjtpktpltpmtpntpptprtpttputpvtpxtpytpztqbtqltqmtqntqotqptqttqutqwtratrbtrctretrftrgtrhtritrjtrltrmtrntrotrptrqtrrtrstrttrutrvtrwtrxtrytrzts\0tsatsbtsctsdtsgtshtsitsjtsltsptsrtsttsutsvtswtsxtszttbttcttdttettftthttittjttkttlttmttnttottpttrttstttttuttvttwttyttztuatubtuctudtuetuftugtuhtuitujtultumtuntuotuqtustuutuvtuxtuytuztvatvdtvetvitvktvltvmtvntvotvstvttvutvwtvxtwatwbtwdtwetwftwgtwhtwltwmtwntwotwptwqtwrtwttwutwwtwxtwytxatxetxgtxitxjtxmtxntxotxqtxstxttxutxxtxyty\0tyatyetyhtyityjtyltyntyptyrtystyttyutyxtyytyztzhtzjtzltzmtzntzotzxuamuarubaubiublubrubuubyudaudeudgudiudjudludmuduuesufiugaugbugeughugouhauhnuisuivujiukaukgukhukiukkukpukqukuukvukwukyulaulbulculeulfuliulkulmulnuluulwulyumaumbumdumgumiummumnumoumpumrumsunauneunguniunkunmunnunrunuunxunzuonupiupvuraurburcureurfurgurhuriurkurmurnurourpurrurturuurvurwurxuryurzusaushusiuskuspussusuutauteuthutputrutuuumuuruveuvhuvluwauyauzsvaavaevafvagvahvaivajvalvamvanvaovapvarvasvauvavvayvbbvbkve\0vemveovepvervgrvicvidvifvigvilvinvitvivvjkvkavkjvkkvklvkmvknvkovkpvktvkuvkzvlpvlsvmavmbvmcvmdvmevmfvmgvmhvmivmjvmkvmlvmmvmpvmqvmrvmsvmuvmxvmyvmzvnkvnmvnpvo\0vorvotvravrovrsvrtvtovumvunvutvwawa\0waawabwacwadwaewafwagwahwaiwajwalwamwanwapwaqwarwaswatwauwavwawwaxwaywazwbawbbwbewbfwbhwbiwbjwbkwblwbmwbpwbqwbrwbtwbvwbwwcawciwddwdgwdjwdkwdtwduwdywecwedwegwehweiwemweowepwerweswetweuwewwfgwgawgbwggwgiwgowguwgywhawhgwhkwhuwibwicwiewifwigwihwiiwijwikwilwimwinwirwiuwivwiywjawjiwkawkdwkrwkwwkywlawlewlgwlhwliwlmwlowlrwlswluwlvwlwwlxwmawmbwmcwmdwmewmhwmiwmmwmnwmowmswmtwmwwmxwnbwncwndwnewngwniwnkwnmwnnwnownpwnuwnwwnywoawobwocwodwoewofwogwoiwokwomwonwooworwoswowwpcwrbwrgwrhwriwrkwrlwrmwrowrpwrrwrswruwrvwrwwrxwrzwsawsgwsiwskwsrwsswsuwsvwtbwtfwthwtiwtkwtmwtwwuawubwudwulwumwunwurwutwuuwuvwuxwuywwawwbwwowwrwwwwxwwybwyiwymwynwyrwyyxaaxabxagxaixajxakxalxamxanxaoxarxasxatxauxavxawxayxbbxbdxbexbgxbixbjxbmxbnxbpxbrxbwxbyxchxcoxcrxdaxdkxdoxdqxdyxedxegxemxerxesxetxeuxgbxgdxggxgixgmxguxgwxhexhmxhvxiixinxirxisxiyxjbxjtxkaxkbxkcxkdxkexkfxkgxkjxklxknxkpxkqxkrxksxktxkuxkvxkwxkxxkyxkzxlaxlcxldxlyxmaxmbxmcxmdxmfxmgxmhxmjxmmxmnxmoxmpxmqxmrxmtxmuxmvxmwxmxxmyxmzxnaxnbxnixnjxnkxnmxnnxnqxntxnuxnyxnzxocxodxogxoixokxomxonxooxopxorxowxpaxpbxpdxpfxpgxphxpixpjxpkxplxpmxpnxpoxpqxprxptxpvxpwxpxxpzxraxrbxrdxrexrgxrixrmxrnxrrxruxrwxsaxsbxsdxsexshxsixsmxsnxspxsqxsrxsuxsyxtaxtbxtcxtdxtexthxtixtjxtlxtmxtnxtpxtqxtsxttxtuxtvxtwxtyxubxudxujxulxumxunxuoxutxuuxvexvixvnxvoxvsxwaxwdxwexwjxwkxwlxwoxwrxwtxwwxxbxxkxxmxxrxxtxyaxybxyjxykxylxytxyyxzhxzpyaayabyacyadyaeyafyagyahyaiyajyakyalyamyanyaoyapyaqyaryasyatyauyavyawyaxyayyazybaybbybeybhybiybjyblybmybnyboybxybyyclycnycrydaydeydgydkyeayecyeeyeiyejyelyeryesyetyeuyevyeyygaygiyglygmygpygryguygwyhdyi\0yiayigyihyiiyijyilyimyiryisyivykaykgykhykiykkykmykoykrykyylaylbyleylgyliyllylryluylyymbymeymgymkymlymmymnymoympynaynbyndyngynkynlynqynsynuyobyogyoiyokyolyomyonyotyoyyrayrbyreyrkyrmyroyrsyrwyryysdysnyspysryssysyytwytyyuayubyucyudyufyugyuiyujyulyumyunyupyuqyuryutyuwyuxyuzyvayvtywaywgywnywqywrywuywwyxayxgyxlyxmyxuyxyyyryyuzaazabzaczadzaezafzagzahzajzakzamzaozapzaqzarzaszatzauzavzawzaxzayzazzbazbczbezbtzbuzbwzcazchzdjzeazegzehzemzenzgazgbzghzgmzgnzgrzhdzhizhnzhwziazikzilzimzinziwzizzkazkdzkozkpzktzkuzkzzlazljzlmzlnzlqzluzmazmbzmczmdzmezmfzmgzmhzmizmjzmkzmlzmmzmnzmozmpzmqzmrzmszmtzmuzmvzmwzmxzmyzmzznaznezngznkznszoczohzomzoozoqzorzoszpazpbzpczpdzpezpfzpgzphzpizpjzpkzplzpmzpnzpozppzpqzprzpszptzpuzpvzpwzpxzpyzpzzqezrgzrnzrozrpzrszsazsrzsuzteztgztlztmztnztpztqztszttztuztxztyzuhzumzunzuyzwazygzyjzynzypzzazzj") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"LatnET\0LatnNG\0LatnNG\0LatnPG\0LatnPG\0LatnIT\0MlymIN\0LatnPG\0LatnPG\0LatnPG\0LatnPG\0LatnCM\0LatnBR\0ArabDZ\0LatnBR\0LatnUS\0LatnTZ\0GrekGR\0LatnPG\0LatnPG\0LatnID\0LatnID\0CyrlGE\0LatnCI\0LatnCM\0LatnPH\0LatnPH\0LatnCA\0LatnMY\0LatnPG\0ArabTJ\0LatnCI\0RjngID\0LatnNG\0LatnNG\0LatnNG\0LatnPH\0CyrlRU\0LatnGH\0LatnID\0LatnPG\0LatnCI\0ArabBH\0LatnPG\0LatnPH\0LatnPG\0LatnID\0LatnCO\0LatnNG\0LatnGH\0LatnID\0LatnLC\0LatnUG\0ArabIQ\0LatnCN\0LatnNG\0ArabYE\0LatnGT\0LatnBR\0LatnNL\0LatnEC\0LatnUS\0ArabSA\0ArabOM\0LatnCY\0LatnSD\0LatnGH\0LatnTL\0LatnCM\0LatnTG\0ArabOM\0LatnAU\0LatnUG\0LatnIN\0LatnCI\0LatnIN\0LatnID\0LatnPG\0LatnGH\0LatnID\0LatnAU\0LatnNG\0LatnBR\0TibtCN\0CyrlRU\0LatnPG\0AvstIR\0LatnAU\0ArabTN\0ArabEG\0ArabAF\0LatnNC\0LatnCM\0LatnVN\0ArabPK\0LatnAU\0LatnUS\0LatnCN\0LatnPG\0LatnPG\0LatnPG\0ArabKW\0LatnPG\0LatnNG\0LatnGH\0LatnPG\0LatnPG\0LatnNG\0LatnNG\0LatnPG\0LatnMX\0LatnGH\0LatnID\0LatnPE\0LatnNG\0LatnNG\0LatnPG\0LatnPG\0LatnID\0LatnPG\0LatnCD\0DevaIN\0EthiET\0LatnPH\0LatnPG\0LatnPG\0LatnPH\0LatnPG\0LatnCM\0LatnPE\0LatnCM\0LatnPH\0LatnGT\0LatnPH\0LatnSB\0CyrlRU\0LatnPH\0LatnPH\0LatnGH\0LatnVU\0EthiET\0LatnID\0LatnCI\0LatnMM\0LatnTG\0LatnCI\0LatnNG\0AhomIN\0LatnCI\0DevaIN\0LatnNG\0LatnUS\0LatnSB\0ArabCN\0LatnPG\0LatnAU\0LatnPG\0LatnPG\0LatnAG\0SyrcIQ\0HebrIL\0LatnNG\0LatnPG\0LatnIN\0KanaJP\0MymrIN\0LatnID\0ArabAF\0LatnID\0LatnBR\0LatnET\0LatnPG\0LatnCF\0LatnSS\0LatnBJ\0LatnNC\0LatnAU\0LatnNG\0LatnIN\0LatnID\0LatnID\0LatnNG\0LatnGY\0LatnNG\0LatnID\0LatnPG\0LatnPG\0XsuxIQ\0LatnPH\0LatnSR\0LatnGH\0LatnPG\0LatnVU\0LatnTG\0LatnPG\0LatnCM\0CyrlRU\0LatnCG\0LatnUS\0LatnNG\0LatnCL\0LatnCI\0LatnUS\0LatnNG\0LatnAU\0LatnPG\0LatnPH\0LaooLA\0MlymIN\0LatnVU\0LatnXK\0LatnID\0LatnID\0LatnCA\0CyrlRU\0CyrlRU\0LatnSB\0EthiET\0LatnPG\0LatnAU\0LatnCD\0LatnBR\0LatnNG\0LatnPE\0LatnPE\0LatnET\0LatnAU\0LatnTW\0LatnTD\0LatnID\0LatnPG\0LatnPG\0LatnNG\0LatnPG\0LatnID\0LatnPE\0JpanJP\0LatnPG\0LatnMX\0LatnID\0SyrcSY\0LatnAU\0LatnAU\0LatnAU\0LatnES\0LatnCO\0LatnPE\0LatnNG\0LatnID\0LatnNC\0LatnGH\0LatnGB\0LatnPG\0CyrlRU\0LatnPG\0LatnNG\0LatnMM\0LatnIN\0LatnNG\0LatnCO\0DevaIN\0DevaIN\0DevaIN\0LatnCO\0LatnAU\0EthiET\0LatnCM\0LatnNG\0LatnPG\0LatnCI\0LatnPG\0LatnST\0LatnPG\0LatnVE\0LatnPG\0LatnPG\0LatnPG\0LatnPG\0LatnAU\0LatnPG\0LatnNC\0LatnID\0LatnPG\0LatnPG\0LatnVU\0LatnID\0BengBD\0LatnGY\0LatnID\0LatnSB\0ArabSY\0ArabSD\0LatnPG\0LatnPH\0LatnID\0DevaNP\0LatnBR\0LatnUS\0LatnUS\0LatnUS\0LatnUS\0LatnBR\0LatnPG\0LatnVU\0LatnPG\0LatnPG\0LatnIN\0LatnBR\0LatnBR\0LatnUS\0LatnID\0LatnBR\0LatnPG\0CyrlRU\0LatnML\0LatnNG\0LatnNG\0LatnID\0LatnPH\0LatnNC\0LatnPY\0LatnBR\0ArmiIR\0LatnAU\0LatnAU\0LatnCO\0LatnUS\0LatnBR\0LatnBR\0LatnPE\0LatnCL\0LatnBO\0LatnUS\0ArabDZ\0LatnBR\0ArabSA\0LatnBR\0LatnET\0LatnSR\0LatnBR\0ArabMA\0ArabEG\0LatnTZ\0LatnCA\0LatnID\0SgnwUS\0LatnNG\0LatnPE\0LatnID\0LatnCM\0ArabAF\0LatnID\0LatnBR\0LatnPG\0DevaIN\0LatnCM\0LatnBR\0LatnCD\0LatnPG\0LatnID\0LatnID\0LatnPG\0LatnCN\0LatnPE\0LatnPH\0LatnPG\0LatnNG\0LatnCI\0LatnCA\0LatnPH\0LatnPH\0LatnPH\0ArabIR\0LatnCM\0LatnPH\0LatnID\0LatnBR\0LatnUS\0LatnPH\0LatnSS\0CyrlRU\0LatnUS\0LatnBR\0LatnVU\0LatnPH\0LatnSB\0LatnEC\0LatnSB\0LatnBJ\0LatnZM\0LatnPG\0ArabLY\0LatnPG\0LatnVU\0LatnNG\0LatnPG\0LatnNG\0LatnPG\0LatnID\0LatnPG\0LatnPF\0LatnID\0LatnID\0LatnPG\0ArabUZ\0CyrlRU\0LatnPG\0ArabIR\0LatnCI\0Latn001ArabEG\0LatnAU\0LatnGH\0LatnBR\0LatnPE\0LatnPG\0LatnSS\0LatnBR\0DevaIN\0LatnPG\0LatnNG\0LatnBR\0LatnAU\0LatnID\0LatnPG\0LatnAU\0LatnPG\0EthiET\0LatnNG\0LatnID\0LatnID\0LatnBR\0LatnID\0LatnID\0LatnPG\0LatnPG\0LatnID\0LatnAR\0LatnAU\0LatnBR\0LatnCF\0LatnAU\0ArmnAM\0LatnNC\0LatnBO\0LatnPG\0LatnBJ\0LatnPE\0LatnAU\0LatnNG\0LatnTG\0ArabYE\0LatnNG\0LatnNG\0ArabLY\0ArabYE\0LatnPY\0ArabIQ\0LatnPG\0LatnPH\0LatnPH\0LatnNG\0LatnID\0ArabIR\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnCM\0LatnPH\0LatnMX\0LatnSB\0LatnGW\0LatnID\0LatnVE\0LatnCM\0LatnCM\0LatnBS\0LatnID\0LatnID\0LatnCO\0DevaNP\0LatnAT\0LatnCM\0LatnNG\0LatnCM\0LatnCM\0BamuCM\0LatnID\0LatnBJ\0LatnPG\0LatnID\0LatnPG\0LatnCD\0LatnPG\0LatnGA\0LatnCM\0LatnCM\0LatnCM\0GeorGE\0LatnCD\0LatnPG\0LatnBF\0LatnCF\0LatnCM\0LatnPG\0LatnNG\0LatnNG\0LatnNG\0LatnPG\0LatnCM\0LatnCM\0LatnCM\0LatnCN\0LatnSN\0LatnID\0LatnCM\0LatnPG\0LatnGN\0LatnPG\0LatnCI\0LatnAU\0LatnAU\0LatnPG\0LatnNG\0LatnPG\0LatnCD\0EthiET\0LatnCA\0LatnNG\0LatnCD\0LatnPG\0LatnNG\0LatnCM\0LatnNG\0LatnSN\0LatnSN\0LatnID\0LatnCO\0LatnPG\0LatnNG\0LatnPG\0LatnMY\0LatnSS\0LatnSD\0LatnSS\0LatnAZ\0LatnID\0LatnTD\0LatnCM\0LatnTD\0LatnTZ\0LatnVN\0LatnMY\0LatnTZ\0LatnCF\0LatnCM\0OryaIN\0LatnID\0LatnID\0LatnAU\0ArabPK\0LatnCA\0LatnCM\0LatnCM\0LatnID\0DevaIN\0LatnPG\0LatnBJ\0LatnID\0ArabSD\0LatnPG\0LatnZM\0LatnPG\0LatnID\0LatnCG\0LatnTD\0LatnCI\0LatnID\0LatnCI\0LatnID\0LatnSS\0LatnPG\0LatnTZ\0LatnSS\0DevaIN\0LatnCN\0LatnCM\0LatnID\0LatnCF\0LatnID\0LatnPG\0LatnCM\0LatnCF\0LatnCM\0LatnTL\0LatnBF\0LatnCM\0TamlIN\0LatnCN\0ArabPK\0TibtIN\0OryaIN\0LatnPH\0DevaIN\0DevaIN\0LatnNG\0LatnID\0DevaIN\0LatnCM\0LatnIN\0LatnPH\0LatnCM\0ArabPK\0LatnGN\0ArabPK\0DevaIN\0LatnIN\0LatnPH\0LatnSB\0LatnNG\0LatnID\0DevaIN\0GrekTR\0LatnID\0LatnID\0DevaIN\0DevaIN\0LatnID\0DevaIN\0ArabPK\0LatnPG\0LatnPG\0CyrlIL\0DevaIN\0DevaNP\0LatnPG\0ArabOM\0SyrcGE\0LatnID\0LatnID\0LatnMG\0LatnCM\0DevaIN\0DevaIN\0LatnID\0LatnID\0LatnCD\0LatnID\0LatnVU\0LatnAU\0LatnBF\0LatnTD\0LatnPG\0LatnGW\0LatnPG\0LatnPH\0LatnNG\0LatnGH\0LatnNG\0LatnPG\0LatnCD\0LatnPG\0LatnPG\0LatnPG\0LatnIN\0LatnGH\0LatnCM\0DevaIN\0DevaIN\0LatnCD\0LatnCD\0LatnAU\0LatnPG\0SyrcIL\0LatnGW\0LatnPG\0LatnET\0DevaIN\0LatnPG\0LatnPG\0ArabIQ\0LatnID\0LatnCF\0LatnPG\0LatnPG\0LatnBB\0LatnSN\0LatnCM\0LatnTD\0LatnCI\0LatnPH\0LatnAU\0LatnPG\0LatnNG\0LatnCM\0LatnPH\0LatnCD\0LatnCF\0LatnCM\0LatnVU\0LatnCF\0TibtIN\0LatnID\0LatnCM\0LatnID\0LatnCM\0LatnCD\0LatnBR\0LatnID\0LatnPH\0LatnCD\0LatnPH\0LatnNG\0LatnCG\0LatnTL\0LatnNG\0LatnID\0LatnCA\0LatnSB\0LatnCA\0LatnID\0LatnGW\0LatnID\0LatnLR\0LatnCD\0LatnID\0MymrMM\0LatnSS\0LatnPH\0LatnSB\0LatnPG\0LatnCN\0LatnID\0TavtVN\0LatnAO\0LatnPH\0LatnPH\0LatnBJ\0LatnID\0LatnML\0LatnNG\0LatnCD\0LatnPG\0LatnGN\0LatnCF\0LatnSL\0LatnCD\0LatnPG\0LatnTD\0DevaNP\0LatnPG\0LatnCD\0LatnMG\0LatnPG\0LatnCM\0LatnPG\0LatnML\0LatnCO\0LatnNE\0LatnPG\0LatnCM\0LatnCG\0LatnPG\0LatnPG\0LatnID\0LatnMY\0LatnPH\0LatnID\0LatnID\0LatnID\0LatnGQ\0LatnCD\0LatnPH\0LatnVU\0LatnGQ\0LatnTW\0LatnPH\0LatnPG\0LatnID\0LatnVU\0DevaIN\0LatnID\0LatnID\0LatnPG\0LatnCD\0LatnMY\0LatnCM\0TibtCN\0LatnPE\0LatnKE\0LatnCM\0LatnBF\0LatnCD\0LatnPG\0LatnCG\0LatnNG\0LatnNG\0LatnPG\0LatnML\0LatnPG\0LatnPG\0LatnBR\0LatnSS\0LatnTZ\0LatnGH\0LatnPG\0LatnBF\0LatnCF\0LatnML\0LatnVU\0LatnCM\0LatnCF\0LatnPG\0LatnID\0CyrlRU\0LatnPG\0LatnCD\0LatnNC\0LatnAU\0LatnPG\0LatnID\0LatnID\0LatnID\0LatnPH\0LatnPH\0LatnAU\0LatnPG\0LatnID\0LatnPG\0DevaIN\0BengIN\0LatnID\0LatnBJ\0LatnID\0LatnBJ\0LatnCM\0LatnGN\0LatnTG\0ArabIR\0LatnSN\0LatnCF\0LatnPG\0LatnCM\0LatnCM\0LatnNG\0LatnID\0LatnID\0LatnPG\0LatnCM\0LatnCD\0LatnCI\0LatnNG\0LatnNG\0LatnCM\0DevaIN\0KhmrKH\0LatnGY\0DevaNP\0LatnCD\0LatnBO\0ArabPK\0LatnCM\0LatnVU\0ArabSD\0LatnBW\0LatnCD\0LatnCR\0TibtBT\0LatnID\0LatnPG\0LatnSB\0LatnID\0LatnNG\0LatnVN\0LaooLA\0KndaIN\0LatnPG\0LatnPG\0LatnID\0LatnBN\0LatnSN\0LatnCM\0LatnNG\0ArabAF\0LatnCM\0LatnNG\0ArabPK\0LatnNG\0LatnID\0LatnCO\0LatnTD\0LatnGN\0LatnLR\0LatnNG\0LatnCM\0EthiET\0LatnID\0LatnGN\0LatnET\0LatnNG\0LatnMY\0LatnNG\0LatnCM\0BatkID\0LatnNG\0LatnTD\0LatnCI\0LatnMY\0LatnID\0LatnID\0BatkID\0LatnPH\0LatnPH\0LatnPG\0LatnMY\0LatnVU\0LatnID\0LatnNG\0LatnNG\0DevaPK\0LatnPH\0LatnID\0LatnID\0LatnID\0LatnTD\0LatnYT\0LatnTG\0LatnCA\0LatnCD\0LatnID\0LatnCN\0LatnCG\0LatnNG\0LatnPG\0LatnCM\0LatnSL\0LatnPG\0LatnID\0LatnPG\0LatnNG\0LatnPG\0LatnCD\0LatnPG\0LatnGA\0LatnNG\0LatnSL\0LatnNG\0LatnTD\0LatnGQ\0LatnSB\0LatnSB\0LatnID\0LatnTD\0LatnCM\0LatnNG\0LatnSS\0LatnNG\0LatnID\0LatnCM\0LatnPG\0LatnTD\0LatnCF\0LatnAU\0LatnID\0LatnID\0LatnVE\0LatnNG\0LatnCG\0LatnPH\0LatnID\0LatnNC\0LatnFJ\0LatnZM\0LatnPG\0MymrMM\0LatnPG\0LatnMZ\0LatnCM\0LatnVE\0LatnBF\0LatnPG\0LatnCD\0LatnPG\0LatnET\0LatnID\0LatnBF\0LatnNG\0LatnCD\0LatnCM\0LatnGH\0LatnCD\0LatnCN\0LatnBF\0LatnCG\0LatnSB\0LatnSS\0LatnGQ\0LatnPG\0LatnCD\0LatnPG\0LatnAU\0LatnAU\0LatnBF\0CyrlMN\0LatnAU\0LatnNG\0LatnCM\0LatnNG\0LatnCM\0MongCN\0LatnTD\0LatnML\0LatnPG\0LatnPH\0LatnCM\0LatnNG\0LatnID\0LatnPG\0LatnNG\0DevaNP\0LatnCD\0LatnNG\0LatnCN\0LatnID\0LatnAU\0EthiER\0LatnNG\0LatnPG\0LatnNG\0LatnCM\0DevaNP\0LatnPG\0LatnPG\0LatnLR\0LatnID\0LatnMG\0LatnCR\0LatnML\0LatnPG\0LatnPG\0ThaiTH\0LatnBZ\0LatnNI\0LatnID\0LatnCD\0LatnID\0LatnCD\0LatnID\0LatnID\0LatnAU\0Latn001LatnID\0LatnCM\0LatnNG\0LatnML\0LatnNG\0LatnNG\0LatnGT\0LatnHN\0LatnGT\0LatnUS\0LatnSN\0LatnCA\0LatnPY\0LatnPE\0LatnBO\0LatnGT\0LatnMP\0LatnNC\0LatnPG\0LatnBO\0LatnBO\0LatnIN\0LatnVE\0LatnBO\0LatnBO\0LatnBO\0LatnBO\0LatnCA\0LatnBO\0LatnCO\0LatnCO\0LatnCO\0LatnCO\0LatnEC\0LatnBJ\0LatnPH\0LatnMM\0ThaiTH\0LatnNG\0LatnNG\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnCO\0LatnPH\0LatnCO\0LatnPE\0LatnBR\0LatnMZ\0LatnNG\0LatnNG\0LatnGW\0LatnTZ\0LatnMY\0LatnMX\0CakmBD\0LatnSV\0TeluIN\0LatnIN\0DevaIN\0GujrIN\0DevaIN\0DevaNP\0DevaIN\0HansCN\0LatnNG\0BengIN\0CyrlRU\0LatnUS\0LatnPY\0LatnMM\0LatnNG\0LatnNG\0LatnMM\0LatnNG\0LatnNG\0LatnNG\0LatnMM\0LatnPG\0LatnPH\0LatnUG\0TibtBT\0LatnGU\0LatnCO\0LatnMX\0LatnMX\0ArabTM\0LatnUS\0LatnMX\0LatnFM\0LatnUS\0CyrlRU\0LatnUS\0LatnUS\0LatnCA\0LatnMX\0LatnPE\0LatnMZ\0DevaNP\0LatnUS\0LatnMX\0LatnID\0LatnBJ\0LatnUS\0LatnNG\0DevaIN\0LatnIT\0LatnBR\0LatnMX\0LatnNC\0LatnUS\0LatnVE\0ArabKH\0LatnVN\0LatnUS\0CyrlRU\0LatnAO\0ChamVN\0LatnPG\0LatnPE\0LatnCR\0LatnRU\0LatnPG\0HansCN\0ArabIQ\0LatnNG\0LatnHR\0LatnMM\0LatnGH\0LatnTD\0LatnPG\0LatnNC\0CyrlRU\0LatnUS\0LatnTW\0LatnCM\0LatnNG\0LatnGT\0LatnNG\0LatnCA\0LatnMX\0ArabPK\0LatnGH\0LatnMM\0LatnIN\0LatnGH\0LatnUS\0LatnMX\0LatnMM\0LatnPH\0CyrlRU\0LatnMX\0LatnVN\0LatnBF\0SoyoMN\0LatnCO\0LatnID\0LatnVN\0LatnMM\0LatnIT\0LatnZA\0TibtIN\0LatnMM\0LatnVN\0LatnCN\0LatnMM\0LatnPE\0LatnMM\0LatnMX\0HansCN\0LatnCM\0LatnID\0LatnMX\0LatnMM\0LatnGB\0LatnFR\0LatnAU\0LatnMX\0LatnMX\0LatnPE\0LatnCO\0LatnEC\0ThaiTH\0LatnKE\0LatnMX\0LatnMX\0LatnUS\0LatnUS\0LatnCA\0CoptEG\0LatnUS\0LatnPE\0LatnSN\0LatnPE\0LatnMX\0LatnMX\0LatnPE\0LatnPE\0GrekGR\0LatnNR\0LatnGH\0LatnBF\0LatnPH\0LatnPE\0LatnCN\0LatnPE\0LatnCN\0CansCA\0LatnET\0LatnVC\0LatnVU\0LatnUS\0LatnCO\0LatnCA\0CyrlUA\0LatnST\0CansCA\0CansCA\0CansCA\0CansCA\0LatnMX\0LatnUS\0LatnAR\0LatnSC\0LatnAR\0LatnIN\0LatnVN\0LatnCA\0LatnNG\0LatnUS\0LatnMX\0LatnPL\0MymrMM\0LatnMM\0LatnSN\0LatnUS\0LatnMX\0HansCN\0LatnUS\0LatnUS\0LatnMM\0LatnMM\0LatnUS\0LatnMX\0LatnUS\0PaucMM\0LatnMX\0BengBD\0LatnMM\0LatnMX\0LatnUS\0DevaNP\0LatnCO\0LatnMX\0LatnPH\0TamlIN\0LatnMX\0TamlIN\0LatnMX\0CyrlRU\0LatnVN\0LatnCO\0LatnMX\0LatnKE\0LatnCO\0LatnPE\0LatnPA\0LatnBR\0LatnVE\0LatnUS\0LatnMX\0LanaCN\0LatnCM\0LatnMX\0LatnMX\0LatnIN\0LatnMX\0LatnTZ\0LatnMZ\0LatnTZ\0LatnMY\0LatnSN\0LatnNG\0LatnMX\0LatnBO\0LatnPH\0HansCN\0HebrCZ\0LatnMX\0LatnMM\0LatnTD\0LatnPG\0LatnPG\0LatnCM\0LatnGH\0LatnPG\0LatnTD\0LatnSD\0LatnUS\0LatnKE\0LatnNG\0LatnMM\0DevaIN\0CyrlRU\0LatnCI\0LatnTD\0LatnKE\0LatnPH\0LatnAU\0LatnID\0LatnML\0LatnNG\0LatnNG\0LatnID\0LatnID\0LatnML\0LatnNG\0LatnMY\0LatnAU\0LatnNG\0LatnID\0LatnNG\0LatnNG\0LatnCM\0LatnML\0LatnML\0LatnNG\0LatnML\0LatnPG\0ArabIN\0LatnVI\0LatnAU\0LatnSS\0LatnCG\0LatnTL\0LatnPG\0LatnAU\0LatnBJ\0CyrlRU\0LatnAU\0LatnML\0LatnID\0LatnSD\0LatnPG\0LatnLR\0ArabIR\0LatnNG\0ArabPK\0LatnID\0LatnUS\0LatnID\0LatnCA\0LatnCF\0BengIN\0LatnBR\0LatnPG\0LatnCD\0LatnGH\0LatnML\0LatnPH\0LatnBF\0LatnPG\0LatnPG\0LatnNG\0LatnBF\0LatnCF\0ArabSD\0LatnAU\0LatnCA\0LatnBF\0LatnAU\0LatnAU\0LatnPG\0LatnPG\0LatnAU\0DevaNP\0LatnAU\0LatnAO\0GujrIN\0GujrIN\0LatnAU\0LatnTZ\0LatnAU\0LatnNC\0DevaNP\0LatnAU\0LatnPG\0LatnSS\0LatnCI\0LatnSS\0LatnAU\0LatnKE\0LatnMX\0LatnCM\0LatnID\0LatnSD\0LatnSS\0LatnNG\0LatnSS\0LatnNG\0LatnIN\0LatnNA\0LatnSS\0LatnVU\0LatnID\0LatnCD\0LatnAU\0LatnAU\0LatnTD\0LatnAU\0LatnNE\0LatnAU\0LatnAU\0LatnAU\0LatnSR\0LatnML\0LatnAU\0LatnID\0LatnAU\0LatnPG\0LatnAU\0TibtBT\0LatnNG\0LatnID\0LatnMY\0LatnSS\0LatnCM\0CyrlRU\0LatnHR\0LatnIN\0LatnGA\0LatnML\0LatnPG\0LatnAU\0LatnCM\0MedfNG\0LatnMY\0ArabPK\0ArabPK\0LatnCM\0LatnCM\0LatnID\0LatnID\0LatnID\0LatnMY\0LatnAU\0LatnMZ\0LatnID\0LatnID\0LatnPG\0LatnTZ\0CyrlKG\0LatnID\0LatnCI\0LatnID\0LatnBF\0LatnCD\0LatnPG\0LatnID\0MymrMM\0MymrMM\0LatnID\0LatnBR\0LatnPG\0LatnPG\0LatnCN\0LatnTZ\0LatnPG\0LatnNG\0LatnID\0LatnPG\0LatnPG\0LatnCD\0LatnBJ\0LatnSB\0LatnBF\0LatnNG\0LatnZW\0LatnCM\0EthiET\0LatnGH\0LatnMY\0LatnPT\0TibtNP\0LatnMY\0LatnNG\0LatnAU\0LatnID\0LatnMY\0DevaNP\0EthiET\0LatnNL\0LatnTW\0DevaNP\0LatnKE\0LatnTD\0LatnNG\0LatnID\0OryaIN\0LatnML\0LatnCN\0LatnMY\0LatnCA\0LatnAU\0LatnML\0LatnML\0LatnML\0LatnML\0LatnMY\0LatnMY\0LatnML\0LatnML\0LatnML\0DevaNP\0LatnCM\0GujrIN\0LatnPG\0LatnPH\0LatnNC\0LatnKE\0DevaIN\0LatnPG\0LatnPG\0LatnPH\0LatnNL\0LatnID\0LatnPH\0LatnID\0LatnID\0LatnCM\0DevaNP\0LatnCN\0LatnID\0LatnID\0LatnML\0LatnPH\0LatnCM\0ThaaMV\0LatnPG\0LatnNG\0OryaIN\0LatnET\0Latn001LatnAU\0LatnPG\0LatnAU\0DevaNP\0LatnBF\0LatnAU\0LatnAU\0LatnPH\0LatnCI\0LatnML\0LatnAU\0LatnSN\0LatnNG\0LatnBF\0LatnAU\0TibtBT\0LatnNG\0LatnNG\0LatnAU\0LatnTD\0TibtBT\0LatnCD\0LatnAU\0LatnID\0LatnNG\0LatnPH\0LatnCG\0LatnCI\0LatnKE\0GrekGR\0CprtCY\0LatnNG\0LatnCD\0LatnNG\0LatnCI\0LatnIT\0LatnTZ\0LatnNG\0EgypEG\0LatnNG\0LatnID\0LatnPG\0LatnPG\0LatnGW\0LatnNG\0LatnNG\0LatnID\0LatnNG\0LatnBD\0LatnCM\0LatnMZ\0LatnNG\0LatnNG\0KaliMM\0LatnPG\0LatnPG\0LatnNG\0LatnKE\0LatnPG\0LatnNG\0LatnID\0LatnGF\0DevaNP\0LatnPG\0LatnMX\0LatnCM\0LatnPA\0LatnUS\0DevaIN\0LatnID\0LatnFR\0LatnCM\0LatnPG\0LatnKE\0LatnVN\0LatnID\0CyrlRU\0CyrlRU\0LatnPY\0LatnGB\0LatnNG\0LatnID\0LatnPG\0LatnID\0LatnNG\0LatnNG\0LatnPY\0LatnCI\0LatnNG\0TamlIN\0LatnVU\0LatnNG\0LatnPG\0LatnVU\0LatnAU\0LatnCN\0LatnID\0LatnID\0LatnBO\0GonmIN\0ArabIR\0LatnUS\0LatnCI\0LatnUS\0LatnUS\0LatnPH\0LatnNG\0LatnVU\0LatnCM\0LatnPG\0LatnNG\0ItalIT\0LatnNG\0LatnNG\0LatnID\0LatnMX\0CyrlRU\0LatnNG\0CyrlRU\0LatnCM\0LatnES\0LatnUS\0LatnKE\0LatnNG\0LatnNG\0LatnPG\0LatnGQ\0LatnPG\0LatnSB\0LatnPG\0LatnNG\0LatnPG\0LatnPG\0LatnCM\0LatnCM\0LatnNG\0LatnGQ\0LatnSN\0LatnSB\0LatnID\0LatnES\0ArabIR\0ArabIR\0LatnPH\0LatnSS\0LatnPG\0LatnML\0LatnTD\0ArabSD\0LatnNG\0LatnSA\0LatnTZ\0LatnNG\0LatnSE\0LatnPG\0LatnFJ\0LatnNG\0LatnNO\0LatnUS\0LatnID\0LatnNG\0LatnCM\0LatnAU\0LatnCD\0LatnZA\0LatnCM\0DevaIN\0LatnVU\0LatnZA\0LatnTD\0LatnBJ\0LatnPG\0LatnCD\0LatnBJ\0LatnPG\0LatnTW\0LatnGQ\0LatnPG\0LatnUS\0LatnID\0LatnDE\0LatnFR\0LatnFR\0LatnFR\0LatnPG\0LatnDE\0LatnDE\0LatnVU\0ArabCM\0LatnWF\0LatnBJ\0LatnGN\0LatnNE\0LatnTD\0LatnNG\0LatnBR\0LatnNE\0LatnIT\0LatnVU\0LatnCD\0LatnNG\0LatnPG\0LatnSD\0LatnNC\0LatnNA\0LatnTD\0LatnIN\0LatnPH\0LatnVE\0LatnPG\0LatnMD\0LatnPG\0LatnPG\0LatnPG\0LatnID\0LatnTL\0LatnPG\0HansCN\0LatnPG\0LatnPG\0OryaIN\0LatnPG\0GujrIN\0LatnPG\0TeluIN\0LatnPG\0LatnET\0LatnID\0LatnCF\0LatnAU\0LatnAU\0LatnPG\0LatnPG\0LatnCF\0LatnBJ\0LatnID\0OryaIN\0DevaIN\0GujrIN\0DevaIN\0LatnSS\0LatnCF\0LatnCF\0LatnNG\0LatnBJ\0LatnAU\0LatnCF\0LatnAU\0LatnBJ\0LatnNG\0ArabIR\0LatnPG\0LatnAU\0LatnGP\0LatnGD\0LatnPG\0LatnGF\0LatnVE\0OryaIN\0LatnAU\0LatnPG\0LatnNG\0LatnNG\0LatnPH\0LatnAU\0LatnCF\0LatnAU\0LatnTD\0LatnET\0LatnTD\0LatnPG\0CyrlRU\0LatnYE\0LatnPG\0LatnAU\0LatnNG\0DevaIN\0LatnNG\0LatnPG\0LatnLR\0LatnNG\0LatnID\0LatnNG\0LatnCA\0LatnID\0LatnTG\0LatnNG\0LatnNG\0LatnCF\0LatnID\0LatnGA\0LatnNG\0LatnSO\0LatnCD\0EthiET\0LatnPG\0LatnSB\0LatnLR\0LatnAU\0LatnAU\0ArabPK\0LatnAU\0LatnPG\0LatnPG\0LatnCI\0LatnPG\0ArabLY\0LatnGB\0DevaNP\0LatnMM\0LatnSB\0TfngMA\0ArabPK\0LatnPG\0TibtNP\0LatnAU\0LatnNG\0LatnZA\0LatnCM\0LatnCI\0ArabPK\0LatnAU\0LatnKI\0LatnPG\0CyrlRU\0LatnPG\0LatnVN\0LatnVN\0LatnCM\0LatnCA\0LatnCD\0LatnAU\0LatnCM\0ArabPK\0LatnAU\0LatnGH\0LatnAU\0ArabPK\0LatnPG\0LatnPG\0LatnCM\0LatnNG\0LatnAU\0LatnGN\0LatnZA\0LatnNG\0LatnTD\0CyrlRU\0ArabAF\0LatnTD\0ArabIR\0LatnAU\0LatnNG\0LatnLR\0LatnTD\0LatnNG\0LatnAU\0LatnSB\0LatnNG\0LatnPG\0LatnDE\0LatfDE\0LatnCM\0LatnCM\0LatnAU\0LatnPG\0EthiET\0LatnTZ\0LinbGR\0LatnNG\0LatnPY\0LatnBF\0LatnIN\0LatnES\0LatnCM\0LatnNG\0LatnTG\0LatnNG\0LatnAU\0LatnCI\0LatnBW\0LatnAU\0LatnPG\0LatnAU\0LatnMY\0LatnAU\0LatnPG\0LatnPG\0LatnBO\0LatnCF\0LatnCI\0LatnCO\0LatnPG\0LatnCI\0TibtBT\0EthiET\0LatnTZ\0LatnDE\0LatnPG\0DevaIN\0DevaIN\0LatnLR\0DevaIN\0LatnFJ\0LatnID\0LatnID\0LatnID\0LatnNL\0GothUA\0LatnCM\0LatnCI\0LatnTZ\0LatnCD\0LatnTD\0LatnNG\0LatnGH\0LatnPG\0LatnNG\0LatnBR\0LatnTD\0DevaIN\0LatnLR\0GrekGR\0LatnNG\0LatnPG\0LatnNG\0LatnSB\0LatnLR\0LatnMY\0LatnPG\0ArabDZ\0LatnID\0BengIN\0EthiET\0LatnLR\0LatnPG\0LatnPG\0LatnLR\0LatnPG\0LatnSN\0LatnPG\0LatnCF\0LatnPG\0LatnCH\0LatnBR\0LatnAU\0LatnNG\0LatnBR\0LatnCO\0LatnCI\0LatnAU\0LatnAU\0LatnCO\0LatnBO\0LatnET\0LatnUS\0LatnCO\0LatnBR\0LatnCO\0LatnAU\0LatnPY\0LatnGH\0LatnCR\0LatnVE\0LatnBJ\0LatnBF\0LatnKE\0LatnIM\0LatnPY\0LatnBR\0LatnPG\0LatnPG\0LatnBR\0LatnTD\0LatnNG\0LatnAU\0LatnBR\0LatnBR\0DevaNP\0LatnPG\0LatnAU\0LatnCI\0LatnNG\0ArabPK\0LatnET\0LatnTZ\0ArabPK\0LatnNG\0LatnCA\0LatnBW\0LatnAU\0LatnNG\0LatnUG\0ArabAF\0LatnAU\0LatnAU\0LatnGH\0LatnCI\0LatnPG\0LatnAU\0LatnNG\0LatnAU\0LatnCF\0LatnCM\0LatnET\0LatnPA\0LatnGY\0DevaNP\0LatnBO\0LatnAU\0LatnNG\0LatnSD\0ArabIR\0LatnID\0LatnUS\0ArabIR\0LatnID\0LatnET\0LatnGH\0LatnPG\0LatnCA\0LatnIN\0HansCN\0LatnVN\0LatnPG\0LatnTZ\0LatnPG\0LatnID\0LatnTZ\0EthiET\0LatnCA\0LatnCD\0LatnUS\0LatnCA\0LatnTZ\0ArabAF\0LatnCD\0LatnNG\0LatnSD\0HebrIL\0LatnTL\0LatnMX\0EthiET\0LatnTD\0LatnID\0LatnTZ\0LatnCA\0LatnCD\0LatnNA\0LatnPG\0LatnPG\0LatnSN\0LatnPG\0LatnNG\0LatnPE\0LatnUS\0DevaFJ\0LatnNG\0LatnPG\0TakrIN\0LatnCM\0LatnID\0LatnPH\0LatnBW\0LatnBR\0XsuxTR\0LatnVU\0LatnBR\0LatnID\0LatnTZ\0LatnCD\0ArabIN\0LatnPG\0LatnPG\0DevaIN\0LatnVN\0LatnMM\0HluwTR\0LatnCN\0LatnML\0PlrdCN\0LatnVN\0BopoCN\0LatnCN\0LatnCN\0LatnCN\0BopoCN\0LatnIN\0LatnCN\0LatnPG\0LatnID\0LatnVN\0LatnCN\0LatnCN\0LatnCN\0LatnCM\0ArabPK\0DevaIN\0LatnAO\0LatnBW\0LatnCN\0HmnpUS\0HansCN\0LatnPH\0ArabPK\0LatnSR\0LatnPG\0LatnSB\0LatnPG\0DevaIN\0LatnNG\0LatnNG\0ArabOM\0LatnUS\0DevaIN\0LatnAO\0LatnSS\0LatnCD\0LatnUS\0LatnTD\0LatnPG\0LatnID\0HaniCN\0DevaIN\0MymrMM\0LatnIN\0LatnPG\0LatnVN\0LatnID\0LatnCN\0LatnVN\0LatnAU\0SyrcTR\0LatnIN\0LatnPG\0LatnBR\0ArabIR\0HansCN\0ArabOM\0LatnHT\0LatnID\0LatnCO\0LatnTZ\0LatnID\0XsuxTR\0LatnPE\0LatnBW\0LatnID\0LatnMX\0LatnPG\0LatnPE\0LatnCL\0LatnPG\0LatnID\0LatnPG\0LatnCD\0LatnUS\0LatnCA\0LatnMX\0DevaNP\0LatnPE\0LatnMX\0LatnID\0LatnPE\0HebrIL\0CyrlRU\0LatnHT\0LatnMX\0LatnNC\0LatnID\0LatnMX\0LatnCI\0LatnUS\0LatnNG\0LatnCM\0ArmnAM\0LatnNA\0LatnNC\0LatnPG\0LatnPG\0LatnMY\0LatnNG\0LatnAU\0LatnNG\0LatnPH\0LatnVN\0LatnPH\0LatnNG\0LatnNG\0LatnNG\0LatnID\0LatnNG\0LatnBJ\0LatnNG\0LatnCO\0LatnKE\0LatnIN\0LatnNG\0LatnBJ\0LatnNG\0LatnPG\0LatnSS\0LatnNG\0LatnTL\0LatnNG\0LatnPH\0LatnPH\0LatnTG\0LatnVU\0LatnPH\0LatnCG\0LatnPH\0LatnPH\0LatnNG\0LatnNG\0LatnPG\0LatnNG\0LatnPG\0LatnBO\0LatnPG\0Latn001LatnNG\0LatnID\0LatnNG\0LatnID\0LatnAU\0LatnAU\0LatnNG\0LatnNG\0LatnBJ\0LatnNG\0LatnNG\0LatnUS\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnAU\0LatnCA\0LatnNG\0LatnNG\0LatnUG\0LatnTZ\0LatnID\0LatnZM\0LatnAU\0LatnCN\0LatnPH\0LatnMY\0LatnPH\0LatnPH\0LatnID\0LatnNG\0LatnPG\0LatnUS\0LatnPG\0LatnPG\0LatnID\0LatnIT\0LatnSS\0LyciTR\0LatnID\0LatnCO\0LatnUS\0CyrlRU\0LatnCO\0LatnPH\0LatnPG\0LatnPE\0MymrMM\0Latn001EthiET\0LatnPG\0LatnUS\0LatnPG\0LatnPG\0LatnPE\0LatnNG\0LatnID\0LatnID\0LatnNG\0LatnTZ\0LatnBR\0TamlIN\0LatnID\0LatnPH\0LatnPG\0LatnPE\0LatnPH\0LatnNG\0LatnNG\0ArabAF\0LatnID\0LatnTZ\0LatnNG\0LatnHR\0LatnCM\0LatnPH\0LatnID\0LatnBO\0LatnPH\0HebrIT\0CyrlRU\0LatnNG\0LatnBO\0LatnPG\0LatnNG\0LatnPH\0LatnPH\0LatnNG\0LatnID\0LatnPH\0LatnGT\0CansCA\0LatnCN\0LatnPH\0LatnPH\0HebrIL\0LatnPH\0LatnPG\0LatnID\0LatnPG\0LatnMX\0LatnGT\0LatnNG\0LatnCM\0LatnCG\0LatnRU\0LatnNG\0LatnNG\0LatnNG\0LatnBR\0LatnNG\0LatnGT\0ArabGN\0LatnPG\0LatnNG\0LatnMY\0LatnSB\0LatnMY\0LatnID\0LatnJM\0LatnAU\0LatnAU\0LatnID\0LatnNC\0ArabAF\0LatnID\0LatnID\0LatnAU\0LatnNC\0HebrIL\0LatnAU\0LatnID\0LatnPG\0LatnNG\0ArabLY\0Latn001LatnID\0LatnBR\0LatnCM\0LatnAU\0CyrlUA\0TibtIN\0ArabPK\0CyrlRU\0LatnPE\0DevaNP\0LatnVN\0LatnID\0LatnCI\0LatnID\0LatnNG\0LatnNG\0LatnPG\0LatnTD\0LatnCD\0GeorGE\0LatnNG\0LatnCM\0LatnMY\0HebrUA\0LatnCM\0LatnNG\0LatnHN\0LatnNG\0LatnNG\0LatnAU\0LatnPG\0LatnCM\0LatnTZ\0LatnCN\0LatnEC\0LatnCN\0HangKR\0LatnNG\0LatnID\0MymrMM\0LatnPG\0LatnNG\0LatnSD\0LatnPG\0LatnNG\0LatnTZ\0LatnID\0LatnNG\0DevaNP\0LatnMM\0LatnGH\0LatnNG\0LatnPG\0LatnMX\0TakrIN\0ArabPK\0LatnAU\0LatnNG\0LatnET\0DevaIN\0DevaIN\0LatnCD\0LatnCI\0ArabPK\0LatnBO\0LatnML\0HebrPS\0HebrIL\0LatnPE\0LatnVN\0HebrIL\0LatnNG\0LatnNG\0LatnVE\0LatnBR\0LatnNG\0LatnCI\0LatnNG\0LatnAU\0LatnNG\0DevaNP\0LatnSD\0OryaIN\0LatnNG\0LatnBR\0LatnBR\0LatnDK\0LatnNG\0LatnNG\0OryaIN\0LatnID\0LatnSR\0LatnID\0LatnGH\0TibtCN\0HebrIL\0LatnTD\0CyrlUZ\0LatnDZ\0LatnMM\0LatnNG\0LatnMY\0LatnCF\0LatnNG\0LatnNG\0LatnPH\0LatnKE\0LatnML\0CyrlRU\0LatnPE\0LatnBR\0BaliID\0LatnID\0LatnBR\0LatnAU\0LatnBR\0LatnBR\0CyrlRU\0LatnAU\0TibtIN\0LatnCO\0LatnID\0LatnCD\0LatnPG\0LatnTD\0LatnPG\0LatnCF\0LatnSS\0LatnTG\0LatnPG\0LatnET\0LatnGA\0LatnPG\0ArabPK\0LatnID\0LatnPG\0LatnPG\0ArabNE\0LatnNG\0CyrlRU\0LatnPG\0LatnNG\0LatnID\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnGW\0LatnZW\0LatnPG\0LatnCF\0LatnUG\0LatnPG\0LatnSD\0LatnNG\0LatnNG\0LatnPG\0LatnTZ\0LatnCD\0LatnCD\0ArabDZ\0LatnTZ\0LatnAU\0LatnTZ\0LatnAU\0LatnTZ\0LatnPG\0LatnCD\0LatnTG\0LatnUG\0LatnUG\0LatnNC\0LatnNG\0LatnNG\0LatnZW\0LatnNG\0BengIN\0LatnLT\0ThaiTH\0LatnID\0LatnNG\0LatnID\0LatnCM\0LatnGA\0LatnSD\0LatnTZ\0LatnUS\0LatnTG\0LatnSD\0LatnPG\0LatnID\0LatnGT\0LatnCD\0LatnTL\0LatnCM\0LatnUG\0LatnTD\0LatnNG\0CyrlRU\0LatnTG\0MlymIN\0LatnPG\0DevaIN\0TeluIN\0LatnNG\0KndaIN\0DevaIN\0TeluIN\0KndaIN\0TamlIN\0LatnIN\0KndaIN\0MlymIN\0TamlIN\0DevaIN\0LatnCM\0ArabIR\0LatnCM\0LatnCI\0DevaIN\0DevaIN\0DevaIN\0DevaIN\0DevaIN\0LatnIN\0LatnIN\0DevaIN\0DevaIN\0LatnBF\0LatnCD\0LatnCI\0LatnID\0LatnID\0LatnPG\0DevaNP\0LatnBR\0LatnAU\0LatnSD\0LatnID\0LatnID\0LatnAU\0LatnNG\0LatnPG\0LatnID\0LatnID\0LatnID\0TibtNP\0LatnIN\0TaluCN\0LatnID\0LatnID\0LatnID\0ThaiLA\0TibtCN\0LatnID\0LatnNG\0LatnPG\0DevaIN\0BrahIR\0LatnID\0LatnML\0LatnIN\0LatnPG\0MymrIN\0LatnAO\0CyrlRU\0ArabPK\0LatnCD\0LatnCD\0LatnPG\0LatnKE\0LatnTD\0LatnSD\0LatnUS\0LatnCM\0LatnTD\0DevaNP\0LatnID\0LatnPG\0LatnPG\0LatnNG\0CyrlRU\0LatnUS\0DevaNP\0LatnID\0LatnPG\0LatnPG\0LatnTR\0LatnTZ\0LatnPG\0LatnIN\0LatnID\0LatnTZ\0LatnNA\0LatnID\0LatnGT\0LatnID\0LatnPG\0LatnID\0LaooLA\0CyrlRU\0LatnSB\0LatnAZ\0LatnID\0DevaNP\0LatnVN\0LatnAU\0DevaIN\0MymrMM\0LatnUS\0LatnID\0LatnPG\0ThaiTH\0LatnUS\0LatnPG\0LatnPG\0TibtBT\0LatnNG\0LatnID\0LatnPG\0LatnNG\0LatnGN\0TibtIN\0LatnPH\0LanaMM\0LatnTZ\0LatnCM\0LatnSB\0LatnID\0LatnNG\0LatnSD\0LatnAU\0LatnCD\0LatnNG\0LatnNG\0DevaNP\0LatnNG\0LatnID\0LatnCG\0LatnID\0LatnAU\0LatnCA\0LatnGL\0LatnUS\0LatnMX\0LatnCM\0LatnAU\0DevaNP\0LatnTD\0LatnPH\0LatnPG\0LatnID\0ArabIR\0LatnNG\0LatnPH\0LatnPG\0LatnKE\0LatnNG\0LatnPG\0LatnPG\0DevaNP\0LatnPK\0LatnPG\0LatnLR\0LatnVU\0LatnID\0LatnPG\0LatnID\0LatnID\0LatnGH\0LatnAO\0LatnCN\0LatnPH\0LatnCM\0LatnPG\0LatnPG\0LatnPG\0LatnNG\0DevaIN\0LatnPH\0LatnPH\0LatnIN\0LatnPG\0LatnPG\0LatnCM\0LatnET\0LatnPG\0LatnID\0LatnPG\0LatnBR\0LatnCD\0LatnPG\0LatnNG\0ArabIR\0LatnNG\0LatnPH\0LatnID\0LatnPH\0LatnGW\0LatnNG\0LatnGT\0LatnSL\0LatnID\0LatnBR\0DevaIN\0LatnSL\0LatnCM\0LatnMY\0LatnPG\0LatnMY\0LatnBR\0LatnGN\0LatnPG\0LatnNA\0LatnID\0LatnCD\0LatnBF\0LatnPG\0LatnNG\0LatnID\0LatnSS\0LatnNG\0LatnCO\0LatnCG\0CyrlRU\0LatnPG\0LatnUG\0LatnPG\0LatnGA\0LatnFM\0LatnCM\0LatnTD\0LatnNG\0LatnNG\0LatnUS\0LatnPG\0LatnNG\0LatnCO\0LatnID\0LatnLR\0LatnPG\0LatnFM\0LatnGH\0LatnID\0LatnBR\0LatnNG\0LatnCD\0LatnVN\0LatnBR\0LatnTG\0LatnID\0LatnPG\0LatnID\0CyrlRU\0LatnID\0LatnPG\0LatnPG\0CyrlRU\0LatnUG\0LatnPG\0LatnPG\0LatnPG\0SyrcIQ\0LatnPH\0LatnPG\0LatnBF\0LatnTZ\0LatnPG\0LatnPG\0LatnBJ\0LatnPG\0LatnCI\0LatnZM\0LatnLR\0LatnTD\0LatnBR\0LatnMY\0LatnGN\0LatnMY\0LatnZA\0LatnID\0LatnPG\0LatnCM\0EthiET\0LatnZA\0LatnNG\0DevaNP\0LatnUS\0CyrlRU\0LatnTL\0LatnBR\0LatnVU\0LatnNG\0LatnSL\0LatnPH\0CyrlRU\0LatnRU\0LatnLR\0LatnLR\0LatnNG\0KhmrKH\0LatnSS\0LatnNE\0DevaIN\0KhmrKH\0LatnLR\0LatnSN\0LatnAZ\0LatnID\0LatnTZ\0LatnPH\0LatnPG\0LatnPG\0LatnCM\0LatnSB\0LatnDE\0LatnPG\0LatnPG\0LatnUS\0LatnPG\0LatnNG\0LatnPH\0LatnNG\0LatnCF\0LatnNG\0LatnPG\0LatnLR\0LatnBF\0MymrIN\0LatnCD\0MymrMM\0LatnID\0DevaIN\0LatnVN\0EthiET\0LatnNG\0LatnAU\0DevaNP\0LatnCD\0LatnAU\0LatnTD\0LatnID\0LatnCI\0LatnPG\0ArabIR\0LatnPG\0LatnBR\0LatnPG\0PlrdCN\0LatnPH\0LatnID\0LatnID\0LatnCD\0LatnVN\0LatnUS\0LatnBR\0LatnCD\0LatnNA\0LatnNG\0LatnID\0LatnPG\0LatnPG\0LaooLA\0LatnNG\0LatnNG\0LatnBR\0LatnTZ\0LatnID\0LatnNG\0CyrlRU\0LatnER\0LatnPG\0LatnPG\0LatnBR\0LatnGH\0LatnCA\0LatnUS\0LatnID\0LatnCF\0LatnAU\0LatnAU\0LatnCL\0CyrlRU\0CyrlRU\0LatnID\0LatnPG\0LatnID\0LatnMY\0LatnTD\0LatnPG\0LatnID\0LatnTD\0LatnCM\0LatnMM\0LatnCM\0LatnCO\0LatnID\0LatnID\0MymrMM\0LatnID\0MymrMM\0LatnID\0LatnID\0ArabPK\0KaliMM\0LatnID\0LatnGB\0LatnBR\0LatnNG\0LatnCG\0LatnSB\0LatnID\0LatnSB\0LatnTD\0LatnID\0LatnCO\0LatnPG\0LatnCA\0LatnNG\0LatnNA\0LatnNA\0LatnPG\0LatnCI\0LatnID\0LatnCD\0LatnID\0LatnCM\0LatnTD\0LatnSR\0DevaIN\0LatnAO\0LatnAO\0LatnPG\0LatnCI\0LatnET\0LatnBN\0MymrMM\0LatnMY\0LatnTD\0MymrMM\0ThaiTH\0LatnMY\0LatnBR\0ArabPK\0LatnID\0LatnPG\0LatnPG\0LatnPG\0LatnCG\0LatnVN\0LatnPG\0LatnTZ\0LatnPH\0LatnPG\0LatnID\0LatnGH\0LatnCI\0LatnPG\0LatnUS\0LatnMY\0LatnPH\0LatnPH\0LatnUS\0LatnCF\0LatnPH\0LatnID\0LatnTD\0LatnBR\0LatnMY\0LatnID\0KaliMM\0DevaNP\0DevaIN\0LatnPG\0LatnPG\0LatnBR\0LatnBF\0LatnID\0LatnCI\0LatnID\0LatnPG\0LatnID\0LatnMY\0LatnSB\0LatnID\0LatnID\0LatnMW\0LatnGA\0LatnID\0LatnCM\0LatnMY\0LatnID\0LatnID\0LatnBR\0LatnID\0LatnCD\0LatnID\0LatnVA\0LatnPH\0LinaGR\0LatnMX\0HebrIL\0DevaIN\0LatnTZ\0ArabPK\0LatnMW\0LatnUG\0LatnCD\0LatnZM\0LatnNG\0LatnTD\0LatnVN\0LatnGH\0LatnTG\0LatnID\0LatnID\0LatnIN\0LatnPG\0LatnPG\0CyrlRU\0DevaIN\0LatnCM\0TibtIN\0LatnPH\0DevaIN\0LatnLA\0LaooLA\0LatnPG\0DevaNP\0LatnVN\0LatnPG\0LatnPG\0LatnID\0LatnID\0LatnAU\0LatnAU\0LatnID\0LatnID\0LatnID\0LatnID\0LatnAO\0LatnID\0LatnPG\0ThaiCN\0LatnID\0LatnID\0LatnCI\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnCG\0LatnNG\0LatnNG\0LatnNG\0LatnGN\0Latn001LatnNG\0LatnNG\0LatnNG\0LatnCD\0LatnZM\0LatnBO\0LatnCD\0LatnBF\0LatnGH\0LatnZM\0LatnPG\0LatnCD\0LatnPG\0LatnCD\0LatnCM\0LatnSV\0LatnCM\0LepcIN\0LatnPG\0LatnPG\0LatnCD\0LatnPG\0LatnPG\0LatnID\0LatnID\0LatnID\0LatnID\0CyrlRU\0LatnCM\0Latn001LatnUG\0LatnSB\0LatnSB\0LatnUG\0LatnVN\0LatnID\0LatnVU\0LatnSB\0LatnCD\0LatnET\0LatnSS\0LatnGH\0LatnSB\0LatnPG\0LatnSB\0LatnCD\0LatnVN\0LatnID\0LatnCN\0DevaNP\0LatnMY\0SyrcSY\0LatnVU\0LatnCN\0LatnNL\0LatnSL\0LatnPG\0LatnCN\0LatnPG\0LatnCD\0DevaNP\0LatnGH\0LatnPG\0LatnCD\0LatnCA\0LatnID\0LatnGH\0LatnET\0LatnLR\0LisuCN\0LatnSD\0LatnLV\0LatnID\0LatnID\0LatnCF\0LatnCD\0LatnAU\0LatnID\0LatnID\0LatnID\0LatnID\0LatnAU\0LatnAU\0LatnTL\0LatnKE\0LatnVN\0LatnBR\0LatnUG\0TibtBT\0ArabIR\0LatnMY\0LatnPG\0LatnAU\0LatnVU\0LatnKE\0LatnSS\0LatnKE\0LatnUS\0LatnAU\0LatnSS\0LatnNG\0LatnMZ\0LatnGN\0LatnIT\0LatnPG\0LatnPG\0LatnID\0LatnCG\0LatnAU\0LatnMY\0LatnPG\0LatnID\0LatnTD\0LatnVU\0LatnID\0LatnSB\0LatnFJ\0LatnGN\0LatnVU\0LatnAU\0LatnSD\0LatnTD\0LatnID\0LatnPG\0DevaNP\0LatnCD\0LatnID\0LatnIN\0LatnVU\0TeluIN\0LatnCM\0LatnID\0LatnID\0LatnVU\0LatnFJ\0LatnUS\0LatnCM\0LatnID\0LatnCD\0LatnCF\0LatnNA\0LatnID\0LatnHU\0LatnMY\0LatnPG\0LatnAU\0LatnCF\0LatnPG\0LatnVU\0LatnCM\0LatnNG\0LatnAU\0LatnCD\0LatnID\0LatnBF\0LatnPH\0LatnID\0LatnCD\0LatnSS\0LatnCI\0LatnPG\0LatnSL\0LatnCD\0LatnLR\0LatnMW\0LatnCD\0LatnNG\0LatnCD\0LatnCI\0LatnPG\0LatnSS\0LatnUS\0LatnMY\0LatnID\0DevaNP\0LatnZM\0LatnVU\0LatnID\0LatnMM\0PlrdCN\0LatnSS\0LatnSS\0LatnMY\0ArabIR\0LatnAU\0LatnKE\0ArabPK\0ArabIR\0LatnKE\0LatnID\0LatnSD\0LatnID\0LatnVU\0LatnVU\0ArabIR\0HebrIL\0LatnCD\0LatnMM\0LatnUG\0LatnPG\0ArabPK\0HantCN\0LatnLV\0LatnUG\0LatnID\0LatnBR\0LatnKE\0LatnKE\0LatnID\0LatnCD\0LatnCD\0LatnUG\0LatnRU\0LatnZM\0LatnPG\0HansCN\0LatnUS\0LatnCD\0TibtBT\0LatnSS\0LatnAO\0LatnZM\0LatnKE\0LatnGA\0LatnCU\0LatnID\0LatnIN\0LatnUS\0DevaNP\0ArabOM\0LatnCM\0LatnKE\0ArabIR\0LatnTL\0LatnLA\0LatnSB\0LatnCD\0LatnID\0LatnCD\0LatnID\0LatnKE\0LatnVN\0ThaiTH\0ThaiCN\0LatnSS\0LatnID\0LatnVU\0LatnPG\0TibtBT\0LatnZM\0HantCN\0LatnVU\0LatnMM\0LatnTR\0LatnMX\0LatnMX\0LatnID\0LatnNG\0LatnCM\0DevaIN\0LatnMX\0LatnID\0LatnGT\0LatnGM\0LatnMX\0LatnKE\0LatnMX\0LatnMX\0LatnBR\0LatnGH\0LatnID\0LatnMX\0LatnPH\0LatnPH\0LatnBR\0LatnPH\0LatnSG\0LatnPG\0LatnPH\0LatnBR\0LatnPG\0LatnBR\0LatnCG\0LatnCO\0LatnCM\0LatnCO\0LatnPG\0LatnCO\0LatnPH\0LatnPH\0LatnNG\0LatnGN\0LatnPG\0LatnPG\0ArabPK\0LatnMX\0LatnPY\0LatnPE\0LatnPG\0LatnPE\0LatnMX\0LatnPE\0LatnVE\0LatnVE\0LatnPG\0LatnNG\0LatnAO\0LatnCO\0LatnMY\0LatnTD\0LatnMX\0LatnCM\0LatnPG\0LatnPG\0LatnCM\0LatnCM\0LatnCM\0LatnPG\0LatnTD\0LatnCF\0LatnPG\0LatnPG\0LatnNG\0LatnPG\0LatnPG\0LatnCM\0ArabTD\0CyrlRU\0LatnTD\0LatnPH\0LatnCD\0LatnCD\0LatnCD\0LatnCD\0LatnCF\0LatnCD\0LatnCD\0LatnID\0LatnPG\0LatnCG\0LatnCG\0LatnMX\0LatnCG\0EthiET\0EthiET\0LatnBR\0LatnCM\0LatnPG\0LatnAU\0LatnPG\0LatnPG\0LatnMX\0LatnID\0LatnPG\0LatnMY\0LatnAU\0LatnSL\0LatnMY\0LatnAU\0LatnCM\0LatnKE\0LatnTD\0LatnPG\0LatnPG\0LatnLR\0LatnNG\0ArabDZ\0LatnUS\0ArabTH\0LatnID\0LatnCD\0LatnCM\0LatnMU\0LatnCM\0LatnGN\0LatnCM\0ArabCM\0LatnCM\0LatnCM\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnID\0LatnTG\0LatnAU\0LatnPG\0LatnAO\0LatnSN\0LatnPG\0LatnET\0LatnMX\0LatnSS\0LatnMG\0LatgIE\0LatnTD\0LatnSS\0LatnSS\0LatnTD\0LatnID\0LatnCM\0LatnMZ\0LatnNG\0LatnNG\0LatnID\0LatnPG\0LatnTL\0LatnCF\0LatnCM\0DevaNP\0LatnTZ\0LatnZM\0LatnTZ\0LatnPG\0LatnPG\0LatnTZ\0LatnTZ\0LatnTZ\0LatnTZ\0LatnMH\0LatnGA\0LatnMX\0LatnTZ\0LatnMY\0LatnPG\0LatnAU\0LatnUG\0ArabAF\0LatnCM\0LatnPG\0LatnMZ\0LatnIT\0LatnZM\0LatnID\0LatnUS\0LatnID\0LatnVE\0LatnIN\0LatnBW\0LatnMM\0LatnID\0LatnID\0LatnUS\0LatnMX\0LatnCA\0MandIQ\0LatnMX\0LatnCM\0LatnMX\0LatnMX\0LatnMX\0LatnCM\0LatnUS\0LatnMX\0LatnMX\0LatnID\0LatnMX\0LatnMX\0LatnNI\0LatnMX\0LatnMX\0LatnMX\0LatnPG\0LatnMX\0LatnMX\0LatnMX\0LatnTL\0LatnMX\0LatnUS\0LatnTD\0LatnCN\0LatnTZ\0LatnCN\0LatnPG\0LatnPG\0DevaIN\0LatnPG\0LatnPG\0MlymIN\0MlymIN\0LatnNG\0DevaIN\0TeluIN\0MlymIN\0LatnIN\0LatnBD\0LatnUS\0DevaNP\0LatnCI\0DevaIN\0LatnPG\0DevaIN\0LatnNG\0ArabPK\0LatnFM\0LatnCM\0LatnBJ\0ThaiTH\0LatnID\0LatnNG\0LatnPG\0LatnPG\0LatnMX\0LatnNC\0LatnVU\0LatnCG\0LatnPH\0LatnID\0LatnTL\0LatnVU\0LatnCM\0LatnVN\0LatnPG\0ThaiLA\0LatnPG\0LatnID\0LatnTD\0LatnKE\0LatnVU\0LatnSB\0LatnSN\0LatnPG\0LatnCM\0LatnSD\0LatnSB\0LatnVU\0LatnCM\0LatnVU\0LatnPH\0LatnNG\0LatnID\0LatnMX\0LatnCN\0LatnVU\0LatnNG\0LatnVU\0LatnBR\0LatnPG\0LatnVU\0LatnPH\0LatnPG\0LatnPG\0LatnPG\0LatnCN\0LatnPG\0LatnCM\0LatnBR\0LatnVU\0LatnPG\0LatnTD\0LatnCD\0LatnPG\0LatnID\0MongCN\0LatnBR\0LatnTD\0LatnCM\0LatnVN\0LatnCD\0ArabAF\0LatnGM\0LatnVU\0LatnPG\0LatnVN\0LatnCN\0LatnMY\0LatnUS\0CyrlRU\0LatnID\0LatnSB\0MymrMM\0LatnID\0LatnMZ\0LatnID\0LatnRO\0LatnCI\0LatnAR\0LatnUS\0LatnCA\0LatnID\0LatnCA\0LatnNG\0LatnCG\0LatnID\0LatnNI\0LatnVN\0LatnBZ\0LatnID\0LatnSD\0LatnBF\0LatnCO\0LatnTD\0LatnUS\0LatnCG\0LatnPG\0LatnET\0LatnTD\0LatnTZ\0LatnAU\0LatnAU\0LatnBR\0LatnET\0LatnTD\0LatnAU\0LatnCM\0LatnAU\0LatnTD\0LatnPG\0LatnMX\0LatnPG\0LatnPG\0LatnPG\0LatnBR\0LatnSB\0LatnPG\0LatnPG\0LatnBR\0LatnPG\0LatnBR\0LatnPG\0LatnID\0ThaiTH\0LatnID\0LatnCM\0LatnID\0LatnPG\0LatnID\0LatnID\0LatnMX\0LatnID\0LatnID\0LatnPH\0LatnBJ\0LatnPF\0LatnID\0LatnID\0LatnID\0LatnMY\0LatnID\0LatnID\0LatnTH\0LatnSS\0LatnPG\0LatnPG\0LatnID\0LatnID\0LatnPG\0ThaiTH\0LatnVU\0LatnUS\0DevaNP\0LatnID\0LatnIN\0LatnIN\0CyrlRU\0LatnNC\0LatnFM\0LatnVU\0LatnSB\0MrooBD\0LatnVU\0LatnPF\0DevaIN\0LatnVU\0LatnNG\0LatnCM\0LatnPF\0LatnPH\0LatnID\0LatnPH\0LatnID\0LatnPH\0LatnTD\0LatnID\0LatnID\0LatnMG\0LatnMY\0LatnCD\0LatnPH\0LatnID\0LatnPH\0LatnVU\0LatnID\0LatnBR\0LatnNC\0LatnID\0LatnPG\0LatnCM\0LatnGW\0LatnPG\0LatnPG\0LatnPG\0LatnPH\0LatnCI\0LatnPG\0LatnID\0LatnSB\0LatnPG\0LatnID\0LatnID\0LatnPG\0LatnID\0LatnCM\0LatnNG\0CyrlRU\0LatnNI\0LatnMX\0LatnBO\0LatnVN\0DevaIN\0LatnPE\0LatnVU\0LatnMX\0LatnPG\0LatnPH\0LatnMX\0LatnPG\0LatnCM\0LatnTD\0LatnCM\0CyrlRU\0LatnEC\0LatnCM\0LatnSS\0LatnID\0LatnTD\0TibtNP\0LatnPG\0LatnCM\0LatnCN\0LatnSS\0LatnUS\0DevaIN\0LatnKE\0TamlIN\0LatnPG\0LatnCM\0EthiET\0LatnPG\0LatnID\0ArabPK\0MongCN\0LatnMX\0LatnTD\0LatnPG\0LatnAU\0LatnPG\0LatnSB\0LatnID\0LatnPG\0LatnID\0LatnID\0LatnVU\0LatnTD\0LatnMY\0LatnTZ\0LatnID\0ArabPK\0EthiET\0LatnPG\0LatnPG\0LatnPG\0LatnTZ\0LatnAU\0LatnPG\0LatnPG\0LatnVU\0LatnML\0LatnPT\0LatnTD\0LatnZM\0LatnVU\0LatnAU\0LatnMM\0DevaIN\0LatnKE\0MymrMM\0LatnSS\0LatnID\0HmnpUS\0LatnCD\0LatnMX\0LatnMX\0LatnZW\0LatnID\0LatnVU\0LatnCM\0LatnAO\0LatnCD\0LatnES\0LatnIN\0LatnPG\0LatnBJ\0LatnPG\0LatnID\0LatnZM\0LatnMX\0LatnMX\0LatnMY\0LatnMX\0LatnMX\0LatnCM\0LatnMX\0LatnPG\0LatnCI\0LatnMX\0LatnID\0LatnTD\0LatnCD\0LatnGA\0LatnET\0LatnCM\0LatnUS\0LatnSS\0LatnML\0LatnID\0EthiET\0LatnBR\0LatnPE\0LatnBR\0CyrlRU\0LatnPG\0LatnUG\0LatnCO\0MandIR\0LatnMX\0ArabDZ\0LatnCM\0LatnPG\0LatnAR\0LatnMX\0LatnLR\0LatnNG\0LatnMX\0LatnNG\0ArabIR\0LatnBR\0LatnBO\0LatnID\0LatnBR\0LatnMY\0LatnPG\0LatnCF\0LatnGH\0LatnGY\0LatnPG\0LatnNR\0LatnID\0LatnBR\0LatnPG\0LatnID\0LatnPG\0LatnIN\0LatnGN\0LatnPG\0LatnPG\0LatnAU\0HansCN\0DevaNP\0LatnIT\0LatnNA\0LatnNG\0LatnPG\0LatnNG\0LatnGH\0LatnPG\0LatnAU\0LatnMX\0LatnNO\0LatnAO\0LatnNG\0LatnIN\0LatnCD\0LatnIN\0LatnNG\0LatnIN\0LatnAU\0LatnPG\0LatnCF\0LatnID\0LatnNG\0LatnNG\0LatnID\0LatnNG\0LatnIN\0LatnIN\0LatnCM\0LatnCD\0LatnPG\0LatnPG\0LatnIN\0LatnPG\0DevaNP\0LatnPG\0LatnPG\0LatnCA\0LatnMX\0LatnMX\0LatnMX\0LatnAU\0LatnMX\0LatnPG\0LatnPG\0LatnPG\0LaooLA\0LatnCM\0LatnIN\0LatnGH\0LatnMX\0LatnUS\0LatnZW\0LatnCG\0LatnCM\0LatnMZ\0LatnNG\0CyrlRU\0LatnTZ\0LatnTZ\0LatnNG\0LatnTZ\0LatnCD\0LatnCD\0LatnTD\0LatnCG\0LatnUG\0LatnAO\0LatnNG\0LatnCD\0LatnCM\0LatnSN\0LatnCD\0LatnID\0LatnCF\0LatnSS\0LatnID\0LatnCI\0LatnID\0LatnNG\0LatnNC\0CyrlRU\0TibtBT\0XsuxTR\0LatnPG\0LatnNC\0LatnNC\0LatnNC\0LatnVN\0LatnMX\0LatnID\0LatnPG\0Latn001DevaNP\0LatnPG\0LatnCI\0LatnUS\0LatnID\0LatnNG\0LatnSB\0LatnGH\0LatnCM\0LatnNA\0LatnCD\0LatnCD\0LatnCD\0LatnCF\0LatnCM\0LatnCF\0LatnZA\0LatnNG\0LatnCM\0LatnAU\0LatnMZ\0LatnFM\0LatnCM\0LatnTZ\0LatnTZ\0LatnSB\0LatnNG\0LaooLA\0LatnMX\0LatnCM\0LatnNG\0LatnNG\0LatnCM\0LatnCG\0LatnAU\0LatnCI\0LatnMX\0LatnPY\0LatnMX\0LatnAU\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnPG\0LatnMX\0LatnMX\0LatnBW\0LatnMX\0LatnCM\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnID\0LatnPG\0LatnAU\0LatnTD\0LatnPG\0LatnAU\0LatnTZ\0LatnPG\0LatnID\0LatnID\0LatnTZ\0LatnNG\0CyrlRU\0LatnKE\0LatnID\0LatnPG\0TeluIN\0LatnNU\0CyrlRU\0LatnPG\0LatnCD\0LatnCD\0LatnPG\0LatnNG\0LatnIN\0LatnTZ\0LatnIN\0LatnAU\0LatnCM\0LatnSS\0LatnIN\0LatnIN\0LatnIN\0LatnNG\0LatnID\0LatnSR\0LatnAU\0LatnCG\0LatnCM\0LatnIN\0LatnZM\0LatnIN\0LatnCM\0LatnIN\0LatnSB\0LatnIN\0LatnPG\0LatnIN\0LatnIN\0LatnID\0LatnVU\0LatnPG\0LatnAO\0LatnGH\0LatnGH\0LatnFM\0LatnID\0LatnTZ\0LatnCI\0LatnMW\0LatnCD\0LatnNG\0LatnNG\0LatnCM\0LatnID\0LatnKE\0LatnSB\0ArabAF\0LatnCD\0LatnID\0ArabPK\0LatnCD\0LatnMM\0LatnGH\0LatnMX\0LatnAU\0DevaIN\0LatnAU\0LatnSB\0LatnIN\0LatnVU\0LatnTD\0LatnGA\0LatnIN\0LatnIN\0LatnCM\0LatnIN\0LatnNG\0LatnCF\0LatnVU\0LatnCM\0DevaNP\0LatnBW\0LatnIN\0LatnAU\0LatnZW\0LatnCM\0LatnVU\0LatnFM\0LatnUS\0LatnAU\0LatnPG\0LatnPG\0LatnTG\0LatnAU\0LatnCD\0LatnTD\0LatnVU\0LatnAO\0LatnPG\0LatnIN\0LatnCM\0LatnID\0LatnET\0LatnPG\0LatnIN\0LatnPG\0LatnTD\0WchoIN\0LatnTZ\0LatnAU\0LatnUS\0LatnGH\0LatnAU\0LatnBF\0LatnAU\0LatnCM\0LatnCO\0LatnPG\0LanaTH\0DevaIN\0LatnPG\0CyrlRU\0LatnPG\0DevaIN\0LatnCO\0LatnUS\0RunrSE\0LatnPG\0LatnCD\0YiiiCN\0LatnPE\0LatnPG\0Latn001LatnTZ\0LatnTD\0TibtBT\0LatnMM\0LatnIN\0LatnMX\0LatnPG\0LatnIN\0LatnID\0LatnIN\0LatnSB\0LatnID\0LatnBJ\0LatnBJ\0LatnAO\0LatnID\0LatnPG\0LatnMM\0LatnNG\0LatnMM\0LatnZA\0LatnGA\0LatnER\0LatnIN\0LatnJE\0LatnVU\0LatnIN\0LatnAU\0LatnAU\0LatnMY\0RunrGB\0LatnIT\0LatnCN\0LatnAU\0LatnPG\0LatnIN\0LatnZA\0LatnNG\0YiiiCN\0LatnZM\0YiiiCN\0LatnTZ\0LatnCM\0CansCA\0LatnIN\0LatnPG\0LatnUS\0LatnPG\0TnsaIN\0LatnMX\0YiiiCN\0LatnVU\0LatnAO\0LatnID\0LatnUS\0LatnMY\0LatnAU\0LatnBF\0LatnAU\0LatnTZ\0LatnBJ\0LatnCD\0LatnMX\0LatnGH\0LatnSB\0LatnMM\0YiiiVN\0ArabIR\0LatnNC\0LatnBR\0LatnPG\0LatnCF\0LatnCN\0LatnAU\0LatnNG\0LatnGQ\0LatnUG\0LatnCA\0LatnTO\0LatnMM\0LatnVN\0LatnNG\0LatnPG\0LatnPG\0LatnSS\0LatnVN\0LatnCD\0LatnBF\0LatnFM\0LatnPG\0LatnAU\0LatnMX\0LatnUS\0LatnVU\0LatnPG\0LatnCM\0LatnCI\0NewaNP\0LatnCM\0LatnAU\0LatnVU\0LatnSS\0LatnAU\0LatnPG\0LatnTZ\0DevaNP\0LatnTL\0LatnCD\0LatnID\0LatnID\0LatnTZ\0LatnMM\0LatnID\0LatnAU\0LatnGA\0LatnCN\0LatnPG\0LatnID\0LatnMW\0LatnGH\0LatnCD\0LatnKE\0LatnAO\0LatnKE\0LatnCD\0LatnAU\0LatnSD\0LatnCD\0LatnAO\0ThaiTH\0LatnTZ\0LatnUG\0LatnUG\0LatnUG\0ArabIR\0LatnMW\0LatnAU\0LatnAU\0LatnMZ\0LatnAU\0ThaiTH\0LatnAU\0LatnTZ\0LatnCM\0LatnGA\0LatnCD\0LatnGH\0LatnCF\0LatnIN\0LatnNG\0LatnCG\0LatnTD\0LatnML\0CyrlRU\0CyrlRU\0SyrcSY\0GeorGE\0LatnUS\0LatnPH\0LatnCM\0PhnxJO\0LatnPH\0MymrMM\0LatnFR\0LatnNG\0LatnPE\0LatnGB\0LatnMX\0LatnNG\0ArabPK\0LatnNL\0LatnNG\0LatnNL\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0LatnNG\0XsuxTR\0LatnHU\0LatnID\0LatnSS\0LatnPG\0CansCA\0LatnCA\0LatnCA\0CansCA\0LatnSB\0LatnCA\0LatnCA\0LatnNG\0LatnCD\0LatnNG\0LatnNG\0LatnAU\0LatnKE\0LatnPG\0HangKR\0HaniKR\0LatnNG\0LatnNG\0LatnCM\0LatnPG\0LatnNG\0KhmrKH\0DevaNP\0LatnTZ\0TibtBT\0LatnAU\0LatnNG\0LatnRU\0LatnVU\0LatnLT\0LatnAO\0LatnUS\0LatnVU\0LatnPE\0LatnPE\0LatnCD\0CyrlRU\0LatnCD\0LatnPG\0MteiIN\0ModiIN\0LatnKE\0LatnPE\0LatnPG\0MymrMM\0LatnAR\0LatnCA\0LatnPG\0LatnID\0LatnPG\0LatnPG\0LatnPG\0LatnCA\0LatnIN\0LatnPG\0LatnPG\0LatnPG\0LatnVU\0LatnID\0LatnUS\0DevaIN\0LatnZA\0LatnNG\0LatnID\0LatnPG\0LatnPG\0LatnMX\0LatnBR\0LatnSB\0LatnKE\0LatnPE\0LatnNG\0LatnMY\0LatnPG\0LatnNG\0LatnMY\0TeluIN\0ArabPK\0CyrlRU\0LatnBR\0LatnNG\0LatnID\0CyrlGE\0OsgeUS\0ItalIT\0JavaID\0LatnNG\0LatnES\0LatnCM\0LatnPG\0LatnDE\0ArabTR\0TibtCN\0LatnID\0LatnMX\0LatnBR\0OrkhMN\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnSD\0LatnMX\0LatnMX\0LatnBR\0LatnCA\0LatnMX\0GranIN\0LatnMX\0LatnLR\0LatnPG\0OugrCN\0LatnPG\0LatnSE\0LatnPG\0LatnGB\0LaooLA\0LatnET\0LatnBR\0LatnPG\0LatnCM\0LatnBR\0LatnVN\0LatnBR\0LatnCD\0LatnBR\0LatnPH\0LatnBR\0LatnNG\0LatnBR\0PhliIR\0LatnPH\0LatnUS\0LatnCW\0CyrlTJ\0LatnUS\0LatnID\0LatnPW\0LatnBR\0LatnUS\0LatnBR\0LatnHN\0LatnBR\0LatnCO\0LatnGY\0LatnMX\0LatnMX\0LatnVE\0LatnVE\0LatnCM\0LatnNG\0LatnMX\0LatnNG\0LatnGW\0LatnGN\0LatnTZ\0LatnMX\0ArabAF\0LatnIN\0LatnPG\0LatnMX\0KhmrKH\0LatnCN\0LatnFR\0MymrMM\0MlymIN\0MlymIN\0DevaIN\0DevaIN\0TeluIN\0LatnIN\0LatnNG\0LatnBO\0LatnNG\0LatnPG\0LatnUS\0LatnID\0LatnID\0LatnCA\0LatnMM\0LatnID\0LatnUS\0LatnPG\0LatnID\0OryaIN\0LatnMX\0LatnPG\0LatnID\0LatnCD\0XpeoIR\0LatnPG\0LatnUS\0LatnVE\0LatnPG\0LatnID\0LatnMY\0LatnFM\0LatnCM\0LatnDE\0LatnSS\0KharPK\0DevaIN\0LatnPG\0LatnVU\0OgamIE\0ItalIT\0LatnNG\0LatnID\0DevaIN\0LatnVN\0LatnVN\0MymrIN\0ArabPK\0LatnMZ\0PhnxLB\0LaooLA\0ArabPK\0ThaiTH\0ThaiTH\0ArabAF\0DevaNP\0LatnGB\0LatnMX\0LatnPE\0LatnGA\0LatnVE\0LatnFM\0LatnPE\0LatnNF\0LatnCO\0LatnBJ\0LatnUS\0LatnPG\0LatnCO\0LatnNG\0LatnBR\0LatnSB\0LatnAU\0LatnAU\0LatnSB\0LatnTZ\0LatnPG\0LatnNG\0LatnNC\0LatnAU\0BrahIN\0LatnKE\0LatnPG\0LatnBD\0LatnAU\0LatnKE\0LatnCK\0MlymIN\0LatnID\0LatnPG\0LatnVU\0LatnPH\0LatnGB\0LatnID\0LatnAR\0LatnID\0ArabPK\0MymrMM\0LatnCO\0LatnMX\0LatnCI\0LatnMX\0LatnBR\0LatnPH\0LatnPH\0LatnMY\0LatnVU\0LatnCD\0LatnAU\0LatnNC\0LatnID\0BrahIN\0LatnCN\0LatnCN\0LatnTN\0LatnCM\0LatnCM\0LatnID\0LatnMX\0LatnPG\0LatnPF\0LatnUS\0LatnIN\0LatnID\0LatnMX\0LatnMY\0LatnID\0LatnAO\0LatnMY\0LatnNG\0LatnCK\0LatnID\0LatnAU\0LatnBO\0LatnBF\0LatnMY\0LatnPG\0LatnPE\0LatnID\0LatnBF\0LatnPG\0LatnID\0GrekGR\0LatnAU\0LatnAU\0LatnCM\0LatnCF\0LatnGT\0LatnMX\0LatnCD\0LatnBR\0LatnGT\0LatnMX\0LatnBR\0LatnUS\0LatnFM\0LatnUS\0LatnNC\0LatnMX\0LatnMX\0LatnUS\0LatnGW\0LatnMX\0LatnTZ\0LatnPG\0LatnMX\0LatnID\0LatnSV\0LatnID\0LatnPG\0LatnPG\0LatnCD\0LatnPG\0LatnMX\0LatnPG\0LatnNG\0LatnCA\0ArabAF\0ArabIR\0LatnST\0LatnPH\0LatnPL\0LatnPH\0LatnNC\0LatnMM\0LatnPG\0LatnFR\0LatnPE\0LatnBR\0ThaiTH\0LatnID\0LatnPG\0ArabIN\0LatnID\0LatnID\0ArabAF\0ArabAF\0LatnBO\0LatnID\0LatnPG\0LatnPG\0ArabPK\0BrahIN\0LatnVU\0LatnPY\0LatnBR\0LatnAU\0LatnID\0LatnBR\0LatnPG\0LatnVU\0LatnID\0LatnID\0LatnVU\0LatnMX\0LatnIN\0LatnID\0LatnID\0LatnAR\0LatnID\0LatnBF\0LatnCO\0LatnID\0DevaNP\0LatnVN\0LatnPG\0LatnBO\0LatnBR\0LatnID\0LatnGA\0LatnFM\0LatnPG\0LatnUS\0LatnPG\0LatnNG\0LatnPG\0LatnPH\0LatnTW\0MymrMM\0DevaIN\0ThaiTH\0LatnMX\0LatnCI\0LatnNG\0LatnBR\0LatnTW\0MymrMM\0LatnMM\0LatnNG\0LatnTW\0LatnMM\0LatnUS\0LatnPE\0LatnGT\0LatnEC\0LatnPE\0LatnEC\0LatnUS\0LatnPE\0LatnBO\0LatnGT\0LatnUS\0LatnPE\0LatnES\0LatnPE\0LatnAR\0LatnGT\0LatnEC\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnEC\0LatnEC\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnPE\0LatnEC\0LatnPE\0LatnPE\0LatnPE\0LatnHU\0LatnPE\0LatnUS\0LatnPE\0LatnPE\0LatnPE\0LatnEC\0LatnPE\0LatnPE\0LatnPE\0ArabIR\0LatnEC\0LatnPE\0LatnPE\0LatnPE\0Latn001LatnUS\0DevaNP\0DevaNP\0LatnID\0LatnVN\0DevaNP\0LatnKE\0BengIN\0LatnPG\0LatnPG\0LatnBR\0LatnID\0LatnPG\0LatnCL\0LatnCK\0DevaNP\0LatnMM\0LatnNG\0LatnPF\0LatnID\0MymrMM\0LatnPH\0LatnPH\0LatnAU\0LatnRE\0ArabIR\0LatnPG\0LatnID\0LatnMY\0LatnTZ\0OryaIN\0LatnID\0LatnKE\0LatnPE\0LatnVN\0LatnNG\0LatnID\0LatnBO\0LatnVU\0LatnIT\0LatnPE\0LatnVN\0LatnID\0RohgMM\0LatnPG\0LatnIN\0LatnMA\0LatnMM\0LatnTZ\0LatnNG\0LatnID\0LatnAU\0LatnID\0LatnID\0DevaNP\0DevaNP\0KhmrKH\0LatnBR\0LatnCK\0MymrMM\0LatnBF\0BengBD\0LatnAU\0LatnNI\0LatnAU\0LatnSK\0LatnDK\0LatnGB\0LatnFI\0LatnNO\0LatnID\0ArmnAM\0LatnPG\0LatnPL\0LatnID\0LatnRS\0LatnCH\0LatnPG\0LatnES\0ArabIR\0LatnSE\0LatnGB\0LatnVN\0MymrIN\0LatnBI\0LatnCD\0LatnMZ\0LatnIN\0LatnID\0LatnAU\0LatnTZ\0LatnID\0LatnVN\0LatnNG\0LatnPG\0LatnTZ\0LatnVN\0LatnPH\0LatnRO\0LatnPG\0LatnAU\0LatnID\0LatnTD\0LatnID\0LatnVU\0LatnPG\0LatnSB\0LatnNZ\0LatnPG\0LatnAU\0CyrlRS\0LatnNG\0LatnMM\0LatnID\0LatnFJ\0DevaIN\0LatnUG\0LatnUG\0CyrlUA\0LatnTZ\0LatnSB\0LatnTZ\0LatnNG\0LatnHR\0LatnRO\0LatnGR\0CyrlRU\0LatnMY\0LatnNG\0LatnNG\0LatnPG\0LatnTZ\0LatnTZ\0LatnUG\0LatnPG\0DevaIN\0LatnAU\0LatnAU\0KanaJP\0LatnTD\0LatnPA\0LatnUS\0LatnTZ\0LatnBR\0LatnGH\0LatnID\0LatnGA\0SamrPS\0LatnID\0LatnKE\0LatnBO\0LatnID\0LatnID\0LatnSN\0LatnID\0LatnVU\0LatnNG\0SaurIN\0LatnTD\0LatnSB\0LatnPG\0LatnBF\0LatnPG\0LatnID\0LatnPG\0LatnPG\0LatnTD\0LatnTZ\0LatnPH\0LatnTZ\0ArabPK\0LatnMY\0LatnTZ\0LatnPG\0LatnID\0LatnNA\0LatnID\0TibtIN\0LatnIT\0LatnGA\0LatnID\0LatnZM\0LatnCF\0LatnVN\0LatnCN\0LatnPA\0LatnID\0LatnIN\0LatnLK\0DevaIN\0ArabPK\0LatnGB\0DevaNP\0LatnCA\0LaooLA\0TakrIN\0LatnNG\0LatnNG\0GrekIT\0LatnID\0ArabIQ\0LatnIT\0LatnNG\0ArabIQ\0ArabAF\0ArabIR\0LatnCG\0LatnPG\0LatnIT\0LatnMY\0LatnID\0BengBD\0ArabTN\0LatnID\0LatnMY\0LatnNO\0LatnMY\0LatnCI\0LatnCA\0LatnVN\0LatnUS\0LatnCI\0LatnTZ\0LatnMZ\0LatnMX\0LatnPG\0LatnCA\0CyrlRU\0LatnBF\0LatnPG\0LatnBF\0LatnBF\0LatnUS\0LatnML\0LatnID\0LatnID\0LatnCI\0LatnPG\0LatnEC\0LatnMM\0LatnPH\0PlrdCN\0LatnGH\0LatnCF\0LatnIE\0LatnPH\0LatnKE\0LatnPH\0LatnID\0CyrlTJ\0LatnCM\0DevaIN\0LatnKE\0LatnIN\0ArabIR\0LatnLT\0TibtBT\0LatnID\0EthiET\0ArabAF\0LatnPG\0LatnNG\0LatnBR\0LatnCD\0ArabPK\0LatnET\0LatnBW\0LatnUS\0TfngMA\0LatnSD\0LatnSS\0ArabIR\0LatnNG\0LatnPE\0LatnZM\0LatnCD\0LatnCA\0LatnUS\0ArabTD\0ArabOM\0LatnSD\0LatnDZ\0LatnML\0CyrlRU\0LatnMY\0LatnET\0LatnZM\0LatnBF\0LatnGH\0LatnNC\0LatnIN\0LatnPG\0LatnBR\0LatnGH\0LatnPG\0TibtIN\0LatnPG\0LatnNG\0LatnUS\0LatnPG\0LatnPG\0LatnPG\0LatnPG\0ArabIR\0ArabEG\0LatnCO\0LatnID\0HansCN\0CyrlRU\0LatnSE\0LatnTD\0LatnIN\0LatnPH\0DevaIN\0LatnPG\0CyrlRU\0LatnSE\0LatnUS\0LatnUS\0ThaiTH\0LatnPG\0LatnUS\0LatnVU\0LatnBR\0LatnMG\0LatnID\0LatnID\0DevaNP\0LatnPG\0LatnPH\0LatnID\0LatnMY\0LatnBF\0ArabPK\0LatnPG\0LatnCD\0LatnVU\0LatnID\0LatnGY\0LatnID\0LatnSB\0LatnID\0LatnCO\0LatnBF\0LatnID\0LatnUS\0LatnPL\0LatnBR\0LatnPG\0LatnPH\0LatnUS\0LatnID\0LatnCN\0LatnID\0LatnPG\0LatnCD\0LatnID\0LatnID\0LatnWS\0LatnSE\0LatnPG\0LatnPG\0LatnPG\0LatnPG\0YiiiCN\0LatnSE\0LatnPH\0LatnPH\0LatnFI\0SamrIL\0LatnPG\0LatnID\0LatnFI\0LatnIN\0KhmrKH\0LatnID\0LatnCD\0ArabIR\0LatnPG\0LatnZW\0LatnPG\0LatnMY\0LatnSN\0LatnCD\0LatnPE\0LatnCF\0LatnML\0LatnPH\0LatnUG\0LatnCO\0LatnUS\0LatnPG\0LatnGA\0LatnPG\0LatnVU\0LatnID\0LatnMY\0LatnGH\0LatnPG\0LatnPG\0LatnPG\0TavtTH\0LatnID\0LatnCD\0LatnCD\0LatnCD\0SogdUZ\0DevaNP\0LatnTD\0LatnPG\0LatnCD\0LatnCD\0LatnPG\0LatnTD\0LatnBF\0ThaiTH\0LatnPW\0LatnPG\0LatnCM\0LatnBJ\0LatnTZ\0LatnID\0LatnVE\0LatnPG\0LatnPG\0LatnMY\0LatnID\0LatnPG\0LatnPG\0LatnPG\0LatnPY\0LatnUS\0LatnML\0LatnPE\0LatnID\0LatnPG\0TibtIN\0OryaIN\0LatnNG\0LatnNG\0LatnCF\0ArabIR\0LaooLA\0ArabYE\0LatnCA\0LatnPG\0SoraIN\0LatnID\0LatnPG\0LatnPH\0ArabCN\0LatnCO\0LatnMY\0LatnID\0LatnSR\0LatnSR\0LatnIT\0LatnBO\0LatnSN\0LatnCA\0LatnID\0LatnBR\0LatnPH\0LatnID\0DevaIN\0LatnPG\0ArabIR\0LatnZA\0LatnPH\0LatnTZ\0LatnPG\0LatnPH\0LatnTW\0LatnPG\0ArabAE\0LatnPG\0LatnGH\0LatnMY\0LatnKE\0LatnPG\0LatnID\0LaooLA\0LatnPG\0LatnPG\0LatnVU\0LatnPG\0LatnER\0LatnPG\0LatnZM\0LatnPH\0LatnID\0LatnPG\0LatnVN\0LatnIE\0LatnVN\0LatnBF\0LatnPG\0LatnNL\0LatnPG\0LatnSB\0LatnCA\0LatnMX\0LatnDE\0LatnCA\0ArabAF\0LatnVN\0LanaMM\0EthiET\0LatnFM\0CyrlRU\0LatnPG\0LatnCD\0LatnPH\0LatnPG\0LatnPG\0LatnPG\0LatnTZ\0LatnTZ\0LatnPG\0LatnET\0LatnNG\0LatnGN\0LatnNI\0LatnIN\0LatnTZ\0LatnBR\0DevaNP\0GeorGE\0LatnPG\0LatnVC\0LatnID\0LatnIT\0LatnSB\0ArabYT\0LatnCD\0LatnDE\0HaniCN\0LatnGA\0LatnMW\0LatnPG\0LatnBR\0LatnPG\0LatnCM\0LatnID\0LatnID\0LatnID\0LatnID\0DevaIN\0LatnVU\0LatnBR\0LatnTD\0LatnKE\0LatnGA\0LatnID\0LatnTW\0LatnNG\0RunrDE\0LatnBJ\0LatnID\0LatnPH\0SyrcTR\0LatnGA\0LatnNG\0BengBD\0LatnBF\0SyrcIR\0LatnKH\0LatnTD\0DevaNP\0LatnGA\0LatnMY\0LatnID\0LatnMY\0LatnCD\0LatnID\0LatnID\0LatnCM\0LatnID\0LatnTW\0LatnUS\0CyrlRU\0LatnMX\0LatnID\0LatnBR\0LatnBR\0LatnSD\0DevaNP\0LatnNG\0LatnNG\0LatnNG\0LatnTW\0LatnCD\0LatnML\0LatnMX\0LatnVN\0LatnUS\0LatnCO\0LatnPG\0LatnTD\0LatnTW\0LatnSD\0LatnBR\0LatnPG\0LatnPG\0LatnSB\0LatnPG\0LatnPG\0LatnAU\0LatnSD\0LatnPG\0TagbPH\0LatnPH\0LatnCD\0LatnCO\0LatnPG\0LatnID\0LatnPG\0LatnCD\0LatnMX\0LatnPG\0LatnPH\0LatnPG\0LatnID\0LatnBJ\0LatnBR\0LatnUS\0LatnTZ\0LatnGH\0LatnCA\0LatnMX\0LatnID\0LatnTC\0LatnPG\0LatnGA\0LatnID\0DevaNP\0MymrMM\0LatnMM\0LatnID\0LatnAU\0LatnMX\0LatnMX\0TamlIN\0KndaIN\0LatnIN\0TfngNE\0DevaIN\0LatnCO\0TaleCN\0LatnML\0DevaNP\0DevaNP\0LatnID\0LatnID\0LatnNG\0LatnNG\0LatnGY\0LatnID\0LatnNG\0LatnNG\0LatnVN\0LatnID\0LatnTL\0LatnNG\0LatnMG\0LatnPH\0LatnMY\0LatnEC\0LatnKE\0LatnCI\0LatnMX\0LatnGA\0LatnAR\0LatnPG\0LatnCD\0LatnSL\0LatnCO\0LatnUG\0LatnMX\0LatnSD\0LatnBR\0JavaID\0LatnTL\0LatnUG\0LatnID\0LatnUS\0LatnSS\0LatnSD\0LatnNE\0LatnBJ\0LatnUS\0LatnID\0LatnPA\0LatnID\0LatnKE\0LatnMY\0LatnPG\0LatnNG\0DevaNP\0TibtBT\0LatnTT\0LatnPG\0LatnIN\0LatnPH\0LatnPG\0LatnVU\0LatnMY\0LatnVU\0LatnPH\0LatnPG\0LatnBR\0LatnCI\0LatnCA\0LatnSS\0LatnAU\0LatnAU\0DevaNP\0DevaNP\0LatnMX\0TaleLA\0LatnKE\0DevaNP\0ThaiTH\0LatnCA\0DevaNP\0DevaNP\0DevaNP\0LatnCA\0LatnSS\0LatnDZ\0LatnNG\0LatnNE\0LatnSD\0LatnPG\0EthiER\0LatnMY\0LatnCD\0DevaNP\0LatnCM\0LatnUS\0LatnPG\0CyrlRU\0LatnPG\0LatnID\0LatnBF\0LatnPH\0LatnCO\0LatnPH\0LatnNG\0LatnAU\0LatnUS\0LatnPH\0LatnLR\0LatnID\0LatnCN\0LatnAU\0MymrMM\0LatnCI\0ArabDZ\0LatnAU\0LatnCN\0LatnAU\0LatnAU\0LatnBR\0DevaIN\0LatnTL\0LatnMZ\0LatnBR\0LatnMG\0LatnTK\0LatnSB\0LatnNG\0LatnAZ\0ArabIR\0DevaNP\0LatnMX\0LatnPG\0LatnSB\0LatnID\0LatnVN\0LatnPH\0LatnMX\0LatnID\0LatnMX\0LatnID\0LatnPG\0LatnID\0LatnUS\0LatnUG\0LatnID\0LatnCD\0LatnVU\0LatnID\0LatnMX\0LatnMM\0LatnSB\0LatnVU\0LatnID\0LatnID\0LatnID\0LatnPG\0LatnAZ\0LatnTD\0LatnVU\0LatnTD\0LatnPG\0LatnBR\0LatnPY\0LatnID\0LatnNE\0LatnVU\0LatnID\0LatnID\0LatnVN\0LatnID\0LatnMY\0LatnPG\0SyrcIL\0LatnVU\0LatnID\0LatnCD\0LatnMY\0LatnPG\0LatnVE\0LatnBO\0LatnCO\0LatnCO\0LatnCO\0LatnTD\0LatnPG\0LatnID\0LatnVU\0LatnVU\0LatnID\0LatnVU\0LatnBO\0LatnVU\0LatnPR\0LatnSN\0LatnPG\0LatnID\0CakmBD\0LatnID\0LatnSB\0LatnTZ\0LatnAR\0LatnMX\0LatnGN\0LatnPG\0LatnMW\0LatnMZ\0LatnZM\0LatnMX\0Latn001LatnUS\0LatnID\0LatnMX\0LatnMX\0LatnSS\0LatnCD\0LatnMX\0LatnVN\0ArabIR\0LatnUS\0LatnPW\0LatnID\0LatnCM\0LatnPG\0LatnMX\0LatnBD\0LatnID\0LatnID\0LatnPG\0LatnPY\0LatnBR\0LatnMX\0LatnGH\0LatnBR\0LatnMX\0LatnBR\0LatnMX\0KhmrKH\0LatnMP\0LatnMX\0LatnBR\0LatnPG\0LatnBR\0LatnVU\0LatnPG\0LatnUS\0LatnPG\0LatnPG\0LatnMX\0LatnSB\0LatnUS\0ArabAF\0LatnPG\0LatnMX\0LatnID\0LatnTT\0HebrIL\0LatnPG\0LatnSR\0LatnTD\0LatnGB\0ArabAF\0LatnBO\0LatnIN\0LatnIN\0LatnMX\0LatnPE\0LatnMX\0LatnID\0LatnTR\0LatnTW\0ArabPK\0LatnMY\0LatnIN\0LatnBR\0LatnZA\0LatnCG\0LatnET\0LatnMZ\0GrekGR\0LatnPH\0LatnCM\0LatnCA\0TibtBT\0LatnVN\0LatnBF\0LatnVU\0LatnML\0LatnTW\0LatnGA\0LatnNG\0LatnPG\0LatnMX\0LatnNG\0LatnGT\0LatnPG\0LatnPG\0LatnCM\0LaooLA\0LatnID\0LatnUG\0LatnCO\0LatnZM\0LatnCA\0LatnID\0LaooLA\0LatnID\0LatnNG\0ThaiTH\0LatnAZ\0LatnPG\0LatnPG\0LatnMY\0LatnID\0DevaNP\0LatnPG\0LatnUS\0LatnPG\0LatnBR\0LatnCO\0LatnCO\0LatnTD\0LatnPG\0LatnCM\0LatnID\0LatnNG\0LatnMW\0LatnUS\0LatnBR\0LatnTD\0LatnCA\0LatnUS\0LatnKE\0LatnBR\0LatnKE\0LatnBF\0LatnSB\0LatnNG\0LatnID\0LatnNG\0LatnVU\0LatnTV\0LatnID\0MymrMM\0LatnID\0LatnKE\0LatnIN\0LatnCM\0LatnID\0LatnTW\0LatnUS\0LatnPH\0LatnNL\0LatnID\0LatnUS\0LatnID\0LatnVN\0LatnMZ\0TibtIN\0LatnCM\0LatnBW\0LatnPG\0LatnNE\0LatnMX\0LatnBR\0LatnID\0LatnPG\0LatnMZ\0LatnID\0LatnMY\0LatnID\0TangCN\0LatnBR\0LatnNG\0LatnID\0LatnID\0TotoIN\0LatnID\0LatnID\0LatnID\0LatnBR\0LatnMY\0LatnMG\0LatnPF\0LatnPG\0LatnNG\0LatnVN\0LatnCG\0LatnVN\0LatnVN\0LatnID\0LatnAU\0TavtVN\0LatnVN\0LatnVN\0LatnBW\0LatnCG\0LatnNG\0LatnVN\0LatnMX\0LatnGT\0Latn001LatnMA\0LatnID\0LatnMX\0LatnPG\0LatnBR\0LatnPG\0LatnNG\0LatnTD\0LatnPH\0LatnPG\0LatnPG\0LatnTR\0LatnNG\0CyrlRU\0MlymIN\0CyrlRU\0LatnID\0LatnCM\0CyrlRU\0LatnSD\0LatnID\0LatnPG\0UgarSY\0LatnAU\0LatnSB\0CyrlRU\0ThaiTH\0LatnNG\0LatnID\0LatnPG\0LatnCM\0LatnNG\0LatnID\0LatnPG\0LatnCF\0OryaIN\0LatnMM\0LatnNG\0LatnNG\0LatnNG\0LatnSS\0LatnNG\0LatnAU\0LatnNG\0LatnNG\0CyrlRU\0LatnAR\0LatnID\0LatnFM\0LatnAU\0LatnID\0LatnPG\0LatnID\0LatnNI\0LatnNG\0LatnUS\0LatnAO\0LatnAU\0LatnAU\0LatnMY\0LatnNG\0LatnMM\0LatnBR\0LatnAU\0LatnAU\0LatnID\0LatnPG\0LatnNG\0LatnAU\0LatnPG\0LatnBR\0LatnUS\0LatnAU\0BengIN\0LatnPG\0BengIN\0LatnID\0LatnTW\0LatnPG\0LatnVU\0LatnPE\0LatnBR\0LatnAU\0LatnBO\0LatnAU\0LatnPG\0LatnNG\0LatnPG\0ThaiTH\0LatnPG\0LatnID\0LatnPG\0LatnBR\0LatnVU\0LatnPG\0LatnBR\0LatnPG\0LatnPG\0LatnPG\0LatnID\0LatnBR\0LatnPG\0ArabPK\0LatnBD\0LatnCM\0LatnGT\0LatnNG\0LatnPG\0LatnNG\0LatnUS\0LatnNG\0LatnSB\0LatnNG\0LatnPG\0GrekGE\0LatnVU\0LatnNC\0LatnPG\0LatnPG\0LatnAU\0LatnNG\0ArabAF\0TamlIN\0LatnCF\0ArabIR\0LatnGH\0DevaIN\0VaiiLR\0LatnNA\0LatnPG\0LatnPG\0LatnPG\0LatnVU\0LatnIN\0LatnMX\0DevaIN\0LatnCD\0DevaIN\0DevaNP\0LatnID\0LatnPH\0LatnZA\0LatnNG\0LatnUS\0LatnRU\0LatnNG\0ArabPK\0LatnSX\0LatnTZ\0LatnCG\0LatnBF\0LatnAR\0LatnTZ\0LatnNG\0LatnPG\0DevaIN\0LatnAU\0LatnTD\0LatnID\0LatnID\0LatnBR\0LatnNG\0LatnID\0LatnIN\0LatnID\0LatnAU\0LatnNG\0LatnVU\0LatnBE\0LatnAU\0LatnAU\0LatnMX\0KndaIN\0LatnID\0LatnDE\0LatnPG\0ArabIR\0LatnAU\0LatnMX\0LatnMZ\0LatnAU\0LatnMX\0LatnMX\0LatnMX\0LatnMZ\0LatnID\0LatnAU\0LatnMX\0LatnMX\0LatnMX\0LatnSB\0LatnVU\0LatnVU\0Latn001LatnNG\0LatnRU\0LatnVU\0LatnEE\0LatnSB\0LatnVU\0LatnID\0LatnGA\0LatnTZ\0LatnCM\0LatnCN\0LatnBE\0LatnUS\0LatnPG\0LatnUS\0LatnID\0LatnCH\0LatnBR\0LatnPG\0LatnID\0LatnID\0LatnPG\0EthiET\0LatnUS\0LatnCI\0LatnGY\0LatnAU\0LatnPH\0LatnUS\0LatnPG\0LatnBR\0LatnNG\0LatnBR\0LatnPG\0LatnSR\0LatnPG\0LatnVE\0LatnID\0LatnID\0LatnBF\0LatnTZ\0LatnTZ\0LatnTZ\0ArabAF\0LatnPK\0LatnCN\0LatnAU\0TeluIN\0DevaIN\0LatnAU\0LatnAU\0LatnID\0LatnBR\0LatnTG\0LatnGA\0LatnPG\0LatnAU\0LatnAU\0LatnCA\0LatnAU\0LatnAU\0LatnCI\0LatnPG\0LatnAU\0LatnCM\0LatnPG\0LatnBJ\0LatnID\0LatnDE\0LatnPG\0LatnCM\0LatnID\0LatnMM\0LatnID\0LatnID\0LatnAU\0LatnPG\0LatnAU\0LatnPG\0LatnID\0LatnAU\0LatnAU\0LatnID\0LatnPG\0LatnID\0LatnID\0LatnBF\0LatnUS\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnPG\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnUS\0LatnBR\0LatnPG\0LatnPG\0LatnUS\0LatnNG\0LatnNG\0LatnTZ\0LatnID\0LatnAU\0LatnAU\0LatnAU\0LatnPG\0EthiET\0LatnAU\0LatnTL\0LatnID\0LatnGB\0ArabID\0LatnVU\0LatnWF\0LatnAU\0LatnAR\0LatnID\0LatnGH\0LatnNG\0LatnAU\0LatnPG\0LatnBR\0DevaNP\0LatnTL\0LatnAU\0LatnID\0LatnNC\0LatnPG\0LatnID\0LatnAU\0LatnMZ\0LatnPG\0LatnPG\0LatnPG\0LatnAU\0ArabPK\0LatnID\0ArabKM\0LatnID\0LatnAU\0LatnAU\0LatnID\0LatnPG\0LatnPG\0LatnUS\0LatnAU\0LatnAU\0LatnCI\0LatnPG\0LatnID\0LatnFM\0LatnGM\0LatnPG\0LatnID\0LatnCM\0LatnNG\0LatnCD\0LatnID\0LatnID\0LatnPG\0LatnID\0LatnVE\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnID\0LatnAU\0LatnPG\0LatnID\0LatnPG\0LatnAU\0LatnID\0LatnAU\0LatnID\0GongIN\0LatnVU\0LatnPG\0LatnPG\0LatnGH\0LatnBR\0ArabAF\0LatnTZ\0LatnPG\0LatnAU\0LatnET\0LatnPG\0DevaIN\0LatnID\0LatnAU\0LatnAU\0LatnTG\0LatnID\0LatnGA\0LatnTZ\0LatnAU\0LatnPG\0HansCN\0LatnPG\0LatnAU\0LatnID\0LatnBJ\0LatnAU\0LatnVU\0LatnAU\0LatnCM\0LatnAU\0LatnAU\0LatnAU\0LatnPL\0LatnUS\0LatnBR\0LatnFJ\0LatnES\0LatnNG\0AghbAZ\0LatnBR\0LatnBR\0LatnVE\0CyrlRU\0LatnZA\0EthiET\0LatnVN\0LatnPG\0CyrlRU\0LatnBR\0LatnID\0LatnBR\0LatnUS\0LatnID\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnPG\0LatnAU\0LatnFR\0LatnMY\0LatnAU\0LatnID\0LatnBR\0LatnAU\0LatnUS\0ChrsUZ\0CariTR\0LatnAU\0LatnAU\0LatnAO\0CyrlRU\0LatnID\0LatnCM\0LatnZA\0LatnID\0LatnBR\0LatnPG\0LatnBR\0LatnPG\0LatnCI\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0ArabPK\0KhmrKH\0LatnVN\0LatnZA\0LatnGT\0LatnBR\0OryaIN\0LatnBR\0LatnAU\0LatnAU\0ArabPK\0LatnBJ\0ArabIR\0LatnID\0LatnID\0TibtBT\0LatnML\0ArabIR\0LatnID\0LatnID\0ArabIR\0LatnID\0LatnBR\0LatnID\0LatnGH\0LatnCG\0LatnBW\0LatnID\0LatnPG\0LatnMY\0LatnBT\0LatnPG\0LyciTR\0LydiTR\0ElymIR\0LatnSO\0LatnCM\0LatnMZ\0LatnCM\0GeorGE\0LatnCM\0LatnAU\0LatnCM\0LatnID\0ManiCN\0LatnBR\0LatnAU\0LatnAU\0MercSD\0LatnID\0LatnAU\0LatnMG\0LatnMG\0LatnID\0LatnAU\0LatnID\0NarbSA\0LatnTW\0LatnAU\0LatnTZ\0LatnAU\0LatnAU\0LatnPH\0LatnMZ\0LatnUS\0LatnAU\0LatnAU\0LatnEG\0LatnNG\0LatnID\0LatnUG\0LatnPG\0LatnBR\0LatnSD\0LatnGH\0LatnBR\0LatnPG\0LatnBR\0LatnPG\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0GrekTR\0LatnAU\0OgamGB\0LatnAU\0LatnBR\0LatnAU\0CyrlRU\0LatnBR\0LatnMX\0LatnUS\0PrtiIR\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnBR\0LatnBF\0LatnAU\0LatnBR\0LatnAU\0LatnBR\0CyrlRU\0CyrlRU\0LatnIT\0LatnAU\0LatnPG\0SarbYE\0LatnPH\0SidtTR\0LatnID\0LatnNG\0LatnPG\0LatnGH\0LatnNG\0LatnPG\0LatnMZ\0DevaNP\0LatnVE\0LatnTW\0LatnMX\0LatnMX\0LatnSD\0LatnMX\0LatnID\0LatnAU\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0BrahIR\0LatnMX\0LatnMX\0LatnMX\0LatnAU\0LatnBR\0LatnMX\0TamlIN\0LatnAU\0TamlIN\0LatnAU\0LatnIT\0LatnAU\0LatnTD\0LatnAU\0LatnNA\0ItalIT\0ArabAF\0LatnES\0LatnIT\0LatnIT\0LatnBR\0LatnAU\0LatnBJ\0LatnAU\0LatnAU\0LatnBJ\0CyrlRU\0LatnID\0LatnAU\0LatnAU\0LatnGH\0LatnID\0LatnAU\0LatnBR\0LatnID\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnBR\0LatnAU\0LatnAU\0MarcCN\0LatnMX\0LatnPE\0LatnBR\0LatnID\0LatnPE\0LatnVE\0LatnCD\0LatnCL\0LatnTJ\0CyrlTJ\0LatnCF\0LatnUS\0LatnGN\0LatnCM\0LatnNI\0LatnMZ\0LatnFM\0LatnMX\0LatnVE\0LatnCM\0LatnCM\0LatnVE\0LatnCM\0LatnBR\0LatnAO\0LatnNG\0LatnNG\0LatnNG\0LatnCM\0LatnCN\0DevaNP\0DevaNP\0LatnNG\0LatnNG\0LatnPG\0LatnBR\0LatnPG\0LatnPG\0LatnPG\0LatnCN\0LatnCO\0LatnTW\0LatnAU\0LatnPG\0ArabPK\0LatnPG\0MlymIN\0LatnDE\0LatnPG\0LatnCM\0GrekGR\0LatnCD\0LatnNG\0LatnNG\0LatnID\0TeluIN\0LatnPG\0LatnBW\0LatnAU\0LatnAU\0LatnPG\0LatnPG\0PlrdCN\0LatnPG\0LatnAU\0LatnPG\0HebrIL\0HebrUA\0LatnAU\0YiiiCN\0HebrDE\0LatnAU\0LatnAU\0LatnAU\0LatnIN\0LatnID\0LatnPG\0YiiiCN\0LatnPH\0CyrlRU\0CyrlMN\0LatnID\0LatnPG\0LatnPG\0LatnCM\0LatnPG\0LatnCF\0LatnPG\0LatnPG\0LatnPG\0LatnPG\0LatnID\0LatnPG\0LatnAU\0LatnPG\0LatnNC\0LatnPG\0LatnPE\0LatnCD\0LatnMZ\0LatnPG\0LatnSO\0LatnID\0LatnPG\0LatnPG\0PlrdCN\0LatnPG\0LatnAU\0LatnCD\0CyrlRU\0LatnPG\0LatnNG\0LatnCD\0LatnCO\0LatnPG\0LatnPH\0JpanJP\0LatnUS\0LatnIE\0LatnCD\0LatnPG\0LatnNG\0ThaiTH\0LatnPG\0LatnPG\0LatnCI\0CyrlRU\0LatnAU\0LatnBR\0LatnID\0LatnPG\0LatnAU\0YiiiCN\0YiiiCN\0YiiiCN\0CyrlRU\0LatnPG\0PlrdCN\0LatnPG\0LatnAU\0LatnMX\0LatnAU\0LatnUS\0HebrIL\0LatnUS\0CyrlRU\0LatnCO\0LatnPG\0LatnCF\0LatnUS\0LatnNG\0LatnCO\0LatnBO\0LatnUS\0LatnPG\0LatnPG\0CyrlRU\0LatnBO\0LatnID\0LatnVE\0LatnPG\0LatnAU\0LatnBR\0PlrdCN\0LatnAU\0PlrdCN\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnPG\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnSD\0LatnNG\0LatnTZ\0LatnTZ\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0TibtIN\0LatnMX\0LatnMX\0LatnMX\0LatnET\0LatnNG\0Arab001LatnMY\0LatnMY\0LatnID\0LatnNG\0LatnMY\0LatnMX\0HaniCN\0ArabKM\0LatnNL\0LatnPG\0HaniCN\0LatnNG\0TfngMR\0LatnTZ\0HaniCN\0TfngMA\0HaniCN\0HaniCN\0LatnPG\0HaniCN\0LatnNG\0LatnCN\0LatnCM\0LatnPG\0LatnPG\0LatnGN\0LatnTD\0LatnTZ\0LatnTZ\0LatnNG\0LatnID\0LatnMM\0CyrlRU\0LatnBR\0KitsCN\0LatnAU\0CyrlRU\0LatnCD\0HaniCN\0LatnMY\0HaniCN\0HaniCN\0LatnNG\0LatnAU\0LatnCD\0LatnAU\0LatnAU\0LatnAU\0LatnCD\0LatnAU\0LatnPG\0LatnMY\0LatnAU\0LatnAU\0LatnAU\0LatnAU\0LatnGA\0LatnSD\0LatnCD\0LatnCD\0LatnAU\0LatnCD\0LatnAU\0LatnAU\0LatnAU\0LatnCD\0LatnCG\0LatnAU\0LatnCD\0LatnTD\0LatnCD\0LatnVN\0LatnAU\0LatnNG\0LatnMX\0LatnMX\0LatnIN\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0HaniCN\0OryaIN\0LatnTD\0LatnEC\0HebrFR\0LatnID\0LatnPG\0LatnMX\0LatnPG\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnMX\0LatnPG\0ArabOM\0LatnUS\0LatnCM\0EthiET\0HaniCN\0LatnCN\0HaniCN\0LatnMM\0LatnTR\0HaniCN\0") })
- },
- script_region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"ArabKH\0ArabMM\0ArabTH\0ArabTR\0ArabYT\0CyrlAF\0CyrlGE\0CyrlIR\0CyrlTR\0DevaFJ\0DevaPK\0GrekTR\0HebrSE\0HebrUA\0HebrUS\0HmnpAU\0HmnpFR\0HmnpGF\0HmnpLA\0HmnpMM\0HmnpSR\0HmnpTH\0LanaMM\0LatnMM\0LatnRU\0LatnTW\0MymrIN\0MymrTH\0NkooML\0ThaiCN\0ThaiKH\0ThaiLA\0TibtBT\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"cjarhgmfaapcswbkaaab\0kaakbdhifbtvbgxyi\0yi\0yi\0hnjhnjhnjhnjhnjhnjhnjstukackrltrvkhtmnwbm\0lcpkdtkdtdz\0") })
- },
- script: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AghbAhomArmiAvstBaliBamuBassBatkBerfBrahBugiBuhdCakmCansCariChamChrsCoptCpmnCprtDiakEgypElymGlagGongGonmGothGukhHanoHatrHluwHmngHmnpItalKaliKawiKharKitsKraiLanaLepcLimbLinaLinbLisuLyciLydiMakaMandManiMarcMedfMendMercMeroMrooMultNagmNarbNbatNewaNkooOgamOnaoOrkhOsgeOugrPalmPaucPermPhagPhliPhlpPhnxPlrdPrtiRjngRohgRunrSamrSarbSaurSgnwSidtSogdSogoSoraSoyoSunuSyloTagbTaleTaluTangTavtTayoTfngThaaTibtTnsaTolsTotoUgarVaiiWaraWchoXpeoXsuxZanb") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"xagAZ\0ahoIN\0arcIR\0ae\0IR\0banID\0baxCM\0bsqLR\0bbcID\0zagSD\0pkaIN\0bugID\0bkuPH\0ccpBD\0iu\0CA\0xcrTR\0cjmVN\0xcoUZ\0copEG\0undCY\0ecyCY\0dv\0MV\0egyEG\0arcIR\0cu\0BG\0wsgIN\0esgIN\0gotUA\0gvrNP\0hnnPH\0arcIQ\0hluTR\0hnjLA\0mwwUS\0ettIT\0ekyMM\0kawID\0pgdPK\0zktCN\0bapIN\0nodTH\0lepIN\0lifIN\0labGR\0gmyGR\0lisCN\0xlcTR\0xldTR\0makID\0myzIR\0xmnCN\0bo\0CN\0dmfNG\0menSL\0xmrSD\0xmrSD\0mroBD\0skrPK\0unrIN\0xnaSA\0arcJO\0newNP\0manGN\0sgaIE\0unrIN\0otkMN\0osaUS\0ouiCN\0arcSY\0ctdMM\0kv\0RU\0lzhCN\0palIR\0palCN\0phnLB\0hmdCN\0xprIR\0rejID\0rhgMM\0nonSE\0smpIL\0xsaYE\0sazIN\0aseUS\0xsdTR\0sogUZ\0sogUZ\0srbIN\0cmgMN\0suzNP\0sylBD\0tbwPH\0tddCN\0khbCN\0txgCN\0bltVN\0tyjVN\0zghMA\0dv\0MV\0bo\0CN\0nstIN\0kruIN\0txoIN\0ugaSY\0vaiLR\0hocIN\0nnpIN\0peoIR\0akkIQ\0cmgMN\0") })
- },
- region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AS\0BI\0BQ\0BT\0CF\0CW\0GL\0HT\0MG\0ML\0MV\0NO\0PG\0PW\0PY\0SJ\0TK\0TV\0VU\0WS\0ZW\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"sm\0Latnrn\0LatnpapLatndz\0Tibtsg\0LatnpapLatnkl\0Latnht\0Latnmg\0Latnbm\0Latndv\0Thaanb\0LatntpiLatnpauLatngn\0Latnnb\0LatntklLatntvlLatnbi\0Latnsm\0Latnsn\0Latn") })
- },
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleLikelySubtagsExtendedV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleLikelySubtagsExtendedV1>, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_LIKELY_SUBTAGS_EXTENDED_V1), metadata: icu_provider::DataResponseMetadata::default() })
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsExtendedV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_likely_subtags_extended_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsExtendedV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
- ($ provider : ty , DRY) => {
- __impl_locale_likely_subtags_extended_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsExtendedV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsExtendedV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_likely_subtags_extended_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsExtendedV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsExtendedV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsExtendedV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
-}
-#[doc(inline)]
-pub use __impl_locale_likely_subtags_extended_v1 as impl_locale_likely_subtags_extended_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_script_region_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_script_region_v1.rs.data
deleted file mode 100644
index d05930f2b87..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_script_region_v1.rs.data
+++ /dev/null
@@ -1,93 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleLikelySubtagsScriptRegionV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 3284B[^1] for the singleton data struct
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_likely_subtags_script_region_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- #[doc(hidden)]
- pub const SINGLETON_LOCALE_LIKELY_SUBTAGS_SCRIPT_REGION_V1: &'static <icu::locale::provider::LocaleLikelySubtagsScriptRegionV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::LikelySubtagsForScriptRegion {
- script_region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"ArabAF\0ArabAZ\0ArabBN\0ArabCC\0ArabCN\0ArabGB\0ArabID\0ArabIN\0ArabIR\0ArabMN\0ArabMU\0ArabNG\0ArabPK\0ArabTJ\0CyrlAL\0CyrlAZ\0CyrlBA\0CyrlBG\0CyrlGR\0CyrlKG\0CyrlMD\0CyrlME\0CyrlMK\0CyrlMN\0CyrlRO\0CyrlRS\0CyrlSK\0CyrlTJ\0CyrlUA\0CyrlUZ\0CyrlXK\0DevaBT\0DevaMU\0DevaNP\0EthiER\0HantCA\0HantCN\0LatnAE\0LatnAF\0LatnAM\0LatnBD\0LatnBG\0LatnBT\0LatnCC\0LatnCN\0LatnCY\0LatnDZ\0LatnEG\0LatnER\0LatnET\0LatnGR\0LatnHK\0LatnIL\0LatnIN\0LatnIQ\0LatnIR\0LatnJO\0LatnKM\0LatnKZ\0LatnLB\0LatnLK\0LatnMA\0LatnMK\0LatnMO\0LatnMR\0LatnMV\0LatnNP\0LatnPK\0LatnSD\0LatnSS\0LatnSY\0LatnTD\0LatnTH\0LatnTN\0LatnUA\0LatnYE\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"fa\0az\0ms\0ms\0ug\0ur\0ms\0ur\0fa\0kk\0ur\0ha\0ur\0fa\0mk\0az\0sr\0bg\0mk\0ky\0uk\0sr\0mk\0mn\0bg\0sr\0uk\0tg\0uk\0uz\0sr\0ne\0bhone\0ti\0yueyueen\0tk\0ku\0en\0en\0en\0en\0za\0tr\0fr\0en\0en\0en\0en\0en\0en\0en\0en\0tk\0en\0fr\0en\0en\0en\0fr\0sq\0en\0fr\0en\0en\0en\0en\0en\0ku\0fr\0en\0fr\0pl\0en\0") })
- },
- script: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AdlmArabArmnBengBhksBopoBraiCherCyrlDevaDogrDuplElbaEthiGaraGeorGranGrekGujrGuruHanbHangHaniHansHantHebrHiraHungJamoJavaJpanKanaKhmrKhojKndaKoreKthiLaooMahjMlymModiMongMteiMymrNandOlckOryaOsmaShawShrdSiddSindSinhSundSyrcTakrTamlTeluTglgThaiTirhTodrTutgVithYeziYiii") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"ff\0GN\0ar\0EG\0hy\0AM\0bn\0BD\0sa\0IN\0zh\0TW\0fr\0FR\0chrUS\0ru\0RU\0hi\0IN\0doiIN\0fr\0FR\0sq\0AL\0am\0ET\0wo\0SN\0ka\0GE\0sa\0IN\0el\0GR\0gu\0IN\0pa\0IN\0zh\0TW\0ko\0KR\0zh\0CN\0zh\0CN\0zh\0TW\0he\0IL\0ja\0JP\0hu\0HU\0ko\0KR\0jv\0ID\0ja\0JP\0ja\0JP\0km\0KH\0sd\0IN\0kn\0IN\0ko\0KR\0bhoIN\0lo\0LA\0hi\0IN\0ml\0IN\0mr\0IN\0mn\0CN\0mniIN\0my\0MM\0sa\0IN\0satIN\0or\0IN\0so\0SO\0en\0GB\0sa\0IN\0sa\0IN\0sd\0IN\0si\0LK\0su\0ID\0syrIQ\0doiIN\0ta\0IN\0te\0IN\0filPH\0th\0TH\0maiIN\0sq\0AL\0sa\0IN\0sq\0AL\0ku\0GE\0ii\0CN\0") })
- },
- region: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"419AD\0AE\0AF\0AL\0AM\0AO\0AR\0AT\0AW\0AX\0AZ\0BA\0BD\0BE\0BF\0BG\0BH\0BJ\0BL\0BN\0BO\0BR\0BV\0BY\0CC\0CD\0CG\0CH\0CI\0CL\0CM\0CN\0CO\0CR\0CU\0CV\0CY\0CZ\0DE\0DJ\0DK\0DO\0DZ\0EA\0EC\0EE\0EG\0EH\0ER\0ES\0ET\0FI\0FO\0FR\0GA\0GE\0GF\0GH\0GN\0GP\0GQ\0GR\0GT\0GW\0HK\0HN\0HR\0HU\0IC\0ID\0IL\0IN\0IQ\0IR\0IS\0IT\0JO\0JP\0KE\0KG\0KH\0KM\0KP\0KR\0KW\0KZ\0LA\0LB\0LI\0LK\0LS\0LT\0LU\0LV\0LY\0MA\0MC\0MD\0ME\0MF\0MK\0MM\0MN\0MO\0MQ\0MR\0MT\0MU\0MX\0MY\0MZ\0NA\0NC\0NE\0NI\0NL\0NP\0OM\0PA\0PE\0PF\0PH\0PK\0PL\0PM\0PR\0PS\0PT\0QA\0RE\0RO\0RS\0RU\0RW\0SA\0SC\0SD\0SE\0SI\0SK\0SM\0SN\0SO\0SR\0SS\0ST\0SV\0SY\0TD\0TF\0TG\0TH\0TJ\0TL\0TM\0TN\0TO\0TR\0TW\0TZ\0UA\0UG\0UY\0UZ\0VA\0VE\0VN\0WF\0XK\0YE\0YT\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"es\0Latnca\0Latnar\0Arabfa\0Arabsq\0Latnhy\0Armnpt\0Latnes\0Latnde\0Latnnl\0Latnsv\0Latnaz\0Latnbs\0Latnbn\0Bengnl\0Latnfr\0Latnbg\0Cyrlar\0Arabfr\0Latnfr\0Latnms\0Latnes\0Latnpt\0Latnno\0Latnru\0Cyrlms\0Arabfr\0Latnfr\0Latnde\0Latnfr\0Latnes\0Latnfr\0Latnzh\0Hanses\0Latnes\0Latnes\0Latnpt\0Latnel\0Grekcs\0Latnde\0Latnfr\0Latnda\0Latnes\0Latnar\0Arabes\0Latnes\0Latnet\0Latnar\0Arabar\0Arabti\0Ethies\0Latnam\0Ethifi\0Latnfo\0Latnfr\0Latnfr\0Latnka\0Georfr\0Latnak\0Latnfr\0Latnfr\0Latnes\0Latnel\0Grekes\0Latnpt\0Latnzh\0Hantes\0Latnhr\0Latnhu\0Latnes\0Latnid\0Latnhe\0Hebrhi\0Devaar\0Arabfa\0Arabis\0Latnit\0Latnar\0Arabja\0Jpansw\0Latnky\0Cyrlkm\0Khmrar\0Arabko\0Koreko\0Korear\0Arabru\0Cyrllo\0Laooar\0Arabde\0Latnsi\0Sinhst\0Latnlt\0Latnfr\0Latnlv\0Latnar\0Arabar\0Arabfr\0Latnro\0Latnsr\0Latnfr\0Latnmk\0Cyrlmy\0Mymrmn\0Cyrlzh\0Hantfr\0Latnar\0Arabmt\0Latnfr\0Latnes\0Latnms\0Latnpt\0Latnaf\0Latnfr\0Latnha\0Latnes\0Latnnl\0Latnne\0Devaar\0Arabes\0Latnes\0Latnfr\0LatnfilLatnur\0Arabpl\0Latnfr\0Latnes\0Latnar\0Arabpt\0Latnar\0Arabfr\0Latnro\0Latnsr\0Cyrlru\0Cyrlrw\0Latnar\0Arabfr\0Latnar\0Arabsv\0Latnsl\0Latnsk\0Latnit\0Latnwo\0Latnso\0Latnnl\0Latnar\0Arabpt\0Latnes\0Latnar\0Arabar\0Arabfr\0Latnfr\0Latnth\0Thaitg\0Cyrlpt\0Latntk\0Latnar\0Arabto\0Latntr\0Latnzh\0Hantsw\0Latnuk\0Cyrlsw\0Latnes\0Latnuz\0Latnit\0Latnes\0Latnvi\0Latnfr\0Latnsq\0Latnar\0Arabfr\0Latn") })
- },
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1>, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_LIKELY_SUBTAGS_SCRIPT_REGION_V1), metadata: icu_provider::DataResponseMetadata::default() })
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_likely_subtags_script_region_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
- ($ provider : ty , DRY) => {
- __impl_locale_likely_subtags_script_region_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_likely_subtags_script_region_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsScriptRegionV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
-}
-#[doc(inline)]
-pub use __impl_locale_likely_subtags_script_region_v1 as impl_locale_likely_subtags_script_region_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_parents_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_parents_v1.rs.data
deleted file mode 100644
index 56d0bdd708f..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_parents_v1.rs.data
+++ /dev/null
@@ -1,85 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleParentsV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 2941B[^1] for the singleton data struct
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_parents_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- #[doc(hidden)]
- pub const SINGLETON_LOCALE_PARENTS_V1: &'static <icu::locale::provider::LocaleParentsV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::Parents {
- parents: unsafe {
- #[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x98\0\x06\0\x0B\0\x10\0\x15\0\x1A\0\x1F\0$\0)\0.\x003\08\0=\0B\0G\0L\0Q\0V\0[\0`\0e\0j\0o\0t\0y\0~\0\x83\0\x88\0\x8D\0\x92\0\x97\0\x9C\0\xA1\0\xA6\0\xAB\0\xB0\0\xB5\0\xBA\0\xBF\0\xC4\0\xC9\0\xCE\0\xD3\0\xD8\0\xDD\0\xE2\0\xE7\0\xEC\0\xF1\0\xF6\0\xFB\0\0\x01\x05\x01\n\x01\x0F\x01\x14\x01\x19\x01\x1E\x01#\x01(\x01-\x012\x017\x01<\x01A\x01F\x01K\x01P\x01U\x01Z\x01_\x01d\x01i\x01n\x01s\x01x\x01}\x01\x82\x01\x87\x01\x8C\x01\x91\x01\x96\x01\x9B\x01\xA0\x01\xA5\x01\xAA\x01\xAF\x01\xB4\x01\xB9\x01\xBE\x01\xC3\x01\xC8\x01\xCD\x01\xD2\x01\xD7\x01\xDC\x01\xE1\x01\xE6\x01\xEB\x01\xF0\x01\xF5\x01\xFA\x01\xFF\x01\x04\x02\t\x02\x0E\x02\x13\x02\x18\x02\x1D\x02\"\x02'\x02,\x021\x026\x02;\x02@\x02E\x02J\x02O\x02T\x02Y\x02^\x02c\x02h\x02m\x02r\x02w\x02|\x02\x81\x02\x86\x02\x8B\x02\x90\x02\x95\x02\x9A\x02\xA1\x02\xA3\x02\xA5\x02\xA7\x02\xAC\x02\xB1\x02\xB6\x02\xBB\x02\xC0\x02\xC5\x02\xCA\x02\xCF\x02\xD4\x02\xD9\x02\xDE\x02\xE3\x02\xEB\x02\xF3\x02en-150en-AGen-AIen-ATen-AUen-BBen-BEen-BMen-BSen-BWen-BZen-CCen-CHen-CKen-CMen-CXen-CYen-CZen-DEen-DGen-DKen-DMen-EEen-ERen-ESen-FIen-FJen-FKen-FMen-FRen-GBen-GDen-GEen-GGen-GHen-GIen-GMen-GSen-GYen-HKen-HUen-IDen-IEen-ILen-IMen-INen-IOen-ITen-JEen-JMen-KEen-KIen-KNen-KYen-LCen-LRen-LSen-LTen-LVen-MGen-MOen-MSen-MTen-MUen-MVen-MWen-MYen-NAen-NFen-NGen-NLen-NOen-NRen-NUen-NZen-PGen-PKen-PLen-PNen-PTen-PWen-ROen-RWen-SBen-SCen-SDen-SEen-SGen-SHen-SIen-SKen-SLen-SSen-SXen-SZen-TCen-TKen-TOen-TTen-TVen-TZen-UAen-UGen-VCen-VGen-VUen-WSen-ZAen-ZMen-ZWes-ARes-BOes-BRes-BZes-CLes-COes-CRes-CUes-DOes-ECes-GTes-HNes-JPes-MXes-NIes-PAes-PEes-PRes-PYes-SVes-USes-UYes-VEhi-Latnhtnbnnno-NOpt-AOpt-CHpt-CVpt-FRpt-GQpt-GWpt-LUpt-MOpt-MZpt-STpt-TLund-Hansund-Hantzh-Hant-MO") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419en\0\0\0\0\0\0\x01IN\0fr\0\0\0\0\0\0\x01HT\0no\0\0\0\0\0\0\0\0\0\0no\0\0\0\0\0\0\0\0\0\0no\0\0\0\0\0\0\0\0\0\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0und\x01Hani\0\0\0\0und\x01Hani\0\0\0\0zh\0\x01Hant\x01HK\0") })
- },
- };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleParentsV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleParentsV1>, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_PARENTS_V1), metadata: icu_provider::DataResponseMetadata::default() })
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_parents_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleParentsV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
- ($ provider : ty , DRY) => {
- __impl_locale_parents_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleParentsV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_parents_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleParentsV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleParentsV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
-}
-#[doc(inline)]
-pub use __impl_locale_parents_v1 as impl_locale_parents_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_script_direction_v1.rs.data b/deps/crates/vendor/icu_locale_data-v2/data/locale_script_direction_v1.rs.data
deleted file mode 100644
index 63487afc84f..00000000000
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_script_direction_v1.rs.data
+++ /dev/null
@@ -1,80 +0,0 @@
-// @generated
-/// Implement `DataProvider<LocaleScriptDirectionV1>` on the given struct using the data
-/// hardcoded in this file. This allows the struct to be used with
-/// `icu`'s `_unstable` constructors.
-///
-/// Using this implementation will embed the following data in the binary's data segment:
-/// * 756B[^1] for the singleton data struct
-///
-/// [^1]: these numbers can be smaller in practice due to linker deduplication
-///
-/// This macro requires the following crates:
-/// * `icu`
-/// * `icu_provider`
-/// * `zerovec`
-#[doc(hidden)]
-#[macro_export]
-macro_rules! __impl_locale_script_direction_v1 {
- ($ provider : ty) => {
- #[clippy::msrv = "1.86"]
- const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
- impl $provider {
- #[doc(hidden)]
- pub const SINGLETON_LOCALE_SCRIPT_DIRECTION_V1: &'static <icu::locale::provider::LocaleScriptDirectionV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::ScriptDirection { rtl: unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AdlmArabArmiAvstChrsCprtElymGaraHatrHebrHungKharLydiMandManiMendMercMeroNarbNbatNkooOrkhOugrPalmPhliPhlpPhnxPrtiRohgSamrSarbSidtSogdSogoSyrcThaaYezi") }, ltr: unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"AghbAhomArmnBaliBamuBassBatkBengBerfBhksBopoBrahBugiBuhdCakmCansCariChamCherCoptCpmnCyrlDevaDiakDogrDsrtDuplEgypElbaEthiGeorGlagGongGonmGothGranGrekGujrGukhGuruHanbHangHaniHanoHansHantHiraHluwHmngHmnpItalJamoJavaJpanKaliKanaKawiKhmrKhojKitsKndaKoreKraiKthiLanaLaooLatnLepcLimbLinaLinbLisuLyciMahjMakaMarcMedfMlymModiMongMrooMteiMultMymrNagmNandNewaNshuOgamOlckOnaoOryaOsgeOsmaPaucPermPhagPlrdRjngRunrSaurSgnwShawShrdSiddSindSinhSoraSoyoSundSunuSyloTagbTakrTaleTaluTamlTangTavtTayoTeluTfngTglgThaiTibtTirhTnsaTodrTolsTotoTutgUgarVaiiVithWaraWchoXpeoXsuxYiiiZanb") } };
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleScriptDirectionV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleScriptDirectionV1>, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_SCRIPT_DIRECTION_V1), metadata: icu_provider::DataResponseMetadata::default() })
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleScriptDirectionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , ITER) => {
- __impl_locale_script_direction_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleScriptDirectionV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
- ($ provider : ty , DRY) => {
- __impl_locale_script_direction_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleScriptDirectionV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleScriptDirectionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- };
- ($ provider : ty , DRY , ITER) => {
- __impl_locale_script_direction_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleScriptDirectionV1> for $provider {
- fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
- if req.id.locale.is_unknown() {
- Ok(icu_provider::DataResponseMetadata::default())
- } else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleScriptDirectionV1 as icu_provider::DataMarker>::INFO, req))
- }
- }
- }
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleScriptDirectionV1> for $provider {
- fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
- Ok([Default::default()].into_iter().collect())
- }
- }
- };
-}
-#[doc(inline)]
-pub use __impl_locale_script_direction_v1 as impl_locale_script_direction_v1;
diff --git a/deps/crates/vendor/icu_collections-v2/.cargo-checksum.json b/deps/crates/vendor/icu_locale_fallback-v2/.cargo-checksum.json
similarity index 100%
rename from deps/crates/vendor/icu_collections-v2/.cargo-checksum.json
rename to deps/crates/vendor/icu_locale_fallback-v2/.cargo-checksum.json
diff --git a/deps/crates/vendor/icu_locale_fallback-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_locale_fallback-v2/.cargo_vcs_info.json
new file mode 100644
index 00000000000..b7ce2123ca9
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback-v2/.cargo_vcs_info.json
@@ -0,0 +1,6 @@
+{
+ "git": {
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
+ },
+ "path_in_vcs": "components/locale_fallback"
+}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale-v2/Cargo.lock b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.lock
similarity index 73%
rename from deps/crates/vendor/icu_locale-v2/Cargo.lock
rename to deps/crates/vendor/icu_locale_fallback-v2/Cargo.lock
index 245cb515af5..c24164a6a43 100644
--- a/deps/crates/vendor/icu_locale-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aho-corasick"
-version = "1.1.4"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
dependencies = [
"memchr",
]
@@ -25,15 +25,15 @@ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
[[package]]
name = "autocfg"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "bumpalo"
-version = "3.20.2"
+version = "3.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
[[package]]
name = "cast"
@@ -43,9 +43,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -76,18 +76,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -95,9 +95,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -146,9 +146,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.6"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -156,18 +156,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.18"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.21"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -188,32 +188,32 @@ dependencies = [
[[package]]
name = "databake-derive"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
+checksum = "495503291b258422ea2bb9863d9f4e31eadbc5bcbdbe8b721769fa2c98dc4d41"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "displaydoc"
-version = "0.2.5"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "either"
-version = "1.15.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "erased-serde"
@@ -238,35 +238,33 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
-name = "icu_collections"
-version = "2.2.0"
+name = "icu_locale_core"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
dependencies = [
"databake",
"displaydoc",
- "potential_utf",
+ "litemap",
"serde",
- "utf8_iter",
- "yoke",
- "zerofrom",
+ "tinystr",
+ "writeable",
"zerovec",
]
[[package]]
-name = "icu_locale"
-version = "2.2.0"
+name = "icu_locale_fallback"
+version = "2.4.0"
dependencies = [
"criterion",
"databake",
- "icu_collections",
"icu_locale_core",
- "icu_locale_data",
+ "icu_locale_fallback_data",
"icu_provider",
"potential_utf",
"serde",
@@ -276,31 +274,16 @@ dependencies = [
]
[[package]]
-name = "icu_locale_core"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
-dependencies = [
- "databake",
- "displaydoc",
- "litemap",
- "serde",
- "tinystr",
- "writeable",
- "zerovec",
-]
-
-[[package]]
-name = "icu_locale_data"
-version = "2.2.0"
+name = "icu_locale_fallback_data"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
+checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c"
[[package]]
name = "icu_provider"
-version = "2.2.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
dependencies = [
"databake",
"displaydoc",
@@ -344,9 +327,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "js-sys"
-version = "0.3.91"
+version = "0.3.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c"
+checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -354,21 +337,21 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.183"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "litemap"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
[[package]]
name = "memchr"
-version = "2.8.0"
+version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
name = "num-traits"
@@ -431,9 +414,9 @@ dependencies = [
[[package]]
name = "potential_utf"
-version = "0.1.5"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
dependencies = [
"serde_core",
"writeable",
@@ -442,18 +425,18 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
@@ -480,9 +463,9 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.12.3"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
dependencies = [
"aho-corasick",
"memchr",
@@ -492,9 +475,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.14"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
"aho-corasick",
"memchr",
@@ -503,15 +486,15 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.10"
+version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "rustversion"
-version = "1.0.22"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
[[package]]
name = "same-file"
@@ -524,9 +507,9 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
@@ -534,29 +517,29 @@ dependencies = [
[[package]]
name = "serde_core"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.149"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -573,9 +556,20 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "syn"
-version = "2.0.117"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -584,40 +578,40 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "thiserror"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
+checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
+checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "tinystr"
-version = "0.8.3"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
dependencies = [
"databake",
"displaydoc",
@@ -643,15 +637,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
-
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
@@ -665,9 +653,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e"
+checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0"
dependencies = [
"cfg-if",
"once_cell",
@@ -678,9 +666,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6"
+checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -688,31 +676,31 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3"
+checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.119",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.114"
+version = "0.2.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16"
+checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b"
dependencies = [
"unicode-ident",
]
[[package]]
name = "web-sys"
-version = "0.3.91"
+version = "0.3.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9"
+checksum = "cd70027e39b12f0849461e08ffc50b9cd7688d942c1c8e3c7b22273236b4dd0a"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -744,15 +732,15 @@ dependencies = [
[[package]]
name = "writeable"
-version = "0.6.2"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
[[package]]
name = "yoke"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -761,42 +749,42 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "zerofrom"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
dependencies = [
"zerofrom-derive",
]
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "zerotrie"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
dependencies = [
"displaydoc",
"zerovec",
@@ -804,9 +792,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.6"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"databake",
"serde",
@@ -817,17 +805,17 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.3"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.9",
]
[[package]]
name = "zmij"
-version = "1.0.21"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
diff --git a/deps/crates/vendor/icu_locale-v2/Cargo.toml b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml
similarity index 83%
rename from deps/crates/vendor/icu_locale-v2/Cargo.toml
rename to deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml
index ea69b0cb6a2..4d1745c1d10 100644
--- a/deps/crates/vendor/icu_locale-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml
@@ -10,10 +10,10 @@
# See Cargo.toml.orig for the original contents.
[package]
-edition = "2021"
-rust-version = "1.86"
-name = "icu_locale"
-version = "2.2.0"
+edition = "2024"
+rust-version = "1.88"
+name = "icu_locale_fallback"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -32,13 +32,15 @@ autobins = false
autoexamples = false
autotests = false
autobenches = false
-description = "API for Unicode Language and Locale Identifiers canonicalization"
+description = "API for Locale Fallback algorithms"
homepage = "https://icu4x.unicode.org"
readme = "README.md"
keywords = [
"unicode",
"language-tags",
"bcp47",
+ "locale",
+ "fallback",
]
categories = [
"internationalization",
@@ -48,6 +50,7 @@ categories = [
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
+resolver = "2"
[package.metadata.cargo-all-features]
skip_optional_dependencies = true
@@ -57,7 +60,7 @@ all-features = true
[features]
compiled_data = [
- "dep:icu_locale_data",
+ "dep:icu_locale_fallback_data",
"icu_provider/baked",
]
datagen = [
@@ -66,7 +69,6 @@ datagen = [
"zerovec/databake",
"icu_locale_core/databake",
"tinystr/databake",
- "icu_collections/databake",
"icu_provider/export",
]
default = ["compiled_data"]
@@ -77,49 +79,35 @@ serde = [
"zerovec/serde",
"icu_provider/serde",
"potential_utf/serde",
- "icu_collections/serde",
]
+std = ["icu_provider/std"]
[lib]
-name = "icu_locale"
+name = "icu_locale_fallback"
path = "src/lib.rs"
bench = false
-[[test]]
-name = "locale_canonicalizer"
-path = "tests/locale_canonicalizer.rs"
-required-features = ["serde"]
-
-[[bench]]
-name = "locale_canonicalizer"
-path = "benches/locale_canonicalizer.rs"
-harness = false
-
[dependencies.databake]
version = "0.2.0"
features = ["derive"]
optional = true
default-features = false
-[dependencies.icu_collections]
-version = "~2.2.0"
-default-features = false
-
[dependencies.icu_locale_core]
-version = "2.2.0"
+version = "2.4.0"
features = [
"alloc",
"zerovec",
]
default-features = false
-[dependencies.icu_locale_data]
-version = "~2.2.0"
+[dependencies.icu_locale_fallback_data]
+version = "~2.4.0"
optional = true
default-features = false
[dependencies.icu_provider]
-version = "2.2.0"
+version = "2.4.0"
features = ["alloc"]
default-features = false
@@ -141,7 +129,7 @@ optional = true
default-features = false
[dependencies.tinystr]
-version = "0.8.3"
+version = "0.8.5"
features = [
"alloc",
"zerovec",
@@ -149,7 +137,7 @@ features = [
default-features = false
[dependencies.zerovec]
-version = "0.11.6"
+version = "0.11.9"
features = [
"alloc",
"yoke",
@@ -168,8 +156,9 @@ version = "1.0.45"
version = "0.5.0"
[lints.clippy]
-alloc-instead-of-core = "warn"
-branches-sharing-code = "warn"
+alloc_instead_of_core = "warn"
+bool_assert_comparison = "allow"
+branches_sharing_code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
@@ -184,7 +173,7 @@ mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
-or-fun-call = "warn"
+or_fun_call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
@@ -195,7 +184,7 @@ transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
+unnecessary_wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
@@ -212,6 +201,7 @@ priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
+ "cfg(icu4x_nightly_tests)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]
diff --git a/deps/crates/vendor/icu_locale-v2/Cargo.toml.orig b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml.orig
similarity index 70%
rename from deps/crates/vendor/icu_locale-v2/Cargo.toml.orig
rename to deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml.orig
index 41e83c924d5..be58e4cdb99 100644
--- a/deps/crates/vendor/icu_locale-v2/Cargo.toml.orig
+++ b/deps/crates/vendor/icu_locale_fallback-v2/Cargo.toml.orig
@@ -3,10 +3,10 @@
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
[package]
-name = "icu_locale"
-description = "API for Unicode Language and Locale Identifiers canonicalization"
+name = "icu_locale_fallback"
+description = "API for Locale Fallback algorithms"
categories.workspace = true
-keywords = ["unicode", "language-tags", "bcp47"]
+keywords = ["unicode", "language-tags", "bcp47", "locale", "fallback"]
authors.workspace = true
edition.workspace = true
@@ -30,11 +30,9 @@ icu_provider = { workspace = true, features = ["alloc"] }
serde = { workspace = true, features = ["derive", "alloc"], optional = true }
tinystr = { workspace = true, features = ["alloc", "zerovec"] }
potential_utf = { workspace = true, features = ["alloc", "zerovec"] }
-zerovec = { workspace = true, features = ["alloc", "yoke"] }
+zerovec = { workspace = true, features = ["alloc", "yoke"] }
-icu_collections = { workspace = true }
-
-icu_locale_data = { workspace = true, optional = true }
+icu_locale_fallback_data = { workspace = true, optional = true }
[dev-dependencies]
serde = { workspace = true, features = ["derive"] }
@@ -50,17 +48,10 @@ bench = false # This option is required for Benchmark CI
[features]
default = ["compiled_data"]
-serde = ["dep:serde", "icu_locale_core/serde", "tinystr/serde", "zerovec/serde", "icu_provider/serde", "potential_utf/serde", "icu_collections/serde"]
-datagen = ["serde", "dep:databake", "zerovec/databake", "icu_locale_core/databake", "tinystr/databake", "icu_collections/databake", "icu_provider/export"]
-compiled_data = ["dep:icu_locale_data", "icu_provider/baked"]
-
-[[bench]]
-name = "locale_canonicalizer"
-harness = false
-
-[[test]]
-name = "locale_canonicalizer"
-required-features = ["serde"]
+std = ["icu_provider/std"]
+serde = ["dep:serde", "icu_locale_core/serde", "tinystr/serde", "zerovec/serde", "icu_provider/serde", "potential_utf/serde"]
+datagen = ["serde", "dep:databake", "zerovec/databake", "icu_locale_core/databake", "tinystr/databake", "icu_provider/export"]
+compiled_data = ["dep:icu_locale_fallback_data", "icu_provider/baked"]
[lints]
workspace = true
diff --git a/deps/crates/vendor/icu_collections-v2/LICENSE b/deps/crates/vendor/icu_locale_fallback-v2/LICENSE
similarity index 100%
rename from deps/crates/vendor/icu_collections-v2/LICENSE
rename to deps/crates/vendor/icu_locale_fallback-v2/LICENSE
diff --git a/deps/crates/vendor/icu_locale_fallback-v2/README.md b/deps/crates/vendor/icu_locale_fallback-v2/README.md
new file mode 100644
index 00000000000..0c4a94695eb
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback-v2/README.md
@@ -0,0 +1,8 @@
+# icu_locale_fallback [](https://crates.io/crates/icu_locale_fallback)
+
+<!-- cargo-rdme start -->
+
+Tools for locale fallback, enabling arbitrary input locales to be mapped into the nearest
+locale with data.
+
+<!-- cargo-rdme end -->
diff --git a/deps/crates/vendor/icu_locale-v2/src/fallback/algorithms.rs b/deps/crates/vendor/icu_locale_fallback-v2/src/algorithms.rs
similarity index 90%
rename from deps/crates/vendor/icu_locale-v2/src/fallback/algorithms.rs
rename to deps/crates/vendor/icu_locale_fallback-v2/src/algorithms.rs
index 7b7ab742b05..e15d0afc530 100644
--- a/deps/crates/vendor/icu_locale-v2/src/fallback/algorithms.rs
+++ b/deps/crates/vendor/icu_locale_fallback-v2/src/algorithms.rs
@@ -3,23 +3,21 @@
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
use super::LocaleFallbackPriority;
-use icu_locale_core::subtags::{Language, Region, Script};
+use ::icu_locale_core::subtags::{Language, Region, Script};
use super::*;
impl LocaleFallbackerWithConfig<'_> {
pub(crate) fn normalize(&self, locale: &mut DataLocale, default_script: &mut Option<Script>) {
// 0. If there is an invalid or trivial "sd" subtag, drop it
- if let Some(subdivision) = locale.subdivision.take() {
- if let Some(region) = locale.region {
- if subdivision
- .as_str()
- .starts_with(region.to_tinystr().to_ascii_lowercase().as_str())
- && !subdivision.as_str().ends_with("zzzz")
- {
- locale.subdivision = Some(subdivision);
- }
- }
+ if let Some(subdivision) = locale.subdivision.take()
+ && let Some(region) = locale.region
+ && subdivision
+ .as_str()
+ .starts_with(region.to_tinystr().to_ascii_lowercase().as_str())
+ && !subdivision.as_str().ends_with("zzzz")
+ {
+ locale.subdivision = Some(subdivision);
}
let language = locale.language;
// 1. Populate the region (required for region fallback only)
@@ -45,7 +43,10 @@ impl LocaleFallbackerWithConfig<'_> {
}
}
// 2. Remove the script if it is implied by the other subtags
- if locale.script.is_some() || self.config.priority == LocaleFallbackPriority::Script {
+ if locale.script.is_some()
+ || locale.region.is_some()
+ || self.config.priority == LocaleFallbackPriority::Script
+ {
*default_script = locale
.region
.and_then(|region| {
@@ -106,16 +107,18 @@ impl LocaleFallbackIteratorInner<'_> {
return;
}
// 7. Remove region
- if let Some(region) = locale.region {
- // 6. Add the script subtag if necessary
- if locale.script.is_none() {
- let language = locale.language;
- if let Some(script) = self.likely_subtags.language_region.get_copied(&(
- language.to_tinystr().to_unvalidated(),
- region.to_tinystr().to_unvalidated(),
- )) {
- locale.script = Some(script);
- }
+ if let Some(_region) = locale.region {
+ // note: self.backup_region is not used right now
+ // 6. Add or remove the script subtag if necessary
+ let language_implied_script = self
+ .likely_subtags
+ .language
+ .get_copied(&locale.language.to_tinystr().to_unvalidated())
+ .map(|(s, _r)| s);
+ if language_implied_script != self.max_script {
+ locale.script = self.max_script;
+ } else {
+ locale.script = None;
}
locale.region = None;
locale.variant = self.backup_variant.take();
@@ -183,6 +186,8 @@ impl LocaleFallbackIteratorInner<'_> {
.map(|(s, _r)| s);
if language_implied_script != self.max_script {
locale.script = self.max_script;
+ } else {
+ locale.script = None;
}
locale.region = None;
locale.variant = self.backup_variant.take();
@@ -237,8 +242,8 @@ impl LocaleFallbackIteratorInner<'_> {
#[cfg(test)]
mod tests {
use super::*;
- use icu_locale_core::preferences::LocalePreferences;
use icu_locale_core::Locale;
+ use icu_locale_core::preferences::LocalePreferences;
use writeable::Writeable;
struct TestCase {
@@ -327,6 +332,13 @@ mod tests {
expected_script_chain: &["sr-ME", "sr-Latn", "und-Latn"],
expected_region_chain: &["sr-ME", "und-ME"],
},
+ TestCase {
+ input: "sr-Cyrl-ME",
+ requires_data: true,
+ expected_language_chain: &["sr-Cyrl-ME", "sr"],
+ expected_script_chain: &["sr-Cyrl-ME", "sr", "und-Cyrl"],
+ expected_region_chain: &["sr-Cyrl-ME", "und-ME"],
+ },
TestCase {
input: "sr-ME-fonipa",
requires_data: true,
@@ -414,6 +426,13 @@ mod tests {
expected_script_chain: &["zh-CN", "zh", "und-Hans", "und-Hani"],
expected_region_chain: &["zh-CN", "und-CN"],
},
+ TestCase {
+ input: "zh-Hant-CN",
+ requires_data: true,
+ expected_language_chain: &["zh-Hant-CN", "zh-Hant"],
+ expected_script_chain: &["zh-Hant-CN", "zh-Hant", "und-Hant", "und-Hani"],
+ expected_region_chain: &["zh-Hant-CN", "und-CN"],
+ },
TestCase {
input: "zh-TW",
requires_data: true,
@@ -421,6 +440,13 @@ mod tests {
expected_script_chain: &["zh-TW", "zh-Hant", "und-Hant", "und-Hani"],
expected_region_chain: &["zh-TW", "und-TW"],
},
+ TestCase {
+ input: "zh-Hans-TW",
+ requires_data: true,
+ expected_language_chain: &["zh-Hans-TW", "zh"],
+ expected_script_chain: &["zh-Hans-TW", "zh", "und-Hans", "und-Hani"],
+ expected_region_chain: &["zh-Hans-TW", "und-TW"],
+ },
TestCase {
input: "yue-HK",
requires_data: true,
diff --git a/deps/crates/vendor/icu_locale-v2/src/fallback/mod.rs b/deps/crates/vendor/icu_locale_fallback-v2/src/lib.rs
similarity index 86%
rename from deps/crates/vendor/icu_locale-v2/src/fallback/mod.rs
rename to deps/crates/vendor/icu_locale_fallback-v2/src/lib.rs
index de46418de49..919b57275a0 100644
--- a/deps/crates/vendor/icu_locale-v2/src/fallback/mod.rs
+++ b/deps/crates/vendor/icu_locale_fallback-v2/src/lib.rs
@@ -5,14 +5,28 @@
//! Tools for locale fallback, enabling arbitrary input locales to be mapped into the nearest
//! locale with data.
+// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations
+#![cfg_attr(not(any(test, doc)), no_std)]
+#![cfg_attr(
+ not(test),
+ deny(
+ clippy::indexing_slicing,
+ clippy::unwrap_used,
+ clippy::expect_used,
+ clippy::panic,
+ )
+)]
+#![warn(missing_docs)]
+
use crate::provider::*;
-use icu_locale_core::subtags::*;
+use icu_locale_core::subtags::{Language, Region, Script, Subtag, Variant, region, script};
use icu_provider::prelude::*;
#[doc(inline)]
pub use icu_provider::fallback::{LocaleFallbackConfig, LocaleFallbackPriority};
mod algorithms;
+pub mod provider;
/// Implements the algorithm defined in *[UTS #35: Locale Inheritance and Matching]*.
///
@@ -20,6 +34,9 @@ mod algorithms;
/// algorithm. See *[the design doc]* for a detailed description and [#2243](
/// https://github.com/unicode-org/icu4x/issues/2243) to track alignment with *UTS #35*.
///
+/// While the first element produced here is *usually* the input locale,
+/// the fallback iterator normalizes the input locale first, which may strip implied subtags.
+///
/// If running fallback in a loop, use [`DataLocale::is_unknown()`] to break from the loop.
///
/// # Examples
@@ -51,9 +68,27 @@ mod algorithms;
/// assert_eq!(fallback_iterator.get(), &locale!("und").into());
/// ```
///
+/// `zh-Hans` normalizes to `zh` because `Hans` is the default script for `zh`:
+///
+/// ```
+/// use icu::locale::fallback::LocaleFallbacker;
+/// use icu::locale::locale;
+///
+/// // Set up a LocaleFallbacker with data.
+/// let fallbacker = LocaleFallbacker::new();
+///
+/// let mut fallback_iterator = fallbacker
+/// .for_config(Default::default())
+/// .fallback_for(locale!("zh-Hans").into());
+///
+/// // The origin "zh-Hans" is normalized to "zh" because Hans is the default script.
+/// assert_eq!(fallback_iterator.get(), &locale!("zh").into());
+/// fallback_iterator.step();
+/// assert_eq!(fallback_iterator.get(), &locale!("und").into());
+/// ```
+///
/// [UTS #35: Locale Inheritance and Matching]: https://www.unicode.org/reports/tr35/#Locale_Inheritance
/// [the design doc]: https://docs.google.com/document/d/1Mp7EUyl-sFh_HZYgyeVwj88vJGpCBIWxzlCwGgLCDwM/edit
-#[doc(hidden)] // canonical location in super
#[derive(Debug, Clone, PartialEq)]
pub struct LocaleFallbacker {
likely_subtags: DataPayload<LocaleLikelySubtagsLanguageV1>,
@@ -148,11 +183,7 @@ impl LocaleFallbacker {
language_region: Default::default(),
language_script: Default::default(),
// Unused
- und: (
- Language::UNKNOWN,
- crate::subtags::script!("Zzzz"),
- crate::subtags::region!("ZZ"),
- ),
+ und: (Language::UNKNOWN, script!("Zzzz"), region!("ZZ")),
}),
parents: DataPayload::from_owned(Default::default()),
}
@@ -238,6 +269,11 @@ impl<'a> LocaleFallbackerWithConfig<'a> {
},
}
}
+
+ /// Returns this fallbacker's configuration.
+ pub fn config(&self) -> LocaleFallbackConfig {
+ self.config
+ }
}
impl LocaleFallbackIterator<'_> {
diff --git a/deps/crates/vendor/icu_locale_fallback-v2/src/provider.rs b/deps/crates/vendor/icu_locale_fallback-v2/src/provider.rs
new file mode 100644
index 00000000000..fa0ce34be74
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback-v2/src/provider.rs
@@ -0,0 +1,135 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top level of the ICU4X source tree
+// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
+
+// Provider structs must be stable
+#![allow(clippy::exhaustive_structs, clippy::exhaustive_enums)]
+
+//! 🚧 \[Unstable\] Data provider struct definitions for this ICU4X component.
+//!
+//! <div class="stab unstable">
+//! 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
+//! including in SemVer minor releases. While the serde representation of data structs is guaranteed
+//! to be stable, their Rust representation might not be. Use with caution.
+//! </div>
+//!
+//! Read more about data providers: [`icu_provider`]
+
+#[cfg(feature = "compiled_data")]
+#[derive(Debug)]
+/// Baked data
+///
+/// <div class="stab unstable">
+/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
+/// including in SemVer minor releases. In particular, the `DataProvider` implementations are only
+/// guaranteed to match with this version's `*_unstable` providers. Use with caution.
+/// </div>
+pub struct Baked;
+
+#[cfg(feature = "compiled_data")]
+#[allow(unused_imports)]
+const _: () = {
+ use icu_locale_fallback_data::*;
+ pub mod icu {
+ pub mod locale {
+ pub use crate as fallback;
+ }
+ }
+ pub use crate as icu_locale_fallback;
+ make_provider!(Baked);
+ impl_locale_likely_subtags_language_v1!(Baked);
+ impl_locale_parents_v1!(Baked);
+};
+
+icu_provider::data_marker!(
+ /// Marker for data for likely subtags for languages.
+ LocaleLikelySubtagsLanguageV1,
+ "locale/likely/subtags/language/v1",
+ LikelySubtagsForLanguage<'static>,
+ is_singleton = true
+);
+icu_provider::data_marker!(
+ /// Marker for locale fallback parents data.
+ LocaleParentsV1,
+ "locale/parents/v1",
+ Parents<'static>,
+ is_singleton = true
+);
+
+#[cfg(feature = "datagen")]
+/// The latest minimum set of markers required by this component.
+pub const MARKERS: &[DataMarkerInfo] =
+ &[LocaleLikelySubtagsLanguageV1::INFO, LocaleParentsV1::INFO];
+
+use icu_locale_core::subtags::{Language, Region, Script};
+use icu_provider::prelude::*;
+use potential_utf::PotentialUtf8;
+use tinystr::UnvalidatedTinyAsciiStr;
+use zerovec::ZeroMap;
+
+type UnvalidatedLanguage = UnvalidatedTinyAsciiStr<3>;
+type UnvalidatedScript = UnvalidatedTinyAsciiStr<4>;
+type UnvalidatedRegion = UnvalidatedTinyAsciiStr<3>;
+
+#[derive(Debug, PartialEq, Clone, yoke::Yokeable, zerofrom::ZeroFrom)]
+#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
+#[cfg_attr(feature = "datagen", databake(path = icu_locale_fallback::provider))]
+#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
+/// This likely subtags data is used for the minimize and maximize operations.
+///
+/// Each field defines a mapping from an old identifier to a new identifier,
+/// based upon the rules in
+/// <https://www.unicode.org/reports/tr35/#Likely_Subtags>.
+///
+/// The data is stored is broken down into smaller vectors based upon the rules
+/// defined for the likely subtags maximize algorithm.
+///
+/// For efficiency, only the relevant part of the [`icu_locale_core::LanguageIdentifier`] is stored
+/// for searching and replacing. E.g., the `language_script` field is used to store
+/// rules for [`icu_locale_core::LanguageIdentifier`]s that contain a language and a script, but not a
+/// region.
+///
+/// This struct contains mappings when the input contains a language subtag.
+///
+/// <div class="stab unstable">
+/// 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
+/// including in SemVer minor releases. While the serde representation of data structs is guaranteed
+/// to be stable, their Rust representation might not be. Use with caution.
+/// </div>
+#[yoke(prove_covariance_manually)]
+pub struct LikelySubtagsForLanguage<'data> {
+ /// Language and script.
+ #[cfg_attr(feature = "serde", serde(borrow))]
+ pub language_script: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedScript), Region>,
+ /// Language and region.
+ #[cfg_attr(feature = "serde", serde(borrow))]
+ pub language_region: ZeroMap<'data, (UnvalidatedLanguage, UnvalidatedRegion), Script>,
+ /// Just language.
+ #[cfg_attr(feature = "serde", serde(borrow))]
+ pub language: ZeroMap<'data, UnvalidatedLanguage, (Script, Region)>,
+ /// Undefined.
+ pub und: (Language, Script, Region),
+}
+
+icu_provider::data_struct!(
+ LikelySubtagsForLanguage<'_>,
+ #[cfg(feature = "datagen")]
+);
+
+/// Locale fallback rules derived from CLDR parent locales data.
+#[derive(Default, Clone, PartialEq, Debug, yoke::Yokeable, zerofrom::ZeroFrom)]
+#[cfg_attr(feature = "datagen", derive(serde::Serialize, databake::Bake))]
+#[cfg_attr(feature = "datagen", databake(path = icu_locale_fallback::provider))]
+#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
+#[yoke(prove_covariance_manually)]
+pub struct Parents<'data> {
+ /// Map from language identifier to language identifier, indicating that the language on the
+ /// left should inherit from the language on the right.
+ #[cfg_attr(feature = "serde", serde(borrow))]
+ pub parents: ZeroMap<'data, PotentialUtf8, (Language, Option<Script>, Option<Region>)>,
+}
+
+icu_provider::data_struct!(
+ Parents<'_>,
+ #[cfg(feature = "datagen")]
+);
diff --git a/deps/crates/vendor/icu_locale-v2/.cargo-checksum.json b/deps/crates/vendor/icu_locale_fallback_data-v2/.cargo-checksum.json
similarity index 100%
rename from deps/crates/vendor/icu_locale-v2/.cargo-checksum.json
rename to deps/crates/vendor/icu_locale_fallback_data-v2/.cargo-checksum.json
diff --git a/deps/crates/vendor/icu_locale_fallback_data-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_locale_fallback_data-v2/.cargo_vcs_info.json
new file mode 100644
index 00000000000..e35ce0d7875
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/.cargo_vcs_info.json
@@ -0,0 +1,6 @@
+{
+ "git": {
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
+ },
+ "path_in_vcs": "provider/data/locale_fallback"
+}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale_data-v2/Cargo.lock b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.lock
similarity index 69%
rename from deps/crates/vendor/icu_locale_data-v2/Cargo.lock
rename to deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.lock
index 607c357b95b..01688a8e640 100644
--- a/deps/crates/vendor/icu_locale_data-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.lock
@@ -3,5 +3,5 @@
version = 3
[[package]]
-name = "icu_locale_data"
-version = "2.2.0"
+name = "icu_locale_fallback_data"
+version = "2.4.0"
diff --git a/deps/crates/vendor/icu_locale_data-v2/Cargo.toml b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml
similarity index 83%
rename from deps/crates/vendor/icu_locale_data-v2/Cargo.toml
rename to deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml
index bbb57e0684a..bf6e4bfce10 100644
--- a/deps/crates/vendor/icu_locale_data-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml
@@ -10,10 +10,10 @@
# See Cargo.toml.orig for the original contents.
[package]
-edition = "2021"
-rust-version = "1.86"
-name = "icu_locale_data"
-version = "2.2.0"
+edition = "2024"
+rust-version = "1.88"
+name = "icu_locale_fallback_data"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = "build.rs"
include = [
@@ -32,7 +32,7 @@ autobins = false
autoexamples = false
autotests = false
autobenches = false
-description = "Data for the icu_locale crate"
+description = "Data for the icu_locale_fallback crate"
homepage = "https://icu4x.unicode.org"
readme = "README.md"
keywords = [
@@ -47,18 +47,19 @@ categories = [
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
+resolver = "2"
[package.metadata.sources.cldr]
-tagged = "48.2.0"
+tagged = "49.0.0"
-[package.metadata.sources.icuexport]
-tagged = "release-78.1rc"
+[package.metadata.sources.unicode]
+tagged = "18.0.0"
[package.metadata.sources.segmenter_lstm]
tagged = "v0.1.0"
[lib]
-name = "icu_locale_data"
+name = "icu_locale_fallback_data"
path = "src/lib.rs"
[dependencies]
diff --git a/deps/crates/vendor/icu_locale_data-v2/Cargo.toml.orig b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml.orig
similarity index 81%
rename from deps/crates/vendor/icu_locale_data-v2/Cargo.toml.orig
rename to deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml.orig
index 525404653ee..da9a7d6c47e 100644
--- a/deps/crates/vendor/icu_locale_data-v2/Cargo.toml.orig
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/Cargo.toml.orig
@@ -3,8 +3,8 @@
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
[package]
-name = "icu_locale_data"
-description = "Data for the icu_locale crate"
+name = "icu_locale_fallback_data"
+description = "Data for the icu_locale_fallback crate"
categories.workspace = true
keywords = ["data", "unicode"]
license = "Unicode-3.0"
@@ -18,8 +18,8 @@ repository.workspace = true
rust-version.workspace = true
[package.metadata.sources]
-cldr = { tagged = "48.2.0" }
-icuexport = { tagged = "release-78.1rc" }
+cldr = { tagged = "49.0.0" }
+unicode = { tagged = "18.0.0" }
segmenter_lstm = { tagged = "v0.1.0" }
[lints.rust]
diff --git a/deps/crates/vendor/icu_locale-v2/LICENSE b/deps/crates/vendor/icu_locale_fallback_data-v2/LICENSE
similarity index 100%
rename from deps/crates/vendor/icu_locale-v2/LICENSE
rename to deps/crates/vendor/icu_locale_fallback_data-v2/LICENSE
diff --git a/deps/crates/vendor/icu_locale_fallback_data-v2/README.md b/deps/crates/vendor/icu_locale_fallback_data-v2/README.md
new file mode 100644
index 00000000000..3ec079be8f6
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/README.md
@@ -0,0 +1,14 @@
+# icu_locale_fallback_data [](https://crates.io/crates/icu_locale_fallback_data)
+
+<!-- cargo-rdme start -->
+
+Data for the `icu_locale_fallback` crate
+
+This data was generated with CLDR version 49.0.0, Unicode version 18.0.0, and
+LSTM segmenter version v0.1.0.
+
+<!-- cargo-rdme end -->
+
+## More Information
+
+For more information on development, authorship, contributing etc. please visit [`ICU4X home page`](https://github.com/unicode-org/icu4x).
diff --git a/deps/crates/vendor/icu_locale_data-v2/build.rs b/deps/crates/vendor/icu_locale_fallback_data-v2/build.rs
similarity index 100%
rename from deps/crates/vendor/icu_locale_data-v2/build.rs
rename to deps/crates/vendor/icu_locale_fallback_data-v2/build.rs
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_language_v1.rs.data b/deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_likely_subtags_language_v1.rs.data
similarity index 55%
rename from deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_language_v1.rs.data
rename to deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_likely_subtags_language_v1.rs.data
index 110343f582f..d04dd379aa4 100644
--- a/deps/crates/vendor/icu_locale_data-v2/data/locale_likely_subtags_language_v1.rs.data
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_likely_subtags_language_v1.rs.data
@@ -4,7 +4,7 @@
/// `icu`'s `_unstable` constructors.
///
/// Using this implementation will embed the following data in the binary's data segment:
-/// * 2440B[^1] for the singleton data struct
+/// * 2550B[^1] for the singleton data struct
///
/// [^1]: these numbers can be smaller in practice due to linker deduplication
///
@@ -17,12 +17,12 @@
#[macro_export]
macro_rules! __impl_locale_likely_subtags_language_v1 {
($ provider : ty) => {
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl $provider {
#[doc(hidden)]
- pub const SINGLETON_LOCALE_LIKELY_SUBTAGS_LANGUAGE_V1: &'static <icu::locale::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::locale::provider::LikelySubtagsForLanguage {
+ pub const SINGLETON_LOCALE_LIKELY_SUBTAGS_LANGUAGE_V1: &'static <icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu_locale_fallback::provider::LikelySubtagsForLanguage {
language_script: unsafe {
#[allow(unused_unsafe)]
zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"az\0Araben\0Shawff\0Adlmkk\0Arabku\0Arabku\0Cyrlku\0Yeziky\0Arabky\0Latnmn\0Mongpa\0Arabsd\0Devasd\0Khojsd\0Sindtg\0Arabug\0Cyrluz\0ArabyueHanszh\0Bopozh\0Hanbzh\0Hant") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"IR\0GB\0GN\0CN\0IQ\0AM\0GE\0CN\0TR\0CN\0PK\0IN\0IN\0IN\0PK\0KZ\0AF\0CN\0TW\0TW\0TW\0") })
@@ -33,26 +33,26 @@ macro_rules! __impl_locale_likely_subtags_language_v1 {
},
language: unsafe {
#[allow(unused_unsafe)]
- zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"af\0ak\0am\0ar\0as\0astaz\0ba\0balbe\0bg\0bgcbhoblobn\0br\0brxbs\0buaca\0cebchrcs\0cswcv\0cy\0da\0de\0doidsbee\0el\0en\0eo\0es\0et\0eu\0fa\0ff\0fi\0filfo\0fr\0fy\0ga\0gaagd\0gl\0gu\0ha\0he\0hi\0hr\0hsbhu\0hy\0ia\0id\0ie\0ig\0ii\0is\0it\0ja\0jv\0ka\0keakgpkk\0km\0kn\0ko\0kokks\0ku\0kxvky\0lb\0lijlmolo\0lt\0lv\0maimi\0mk\0ml\0mn\0mnimr\0ms\0mt\0my\0ndsne\0nl\0nn\0no\0nqonsooc\0om\0or\0pa\0pcmpl\0pmsps\0pt\0qu\0rajrm\0ro\0ru\0rw\0sa\0sahsatsc\0scnsd\0shnsi\0sk\0sl\0so\0sq\0sr\0st\0su\0sv\0sw\0syrszlta\0te\0tg\0th\0ti\0tk\0tn\0to\0tr\0tt\0tyvug\0uk\0ur\0uz\0vecvi\0vmwwo\0xh\0xnryo\0yrlyueza\0zh\0zu\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"LatnZA\0LatnGH\0EthiET\0ArabEG\0BengIN\0LatnES\0LatnAZ\0CyrlRU\0ArabPK\0CyrlBY\0CyrlBG\0DevaIN\0DevaIN\0LatnBJ\0BengBD\0LatnFR\0DevaIN\0LatnBA\0CyrlRU\0LatnES\0LatnPH\0CherUS\0LatnCZ\0CansCA\0CyrlRU\0LatnGB\0LatnDK\0LatnDE\0DevaIN\0LatnDE\0LatnGH\0GrekGR\0LatnUS\0Latn001LatnES\0LatnEE\0LatnES\0ArabIR\0LatnSN\0LatnFI\0LatnPH\0LatnFO\0LatnFR\0LatnNL\0LatnIE\0LatnGH\0LatnGB\0LatnES\0GujrIN\0LatnNG\0HebrIL\0DevaIN\0LatnHR\0LatnDE\0LatnHU\0ArmnAM\0Latn001LatnID\0LatnEE\0LatnNG\0YiiiCN\0LatnIS\0LatnIT\0JpanJP\0LatnID\0GeorGE\0LatnCV\0LatnBR\0CyrlKZ\0KhmrKH\0KndaIN\0KoreKR\0DevaIN\0ArabIN\0LatnTR\0LatnIN\0CyrlKG\0LatnLU\0LatnIT\0LatnIT\0LaooLA\0LatnLT\0LatnLV\0DevaIN\0LatnNZ\0CyrlMK\0MlymIN\0CyrlMN\0BengIN\0DevaIN\0LatnMY\0LatnMT\0MymrMM\0LatnDE\0DevaNP\0LatnNL\0LatnNO\0LatnNO\0NkooGN\0LatnZA\0LatnFR\0LatnET\0OryaIN\0GuruIN\0LatnNG\0LatnPL\0LatnIT\0ArabAF\0LatnBR\0LatnPE\0DevaIN\0LatnCH\0LatnRO\0CyrlRU\0LatnRW\0DevaIN\0CyrlRU\0OlckIN\0LatnIT\0LatnIT\0ArabPK\0MymrMM\0SinhLK\0LatnSK\0LatnSI\0LatnSO\0LatnAL\0CyrlRS\0LatnZA\0LatnID\0LatnSE\0LatnTZ\0SyrcIQ\0LatnPL\0TamlIN\0TeluIN\0CyrlTJ\0ThaiTH\0EthiET\0LatnTM\0LatnZA\0LatnTO\0LatnTR\0CyrlRU\0CyrlRU\0ArabCN\0CyrlUA\0ArabPK\0LatnUZ\0LatnIT\0LatnVN\0LatnMZ\0LatnSN\0LatnZA\0DevaIN\0LatnNG\0LatnBR\0HantHK\0LatnCN\0HansCN\0LatnZA\0") })
+ zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"adyaf\0ak\0am\0ar\0as\0astaz\0ba\0balbe\0bg\0bgcbhoblobn\0br\0brxbs\0buaca\0cebchrckbcopcs\0cswcv\0cy\0da\0de\0doidsbee\0el\0en\0eo\0es\0et\0eu\0fa\0ff\0fi\0filfo\0fr\0fy\0ga\0gaagd\0gl\0gu\0ha\0he\0hi\0hr\0hsbhu\0hy\0ia\0id\0ie\0ig\0ii\0is\0it\0ja\0jv\0ka\0kbdkeakekkgpki\0kk\0km\0kn\0ko\0kokks\0kshku\0kxvky\0lb\0lijlldlmolo\0lt\0lv\0maimi\0mk\0ml\0mn\0mnimr\0ms\0mt\0my\0ndsne\0nl\0nn\0no\0nqonsooc\0om\0or\0pa\0pcmpl\0pmsprgps\0pt\0qu\0qucrajrm\0ro\0ru\0rw\0sa\0sahsatsc\0scnsd\0shnsi\0sk\0sl\0so\0sq\0sr\0st\0su\0suzsv\0sw\0syrszlta\0te\0tg\0th\0ti\0tk\0tn\0to\0tr\0tt\0tyvug\0uk\0ur\0uz\0vecvi\0vmwwo\0xh\0xnryo\0yrlyueza\0zh\0zu\0") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"CyrlRU\0LatnZA\0LatnGH\0EthiET\0ArabEG\0BengIN\0LatnES\0LatnAZ\0CyrlRU\0ArabPK\0CyrlBY\0CyrlBG\0DevaIN\0DevaIN\0LatnBJ\0BengBD\0LatnFR\0DevaIN\0LatnBA\0CyrlRU\0LatnES\0LatnPH\0CherUS\0ArabIQ\0CoptEG\0LatnCZ\0CansCA\0CyrlRU\0LatnGB\0LatnDK\0LatnDE\0DevaIN\0LatnDE\0LatnGH\0GrekGR\0LatnUS\0Latn001LatnES\0LatnEE\0LatnES\0ArabIR\0LatnSN\0LatnFI\0LatnPH\0LatnFO\0LatnFR\0LatnNL\0LatnIE\0LatnGH\0LatnGB\0LatnES\0GujrIN\0LatnNG\0HebrIL\0DevaIN\0LatnHR\0LatnDE\0LatnHU\0ArmnAM\0Latn001LatnID\0LatnEE\0LatnNG\0YiiiCN\0LatnIS\0LatnIT\0JpanJP\0LatnID\0GeorGE\0CyrlRU\0LatnCV\0LatnGT\0LatnBR\0LatnKE\0CyrlKZ\0KhmrKH\0KndaIN\0KoreKR\0DevaIN\0ArabIN\0LatnDE\0LatnTR\0LatnIN\0CyrlKG\0LatnLU\0LatnIT\0LatnIT\0LatnIT\0LaooLA\0LatnLT\0LatnLV\0DevaIN\0LatnNZ\0CyrlMK\0MlymIN\0CyrlMN\0BengIN\0DevaIN\0LatnMY\0LatnMT\0MymrMM\0LatnDE\0DevaNP\0LatnNL\0LatnNO\0LatnNO\0NkooGN\0LatnZA\0LatnFR\0LatnET\0OryaIN\0GuruIN\0LatnNG\0LatnPL\0LatnIT\0LatnPL\0ArabAF\0LatnBR\0LatnPE\0LatnGT\0DevaIN\0LatnCH\0LatnRO\0CyrlRU\0LatnRW\0DevaIN\0CyrlRU\0OlckIN\0LatnIT\0LatnIT\0ArabPK\0MymrMM\0SinhLK\0LatnSK\0LatnSI\0LatnSO\0LatnAL\0CyrlRS\0LatnZA\0LatnID\0DevaNP\0LatnSE\0LatnTZ\0SyrcIQ\0LatnPL\0TamlIN\0TeluIN\0CyrlTJ\0ThaiTH\0EthiET\0LatnTM\0LatnZA\0LatnTO\0LatnTR\0CyrlRU\0CyrlRU\0ArabCN\0CyrlUA\0ArabPK\0LatnUZ\0LatnIT\0LatnVN\0LatnMZ\0LatnSN\0LatnZA\0DevaIN\0LatnNG\0LatnBR\0HantHK\0LatnCN\0HansCN\0LatnZA\0") })
},
und: (icu_locale_core::subtags::language!("en"), icu_locale_core::subtags::script!("Latn"), icu_locale_core::subtags::region!("US")),
};
}
- #[clippy::msrv = "1.86"]
- impl icu_provider::DataProvider<icu::locale::provider::LocaleLikelySubtagsLanguageV1> for $provider {
- fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::provider::LocaleLikelySubtagsLanguageV1>, icu_provider::DataError> {
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DataProvider<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1> for $provider {
+ fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1>, icu_provider::DataError> {
if req.id.locale.is_unknown() {
Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_LIKELY_SUBTAGS_LANGUAGE_V1), metadata: icu_provider::DataResponseMetadata::default() })
} else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
}
}
}
};
($ provider : ty , ITER) => {
__impl_locale_likely_subtags_language_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsLanguageV1> for $provider {
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::IterableDataProvider<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1> for $provider {
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
Ok([Default::default()].into_iter().collect())
}
@@ -60,31 +60,31 @@ macro_rules! __impl_locale_likely_subtags_language_v1 {
};
($ provider : ty , DRY) => {
__impl_locale_likely_subtags_language_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsLanguageV1> for $provider {
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DryDataProvider<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1> for $provider {
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
if req.id.locale.is_unknown() {
Ok(icu_provider::DataResponseMetadata::default())
} else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
}
}
}
};
($ provider : ty , DRY , ITER) => {
__impl_locale_likely_subtags_language_v1!($provider);
- #[clippy::msrv = "1.86"]
- impl icu_provider::DryDataProvider<icu::locale::provider::LocaleLikelySubtagsLanguageV1> for $provider {
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DryDataProvider<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1> for $provider {
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
if req.id.locale.is_unknown() {
Ok(icu_provider::DataResponseMetadata::default())
} else {
- Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1 as icu_provider::DataMarker>::INFO, req))
}
}
}
- #[clippy::msrv = "1.86"]
- impl icu_provider::IterableDataProvider<icu::locale::provider::LocaleLikelySubtagsLanguageV1> for $provider {
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::IterableDataProvider<icu::locale::fallback::provider::LocaleLikelySubtagsLanguageV1> for $provider {
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
Ok([Default::default()].into_iter().collect())
}
diff --git a/deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_parents_v1.rs.data b/deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_parents_v1.rs.data
new file mode 100644
index 00000000000..7b5a03061a7
--- /dev/null
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/data/locale_parents_v1.rs.data
@@ -0,0 +1,85 @@
+// @generated
+/// Implement `DataProvider<LocaleParentsV1>` on the given struct using the data
+/// hardcoded in this file. This allows the struct to be used with
+/// `icu`'s `_unstable` constructors.
+///
+/// Using this implementation will embed the following data in the binary's data segment:
+/// * 2925B[^1] for the singleton data struct
+///
+/// [^1]: these numbers can be smaller in practice due to linker deduplication
+///
+/// This macro requires the following crates:
+/// * `icu`
+/// * `icu_provider`
+/// * `zerovec`
+#[doc(hidden)]
+#[macro_export]
+macro_rules! __impl_locale_parents_v1 {
+ ($ provider : ty) => {
+ #[clippy::msrv = "1.88"]
+ const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
+ #[clippy::msrv = "1.88"]
+ impl $provider {
+ #[doc(hidden)]
+ pub const SINGLETON_LOCALE_PARENTS_V1: &'static <icu::locale::fallback::provider::LocaleParentsV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu_locale_fallback::provider::Parents {
+ parents: unsafe {
+ #[allow(unused_unsafe)]
+ zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x97\0\x06\0\x0B\0\x10\0\x15\0\x1A\0\x1F\0$\0)\0.\x003\08\0=\0B\0G\0L\0Q\0V\0[\0`\0e\0j\0o\0t\0y\0~\0\x83\0\x88\0\x8D\0\x92\0\x97\0\x9C\0\xA1\0\xA6\0\xAB\0\xB0\0\xB5\0\xBA\0\xBF\0\xC4\0\xC9\0\xCE\0\xD3\0\xD8\0\xDD\0\xE2\0\xE7\0\xEC\0\xF1\0\xF6\0\xFB\0\0\x01\x05\x01\n\x01\x0F\x01\x14\x01\x19\x01\x1E\x01#\x01(\x01-\x012\x017\x01<\x01A\x01F\x01K\x01P\x01U\x01Z\x01_\x01d\x01i\x01n\x01s\x01x\x01}\x01\x82\x01\x87\x01\x8C\x01\x91\x01\x96\x01\x9B\x01\xA0\x01\xA5\x01\xAA\x01\xAF\x01\xB4\x01\xB9\x01\xBE\x01\xC3\x01\xC8\x01\xCD\x01\xD2\x01\xD7\x01\xDC\x01\xE1\x01\xE6\x01\xEB\x01\xF0\x01\xF5\x01\xFA\x01\xFF\x01\x04\x02\t\x02\x0E\x02\x13\x02\x18\x02\x1D\x02\"\x02'\x02,\x021\x026\x02;\x02@\x02E\x02J\x02O\x02T\x02Y\x02^\x02c\x02h\x02m\x02r\x02w\x02|\x02\x81\x02\x86\x02\x8B\x02\x90\x02\x95\x02\x9A\x02\xA1\x02\xA3\x02\xA5\x02\xAA\x02\xAF\x02\xB4\x02\xB9\x02\xBE\x02\xC3\x02\xC8\x02\xCD\x02\xD2\x02\xD7\x02\xDC\x02\xE1\x02\xE9\x02\xF1\x02en-150en-AGen-AIen-ATen-AUen-BBen-BEen-BMen-BSen-BWen-BZen-CCen-CHen-CKen-CMen-CXen-CYen-CZen-DEen-DGen-DKen-DMen-EEen-ERen-ESen-FIen-FJen-FKen-FMen-FRen-GBen-GDen-GEen-GGen-GHen-GIen-GMen-GSen-GYen-HKen-HUen-IDen-IEen-ILen-IMen-INen-IOen-ITen-JEen-JMen-KEen-KIen-KNen-KYen-LCen-LRen-LSen-LTen-LVen-MGen-MOen-MSen-MTen-MUen-MVen-MWen-MYen-NAen-NFen-NGen-NLen-NOen-NRen-NUen-NZen-PGen-PKen-PLen-PNen-PTen-PWen-ROen-RWen-SBen-SCen-SDen-SEen-SGen-SHen-SIen-SKen-SLen-SSen-SXen-SZen-TCen-TKen-TOen-TTen-TVen-TZen-UAen-UGen-VCen-VGen-VUen-WSen-ZAen-ZMen-ZWes-ARes-BOes-BRes-BZes-CLes-COes-CRes-CUes-DOes-ECes-GTes-HNes-JPes-MXes-NIes-PAes-PEes-PRes-PYes-SVes-USes-UYes-VEhi-Latnnbnnno-NOpt-AOpt-CHpt-CVpt-FRpt-GQpt-GWpt-LUpt-MOpt-MZpt-STpt-TLund-Hansund-Hantzh-Hant-MO") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01150en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001en\0\0\0\0\0\0\x01001es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419es\0\0\0\0\0\0\x01419en\0\0\0\0\0\0\x01IN\0no\0\0\0\0\0\0\0\0\0\0no\0\0\0\0\0\0\0\0\0\0no\0\0\0\0\0\0\0\0\0\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0pt\0\0\0\0\0\0\x01PT\0und\x01Hani\0\0\0\0und\x01Hani\0\0\0\0zh\0\x01Hant\x01HK\0") })
+ },
+ };
+ }
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DataProvider<icu::locale::fallback::provider::LocaleParentsV1> for $provider {
+ fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::locale::fallback::provider::LocaleParentsV1>, icu_provider::DataError> {
+ if req.id.locale.is_unknown() {
+ Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_LOCALE_PARENTS_V1), metadata: icu_provider::DataResponseMetadata::default() })
+ } else {
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
+ }
+ }
+ }
+ };
+ ($ provider : ty , ITER) => {
+ __impl_locale_parents_v1!($provider);
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::IterableDataProvider<icu::locale::fallback::provider::LocaleParentsV1> for $provider {
+ fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
+ Ok([Default::default()].into_iter().collect())
+ }
+ }
+ };
+ ($ provider : ty , DRY) => {
+ __impl_locale_parents_v1!($provider);
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DryDataProvider<icu::locale::fallback::provider::LocaleParentsV1> for $provider {
+ fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
+ if req.id.locale.is_unknown() {
+ Ok(icu_provider::DataResponseMetadata::default())
+ } else {
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
+ }
+ }
+ }
+ };
+ ($ provider : ty , DRY , ITER) => {
+ __impl_locale_parents_v1!($provider);
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::DryDataProvider<icu::locale::fallback::provider::LocaleParentsV1> for $provider {
+ fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
+ if req.id.locale.is_unknown() {
+ Ok(icu_provider::DataResponseMetadata::default())
+ } else {
+ Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::locale::fallback::provider::LocaleParentsV1 as icu_provider::DataMarker>::INFO, req))
+ }
+ }
+ }
+ #[clippy::msrv = "1.88"]
+ impl icu_provider::IterableDataProvider<icu::locale::fallback::provider::LocaleParentsV1> for $provider {
+ fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
+ Ok([Default::default()].into_iter().collect())
+ }
+ }
+ };
+}
+#[doc(inline)]
+pub use __impl_locale_parents_v1 as impl_locale_parents_v1;
diff --git a/deps/crates/vendor/icu_locale_data-v2/data/mod.rs b/deps/crates/vendor/icu_locale_fallback_data-v2/data/mod.rs
similarity index 50%
rename from deps/crates/vendor/icu_locale_data-v2/data/mod.rs
rename to deps/crates/vendor/icu_locale_fallback_data-v2/data/mod.rs
index 7c7d6e9205a..64a609084f4 100644
--- a/deps/crates/vendor/icu_locale_data-v2/data/mod.rs
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/data/mod.rs
@@ -1,15 +1,6 @@
// @generated
include!("locale_likely_subtags_language_v1.rs.data");
include!("locale_parents_v1.rs.data");
-include!("locale_exemplar_characters_main_v1.rs.data");
-include!("locale_exemplar_characters_numbers_v1.rs.data");
-include!("locale_aliases_v1.rs.data");
-include!("locale_exemplar_characters_index_v1.rs.data");
-include!("locale_exemplar_characters_auxiliary_v1.rs.data");
-include!("locale_likely_subtags_extended_v1.rs.data");
-include!("locale_script_direction_v1.rs.data");
-include!("locale_likely_subtags_script_region_v1.rs.data");
-include!("locale_exemplar_characters_punctuation_v1.rs.data");
/// Marks a type as a data provider. You can then use macros like
/// `impl_core_helloworld_v1` to add implementations.
///
@@ -25,7 +16,7 @@ include!("locale_exemplar_characters_punctuation_v1.rs.data");
#[macro_export]
macro_rules! __make_provider {
($ name : ty) => {
- #[clippy::msrv = "1.86"]
+ #[clippy::msrv = "1.88"]
impl $name {
#[allow(dead_code)]
pub(crate) const MUST_USE_MAKE_PROVIDER_MACRO: () = ();
@@ -39,7 +30,6 @@ pub use __make_provider as make_provider;
/// * `icu`
/// * `icu_locale_core`
/// * `icu_provider`
-/// * `icu_provider/baked`
/// * `zerovec`
#[allow(unused_macros)]
macro_rules! impl_data_provider {
@@ -47,14 +37,5 @@ macro_rules! impl_data_provider {
make_provider!($provider);
impl_locale_likely_subtags_language_v1!($provider);
impl_locale_parents_v1!($provider);
- impl_locale_exemplar_characters_main_v1!($provider);
- impl_locale_exemplar_characters_numbers_v1!($provider);
- impl_locale_aliases_v1!($provider);
- impl_locale_exemplar_characters_index_v1!($provider);
- impl_locale_exemplar_characters_auxiliary_v1!($provider);
- impl_locale_likely_subtags_extended_v1!($provider);
- impl_locale_script_direction_v1!($provider);
- impl_locale_likely_subtags_script_region_v1!($provider);
- impl_locale_exemplar_characters_punctuation_v1!($provider);
};
}
diff --git a/deps/crates/vendor/icu_locale_data-v2/src/lib.rs b/deps/crates/vendor/icu_locale_fallback_data-v2/src/lib.rs
similarity index 55%
rename from deps/crates/vendor/icu_locale_data-v2/src/lib.rs
rename to deps/crates/vendor/icu_locale_fallback_data-v2/src/lib.rs
index c48d43734e1..b9549928abf 100644
--- a/deps/crates/vendor/icu_locale_data-v2/src/lib.rs
+++ b/deps/crates/vendor/icu_locale_fallback_data-v2/src/lib.rs
@@ -2,9 +2,9 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
-//! Data for the `icu_locale` crate
+//! Data for the `icu_locale_fallback` crate
//!
-//! This data was generated with CLDR version 48.2.0, ICU version release-78.1rc, and
+//! This data was generated with CLDR version 49.0.0, Unicode version 18.0.0, and
//! LSTM segmenter version v0.1.0.
#![no_std]
@@ -15,3 +15,24 @@
include!(concat!(core::env!("ICU4X_DATA_DIR"), "/mod.rs"));
#[cfg(not(icu4x_custom_data))]
include!("../data/mod.rs");
+
+#[macro_export]
+macro_rules! cldr_tag {
+ () => {
+ "49.0.0"
+ };
+}
+
+#[macro_export]
+macro_rules! unicode_tag {
+ () => {
+ "18.0.0"
+ };
+}
+
+#[macro_export]
+macro_rules! segmenter_lstm_tag {
+ () => {
+ "v0.1.0"
+ };
+}
diff --git a/deps/crates/vendor/icu_provider-v2/.cargo_vcs_info.json b/deps/crates/vendor/icu_provider-v2/.cargo_vcs_info.json
index d680756d7ab..a4894345b78 100644
--- a/deps/crates/vendor/icu_provider-v2/.cargo_vcs_info.json
+++ b/deps/crates/vendor/icu_provider-v2/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "898d79c69f37da7b45a15a5714663c9b59b3d928"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "provider/core"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_provider-v2/Cargo.lock b/deps/crates/vendor/icu_provider-v2/Cargo.lock
index 01d0545d4c9..aa74d37bff7 100644
--- a/deps/crates/vendor/icu_provider-v2/Cargo.lock
+++ b/deps/crates/vendor/icu_provider-v2/Cargo.lock
@@ -52,9 +52,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -85,18 +85,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -104,9 +104,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -155,9 +155,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -165,18 +165,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -197,13 +197,13 @@ dependencies = [
[[package]]
name = "databake-derive"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
+checksum = "495503291b258422ea2bb9863d9f4e31eadbc5bcbdbe8b721769fa2c98dc4d41"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
@@ -215,14 +215,14 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "either"
-version = "1.17.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "erased-serde"
@@ -247,15 +247,15 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "icu_locale_core"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
dependencies = [
"displaydoc",
"litemap",
@@ -266,7 +266,7 @@ dependencies = [
[[package]]
name = "icu_provider"
-version = "2.3.1"
+version = "2.4.0"
dependencies = [
"bincode",
"criterion",
@@ -324,9 +324,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "litemap"
@@ -336,9 +336,9 @@ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
[[package]]
name = "log"
-version = "0.4.33"
+version = "0.4.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
[[package]]
name = "memchr"
@@ -514,14 +514,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -549,9 +549,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -560,13 +560,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
]
[[package]]
@@ -586,14 +586,14 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
dependencies = [
"displaydoc",
"serde_core",
@@ -618,9 +618,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
@@ -719,9 +719,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
[[package]]
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -730,13 +730,13 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
@@ -751,13 +751,13 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
@@ -773,9 +773,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.8"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"databake",
"serde",
@@ -785,13 +785,13 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.6"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
diff --git a/deps/crates/vendor/icu_provider-v2/Cargo.toml b/deps/crates/vendor/icu_provider-v2/Cargo.toml
index 5961ca1a83e..f5470dc9689 100644
--- a/deps/crates/vendor/icu_provider-v2/Cargo.toml
+++ b/deps/crates/vendor/icu_provider-v2/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2024"
rust-version = "1.88"
name = "icu_provider"
-version = "2.3.1"
+version = "2.4.0"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -131,7 +131,7 @@ version = "0.4.0"
optional = true
[dependencies.icu_locale_core]
-version = "2.3.0"
+version = "2.4.0"
default-features = false
[dependencies.log]
@@ -165,7 +165,7 @@ optional = true
default-features = false
[dependencies.yoke]
-version = "0.8.3"
+version = "0.8.4"
features = ["derive"]
default-features = false
@@ -180,7 +180,7 @@ optional = true
default-features = false
[dependencies.zerovec]
-version = "0.11.8"
+version = "0.11.9"
features = ["derive"]
default-features = false
diff --git a/deps/crates/vendor/icu_provider-v2/Cargo.toml.orig b/deps/crates/vendor/icu_provider-v2/Cargo.toml.orig
index d66a7b99c93..23b5dd4cfd6 100644
--- a/deps/crates/vendor/icu_provider-v2/Cargo.toml.orig
+++ b/deps/crates/vendor/icu_provider-v2/Cargo.toml.orig
@@ -15,7 +15,7 @@ include.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
-version = "2.3.1"
+version.workspace = true
[package.metadata.docs.rs]
all-features = true
diff --git a/deps/crates/vendor/icu_provider-v2/src/export/mod.rs b/deps/crates/vendor/icu_provider-v2/src/export/mod.rs
index c6aea2ebced..1a95239952e 100644
--- a/deps/crates/vendor/icu_provider-v2/src/export/mod.rs
+++ b/deps/crates/vendor/icu_provider-v2/src/export/mod.rs
@@ -129,12 +129,12 @@ macro_rules! __make_exportable_provider {
($provider:ty, [ $($(#[$cfg:meta])? $struct_m:ty),+, ]) => {
impl $crate::export::ExportableProvider for $provider {
fn supported_markers(&self) -> alloc::collections::BTreeSet<$crate::DataMarkerInfo> {
- alloc::collections::BTreeSet::from_iter([
- $(
- $(#[$cfg])?
- <$struct_m>::INFO,
- )+
- ])
+ let mut r = alloc::collections::BTreeSet::new();
+ $(
+ $(#[$cfg])?
+ r.insert(<$struct_m>::INFO);
+ )+
+ r
}
}
diff --git a/deps/crates/vendor/ixdtf-v0_6/.cargo_vcs_info.json b/deps/crates/vendor/ixdtf-v0_6/.cargo_vcs_info.json
index ebe60890da7..e54e8691036 100644
--- a/deps/crates/vendor/ixdtf-v0_6/.cargo_vcs_info.json
+++ b/deps/crates/vendor/ixdtf-v0_6/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "a14f2dad852be26bad277ae704abf27a15cbfed1"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "utils/ixdtf"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/ixdtf-v0_6/Cargo.lock b/deps/crates/vendor/ixdtf-v0_6/Cargo.lock
index bc497c3c61a..b9999d9ea2e 100644
--- a/deps/crates/vendor/ixdtf-v0_6/Cargo.lock
+++ b/deps/crates/vendor/ixdtf-v0_6/Cargo.lock
@@ -43,9 +43,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -76,18 +76,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -95,9 +95,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "criterion"
@@ -137,9 +137,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -147,18 +147,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -168,9 +168,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "either"
-version = "1.17.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "half"
@@ -184,9 +184,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "is-terminal"
@@ -216,7 +216,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "ixdtf"
-version = "0.6.6"
+version = "0.6.7"
dependencies = [
"criterion",
"serde-json-core",
@@ -234,9 +234,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "memchr"
@@ -418,14 +418,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -447,9 +447,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -468,9 +468,9 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
diff --git a/deps/crates/vendor/ixdtf-v0_6/Cargo.toml b/deps/crates/vendor/ixdtf-v0_6/Cargo.toml
index bc0533fbdab..2368cd89472 100644
--- a/deps/crates/vendor/ixdtf-v0_6/Cargo.toml
+++ b/deps/crates/vendor/ixdtf-v0_6/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.82"
name = "ixdtf"
-version = "0.6.6"
+version = "0.6.7"
authors = ["The ICU4X Project Developers"]
build = false
include = [
diff --git a/deps/crates/vendor/ixdtf-v0_6/Cargo.toml.orig b/deps/crates/vendor/ixdtf-v0_6/Cargo.toml.orig
index 369b77dd8f2..6f0225cc61a 100644
--- a/deps/crates/vendor/ixdtf-v0_6/Cargo.toml.orig
+++ b/deps/crates/vendor/ixdtf-v0_6/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "ixdtf"
description = "Parser for Internet eXtended DateTime Format"
-version = "0.6.6"
+version = "0.6.7"
categories.workspace = true
keywords = ["iso8601", "date-time"]
diff --git a/deps/crates/vendor/ixdtf-v0_6/src/core.rs b/deps/crates/vendor/ixdtf-v0_6/src/core.rs
index a24a04cb347..5668ac7d2c7 100644
--- a/deps/crates/vendor/ixdtf-v0_6/src/core.rs
+++ b/deps/crates/vendor/ixdtf-v0_6/src/core.rs
@@ -38,11 +38,6 @@ impl<'a, T: EncodingType> Cursor<'a, T> {
self.pos = pos;
}
- /// Peek the value at next position (current + 1).
- pub(crate) fn peek(&self) -> ParserResult<Option<u8>> {
- self.peek_n(1)
- }
-
/// Returns current position in source as `char`.
pub(crate) fn current(&self) -> ParserResult<Option<u8>> {
self.peek_n(0)
@@ -76,6 +71,17 @@ impl<'a, T: EncodingType> Cursor<'a, T> {
result
}
+ /// Advances the cursor and returns the current char if it satisfies `f`.
+ pub(crate) fn next_if(&mut self, f: impl FnOnce(u8) -> bool) -> ParserResult<Option<u8>> {
+ if let Some(ch) = self.current()? {
+ if f(ch) {
+ self.advance();
+ return Ok(Some(ch));
+ }
+ }
+ Ok(None)
+ }
+
/// Returns the next value as a digit
///
/// # Errors
diff --git a/deps/crates/vendor/ixdtf-v0_6/src/parsers/annotations.rs b/deps/crates/vendor/ixdtf-v0_6/src/parsers/annotations.rs
index 6ddb55b5152..9b43b310a82 100644
--- a/deps/crates/vendor/ixdtf-v0_6/src/parsers/annotations.rs
+++ b/deps/crates/vendor/ixdtf-v0_6/src/parsers/annotations.rs
@@ -128,23 +128,19 @@ fn parse_annotation_key<'a, T: EncodingType>(
) -> ParserResult<&'a [T::CodeUnit]> {
let key_start = cursor.pos();
assert_syntax!(
- is_a_key_leading_char(cursor.next_or(ParseError::AnnotationKeyLeadingChar)?),
+ cursor.next_if(is_a_key_leading_char)?.is_some(),
AnnotationKeyLeadingChar,
);
- while let Some(potential_key_char) = cursor.next()? {
- // End of key.
- if cursor.check_or(false, is_annotation_key_value_separator)? {
- // Return found key
- return cursor
- .slice(key_start, cursor.pos())
- .ok_or(ParseError::ImplAssert);
- }
-
+ while let Some(potential_key_char) =
+ cursor.next_if(|ch| !is_annotation_key_value_separator(ch))?
+ {
assert_syntax!(is_a_key_char(potential_key_char), AnnotationKeyChar);
}
- Err(ParseError::AnnotationChar)
+ cursor
+ .slice(key_start, cursor.pos())
+ .ok_or(ParseError::ImplAssert)
}
/// Parse an `AnnotationValue`.
@@ -152,21 +148,16 @@ fn parse_annotation_value<'a, T: EncodingType>(
cursor: &mut Cursor<'a, T>,
) -> ParserResult<&'a [T::CodeUnit]> {
let value_start = cursor.pos();
- cursor.advance();
- while let Some(potential_value_char) = cursor.next()? {
- if cursor.check_or(false, is_annotation_close)? {
- // Return the determined AnnotationValue.
- return cursor
- .slice(value_start, cursor.pos())
- .ok_or(ParseError::ImplAssert);
- }
-
+ assert_syntax!(
+ cursor.next_if(is_annotation_value_component)?.is_some(),
+ AnnotationValueChar,
+ );
+ while let Some(potential_value_char) = cursor.next_if(|ch| !is_annotation_close(ch))? {
if is_hyphen(potential_value_char) {
assert_syntax!(
- cursor.peek()?.is_some_and(is_annotation_value_component),
+ cursor.next_if(is_annotation_value_component)?.is_some(),
AnnotationValueCharPostHyphen,
);
- cursor.advance();
continue;
}
@@ -176,5 +167,7 @@ fn parse_annotation_value<'a, T: EncodingType>(
);
}
- Err(ParseError::AnnotationValueChar)
+ cursor
+ .slice(value_start, cursor.pos())
+ .ok_or(ParseError::ImplAssert)
}
diff --git a/deps/crates/vendor/ixdtf-v0_6/src/parsers/tests.rs b/deps/crates/vendor/ixdtf-v0_6/src/parsers/tests.rs
index f51081ca3c3..ce77bec894c 100644
--- a/deps/crates/vendor/ixdtf-v0_6/src/parsers/tests.rs
+++ b/deps/crates/vendor/ixdtf-v0_6/src/parsers/tests.rs
@@ -93,7 +93,7 @@ fn bad_zoned_date_time() {
let err = IxdtfParser::from_str(bad_value).parse();
assert_eq!(
err,
- Err(ParseError::AnnotationClose),
+ Err(ParseError::IanaChar),
"Invalid ZonedDateTime parsing: \"{bad_value}\" should fail to parse."
);
@@ -1528,3 +1528,70 @@ fn utf16_basic_test() {
};
assert_eq!(String::from_utf16_lossy(id), "America/Chicago");
}
+
+#[test]
+fn annotation_and_timezone_validation_regression_8620() {
+ use super::TimeZoneParser;
+
+ let valid_annotations = [
+ ("2020-01-01[a=b]", None),
+ ("2020-01-01[_a=b]", None),
+ ("2020-01-01[u-ca=g]", Some("g")),
+ ("2020-01-01[u-ca=a-b]", Some("a-b")),
+ ("2020-01-01[u-ca=a-bc-d]", Some("a-bc-d")),
+ ];
+ for (input, expected_cal) in valid_annotations {
+ let parsed = IxdtfParser::from_str(input).parse().expect(input);
+ assert_eq!(parsed.calendar, expected_cal.map(str::as_bytes), "{input}");
+ }
+
+ let invalid_annotations = [
+ ("2020-01-01[u-cA=iso8601]", ParseError::AnnotationKeyChar),
+ ("2020-01-01[aB=iso8601]", ParseError::AnnotationKeyChar),
+ ("2020-01-01[u-ca=iso8601!]", ParseError::AnnotationValueChar),
+ ("2020-01-01[u-ca=!iso8601]", ParseError::AnnotationValueChar),
+ ("2020-01-01[u-ca=!!]", ParseError::AnnotationValueChar),
+ ("2020-01-01[u-ca=-iso]", ParseError::AnnotationValueChar),
+ (
+ "2020-01-01[u-ca=iso-]",
+ ParseError::AnnotationValueCharPostHyphen,
+ ),
+ (
+ "2020-01-01[u-ca=iso--8601]",
+ ParseError::AnnotationValueCharPostHyphen,
+ ),
+ ];
+ for (input, expected_err) in invalid_annotations {
+ let err = IxdtfParser::from_str(input).parse().unwrap_err();
+ assert_eq!(err, expected_err, "{input}");
+ }
+
+ let invalid_tz_annotations = [
+ ("2020-01-01[America/Chicago!]", ParseError::IanaChar),
+ ("2020-01-01[UTC!]", ParseError::IanaChar),
+ ("2020-01-01[cet!]", ParseError::IanaChar),
+ ("2020-01-01[America/]", ParseError::IanaCharPostSeparator),
+ (
+ "2020-01-01[America//Chicago]",
+ ParseError::IanaCharPostSeparator,
+ ),
+ ];
+ for (input, expected_err) in invalid_tz_annotations {
+ let err = IxdtfParser::from_str(input).parse().unwrap_err();
+ assert_eq!(err, expected_err, "{input}");
+ }
+
+ let invalid_bare_iana = [
+ ("America/Chicago!", ParseError::IanaChar),
+ ("UTC!", ParseError::IanaChar),
+ ("America/", ParseError::IanaCharPostSeparator),
+ ("America//Chicago", ParseError::IanaCharPostSeparator),
+ ("1America/Chicago", ParseError::TzLeadingChar),
+ ];
+ for (input, expected_err) in invalid_bare_iana {
+ let err = TimeZoneParser::from_str(input)
+ .parse_iana_identifier()
+ .unwrap_err();
+ assert_eq!(err, expected_err, "{input}");
+ }
+}
diff --git a/deps/crates/vendor/ixdtf-v0_6/src/parsers/timezone.rs b/deps/crates/vendor/ixdtf-v0_6/src/parsers/timezone.rs
index 9b51cbc7338..abf0520e9dd 100644
--- a/deps/crates/vendor/ixdtf-v0_6/src/parsers/timezone.rs
+++ b/deps/crates/vendor/ixdtf-v0_6/src/parsers/timezone.rs
@@ -130,20 +130,15 @@ pub(crate) fn parse_time_zone<'a, T: EncodingType>(
pub(crate) fn parse_tz_iana_name<'a, T: EncodingType>(
cursor: &mut Cursor<'a, T>,
) -> ParserResult<&'a [T::CodeUnit]> {
- assert_syntax!(cursor.check_or(false, is_tz_leading_char)?, TzLeadingChar);
let tz_name_start = cursor.pos();
- while let Some(potential_value_char) = cursor.next()? {
- if cursor.check_or(true, is_annotation_close)? {
- // Return the valid TimeZoneIANAName
- break;
- }
-
+ assert_syntax!(cursor.next_if(is_tz_leading_char)?.is_some(), TzLeadingChar,);
+ while let Some(potential_value_char) = cursor.next_if(|ch| !is_annotation_close(ch))? {
if is_tz_name_separator(potential_value_char) {
- assert_syntax!(cursor.check_or(false, is_tz_char)?, IanaCharPostSeparator,);
+ assert_syntax!(cursor.next_if(is_tz_char)?.is_some(), IanaCharPostSeparator,);
continue;
}
- assert_syntax!(is_tz_char(potential_value_char), IanaChar,);
+ assert_syntax!(is_tz_char(potential_value_char), IanaChar);
}
cursor
diff --git a/deps/crates/vendor/smallvec-v1/.cargo_vcs_info.json b/deps/crates/vendor/smallvec-v1/.cargo_vcs_info.json
index ff8f1a264e7..130e6c6c48c 100644
--- a/deps/crates/vendor/smallvec-v1/.cargo_vcs_info.json
+++ b/deps/crates/vendor/smallvec-v1/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "700e1c3ff899cda7799b18e0804889105fc8beea"
+ "sha1": "ccf5fc71044d491c46a3d79e7ed53948e6da1590"
},
"path_in_vcs": ""
}
\ No newline at end of file
diff --git a/deps/crates/vendor/smallvec-v1/Cargo.lock b/deps/crates/vendor/smallvec-v1/Cargo.lock
index 9f66f69caf8..c0d3765cb6b 100644
--- a/deps/crates/vendor/smallvec-v1/Cargo.lock
+++ b/deps/crates/vendor/smallvec-v1/Cargo.lock
@@ -81,7 +81,7 @@ dependencies = [
[[package]]
name = "smallvec"
-version = "1.16.1"
+version = "1.16.2"
dependencies = [
"arbitrary",
"bincode 1.3.3",
@@ -93,9 +93,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.5"
+version = "3.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
+checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
dependencies = [
"proc-macro2",
"quote",
@@ -104,9 +104,9 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
[[package]]
name = "unty"
diff --git a/deps/crates/vendor/smallvec-v1/Cargo.toml b/deps/crates/vendor/smallvec-v1/Cargo.toml
index 32ea355150e..2875e120cbe 100644
--- a/deps/crates/vendor/smallvec-v1/Cargo.toml
+++ b/deps/crates/vendor/smallvec-v1/Cargo.toml
@@ -12,7 +12,7 @@
[package]
edition = "2018"
name = "smallvec"
-version = "1.16.1"
+version = "1.16.2"
authors = ["The Servo Project Developers"]
build = false
include = [
diff --git a/deps/crates/vendor/smallvec-v1/Cargo.toml.orig b/deps/crates/vendor/smallvec-v1/Cargo.toml.orig
index 0d64acc3556..a833c63e2e3 100644
--- a/deps/crates/vendor/smallvec-v1/Cargo.toml.orig
+++ b/deps/crates/vendor/smallvec-v1/Cargo.toml.orig
@@ -1,6 +1,6 @@
[package]
name = "smallvec"
-version = "1.16.1"
+version = "1.16.2"
edition = "2018"
authors = ["The Servo Project Developers"]
license = "MIT OR Apache-2.0"
@@ -8,7 +8,6 @@ repository = "https://github.com/servo/rust-smallvec"
description = "'Small vector' optimization: store up to a small number of items on the stack"
keywords = ["small", "vec", "vector", "stack", "no_std"]
categories = ["data-structures"]
-readme = "README.md"
documentation = "https://docs.rs/smallvec/"
include = ["Cargo.toml", "LICENSE-MIT", "LICENSE-APACHE", "README.md", "src/**/*.rs"]
diff --git a/deps/crates/vendor/smallvec-v1/src/lib.rs b/deps/crates/vendor/smallvec-v1/src/lib.rs
index 74080244f54..8b25dc04b35 100644
--- a/deps/crates/vendor/smallvec-v1/src/lib.rs
+++ b/deps/crates/vendor/smallvec-v1/src/lib.rs
@@ -113,8 +113,6 @@ extern crate std;
#[cfg(test)]
mod tests;
-#[cfg(feature = "serde")]
-use core::marker::PhantomData;
#[cfg(feature = "drain_keep_rest")]
use core::mem::ManuallyDrop;
#[cfg(feature = "malloc_size_of")]
@@ -140,6 +138,7 @@ use {
hash::{Hash, Hasher},
hint::unreachable_unchecked,
iter::{repeat, FromIterator, FusedIterator, IntoIterator},
+ marker::PhantomData,
mem::{self, MaybeUninit},
ops::{self, Range, RangeBounds},
ptr::{self, NonNull},
@@ -812,6 +811,25 @@ unsafe impl<A: Array + Sync> Sync for SmallVecData<A> {}
/// assert_eq!(v.len(), 5);
/// assert!(v.spilled());
/// ```
+///
+/// References used by an element's destructor must outlive the vector, even
+/// with the `may_dangle` feature and no inline storage:
+///
+/// ```compile_fail,E0597
+/// use smallvec::SmallVec;
+///
+/// struct PrintOnDrop<'a>(&'a str);
+/// impl Drop for PrintOnDrop<'_> {
+/// fn drop(&mut self) {
+/// println!("{}", self.0);
+/// }
+/// }
+///
+/// let mut v = SmallVec::<[PrintOnDrop<'_>; 0]>::new();
+/// let text = String::from("borrowed");
+/// v.push(PrintOnDrop(&text));
+/// // `text` is dropped before `v`, whose elements still need it.
+/// ```
pub struct SmallVec<A: Array> {
// The capacity field is used to determine which of the storage variants is active:
// If capacity <= Self::inline_capacity() then the inline variant is used and capacity holds
@@ -820,6 +838,9 @@ pub struct SmallVec<A: Array> {
// memory allocation.
capacity: usize,
data: SmallVecData<A>,
+ // Own A::Item, including when A has length zero and all items are on the heap.
+ // This is required for sound drop checking with #[may_dangle].
+ _marker: PhantomData<A::Item>,
}
impl<A: Array> SmallVec<A> {
@@ -835,6 +856,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity: 0,
data: SmallVecData::empty(),
+ _marker: PhantomData,
}
}
@@ -886,6 +908,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity: len,
data,
+ _marker: PhantomData,
}
}
} else {
@@ -898,6 +921,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity: cap,
data: SmallVecData::from_heap(ptr, len),
+ _marker: PhantomData,
}
}
}
@@ -918,6 +942,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity: A::size(),
data: SmallVecData::from_inline(MaybeUninit::new(buf)),
+ _marker: PhantomData,
}
}
@@ -957,6 +982,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity: len,
data: SmallVecData::from_inline(buf),
+ _marker: PhantomData,
}
}
@@ -1623,16 +1649,104 @@ impl<A: Array> SmallVec<A> {
/// `false`. This method operates in place and preserves the order of
/// the retained elements.
pub fn retain<F: FnMut(&mut A::Item) -> bool>(&mut self, mut f: F) {
- let mut del = 0;
- let len = self.len();
- for i in 0..len {
- if !f(&mut self[i]) {
- del += 1;
- } else if del > 0 {
- self.swap(i - del, i);
+ let original_len = self.len();
+
+ if original_len == 0 {
+ // Empty case: explicit return allows better optimization, vs
+ // letting compiler infer it
+ return;
+ }
+
+ // Vec: [Kept, Kept, Hole, Hole, Hole, Hole, Unchecked, Unchecked]
+ // | ^- write ^- read |
+ // |<- original_len ->|
+ // Kept: Elements which predicate returns true on.
+ // Hole: Moved or dropped element slot.
+ // Unchecked: Unchecked valid elements.
+ //
+ // This drop guard will be invoked when predicate or `drop` of element
+ // panicked. It shifts unchecked elements to cover holes and
+ // `set_len` to the correct length. In cases when predicate and
+ // `drop` never panic, it will be optimized out.
+ struct PanicGuard<'a, A: Array> {
+ v: &'a mut SmallVec<A>,
+ read: usize,
+ write: usize,
+ original_len: usize,
+ }
+
+ impl<A: Array> Drop for PanicGuard<'_, A> {
+ #[cold]
+ fn drop(&mut self) {
+ let remaining = self.original_len - self.read;
+ // SAFETY: Trailing unchecked items must be valid since we never
+ // touch them.
+ unsafe {
+ let ptr = self.v.as_mut_ptr();
+ ptr::copy(ptr.add(self.read), ptr.add(self.write), remaining);
+ }
+ // SAFETY: After filling holes, all items are in contiguous
+ // memory.
+ unsafe {
+ self.v.set_len(self.write + remaining);
+ }
+ }
+ }
+
+ let mut read = 0;
+ loop {
+ // SAFETY: read < original_len
+ let cur = unsafe { self.get_unchecked_mut(read) };
+ if !f(cur) {
+ break;
+ }
+ read += 1;
+ if read == original_len {
+ // All elements are kept, return early.
+ return;
}
}
- self.truncate(len - del);
+
+ // Critical section starts here and at least one element is going to be
+ // removed. Advance `g.read` early to avoid double drop if
+ // `drop_in_place` panicked.
+ let mut g = PanicGuard {
+ v: self,
+ read: read + 1,
+ write: read,
+ original_len,
+ };
+ // SAFETY: previous `read` is always less than original_len.
+ unsafe { ptr::drop_in_place(g.v.as_mut_ptr().add(read)) }
+
+ let ptr = g.v.as_mut_ptr();
+ while g.read < g.original_len {
+ // SAFETY: `read` is always less than original_len.
+ let cur = unsafe { &mut *ptr.add(g.read) };
+ if !f(cur) {
+ // Advance `read` early to avoid double drop if `drop_in_place`
+ // panicked.
+ g.read += 1;
+ // SAFETY: We never touch this element again after dropped.
+ unsafe { ptr::drop_in_place(cur) };
+ } else {
+ // SAFETY: `read` > `write`, so the slots don't overlap.
+ // We use copy for move, and never touch the source element
+ // again.
+ unsafe {
+ let hole = ptr.add(g.write);
+ ptr::copy_nonoverlapping(cur, hole, 1);
+ }
+ g.write += 1;
+ g.read += 1;
+ }
+ }
+
+ // We are leaving the critical section and no panic happened,
+ // Commit the length change and forget the guard.
+ // SAFETY: `write` is always less than or equal to original_len.
+ unsafe { g.v.set_len(g.write) };
+ core::mem::forget(g);
}
/// Retains only the elements specified by the predicate.
@@ -1820,6 +1934,7 @@ impl<A: Array> SmallVec<A> {
SmallVec {
capacity,
data: SmallVecData::from_heap(ptr, length),
+ _marker: PhantomData,
}
}
@@ -1862,6 +1977,7 @@ where
);
data
}),
+ _marker: PhantomData,
}
} else {
let mut b = slice.to_vec();
@@ -1871,6 +1987,7 @@ where
SmallVec {
capacity: cap,
data: SmallVecData::from_heap(ptr, len),
+ _marker: PhantomData,
}
}
}
@@ -2511,6 +2628,7 @@ impl<T, const N: usize> SmallVec<[T; N]> {
SmallVec {
capacity: 0,
data: SmallVecData::from_const(MaybeUninit::uninit()),
+ _marker: PhantomData,
}
}
@@ -2526,6 +2644,7 @@ impl<T, const N: usize> SmallVec<[T; N]> {
SmallVec {
capacity: N,
data: SmallVecData::from_const(MaybeUninit::new(items)),
+ _marker: PhantomData,
}
}
@@ -2542,6 +2661,7 @@ impl<T, const N: usize> SmallVec<[T; N]> {
SmallVec {
capacity: len,
data: SmallVecData::from_const(MaybeUninit::new(items)),
+ _marker: PhantomData,
}
}
}
diff --git a/deps/crates/vendor/smallvec-v1/src/tests.rs b/deps/crates/vendor/smallvec-v1/src/tests.rs
index e0118ccbfef..99d992ec9e8 100644
--- a/deps/crates/vendor/smallvec-v1/src/tests.rs
+++ b/deps/crates/vendor/smallvec-v1/src/tests.rs
@@ -13,6 +13,20 @@ pub fn test_zero() {
assert_eq!(&*v, &[0]);
}
+#[cfg(feature = "may_dangle")]
+#[test]
+fn may_dangle_without_element_drop() {
+ let mut inline = SmallVec::<[&str; 1]>::new();
+ let mut spilled = SmallVec::<[&str; 0]>::new();
+ let text = "borrowed".to_owned();
+ inline.push(&text);
+ spilled.push(&text);
+ assert!(!inline.spilled());
+ assert!(spilled.spilled());
+ // `text` is dropped first, but dropping the vectors never reads these
+ // references.
+}
+
// We heap allocate all these strings so that double frees will show up under
// valgrind.
@@ -786,6 +800,104 @@ fn test_retain() {
assert_eq!(Rc::strong_count(&one), 1);
}
+#[test]
+fn test_retain_panic_preserves_unprocessed_tail() {
+ use std::{
+ cell::Cell,
+ panic::{catch_unwind, AssertUnwindSafe},
+ };
+
+ struct Tracked {
+ id: usize,
+ drops: Rc<Vec<Cell<usize>>>,
+ panic_at: Option<usize>,
+ }
+ impl Drop for Tracked {
+ fn drop(&mut self) {
+ self.drops[self.id].set(self.drops[self.id].get() + 1);
+ assert_ne!(self.panic_at, Some(self.id), "drop panic");
+ }
+ }
+ fn tracked(len: usize, panic_at: Option<usize>) -> (Vec<Tracked>, Rc<Vec<Cell<usize>>>) {
+ let drops = Rc::new((0..len).map(|_| Cell::new(0)).collect::<Vec<_>>());
+ let values = (0..len)
+ .map(|id| Tracked {
+ id,
+ drops: drops.clone(),
+ panic_at,
+ })
+ .collect();
+ (values, drops)
+ }
+ fn ids(values: &[Tracked]) -> Vec<usize> {
+ values.iter().map(|v| v.id).collect()
+ }
+
+ for len in [8, 32].iter().copied() {
+ for panic_at in 0..len {
+ for drop_panics in [false, true].iter().copied() {
+ if drop_panics && panic_at % 2 == 0 {
+ continue;
+ }
+ let destructor = if drop_panics { Some(panic_at) } else { None };
+ let (input, drops) = tracked(len, destructor);
+ let mut actual: SmallVec<[_; 16]> = input.into_iter().collect();
+ assert!(catch_unwind(AssertUnwindSafe(|| actual.retain(|x| {
+ if !drop_panics {
+ assert_ne!(x.id, panic_at);
+ }
+ x.id % 2 == 0
+ })))
+ .is_err());
+ let read = panic_at + if drop_panics { 1 } else { 0 };
+ let expected: Vec<_> = (0..panic_at).step_by(2).chain(read..len).collect();
+ assert_eq!(ids(&actual), expected);
+ drop(actual);
+ assert!(drops.iter().all(|x| x.get() == 1));
+ }
+ }
+ }
+}
+
+#[test]
+fn test_retain_patterns_and_zst() {
+ use std::{cell::Cell, thread_local};
+
+ thread_local! { static ZST_DROPS: Cell<usize> = Cell::new(0); }
+ struct Zst;
+ impl Drop for Zst {
+ fn drop(&mut self) {
+ ZST_DROPS.with(|x| x.set(x.get() + 1));
+ }
+ }
+
+ for len in [0, 1, 15, 16, 17, 64].iter().copied() {
+ for keep in 0..3 {
+ let mut actual: SmallVec<[_; 16]> = (0..len).collect();
+ let mut expected: Vec<_> = (0..len).collect();
+ actual.retain(|x| {
+ *x += 1;
+ *x % 2 < keep
+ });
+ for x in &mut expected {
+ *x += 1;
+ }
+ expected.retain(|x| *x % 2 < keep);
+ assert_eq!(actual.as_slice(), expected.as_slice());
+ }
+ }
+ ZST_DROPS.with(|x| x.set(0));
+ let mut values: SmallVec<[_; 16]> = (0..32).map(|_| Zst).collect();
+ let mut seen = 0;
+ values.retain(|_| {
+ seen += 1;
+ seen % 2 == 0
+ });
+ assert_eq!(values.len(), 16);
+ drop(values);
+ ZST_DROPS.with(|x| assert_eq!(x.get(), 32));
+}
+
#[test]
fn test_dedup() {
let mut dupes: SmallVec<[i32; 5]> = SmallVec::from_slice(&[1, 1, 2, 3, 3]);
diff --git a/deps/crates/vendor/syn-v2/.cargo-checksum.json b/deps/crates/vendor/syn-v2/.cargo-checksum.json
deleted file mode 100644
index 697c9ce2fbb..00000000000
--- a/deps/crates/vendor/syn-v2/.cargo-checksum.json
+++ /dev/null
@@ -1 +0,0 @@
-{"files":{}}
diff --git a/deps/crates/vendor/syn-v2/.cargo_vcs_info.json b/deps/crates/vendor/syn-v2/.cargo_vcs_info.json
deleted file mode 100644
index 4baa697e488..00000000000
--- a/deps/crates/vendor/syn-v2/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "3295f9e9841785ac88a5e558c884854d5fb7d67f"
- },
- "path_in_vcs": ""
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/syn-v2/Cargo.lock b/deps/crates/vendor/syn-v2/Cargo.lock
deleted file mode 100644
index 56da3b12d1e..00000000000
--- a/deps/crates/vendor/syn-v2/Cargo.lock
+++ /dev/null
@@ -1,1912 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "adler2"
-version = "2.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
-
-[[package]]
-name = "anyhow"
-version = "1.0.103"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
-
-[[package]]
-name = "atomic-waker"
-version = "1.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
-
-[[package]]
-name = "automod"
-version = "1.0.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a273e731a7fb8c2268fd2932c9e9a3469f4fd171d85d070d2687190229653bd3"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "aws-lc-rs"
-version = "1.17.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4342d8937fc7e5dd9b1c60292261c0670c882a2cd1719cfc11b1af41731e32ad"
-dependencies = [
- "aws-lc-sys",
- "zeroize",
-]
-
-[[package]]
-name = "aws-lc-sys"
-version = "0.42.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d9ceb1da931507a12f4fccea479dccd00da1943e1b4ae72d8e502d707361444"
-dependencies = [
- "cc",
- "cmake",
- "dunce",
- "fs_extra",
- "pkg-config",
-]
-
-[[package]]
-name = "base64"
-version = "0.22.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
-
-[[package]]
-name = "bitflags"
-version = "2.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
-
-[[package]]
-name = "bumpalo"
-version = "3.20.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
-
-[[package]]
-name = "bytes"
-version = "1.12.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
-
-[[package]]
-name = "cc"
-version = "1.2.67"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e17dd265a7d0f31ef544e1b20e03add05d3b45b491b633b10d67145d2acc1a38"
-dependencies = [
- "find-msvc-tools",
- "jobserver",
- "libc",
- "shlex",
-]
-
-[[package]]
-name = "cfg-if"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
-
-[[package]]
-name = "cfg_aliases"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
-
-[[package]]
-name = "chacha20"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
-dependencies = [
- "cfg-if",
- "cpufeatures",
- "rand_core",
-]
-
-[[package]]
-name = "cmake"
-version = "0.1.58"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
-dependencies = [
- "cc",
-]
-
-[[package]]
-name = "combine"
-version = "4.6.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
-dependencies = [
- "bytes",
- "memchr",
-]
-
-[[package]]
-name = "console"
-version = "0.16.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fe5f465a4f6fee88fad41b85d990f84c835335e85b5d9e6e63e0d06d28cba7c"
-dependencies = [
- "encode_unicode",
- "libc",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "core-foundation"
-version = "0.9.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
-dependencies = [
- "core-foundation-sys",
- "libc",
-]
-
-[[package]]
-name = "core-foundation"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
-dependencies = [
- "core-foundation-sys",
- "libc",
-]
-
-[[package]]
-name = "core-foundation-sys"
-version = "0.8.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
-
-[[package]]
-name = "cpufeatures"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
-dependencies = [
- "libc",
-]
-
-[[package]]
-name = "crc32fast"
-version = "1.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
-dependencies = [
- "cfg-if",
-]
-
-[[package]]
-name = "crossbeam-deque"
-version = "0.8.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
-dependencies = [
- "crossbeam-epoch",
- "crossbeam-utils",
-]
-
-[[package]]
-name = "crossbeam-epoch"
-version = "0.9.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
-dependencies = [
- "crossbeam-utils",
-]
-
-[[package]]
-name = "crossbeam-utils"
-version = "0.8.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
-
-[[package]]
-name = "displaydoc"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "dunce"
-version = "1.0.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
-
-[[package]]
-name = "either"
-version = "1.16.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
-
-[[package]]
-name = "encode_unicode"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
-
-[[package]]
-name = "encoding_rs"
-version = "0.8.35"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
-dependencies = [
- "cfg-if",
-]
-
-[[package]]
-name = "equivalent"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
-
-[[package]]
-name = "errno"
-version = "0.3.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
-dependencies = [
- "libc",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "fastrand"
-version = "2.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
-
-[[package]]
-name = "filetime"
-version = "0.2.29"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
-dependencies = [
- "cfg-if",
- "libc",
-]
-
-[[package]]
-name = "find-msvc-tools"
-version = "0.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
-
-[[package]]
-name = "flate2"
-version = "1.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
-dependencies = [
- "crc32fast",
- "miniz_oxide",
-]
-
-[[package]]
-name = "fnv"
-version = "1.0.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
-
-[[package]]
-name = "form_urlencoded"
-version = "1.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
-dependencies = [
- "percent-encoding",
-]
-
-[[package]]
-name = "fs_extra"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
-
-[[package]]
-name = "futures-channel"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
-dependencies = [
- "futures-core",
- "futures-sink",
-]
-
-[[package]]
-name = "futures-core"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
-
-[[package]]
-name = "futures-io"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
-
-[[package]]
-name = "futures-sink"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
-
-[[package]]
-name = "futures-task"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
-
-[[package]]
-name = "futures-util"
-version = "0.3.32"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
-dependencies = [
- "futures-core",
- "futures-io",
- "futures-sink",
- "futures-task",
- "memchr",
- "pin-project-lite",
- "slab",
-]
-
-[[package]]
-name = "getrandom"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
-dependencies = [
- "cfg-if",
- "js-sys",
- "libc",
- "wasi",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "getrandom"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
-dependencies = [
- "cfg-if",
- "js-sys",
- "libc",
- "r-efi",
- "rand_core",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "h2"
-version = "0.4.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155"
-dependencies = [
- "atomic-waker",
- "bytes",
- "fnv",
- "futures-core",
- "futures-sink",
- "http",
- "indexmap",
- "slab",
- "tokio",
- "tokio-util",
- "tracing",
-]
-
-[[package]]
-name = "hashbrown"
-version = "0.17.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
-
-[[package]]
-name = "http"
-version = "1.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425"
-dependencies = [
- "bytes",
- "itoa",
-]
-
-[[package]]
-name = "http-body"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
-dependencies = [
- "bytes",
- "http",
-]
-
-[[package]]
-name = "http-body-util"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2"
-dependencies = [
- "bytes",
- "futures-core",
- "http",
- "http-body",
- "pin-project-lite",
-]
-
-[[package]]
-name = "httparse"
-version = "1.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
-
-[[package]]
-name = "hyper"
-version = "1.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498"
-dependencies = [
- "atomic-waker",
- "bytes",
- "futures-channel",
- "futures-core",
- "h2",
- "http",
- "http-body",
- "httparse",
- "itoa",
- "pin-project-lite",
- "smallvec",
- "tokio",
- "want",
-]
-
-[[package]]
-name = "hyper-rustls"
-version = "0.27.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
-dependencies = [
- "http",
- "hyper",
- "hyper-util",
- "rustls",
- "tokio",
- "tokio-rustls",
- "tower-service",
-]
-
-[[package]]
-name = "hyper-util"
-version = "0.1.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
-dependencies = [
- "base64",
- "bytes",
- "futures-channel",
- "futures-util",
- "http",
- "http-body",
- "hyper",
- "ipnet",
- "libc",
- "percent-encoding",
- "pin-project-lite",
- "socket2",
- "system-configuration",
- "tokio",
- "tower-service",
- "tracing",
- "windows-registry",
-]
-
-[[package]]
-name = "icu_collections"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
-dependencies = [
- "displaydoc",
- "potential_utf",
- "utf8_iter",
- "yoke",
- "zerofrom",
- "zerovec",
-]
-
-[[package]]
-name = "icu_locale_core"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
-dependencies = [
- "displaydoc",
- "litemap",
- "tinystr",
- "writeable",
- "zerovec",
-]
-
-[[package]]
-name = "icu_normalizer"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
-dependencies = [
- "icu_collections",
- "icu_normalizer_data",
- "icu_properties",
- "icu_provider",
- "smallvec",
- "zerovec",
-]
-
-[[package]]
-name = "icu_normalizer_data"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
-
-[[package]]
-name = "icu_properties"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
-dependencies = [
- "icu_collections",
- "icu_locale_core",
- "icu_properties_data",
- "icu_provider",
- "zerotrie",
- "zerovec",
-]
-
-[[package]]
-name = "icu_properties_data"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
-
-[[package]]
-name = "icu_provider"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
-dependencies = [
- "displaydoc",
- "icu_locale_core",
- "writeable",
- "yoke",
- "zerofrom",
- "zerotrie",
- "zerovec",
-]
-
-[[package]]
-name = "idna"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
-dependencies = [
- "idna_adapter",
- "smallvec",
- "utf8_iter",
-]
-
-[[package]]
-name = "idna_adapter"
-version = "1.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
-dependencies = [
- "icu_normalizer",
- "icu_properties",
-]
-
-[[package]]
-name = "indexmap"
-version = "2.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
-dependencies = [
- "equivalent",
- "hashbrown",
-]
-
-[[package]]
-name = "insta"
-version = "1.48.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86f0f8fee8c926415c58d6ae43a08523a26faccb2323f5e6b644fe7dd4ef6b82"
-dependencies = [
- "console",
- "once_cell",
- "similar",
- "tempfile",
-]
-
-[[package]]
-name = "ipnet"
-version = "2.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
-
-[[package]]
-name = "itoa"
-version = "1.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
-
-[[package]]
-name = "jni"
-version = "0.22.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498"
-dependencies = [
- "cfg-if",
- "combine",
- "jni-macros",
- "jni-sys",
- "log",
- "simd_cesu8",
- "thiserror",
- "walkdir",
- "windows-link",
-]
-
-[[package]]
-name = "jni-macros"
-version = "0.22.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3"
-dependencies = [
- "proc-macro2",
- "quote",
- "rustc_version",
- "simd_cesu8",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "jni-sys"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
-dependencies = [
- "jni-sys-macros",
-]
-
-[[package]]
-name = "jni-sys-macros"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
-dependencies = [
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "jobserver"
-version = "0.1.35"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
-dependencies = [
- "getrandom 0.4.3",
- "libc",
-]
-
-[[package]]
-name = "js-sys"
-version = "0.3.103"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
-dependencies = [
- "cfg-if",
- "futures-util",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "libc"
-version = "0.2.186"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
-
-[[package]]
-name = "linux-raw-sys"
-version = "0.12.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
-
-[[package]]
-name = "litemap"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
-
-[[package]]
-name = "log"
-version = "0.4.33"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
-
-[[package]]
-name = "lru-slab"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
-
-[[package]]
-name = "memchr"
-version = "2.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
-
-[[package]]
-name = "mime"
-version = "0.3.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
-
-[[package]]
-name = "miniz_oxide"
-version = "0.8.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
-dependencies = [
- "adler2",
- "simd-adler32",
-]
-
-[[package]]
-name = "mio"
-version = "1.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"
-dependencies = [
- "libc",
- "wasi",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "once_cell"
-version = "1.21.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
-
-[[package]]
-name = "openssl-probe"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
-
-[[package]]
-name = "percent-encoding"
-version = "2.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
-
-[[package]]
-name = "pin-project-lite"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
-
-[[package]]
-name = "pkg-config"
-version = "0.3.33"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
-
-[[package]]
-name = "potential_utf"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
-dependencies = [
- "zerovec",
-]
-
-[[package]]
-name = "proc-macro2"
-version = "1.0.106"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "quinn"
-version = "0.11.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
-dependencies = [
- "bytes",
- "cfg_aliases",
- "pin-project-lite",
- "quinn-proto",
- "quinn-udp",
- "rustc-hash",
- "rustls",
- "socket2",
- "thiserror",
- "tokio",
- "tracing",
- "web-time",
-]
-
-[[package]]
-name = "quinn-proto"
-version = "0.11.16"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"
-dependencies = [
- "aws-lc-rs",
- "bytes",
- "getrandom 0.4.3",
- "lru-slab",
- "rand",
- "rand_pcg",
- "ring",
- "rustc-hash",
- "rustls",
- "rustls-pki-types",
- "slab",
- "thiserror",
- "tinyvec",
- "tracing",
- "web-time",
-]
-
-[[package]]
-name = "quinn-udp"
-version = "0.5.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
-dependencies = [
- "cfg_aliases",
- "libc",
- "once_cell",
- "socket2",
- "tracing",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "quote"
-version = "1.0.46"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
-dependencies = [
- "proc-macro2",
-]
-
-[[package]]
-name = "r-efi"
-version = "6.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
-
-[[package]]
-name = "rand"
-version = "0.10.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
-dependencies = [
- "chacha20",
- "getrandom 0.4.3",
- "rand_core",
-]
-
-[[package]]
-name = "rand_core"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
-
-[[package]]
-name = "rand_pcg"
-version = "0.10.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
-dependencies = [
- "rand_core",
-]
-
-[[package]]
-name = "rayon"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
-dependencies = [
- "either",
- "rayon-core",
-]
-
-[[package]]
-name = "rayon-core"
-version = "1.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
-dependencies = [
- "crossbeam-deque",
- "crossbeam-utils",
-]
-
-[[package]]
-name = "ref-cast"
-version = "1.0.25"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"
-dependencies = [
- "ref-cast-impl",
-]
-
-[[package]]
-name = "ref-cast-impl"
-version = "1.0.25"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "reqwest"
-version = "0.13.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
-dependencies = [
- "base64",
- "bytes",
- "encoding_rs",
- "futures-channel",
- "futures-core",
- "futures-util",
- "h2",
- "http",
- "http-body",
- "http-body-util",
- "hyper",
- "hyper-rustls",
- "hyper-util",
- "js-sys",
- "log",
- "mime",
- "percent-encoding",
- "pin-project-lite",
- "quinn",
- "rustls",
- "rustls-pki-types",
- "rustls-platform-verifier",
- "sync_wrapper",
- "tokio",
- "tokio-rustls",
- "tower",
- "tower-http",
- "tower-service",
- "url",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
-]
-
-[[package]]
-name = "ring"
-version = "0.17.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
-dependencies = [
- "cc",
- "cfg-if",
- "getrandom 0.2.17",
- "libc",
- "untrusted",
- "windows-sys 0.52.0",
-]
-
-[[package]]
-name = "rustc-hash"
-version = "2.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
-
-[[package]]
-name = "rustc_version"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
-dependencies = [
- "semver",
-]
-
-[[package]]
-name = "rustix"
-version = "1.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
-dependencies = [
- "bitflags",
- "errno",
- "libc",
- "linux-raw-sys",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "rustls"
-version = "0.23.42"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138"
-dependencies = [
- "aws-lc-rs",
- "once_cell",
- "rustls-pki-types",
- "rustls-webpki",
- "subtle",
- "zeroize",
-]
-
-[[package]]
-name = "rustls-native-certs"
-version = "0.8.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
-dependencies = [
- "openssl-probe",
- "rustls-pki-types",
- "schannel",
- "security-framework",
-]
-
-[[package]]
-name = "rustls-pki-types"
-version = "1.15.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "764899a24af3980067ee14bc143654f297b22eaebfe3c7b6b211920a5a59b046"
-dependencies = [
- "web-time",
- "zeroize",
-]
-
-[[package]]
-name = "rustls-platform-verifier"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"
-dependencies = [
- "core-foundation 0.10.1",
- "core-foundation-sys",
- "jni",
- "log",
- "once_cell",
- "rustls",
- "rustls-native-certs",
- "rustls-platform-verifier-android",
- "rustls-webpki",
- "security-framework",
- "security-framework-sys",
- "webpki-root-certs",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "rustls-platform-verifier-android"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
-
-[[package]]
-name = "rustls-webpki"
-version = "0.103.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
-dependencies = [
- "aws-lc-rs",
- "ring",
- "rustls-pki-types",
- "untrusted",
-]
-
-[[package]]
-name = "rustversion"
-version = "1.0.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
-
-[[package]]
-name = "same-file"
-version = "1.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
-dependencies = [
- "winapi-util",
-]
-
-[[package]]
-name = "schannel"
-version = "0.1.29"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
-dependencies = [
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "security-framework"
-version = "3.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
-dependencies = [
- "bitflags",
- "core-foundation 0.10.1",
- "core-foundation-sys",
- "libc",
- "security-framework-sys",
-]
-
-[[package]]
-name = "security-framework-sys"
-version = "2.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
-dependencies = [
- "core-foundation-sys",
- "libc",
-]
-
-[[package]]
-name = "semver"
-version = "1.0.28"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
-
-[[package]]
-name = "serde"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
-dependencies = [
- "serde_core",
-]
-
-[[package]]
-name = "serde_core"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
-dependencies = [
- "serde_derive",
-]
-
-[[package]]
-name = "serde_derive"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "shlex"
-version = "2.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
-
-[[package]]
-name = "simd-adler32"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
-
-[[package]]
-name = "simd_cesu8"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"
-dependencies = [
- "rustc_version",
- "simdutf8",
-]
-
-[[package]]
-name = "simdutf8"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
-
-[[package]]
-name = "similar"
-version = "2.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
-
-[[package]]
-name = "slab"
-version = "0.4.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
-
-[[package]]
-name = "smallvec"
-version = "1.15.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
-
-[[package]]
-name = "socket2"
-version = "0.6.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
-dependencies = [
- "libc",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "stable_deref_trait"
-version = "1.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
-
-[[package]]
-name = "subtle"
-version = "2.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
-
-[[package]]
-name = "syn"
-version = "2.0.118"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "syn"
-version = "2.0.119"
-dependencies = [
- "anyhow",
- "automod",
- "flate2",
- "insta",
- "proc-macro2",
- "quote",
- "rayon",
- "ref-cast",
- "reqwest",
- "rustversion",
- "syn-test-suite",
- "tar",
- "termcolor",
- "unicode-ident",
- "walkdir",
-]
-
-[[package]]
-name = "syn-test-suite"
-version = "0.0.0+test"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0d661992f60e67c8bdd9a7d6360d30d1301f5783abf7d59933844f656762eb5"
-
-[[package]]
-name = "sync_wrapper"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
-dependencies = [
- "futures-core",
-]
-
-[[package]]
-name = "synstructure"
-version = "0.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "system-configuration"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
-dependencies = [
- "bitflags",
- "core-foundation 0.9.4",
- "system-configuration-sys",
-]
-
-[[package]]
-name = "system-configuration-sys"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
-dependencies = [
- "core-foundation-sys",
- "libc",
-]
-
-[[package]]
-name = "tar"
-version = "0.4.46"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
-dependencies = [
- "filetime",
- "libc",
- "xattr",
-]
-
-[[package]]
-name = "tempfile"
-version = "3.27.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
-dependencies = [
- "fastrand",
- "getrandom 0.4.3",
- "once_cell",
- "rustix",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "termcolor"
-version = "1.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
-dependencies = [
- "winapi-util",
-]
-
-[[package]]
-name = "thiserror"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
-dependencies = [
- "thiserror-impl",
-]
-
-[[package]]
-name = "thiserror-impl"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
-
-[[package]]
-name = "tinystr"
-version = "0.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
-dependencies = [
- "displaydoc",
- "zerovec",
-]
-
-[[package]]
-name = "tinyvec"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"
-dependencies = [
- "tinyvec_macros",
-]
-
-[[package]]
-name = "tinyvec_macros"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
-
-[[package]]
-name = "tokio"
-version = "1.52.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
-dependencies = [
- "bytes",
- "libc",
- "mio",
- "pin-project-lite",
- "socket2",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "tokio-rustls"
-version = "0.26.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
-dependencies = [
- "rustls",
- "tokio",
-]
-
-[[package]]
-name = "tokio-util"
-version = "0.7.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
-dependencies = [
- "bytes",
- "futures-core",
- "futures-sink",
- "pin-project-lite",
- "tokio",
-]
-
-[[package]]
-name = "tower"
-version = "0.5.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
-dependencies = [
- "futures-core",
- "futures-util",
- "pin-project-lite",
- "sync_wrapper",
- "tokio",
- "tower-layer",
- "tower-service",
-]
-
-[[package]]
-name = "tower-http"
-version = "0.6.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
-dependencies = [
- "bitflags",
- "bytes",
- "futures-util",
- "http",
- "http-body",
- "pin-project-lite",
- "tower",
- "tower-layer",
- "tower-service",
- "url",
-]
-
-[[package]]
-name = "tower-layer"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
-
-[[package]]
-name = "tower-service"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
-
-[[package]]
-name = "tracing"
-version = "0.1.44"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
-dependencies = [
- "pin-project-lite",
- "tracing-core",
-]
-
-[[package]]
-name = "tracing-core"
-version = "0.1.36"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
-dependencies = [
- "once_cell",
-]
-
-[[package]]
-name = "try-lock"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
-
-[[package]]
-name = "unicode-ident"
-version = "1.0.24"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
-
-[[package]]
-name = "untrusted"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
-
-[[package]]
-name = "url"
-version = "2.5.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
-dependencies = [
- "form_urlencoded",
- "idna",
- "percent-encoding",
- "serde",
-]
-
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
-
-[[package]]
-name = "walkdir"
-version = "2.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
-dependencies = [
- "same-file",
- "winapi-util",
-]
-
-[[package]]
-name = "want"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
-dependencies = [
- "try-lock",
-]
-
-[[package]]
-name = "wasi"
-version = "0.11.1+wasi-snapshot-preview1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
-
-[[package]]
-name = "wasm-bindgen"
-version = "0.2.126"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
-dependencies = [
- "cfg-if",
- "once_cell",
- "rustversion",
- "wasm-bindgen-macro",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-futures"
-version = "0.4.76"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d"
-dependencies = [
- "js-sys",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "wasm-bindgen-macro"
-version = "0.2.126"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
-dependencies = [
- "quote",
- "wasm-bindgen-macro-support",
-]
-
-[[package]]
-name = "wasm-bindgen-macro-support"
-version = "0.2.126"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
-dependencies = [
- "bumpalo",
- "proc-macro2",
- "quote",
- "syn 2.0.118",
- "wasm-bindgen-shared",
-]
-
-[[package]]
-name = "wasm-bindgen-shared"
-version = "0.2.126"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
-dependencies = [
- "unicode-ident",
-]
-
-[[package]]
-name = "web-sys"
-version = "0.3.103"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141"
-dependencies = [
- "js-sys",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "web-time"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
-dependencies = [
- "js-sys",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "webpki-root-certs"
-version = "1.0.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d46a5a140e6f7afeccd8eae97eff335163939eac8b929834875168b29b3d267"
-dependencies = [
- "rustls-pki-types",
-]
-
-[[package]]
-name = "winapi-util"
-version = "0.1.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
-dependencies = [
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "windows-link"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
-
-[[package]]
-name = "windows-registry"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
-dependencies = [
- "windows-link",
- "windows-result",
- "windows-strings",
-]
-
-[[package]]
-name = "windows-result"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
-dependencies = [
- "windows-link",
-]
-
-[[package]]
-name = "windows-strings"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
-dependencies = [
- "windows-link",
-]
-
-[[package]]
-name = "windows-sys"
-version = "0.52.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
-dependencies = [
- "windows-targets",
-]
-
-[[package]]
-name = "windows-sys"
-version = "0.61.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
-dependencies = [
- "windows-link",
-]
-
-[[package]]
-name = "windows-targets"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
-dependencies = [
- "windows_aarch64_gnullvm",
- "windows_aarch64_msvc",
- "windows_i686_gnu",
- "windows_i686_gnullvm",
- "windows_i686_msvc",
- "windows_x86_64_gnu",
- "windows_x86_64_gnullvm",
- "windows_x86_64_msvc",
-]
-
-[[package]]
-name = "windows_aarch64_gnullvm"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
-
-[[package]]
-name = "windows_aarch64_msvc"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
-
-[[package]]
-name = "windows_i686_gnu"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
-
-[[package]]
-name = "windows_i686_gnullvm"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
-
-[[package]]
-name = "windows_i686_msvc"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
-
-[[package]]
-name = "windows_x86_64_gnu"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
-
-[[package]]
-name = "windows_x86_64_gnullvm"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
-
-[[package]]
-name = "windows_x86_64_msvc"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
-
-[[package]]
-name = "writeable"
-version = "0.6.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
-
-[[package]]
-name = "xattr"
-version = "1.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
-dependencies = [
- "libc",
- "rustix",
-]
-
-[[package]]
-name = "yoke"
-version = "0.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
-dependencies = [
- "stable_deref_trait",
- "yoke-derive",
- "zerofrom",
-]
-
-[[package]]
-name = "yoke-derive"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
- "synstructure",
-]
-
-[[package]]
-name = "zerofrom"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
-dependencies = [
- "zerofrom-derive",
-]
-
-[[package]]
-name = "zerofrom-derive"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
- "synstructure",
-]
-
-[[package]]
-name = "zeroize"
-version = "1.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
-
-[[package]]
-name = "zerotrie"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
-dependencies = [
- "displaydoc",
- "yoke",
- "zerofrom",
-]
-
-[[package]]
-name = "zerovec"
-version = "0.11.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
-dependencies = [
- "yoke",
- "zerofrom",
- "zerovec-derive",
-]
-
-[[package]]
-name = "zerovec-derive"
-version = "0.11.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.118",
-]
diff --git a/deps/crates/vendor/syn-v2/Cargo.toml b/deps/crates/vendor/syn-v2/Cargo.toml
deleted file mode 100644
index 02741c0177b..00000000000
--- a/deps/crates/vendor/syn-v2/Cargo.toml
+++ /dev/null
@@ -1,272 +0,0 @@
-# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
-#
-# When uploading crates to the registry Cargo will automatically
-# "normalize" Cargo.toml files for maximal compatibility
-# with all versions of Cargo and also rewrite `path` dependencies
-# to registry (e.g., crates.io) dependencies.
-#
-# If you are reading this file be aware that the original Cargo.toml
-# will likely look very different (and much more reasonable).
-# See Cargo.toml.orig for the original contents.
-
-[package]
-edition = "2021"
-rust-version = "1.71"
-name = "syn"
-version = "2.0.119"
-authors = ["David Tolnay <dtolnay@gmail.com>"]
-build = false
-include = [
- "/benches/**",
- "/Cargo.toml",
- "/LICENSE-APACHE",
- "/LICENSE-MIT",
- "/README.md",
- "/src/**",
- "/tests/**",
-]
-autolib = false
-autobins = false
-autoexamples = false
-autotests = false
-autobenches = false
-description = "Parser for Rust source code"
-documentation = "https://docs.rs/syn"
-readme = "README.md"
-keywords = [
- "macros",
- "syn",
-]
-categories = [
- "development-tools::procedural-macro-helpers",
- "parser-implementations",
-]
-license = "MIT OR Apache-2.0"
-repository = "https://github.com/dtolnay/syn"
-
-[package.metadata.docs.rs]
-all-features = true
-targets = ["x86_64-unknown-linux-gnu"]
-rustdoc-args = [
- "--generate-link-to-definition",
- "--generate-macro-expansion",
- "--extend-css=src/gen/token.css",
- "--extern-html-root-url=core=https://doc.rust-lang.org",
- "--extern-html-root-url=alloc=https://doc.rust-lang.org",
- "--extern-html-root-url=std=https://doc.rust-lang.org",
- "--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
-]
-
-[package.metadata.playground]
-features = [
- "full",
- "visit",
- "visit-mut",
- "fold",
- "extra-traits",
-]
-
-[features]
-clone-impls = []
-default = [
- "derive",
- "parsing",
- "printing",
- "clone-impls",
- "proc-macro",
-]
-derive = []
-extra-traits = []
-fold = []
-full = []
-parsing = []
-printing = ["dep:quote"]
-proc-macro = [
- "proc-macro2/proc-macro",
- "quote?/proc-macro",
-]
-test = ["syn-test-suite/all-features"]
-visit = []
-visit-mut = []
-
-[lib]
-name = "syn"
-path = "src/lib.rs"
-
-[[test]]
-name = "regression"
-path = "tests/regression.rs"
-
-[[test]]
-name = "test_asyncness"
-path = "tests/test_asyncness.rs"
-
-[[test]]
-name = "test_attribute"
-path = "tests/test_attribute.rs"
-
-[[test]]
-name = "test_derive_input"
-path = "tests/test_derive_input.rs"
-
-[[test]]
-name = "test_expr"
-path = "tests/test_expr.rs"
-
-[[test]]
-name = "test_generics"
-path = "tests/test_generics.rs"
-
-[[test]]
-name = "test_grouping"
-path = "tests/test_grouping.rs"
-
-[[test]]
-name = "test_ident"
-path = "tests/test_ident.rs"
-
-[[test]]
-name = "test_item"
-path = "tests/test_item.rs"
-
-[[test]]
-name = "test_lit"
-path = "tests/test_lit.rs"
-
-[[test]]
-name = "test_meta"
-path = "tests/test_meta.rs"
-
-[[test]]
-name = "test_parse_buffer"
-path = "tests/test_parse_buffer.rs"
-
-[[test]]
-name = "test_parse_quote"
-path = "tests/test_parse_quote.rs"
-
-[[test]]
-name = "test_parse_stream"
-path = "tests/test_parse_stream.rs"
-
-[[test]]
-name = "test_pat"
-path = "tests/test_pat.rs"
-
-[[test]]
-name = "test_path"
-path = "tests/test_path.rs"
-
-[[test]]
-name = "test_precedence"
-path = "tests/test_precedence.rs"
-
-[[test]]
-name = "test_punctuated"
-path = "tests/test_punctuated.rs"
-
-[[test]]
-name = "test_receiver"
-path = "tests/test_receiver.rs"
-
-[[test]]
-name = "test_round_trip"
-path = "tests/test_round_trip.rs"
-
-[[test]]
-name = "test_shebang"
-path = "tests/test_shebang.rs"
-
-[[test]]
-name = "test_size"
-path = "tests/test_size.rs"
-
-[[test]]
-name = "test_stmt"
-path = "tests/test_stmt.rs"
-
-[[test]]
-name = "test_token_trees"
-path = "tests/test_token_trees.rs"
-
-[[test]]
-name = "test_ty"
-path = "tests/test_ty.rs"
-
-[[test]]
-name = "test_unparenthesize"
-path = "tests/test_unparenthesize.rs"
-
-[[test]]
-name = "test_visibility"
-path = "tests/test_visibility.rs"
-
-[[test]]
-name = "zzz_stable"
-path = "tests/zzz_stable.rs"
-
-[[bench]]
-name = "file"
-path = "benches/file.rs"
-required-features = [
- "full",
- "parsing",
-]
-
-[[bench]]
-name = "rust"
-path = "benches/rust.rs"
-harness = false
-required-features = [
- "full",
- "parsing",
-]
-
-[dependencies.proc-macro2]
-version = "1.0.91"
-default-features = false
-
-[dependencies.quote]
-version = "1.0.35"
-optional = true
-default-features = false
-
-[dependencies.unicode-ident]
-version = "1"
-
-[dev-dependencies.anyhow]
-version = "1"
-
-[dev-dependencies.automod]
-version = "1"
-
-[dev-dependencies.insta]
-version = "1"
-
-[dev-dependencies.ref-cast]
-version = "1"
-
-[dev-dependencies.rustversion]
-version = "1"
-
-[dev-dependencies.syn-test-suite]
-version = "0"
-
-[dev-dependencies.termcolor]
-version = "1"
-
-[target."cfg(not(miri))".dev-dependencies.flate2]
-version = "1"
-
-[target."cfg(not(miri))".dev-dependencies.rayon]
-version = "1"
-
-[target."cfg(not(miri))".dev-dependencies.reqwest]
-version = "0.13"
-features = ["blocking"]
-
-[target."cfg(not(miri))".dev-dependencies.tar]
-version = "0.4.16"
-
-[target."cfg(not(miri))".dev-dependencies.walkdir]
-version = "2.3.2"
diff --git a/deps/crates/vendor/syn-v2/Cargo.toml.orig b/deps/crates/vendor/syn-v2/Cargo.toml.orig
deleted file mode 100644
index a2a8d298789..00000000000
--- a/deps/crates/vendor/syn-v2/Cargo.toml.orig
+++ /dev/null
@@ -1,95 +0,0 @@
-[package]
-name = "syn"
-version = "2.0.119"
-authors = ["David Tolnay <dtolnay@gmail.com>"]
-categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
-description = "Parser for Rust source code"
-documentation = "https://docs.rs/syn"
-edition = "2021"
-include = [
- "/benches/**",
- "/Cargo.toml",
- "/LICENSE-APACHE",
- "/LICENSE-MIT",
- "/README.md",
- "/src/**",
- "/tests/**",
-]
-keywords = ["macros", "syn"]
-license = "MIT OR Apache-2.0"
-repository = "https://github.com/dtolnay/syn"
-rust-version = "1.71"
-
-[features]
-default = ["derive", "parsing", "printing", "clone-impls", "proc-macro"]
-derive = []
-full = []
-parsing = []
-printing = ["dep:quote"]
-visit = []
-visit-mut = []
-fold = []
-clone-impls = []
-extra-traits = []
-proc-macro = ["proc-macro2/proc-macro", "quote?/proc-macro"]
-test = ["syn-test-suite/all-features"]
-
-[dependencies]
-proc-macro2 = { version = "1.0.91", default-features = false }
-quote = { version = "1.0.35", optional = true, default-features = false }
-unicode-ident = "1"
-
-[dev-dependencies]
-anyhow = "1"
-automod = "1"
-insta = "1"
-ref-cast = "1"
-rustversion = "1"
-syn-test-suite = { version = "0", path = "tests/features" }
-termcolor = "1"
-
-[target.'cfg(not(miri))'.dev-dependencies]
-flate2 = "1"
-rayon = "1"
-reqwest = { version = "0.13", features = ["blocking"] }
-tar = "0.4.16"
-walkdir = "2.3.2"
-
-[[bench]]
-name = "rust"
-harness = false
-required-features = ["full", "parsing"]
-
-[[bench]]
-name = "file"
-required-features = ["full", "parsing"]
-
-[package.metadata.docs.rs]
-all-features = true
-targets = ["x86_64-unknown-linux-gnu"]
-rustdoc-args = [
- "--generate-link-to-definition",
- "--generate-macro-expansion",
- "--extend-css=src/gen/token.css",
- "--extern-html-root-url=core=https://doc.rust-lang.org",
- "--extern-html-root-url=alloc=https://doc.rust-lang.org",
- "--extern-html-root-url=std=https://doc.rust-lang.org",
- "--extern-html-root-url=proc_macro=https://doc.rust-lang.org",
-]
-
-[package.metadata.playground]
-features = ["full", "visit", "visit-mut", "fold", "extra-traits"]
-
-[workspace]
-members = [
- "dev",
- "examples/dump-syntax",
- "examples/heapsize/example",
- "examples/heapsize/heapsize",
- "examples/heapsize/heapsize_derive",
- "examples/lazy-static/example",
- "examples/lazy-static/lazy-static",
- "examples/trace-var/example",
- "examples/trace-var/trace-var",
- "tests/features",
-]
diff --git a/deps/crates/vendor/syn-v2/LICENSE-APACHE b/deps/crates/vendor/syn-v2/LICENSE-APACHE
deleted file mode 100644
index 1b5ec8b78e2..00000000000
--- a/deps/crates/vendor/syn-v2/LICENSE-APACHE
+++ /dev/null
@@ -1,176 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS
diff --git a/deps/crates/vendor/syn-v2/LICENSE-MIT b/deps/crates/vendor/syn-v2/LICENSE-MIT
deleted file mode 100644
index 31aa79387f2..00000000000
--- a/deps/crates/vendor/syn-v2/LICENSE-MIT
+++ /dev/null
@@ -1,23 +0,0 @@
-Permission is hereby granted, free of charge, to any
-person obtaining a copy of this software and associated
-documentation files (the "Software"), to deal in the
-Software without restriction, including without
-limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software
-is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice
-shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
-ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
-TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
-PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
-IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/deps/crates/vendor/syn-v2/README.md b/deps/crates/vendor/syn-v2/README.md
deleted file mode 100644
index 7ac4b2dc3d8..00000000000
--- a/deps/crates/vendor/syn-v2/README.md
+++ /dev/null
@@ -1,282 +0,0 @@
-Parser for Rust source code
-===========================
-
-[<img alt="github" src="https://img.shields.io/badge/github-dtolnay/syn-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/dtolnay/syn)
-[<img alt="crates.io" src="https://img.shields.io/crates/v/syn.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/syn)
-[<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-syn-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height="20">](https://docs.rs/syn)
-[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/dtolnay/syn/ci.yml?branch=master&style=for-the-badge" height="20">](https://github.com/dtolnay/syn/actions?query=branch%3Amaster)
-
-Syn is a parsing library for parsing a stream of Rust tokens into a syntax tree
-of Rust source code.
-
-Currently this library is geared toward use in Rust procedural macros, but
-contains some APIs that may be useful more generally.
-
-- **Data structures** — Syn provides a complete syntax tree that can represent
- any valid Rust source code. The syntax tree is rooted at [`syn::File`] which
- represents a full source file, but there are other entry points that may be
- useful to procedural macros including [`syn::Item`], [`syn::Expr`] and
- [`syn::Type`].
-
-- **Derives** — Of particular interest to derive macros is [`syn::DeriveInput`]
- which is any of the three legal input items to a derive macro. An example
- below shows using this type in a library that can derive implementations of a
- user-defined trait.
-
-- **Parsing** — Parsing in Syn is built around [parser functions] with the
- signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined by
- Syn is individually parsable and may be used as a building block for custom
- syntaxes, or you may dream up your own brand new syntax without involving any
- of our syntax tree types.
-
-- **Location information** — Every token parsed by Syn is associated with a
- `Span` that tracks line and column information back to the source of that
- token. These spans allow a procedural macro to display detailed error messages
- pointing to all the right places in the user's code. There is an example of
- this below.
-
-- **Feature flags** — Functionality is aggressively feature gated so your
- procedural macros enable only what they need, and do not pay in compile time
- for all the rest.
-
-[`syn::File`]: https://docs.rs/syn/2.0/syn/struct.File.html
-[`syn::Item`]: https://docs.rs/syn/2.0/syn/enum.Item.html
-[`syn::Expr`]: https://docs.rs/syn/2.0/syn/enum.Expr.html
-[`syn::Type`]: https://docs.rs/syn/2.0/syn/enum.Type.html
-[`syn::DeriveInput`]: https://docs.rs/syn/2.0/syn/struct.DeriveInput.html
-[parser functions]: https://docs.rs/syn/2.0/syn/parse/index.html
-
-[*Release notes*](https://github.com/dtolnay/syn/releases)
-
-<br>
-
-## Resources
-
-The best way to learn about procedural macros is by writing some. Consider
-working through [this procedural macro workshop][workshop] to get familiar with
-the different types of procedural macros. The workshop contains relevant links
-into the Syn documentation as you work through each project.
-
-[workshop]: https://github.com/dtolnay/proc-macro-workshop
-
-<br>
-
-## Example of a derive macro
-
-The canonical derive macro using Syn looks like this. We write an ordinary Rust
-function tagged with a `proc_macro_derive` attribute and the name of the trait
-we are deriving. Any time that derive appears in the user's code, the Rust
-compiler passes their data structure as tokens into our macro. We get to execute
-arbitrary Rust code to figure out what to do with those tokens, then hand some
-tokens back to the compiler to compile into the user's crate.
-
-[`TokenStream`]: https://doc.rust-lang.org/proc_macro/struct.TokenStream.html
-
-```toml
-[dependencies]
-syn = "2.0"
-quote = "1.0"
-
-[lib]
-proc-macro = true
-```
-
-```rust
-use proc_macro::TokenStream;
-use quote::quote;
-use syn::{parse_macro_input, DeriveInput};
-
-#[proc_macro_derive(MyMacro)]
-pub fn my_macro(input: TokenStream) -> TokenStream {
- // Parse the input tokens into a syntax tree
- let input = parse_macro_input!(input as DeriveInput);
-
- // Build the output, possibly using quasi-quotation
- let expanded = quote! {
- // ...
- };
-
- // Hand the output tokens back to the compiler
- TokenStream::from(expanded)
-}
-```
-
-The [`heapsize`] example directory shows a complete working implementation of a
-derive macro. The example derives a `HeapSize` trait which computes an estimate
-of the amount of heap memory owned by a value.
-
-[`heapsize`]: examples/heapsize
-
-```rust
-pub trait HeapSize {
- /// Total number of bytes of heap memory owned by `self`.
- fn heap_size_of_children(&self) -> usize;
-}
-```
-
-The derive macro allows users to write `#[derive(HeapSize)]` on data structures
-in their program.
-
-```rust
-#[derive(HeapSize)]
-struct Demo<'a, T: ?Sized> {
- a: Box<T>,
- b: u8,
- c: &'a str,
- d: String,
-}
-```
-
-<br>
-
-## Spans and error reporting
-
-The token-based procedural macro API provides great control over where the
-compiler's error messages are displayed in user code. Consider the error the
-user sees if one of their field types does not implement `HeapSize`.
-
-```rust
-#[derive(HeapSize)]
-struct Broken {
- ok: String,
- bad: std::thread::Thread,
-}
-```
-
-By tracking span information all the way through the expansion of a procedural
-macro as shown in the `heapsize` example, token-based macros in Syn are able to
-trigger errors that directly pinpoint the source of the problem.
-
-```console
-error[E0277]: the trait bound `std::thread::Thread: HeapSize` is not satisfied
- --> src/main.rs:7:5
- |
-7 | bad: std::thread::Thread,
- | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HeapSize` is not implemented for `std::thread::Thread`
-```
-
-<br>
-
-## Parsing a custom syntax
-
-The [`lazy-static`] example directory shows the implementation of a
-`functionlike!(...)` procedural macro in which the input tokens are parsed using
-Syn's parsing API.
-
-[`lazy-static`]: examples/lazy-static
-
-The example reimplements the popular `lazy_static` crate from crates.io as a
-procedural macro.
-
-```rust
-lazy_static! {
- static ref USERNAME: Regex = Regex::new("^[a-z0-9_-]{3,16}$").unwrap();
-}
-```
-
-The implementation shows how to trigger custom warnings and error messages on
-the macro input.
-
-```console
-warning: come on, pick a more creative name
- --> src/main.rs:10:16
- |
-10 | static ref FOO: String = "lazy_static".to_owned();
- | ^^^
-```
-
-<br>
-
-## Testing
-
-When testing macros, we often care not just that the macro can be used
-successfully but also that when the macro is provided with invalid input it
-produces maximally helpful error messages. Consider using the [`trybuild`] crate
-to write tests for errors that are emitted by your macro or errors detected by
-the Rust compiler in the expanded code following misuse of the macro. Such tests
-help avoid regressions from later refactors that mistakenly make an error no
-longer trigger or be less helpful than it used to be.
-
-[`trybuild`]: https://github.com/dtolnay/trybuild
-
-<br>
-
-## Debugging
-
-When developing a procedural macro it can be helpful to look at what the
-generated code looks like. Use `cargo rustc -- -Zunstable-options
--Zunpretty=expanded` or the [`cargo expand`] subcommand.
-
-[`cargo expand`]: https://github.com/dtolnay/cargo-expand
-
-To show the expanded code for some crate that uses your procedural macro, run
-`cargo expand` from that crate. To show the expanded code for one of your own
-test cases, run `cargo expand --test the_test_case` where the last argument is
-the name of the test file without the `.rs` extension.
-
-This write-up by Brandon W Maister discusses debugging in more detail:
-[Debugging Rust's new Custom Derive system][debugging].
-
-[debugging]: https://quodlibetor.github.io/posts/debugging-rusts-new-custom-derive-system/
-
-<br>
-
-## Optional features
-
-Syn puts a lot of functionality behind optional features in order to optimize
-compile time for the most common use cases. The following features are
-available.
-
-- **`derive`** *(enabled by default)* — Data structures for representing the
- possible input to a derive macro, including structs and enums and types.
-- **`full`** — Data structures for representing the syntax tree of all valid
- Rust source code, including items and expressions.
-- **`parsing`** *(enabled by default)* — Ability to parse input tokens into a
- syntax tree node of a chosen type.
-- **`printing`** *(enabled by default)* — Ability to print a syntax tree node as
- tokens of Rust source code.
-- **`visit`** — Trait for traversing a syntax tree.
-- **`visit-mut`** — Trait for traversing and mutating in place a syntax tree.
-- **`fold`** — Trait for transforming an owned syntax tree.
-- **`clone-impls`** *(enabled by default)* — Clone impls for all syntax tree
- types.
-- **`extra-traits`** — Debug, Eq, PartialEq, Hash impls for all syntax tree
- types.
-- **`proc-macro`** *(enabled by default)* — Runtime dependency on the dynamic
- library libproc_macro from rustc toolchain.
-
-<br>
-
-## Proc macro shim
-
-Syn operates on the token representation provided by the [proc-macro2] crate
-from crates.io rather than using the compiler's built in proc-macro crate
-directly. This enables code using Syn to execute outside of the context of a
-procedural macro, such as in unit tests or build.rs, and we avoid needing
-incompatible ecosystems for proc macros vs non-macro use cases.
-
-In general all of your code should be written against proc-macro2 rather than
-proc-macro. The one exception is in the signatures of procedural macro entry
-points, which are required by the language to use `proc_macro::TokenStream`.
-
-The proc-macro2 crate will automatically detect and use the compiler's data
-structures when a procedural macro is active.
-
-[proc-macro2]: https://docs.rs/proc-macro2/1.0/proc_macro2/
-
-<br>
-
-#### License
-
-<sup>
-Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
-2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
-</sup>
-
-<br>
-
-<sub>
-Unless you explicitly state otherwise, any contribution intentionally submitted
-for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
-be dual licensed as above, without any additional terms or conditions.
-</sub>
diff --git a/deps/crates/vendor/syn-v2/benches/file.rs b/deps/crates/vendor/syn-v2/benches/file.rs
deleted file mode 100644
index 6167488c9c5..00000000000
--- a/deps/crates/vendor/syn-v2/benches/file.rs
+++ /dev/null
@@ -1,59 +0,0 @@
-// $ cargo bench --features full,test --bench file
-
-#![feature(rustc_private, test)]
-#![recursion_limit = "1024"]
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::items_after_statements,
- clippy::manual_let_else,
- clippy::match_like_matches_macro,
- clippy::missing_panics_doc,
- clippy::must_use_candidate,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-extern crate test;
-
-#[macro_use]
-#[path = "../tests/macros/mod.rs"]
-mod macros;
-
-#[allow(dead_code)]
-#[path = "../tests/repo/mod.rs"]
-mod repo;
-
-use proc_macro2::{Span, TokenStream};
-use std::fs;
-use std::str::FromStr;
-use syn::parse::{ParseStream, Parser};
-use test::Bencher;
-
-const FILE: &str = "tests/rust/library/core/src/str/mod.rs";
-
-fn get_tokens() -> TokenStream {
- repo::clone_rust();
- let content = fs::read_to_string(FILE).unwrap();
- TokenStream::from_str(&content).unwrap()
-}
-
-#[bench]
-fn baseline(b: &mut Bencher) {
- let tokens = get_tokens();
- b.iter(|| drop(tokens.clone()));
-}
-
-#[bench]
-fn create_token_buffer(b: &mut Bencher) {
- let tokens = get_tokens();
- fn immediate_fail(_input: ParseStream) -> syn::Result<()> {
- Err(syn::Error::new(Span::call_site(), ""))
- }
- b.iter(|| immediate_fail.parse2(tokens.clone()));
-}
-
-#[bench]
-fn parse_file(b: &mut Bencher) {
- let tokens = get_tokens();
- b.iter(|| syn::parse2::<syn::File>(tokens.clone()));
-}
diff --git a/deps/crates/vendor/syn-v2/benches/rust.rs b/deps/crates/vendor/syn-v2/benches/rust.rs
deleted file mode 100644
index c0e82c65c00..00000000000
--- a/deps/crates/vendor/syn-v2/benches/rust.rs
+++ /dev/null
@@ -1,189 +0,0 @@
-// $ cargo bench --features full,test --bench rust
-//
-// Syn only, useful for profiling:
-// $ RUSTFLAGS='--cfg syn_only' cargo build --release --features full,test --bench rust
-
-#![cfg_attr(not(syn_only), feature(rustc_private))]
-#![recursion_limit = "1024"]
-#![allow(
- clippy::arc_with_non_send_sync,
- clippy::cast_lossless,
- clippy::elidable_lifetime_names,
- clippy::let_underscore_untyped,
- clippy::manual_let_else,
- clippy::match_like_matches_macro,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args,
- clippy::unnecessary_wraps
-)]
-
-#[macro_use]
-#[path = "../tests/macros/mod.rs"]
-mod macros;
-
-#[allow(dead_code)]
-#[path = "../tests/repo/mod.rs"]
-mod repo;
-
-use std::fs;
-use std::path::Path;
-use std::time::{Duration, Instant};
-
-#[cfg(not(syn_only))]
-mod tokenstream_parse {
- use proc_macro2::TokenStream;
- use std::path::Path;
- use std::str::FromStr;
-
- pub fn bench(_path: &Path, content: &str) -> Result<(), ()> {
- TokenStream::from_str(content).map(drop).map_err(drop)
- }
-}
-
-mod syn_parse {
- use std::path::Path;
-
- pub fn bench(_path: &Path, content: &str) -> Result<(), ()> {
- syn::parse_file(content).map(drop).map_err(drop)
- }
-}
-
-#[cfg(not(syn_only))]
-mod librustc_parse {
- extern crate rustc_data_structures;
- extern crate rustc_driver;
- extern crate rustc_error_messages;
- extern crate rustc_errors;
- extern crate rustc_parse;
- extern crate rustc_session;
- extern crate rustc_span;
-
- use crate::repo;
- use rustc_errors::emitter::Emitter;
- use rustc_errors::{DiagCtxt, DiagInner};
- use rustc_parse::lexer::StripTokens;
- use rustc_session::parse::ParseSess;
- use rustc_span::source_map::{FilePathMapping, SourceMap};
- use rustc_span::FileName;
- use std::path::Path;
- use std::sync::Arc;
-
- pub fn bench(path: &Path, content: &str) -> Result<(), ()> {
- struct SilentEmitter;
-
- impl Emitter for SilentEmitter {
- fn emit_diagnostic(&mut self, _diag: DiagInner) {}
- fn source_map(&self) -> Option<&SourceMap> {
- None
- }
- }
-
- let edition = repo::edition(path).parse().unwrap();
- rustc_span::create_session_if_not_set_then(edition, |_| {
- let source_map = Arc::new(SourceMap::new(FilePathMapping::empty()));
- let emitter = Box::new(SilentEmitter);
- let handler = DiagCtxt::new(emitter);
- let sess = ParseSess::with_dcx(handler, source_map);
- let name = FileName::Custom("bench".to_owned());
- let mut parser = rustc_parse::new_parser_from_source_str(
- &sess,
- name,
- content.to_owned(),
- StripTokens::ShebangAndFrontmatter,
- )
- .unwrap();
- if let Err(diagnostic) = parser.parse_crate_mod() {
- diagnostic.cancel();
- return Err(());
- }
- Ok(())
- })
- }
-}
-
-#[cfg(not(syn_only))]
-mod read_from_disk {
- use std::path::Path;
-
- pub fn bench(_path: &Path, content: &str) -> Result<(), ()> {
- let _ = content;
- Ok(())
- }
-}
-
-fn exec(mut codepath: impl FnMut(&Path, &str) -> Result<(), ()>) -> Duration {
- let begin = Instant::now();
- let mut success = 0;
- let mut total = 0;
-
- ["tests/rust/compiler", "tests/rust/library"]
- .iter()
- .flat_map(|dir| {
- walkdir::WalkDir::new(dir)
- .into_iter()
- .filter_entry(repo::base_dir_filter)
- })
- .for_each(|entry| {
- let entry = entry.unwrap();
- let path = entry.path();
- if path.is_dir() {
- return;
- }
- let content = fs::read_to_string(path).unwrap();
- let ok = codepath(path, &content).is_ok();
- success += ok as usize;
- total += 1;
- if !ok {
- eprintln!("FAIL {}", path.display());
- }
- });
-
- assert_eq!(success, total);
- begin.elapsed()
-}
-
-fn main() {
- repo::clone_rust();
-
- macro_rules! testcases {
- ($($(#[$cfg:meta])* $name:ident,)*) => {
- [
- $(
- $(#[$cfg])*
- (stringify!($name), $name::bench as fn(&Path, &str) -> Result<(), ()>),
- )*
- ]
- };
- }
-
- #[cfg(not(syn_only))]
- {
- let mut lines = 0;
- let mut files = 0;
- exec(|_path, content| {
- lines += content.lines().count();
- files += 1;
- Ok(())
- });
- eprintln!("\n{} lines in {} files", lines, files);
- }
-
- for (name, f) in testcases!(
- #[cfg(not(syn_only))]
- read_from_disk,
- #[cfg(not(syn_only))]
- tokenstream_parse,
- syn_parse,
- #[cfg(not(syn_only))]
- librustc_parse,
- ) {
- eprint!("{:20}", format!("{}:", name));
- let elapsed = exec(f);
- eprintln!(
- "elapsed={}.{:03}s",
- elapsed.as_secs(),
- elapsed.subsec_millis(),
- );
- }
- eprintln!();
-}
diff --git a/deps/crates/vendor/syn-v2/src/attr.rs b/deps/crates/vendor/syn-v2/src/attr.rs
deleted file mode 100644
index 5e2d7a71f25..00000000000
--- a/deps/crates/vendor/syn-v2/src/attr.rs
+++ /dev/null
@@ -1,841 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::error::Error;
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-use crate::expr::Expr;
-use crate::mac::MacroDelimiter;
-#[cfg(feature = "parsing")]
-use crate::meta::{self, ParseNestedMeta};
-#[cfg(feature = "parsing")]
-use crate::parse::{Parse, ParseStream, Parser};
-use crate::path::Path;
-use crate::token;
-#[cfg(feature = "parsing")]
-use alloc::format;
-#[cfg(feature = "parsing")]
-use alloc::vec::Vec;
-#[cfg(feature = "printing")]
-use core::iter;
-#[cfg(feature = "printing")]
-use core::slice;
-use proc_macro2::TokenStream;
-
-ast_struct! {
- /// An attribute, like `#[repr(transparent)]`.
- ///
- /// <br>
- ///
- /// # Syntax
- ///
- /// Rust has six types of attributes.
- ///
- /// - Outer attributes like `#[repr(transparent)]`. These appear outside or
- /// in front of the item they describe.
- ///
- /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside
- /// of the item they describe, usually a module.
- ///
- /// - Outer one-line doc comments like `/// Example`.
- ///
- /// - Inner one-line doc comments like `//! Please file an issue`.
- ///
- /// - Outer documentation blocks `/** Example */`.
- ///
- /// - Inner documentation blocks `/*! Please file an issue */`.
- ///
- /// The `style` field of type `AttrStyle` distinguishes whether an attribute
- /// is outer or inner.
- ///
- /// Every attribute has a `path` that indicates the intended interpretation
- /// of the rest of the attribute's contents. The path and the optional
- /// additional contents are represented together in the `meta` field of the
- /// attribute in three possible varieties:
- ///
- /// - Meta::Path — attributes whose information content conveys just a
- /// path, for example the `#[test]` attribute.
- ///
- /// - Meta::List — attributes that carry arbitrary tokens after the
- /// path, surrounded by a delimiter (parenthesis, bracket, or brace). For
- /// example `#[derive(Copy)]` or `#[precondition(x < 5)]`.
- ///
- /// - Meta::NameValue — attributes with an `=` sign after the path,
- /// followed by a Rust expression. For example `#[path =
- /// "sys/windows.rs"]`.
- ///
- /// All doc comments are represented in the NameValue style with a path of
- /// "doc", as this is how they are processed by the compiler and by
- /// `macro_rules!` macros.
- ///
- /// ```text
- /// #[derive(Copy, Clone)]
- /// ~~~~~~Path
- /// ^^^^^^^^^^^^^^^^^^^Meta::List
- ///
- /// #[path = "sys/windows.rs"]
- /// ~~~~Path
- /// ^^^^^^^^^^^^^^^^^^^^^^^Meta::NameValue
- ///
- /// #[test]
- /// ^^^^Meta::Path
- /// ```
- ///
- /// <br>
- ///
- /// # Parsing from tokens to Attribute
- ///
- /// This type does not implement the [`Parse`] trait and thus cannot be
- /// parsed directly by [`ParseStream::parse`]. Instead use
- /// [`ParseStream::call`] with one of the two parser functions
- /// [`Attribute::parse_outer`] or [`Attribute::parse_inner`] depending on
- /// which you intend to parse.
- ///
- /// [`Parse`]: crate::parse::Parse
- /// [`ParseStream::parse`]: crate::parse::ParseBuffer::parse
- /// [`ParseStream::call`]: crate::parse::ParseBuffer::call
- ///
- /// ```
- /// use syn::{Attribute, Ident, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Parses a unit struct with attributes.
- /// //
- /// // #[path = "s.tmpl"]
- /// // struct S;
- /// struct UnitStruct {
- /// attrs: Vec<Attribute>,
- /// struct_token: Token![struct],
- /// name: Ident,
- /// semi_token: Token![;],
- /// }
- ///
- /// impl Parse for UnitStruct {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// Ok(UnitStruct {
- /// attrs: input.call(Attribute::parse_outer)?,
- /// struct_token: input.parse()?,
- /// name: input.parse()?,
- /// semi_token: input.parse()?,
- /// })
- /// }
- /// }
- /// ```
- ///
- /// <p><br></p>
- ///
- /// # Parsing from Attribute to structured arguments
- ///
- /// The grammar of attributes in Rust is very flexible, which makes the
- /// syntax tree not that useful on its own. In particular, arguments of the
- /// `Meta::List` variety of attribute are held in an arbitrary `tokens:
- /// TokenStream`. Macros are expected to check the `path` of the attribute,
- /// decide whether they recognize it, and then parse the remaining tokens
- /// according to whatever grammar they wish to require for that kind of
- /// attribute. Use [`parse_args()`] to parse those tokens into the expected
- /// data structure.
- ///
- /// [`parse_args()`]: Attribute::parse_args
- ///
- /// <p><br></p>
- ///
- /// # Doc comments
- ///
- /// The compiler transforms doc comments, such as `/// comment` and `/*!
- /// comment */`, into attributes before macros are expanded. Each comment is
- /// expanded into an attribute of the form `#[doc = r"comment"]`.
- ///
- /// As an example, the following `mod` items are expanded identically:
- ///
- /// ```
- /// # use syn::{ItemMod, parse_quote};
- /// let doc: ItemMod = parse_quote! {
- /// /// Single line doc comments
- /// /// We write so many!
- /// /**
- /// * Multi-line comments...
- /// * May span many lines
- /// */
- /// mod example {
- /// //! Of course, they can be inner too
- /// /*! And fit in a single line */
- /// }
- /// };
- /// let attr: ItemMod = parse_quote! {
- /// #[doc = r" Single line doc comments"]
- /// #[doc = r" We write so many!"]
- /// #[doc = r"
- /// * Multi-line comments...
- /// * May span many lines
- /// "]
- /// mod example {
- /// #![doc = r" Of course, they can be inner too"]
- /// #![doc = r" And fit in a single line "]
- /// }
- /// };
- /// assert_eq!(doc, attr);
- /// ```
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Attribute {
- pub pound_token: Token![#],
- pub style: AttrStyle,
- pub bracket_token: token::Bracket,
- pub meta: Meta,
- }
-}
-
-impl Attribute {
- /// Returns the path that identifies the interpretation of this attribute.
- ///
- /// For example this would return the `test` in `#[test]`, the `derive` in
- /// `#[derive(Copy)]`, and the `path` in `#[path = "sys/windows.rs"]`.
- pub fn path(&self) -> &Path {
- self.meta.path()
- }
-
- /// Parse the arguments to the attribute as a syntax tree.
- ///
- /// This is similar to pulling out the `TokenStream` from `Meta::List` and
- /// doing `syn::parse2::<T>(meta_list.tokens)`, except that using
- /// `parse_args` the error message has a more useful span when `tokens` is
- /// empty.
- ///
- /// The surrounding delimiters are *not* included in the input to the
- /// parser.
- ///
- /// ```text
- /// #[my_attr(value < 5)]
- /// ^^^^^^^^^ what gets parsed
- /// ```
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{parse_quote, Attribute, Expr};
- ///
- /// let attr: Attribute = parse_quote! {
- /// #[precondition(value < 5)]
- /// };
- ///
- /// if attr.path().is_ident("precondition") {
- /// let precondition: Expr = attr.parse_args()?;
- /// // ...
- /// }
- /// # anyhow::Ok(())
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_args<T: Parse>(&self) -> Result<T> {
- self.parse_args_with(T::parse)
- }
-
- /// Parse the arguments to the attribute using the given parser.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{parse_quote, Attribute};
- ///
- /// let attr: Attribute = parse_quote! {
- /// #[inception { #[brrrrrrraaaaawwwwrwrrrmrmrmmrmrmmmmm] }]
- /// };
- ///
- /// let bwom = attr.parse_args_with(Attribute::parse_outer)?;
- ///
- /// // Attribute does not have a Parse impl, so we couldn't directly do:
- /// // let bwom: Attribute = attr.parse_args()?;
- /// # anyhow::Ok(())
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_args_with<F: Parser>(&self, parser: F) -> Result<F::Output> {
- match &self.meta {
- Meta::Path(path) => Err(crate::error::new2(
- path.segments.first().unwrap().ident.span(),
- path.segments.last().unwrap().ident.span(),
- format!(
- "expected attribute arguments in parentheses: {}[{}(...)]",
- parsing::DisplayAttrStyle(&self.style),
- parsing::DisplayPath(path),
- ),
- )),
- Meta::NameValue(meta) => Err(Error::new(
- meta.eq_token.span,
- format_args!(
- "expected parentheses: {}[{}(...)]",
- parsing::DisplayAttrStyle(&self.style),
- parsing::DisplayPath(&meta.path),
- ),
- )),
- Meta::List(meta) => meta.parse_args_with(parser),
- }
- }
-
- /// Parse the arguments to the attribute, expecting it to follow the
- /// conventional structure used by most of Rust's built-in attributes.
- ///
- /// The [*Meta Item Attribute Syntax*][syntax] section in the Rust reference
- /// explains the convention in more detail. Not all attributes follow this
- /// convention, so [`parse_args()`][Self::parse_args] is available if you
- /// need to parse arbitrarily goofy attribute syntax.
- ///
- /// [syntax]: https://doc.rust-lang.org/reference/attributes.html#meta-item-attribute-syntax
- ///
- /// # Example
- ///
- /// We'll parse a struct, and then parse some of Rust's `#[repr]` attribute
- /// syntax.
- ///
- /// ```
- /// use syn::{parenthesized, parse_quote, token, ItemStruct, LitInt};
- ///
- /// let input: ItemStruct = parse_quote! {
- /// #[repr(C, align(4))]
- /// pub struct MyStruct(u16, u32);
- /// };
- ///
- /// let mut repr_c = false;
- /// let mut repr_transparent = false;
- /// let mut repr_align = None::<usize>;
- /// let mut repr_packed = None::<usize>;
- /// for attr in &input.attrs {
- /// if attr.path().is_ident("repr") {
- /// attr.parse_nested_meta(|meta| {
- /// // #[repr(C)]
- /// if meta.path.is_ident("C") {
- /// repr_c = true;
- /// return Ok(());
- /// }
- ///
- /// // #[repr(transparent)]
- /// if meta.path.is_ident("transparent") {
- /// repr_transparent = true;
- /// return Ok(());
- /// }
- ///
- /// // #[repr(align(N))]
- /// if meta.path.is_ident("align") {
- /// let content;
- /// parenthesized!(content in meta.input);
- /// let lit: LitInt = content.parse()?;
- /// let n: usize = lit.base10_parse()?;
- /// repr_align = Some(n);
- /// return Ok(());
- /// }
- ///
- /// // #[repr(packed)] or #[repr(packed(N))], omitted N means 1
- /// if meta.path.is_ident("packed") {
- /// if meta.input.peek(token::Paren) {
- /// let content;
- /// parenthesized!(content in meta.input);
- /// let lit: LitInt = content.parse()?;
- /// let n: usize = lit.base10_parse()?;
- /// repr_packed = Some(n);
- /// } else {
- /// repr_packed = Some(1);
- /// }
- /// return Ok(());
- /// }
- ///
- /// Err(meta.error("unrecognized repr"))
- /// })?;
- /// }
- /// }
- /// # anyhow::Ok(())
- /// ```
- ///
- /// # Alternatives
- ///
- /// In some cases, for attributes which have nested layers of structured
- /// content, the following less flexible approach might be more convenient:
- ///
- /// ```
- /// # use syn::{parse_quote, ItemStruct};
- /// #
- /// # let input: ItemStruct = parse_quote! {
- /// # #[repr(C, align(4))]
- /// # pub struct MyStruct(u16, u32);
- /// # };
- /// #
- /// use syn::punctuated::Punctuated;
- /// use syn::{parenthesized, token, Error, LitInt, Meta, Token};
- ///
- /// let mut repr_c = false;
- /// let mut repr_transparent = false;
- /// let mut repr_align = None::<usize>;
- /// let mut repr_packed = None::<usize>;
- /// for attr in &input.attrs {
- /// if attr.path().is_ident("repr") {
- /// let nested = attr.parse_args_with(Punctuated::<Meta, Token![,]>::parse_terminated)?;
- /// for meta in nested {
- /// match meta {
- /// // #[repr(C)]
- /// Meta::Path(path) if path.is_ident("C") => {
- /// repr_c = true;
- /// }
- ///
- /// // #[repr(align(N))]
- /// Meta::List(meta) if meta.path.is_ident("align") => {
- /// let lit: LitInt = meta.parse_args()?;
- /// let n: usize = lit.base10_parse()?;
- /// repr_align = Some(n);
- /// }
- ///
- /// /* ... */
- ///
- /// _ => {
- /// return Err(Error::new_spanned(meta, "unrecognized repr"));
- /// }
- /// }
- /// }
- /// }
- /// }
- /// # Ok(())
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_nested_meta(
- &self,
- logic: impl FnMut(ParseNestedMeta) -> Result<()>,
- ) -> Result<()> {
- self.parse_args_with(meta::parser(logic))
- }
-
- /// Parses zero or more outer attributes from the stream.
- ///
- /// # Example
- ///
- /// See
- /// [*Parsing from tokens to Attribute*](#parsing-from-tokens-to-attribute).
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_outer(input: ParseStream) -> Result<Vec<Self>> {
- let mut attrs = Vec::new();
- while input.peek(Token![#]) {
- attrs.push(input.call(parsing::single_parse_outer)?);
- }
- Ok(attrs)
- }
-
- /// Parses zero or more inner attributes from the stream.
- ///
- /// # Example
- ///
- /// See
- /// [*Parsing from tokens to Attribute*](#parsing-from-tokens-to-attribute).
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> {
- let mut attrs = Vec::new();
- parsing::parse_inner(input, &mut attrs)?;
- Ok(attrs)
- }
-}
-
-ast_enum! {
- /// Distinguishes between attributes that decorate an item and attributes
- /// that are contained within an item.
- ///
- /// # Outer attributes
- ///
- /// - `#[repr(transparent)]`
- /// - `/// # Example`
- /// - `/** Please file an issue */`
- ///
- /// # Inner attributes
- ///
- /// - `#![feature(proc_macro)]`
- /// - `//! # Example`
- /// - `/*! Please file an issue */`
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum AttrStyle {
- Outer,
- Inner(Token![!]),
- }
-}
-
-ast_enum! {
- /// Content of a compile-time structured attribute.
- ///
- /// ## Path
- ///
- /// A meta path is like the `test` in `#[test]`.
- ///
- /// ## List
- ///
- /// A meta list is like the `derive(Copy)` in `#[derive(Copy)]`.
- ///
- /// ## NameValue
- ///
- /// A name-value meta is like the `path = "..."` in `#[path =
- /// "sys/windows.rs"]`.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum Meta {
- Path(Path),
-
- /// A structured list within an attribute, like `derive(Copy, Clone)`.
- List(MetaList),
-
- /// A name-value pair within an attribute, like `feature = "nightly"`.
- NameValue(MetaNameValue),
- }
-}
-
-ast_struct! {
- /// A structured list within an attribute, like `derive(Copy, Clone)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct MetaList {
- pub path: Path,
- pub delimiter: MacroDelimiter,
- pub tokens: TokenStream,
- }
-}
-
-ast_struct! {
- /// A name-value pair within an attribute, like `feature = "nightly"`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct MetaNameValue {
- pub path: Path,
- pub eq_token: Token![=],
- pub value: Expr,
- }
-}
-
-impl Meta {
- /// Returns the path that begins this structured meta item.
- ///
- /// For example this would return the `test` in `#[test]`, the `derive` in
- /// `#[derive(Copy)]`, and the `path` in `#[path = "sys/windows.rs"]`.
- pub fn path(&self) -> &Path {
- match self {
- Meta::Path(path) => path,
- Meta::List(meta) => &meta.path,
- Meta::NameValue(meta) => &meta.path,
- }
- }
-
- /// Error if this is a `Meta::List` or `Meta::NameValue`.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn require_path_only(&self) -> Result<&Path> {
- let error_span = match self {
- Meta::Path(path) => return Ok(path),
- Meta::List(meta) => meta.delimiter.span().open(),
- Meta::NameValue(meta) => meta.eq_token.span,
- };
- Err(Error::new(error_span, "unexpected token in attribute"))
- }
-
- /// Error if this is a `Meta::Path` or `Meta::NameValue`.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn require_list(&self) -> Result<&MetaList> {
- match self {
- Meta::List(meta) => Ok(meta),
- Meta::Path(path) => Err(crate::error::new2(
- path.segments.first().unwrap().ident.span(),
- path.segments.last().unwrap().ident.span(),
- format!(
- "expected attribute arguments in parentheses: `{}(...)`",
- parsing::DisplayPath(path),
- ),
- )),
- Meta::NameValue(meta) => Err(Error::new(meta.eq_token.span, "expected `(`")),
- }
- }
-
- /// Error if this is a `Meta::Path` or `Meta::List`.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn require_name_value(&self) -> Result<&MetaNameValue> {
- match self {
- Meta::NameValue(meta) => Ok(meta),
- Meta::Path(path) => Err(crate::error::new2(
- path.segments.first().unwrap().ident.span(),
- path.segments.last().unwrap().ident.span(),
- format!(
- "expected a value for this attribute: `{} = ...`",
- parsing::DisplayPath(path),
- ),
- )),
- Meta::List(meta) => Err(Error::new(meta.delimiter.span().open(), "expected `=`")),
- }
- }
-}
-
-impl MetaList {
- /// See [`Attribute::parse_args`].
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_args<T: Parse>(&self) -> Result<T> {
- self.parse_args_with(T::parse)
- }
-
- /// See [`Attribute::parse_args_with`].
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_args_with<F: Parser>(&self, parser: F) -> Result<F::Output> {
- let scope = self.delimiter.span().close();
- crate::parse::parse_scoped(parser, scope, self.tokens.clone())
- }
-
- /// See [`Attribute::parse_nested_meta`].
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_nested_meta(
- &self,
- logic: impl FnMut(ParseNestedMeta) -> Result<()>,
- ) -> Result<()> {
- self.parse_args_with(meta::parser(logic))
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) trait FilterAttrs<'a> {
- type Ret: Iterator<Item = &'a Attribute>;
-
- fn outer(self) -> Self::Ret;
- #[cfg(feature = "full")]
- fn inner(self) -> Self::Ret;
-}
-
-#[cfg(feature = "printing")]
-impl<'a> FilterAttrs<'a> for &'a [Attribute] {
- type Ret = iter::Filter<slice::Iter<'a, Attribute>, fn(&&Attribute) -> bool>;
-
- fn outer(self) -> Self::Ret {
- fn is_outer(attr: &&Attribute) -> bool {
- match attr.style {
- AttrStyle::Outer => true,
- AttrStyle::Inner(_) => false,
- }
- }
- self.iter().filter(is_outer)
- }
-
- #[cfg(feature = "full")]
- fn inner(self) -> Self::Ret {
- fn is_inner(attr: &&Attribute) -> bool {
- match attr.style {
- AttrStyle::Inner(_) => true,
- AttrStyle::Outer => false,
- }
- }
- self.iter().filter(is_inner)
- }
-}
-
-impl From<Path> for Meta {
- fn from(meta: Path) -> Meta {
- Meta::Path(meta)
- }
-}
-
-impl From<MetaList> for Meta {
- fn from(meta: MetaList) -> Meta {
- Meta::List(meta)
- }
-}
-
-impl From<MetaNameValue> for Meta {
- fn from(meta: MetaNameValue) -> Meta {
- Meta::NameValue(meta)
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::{AttrStyle, Attribute, Meta, MetaList, MetaNameValue};
- use crate::error::Result;
- use crate::expr::{Expr, ExprLit};
- use crate::lit::Lit;
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- use crate::path::Path;
- use crate::{mac, token};
- use alloc::vec::Vec;
- use core::fmt::{self, Display};
- use proc_macro2::Ident;
-
- pub(crate) fn parse_inner(input: ParseStream, attrs: &mut Vec<Attribute>) -> Result<()> {
- while input.peek(Token![#]) && input.peek2(Token![!]) {
- attrs.push(input.call(single_parse_inner)?);
- }
- Ok(())
- }
-
- pub(crate) fn single_parse_inner(input: ParseStream) -> Result<Attribute> {
- let content;
- Ok(Attribute {
- pound_token: input.parse()?,
- style: AttrStyle::Inner(input.parse()?),
- bracket_token: bracketed!(content in input),
- meta: content.parse()?,
- })
- }
-
- pub(crate) fn single_parse_outer(input: ParseStream) -> Result<Attribute> {
- let content;
- Ok(Attribute {
- pound_token: input.parse()?,
- style: AttrStyle::Outer,
- bracket_token: bracketed!(content in input),
- meta: content.parse()?,
- })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Meta {
- fn parse(input: ParseStream) -> Result<Self> {
- let path = parse_outermost_meta_path(input)?;
- parse_meta_after_path(path, input)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for MetaList {
- fn parse(input: ParseStream) -> Result<Self> {
- let path = parse_outermost_meta_path(input)?;
- parse_meta_list_after_path(path, input)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for MetaNameValue {
- fn parse(input: ParseStream) -> Result<Self> {
- let path = parse_outermost_meta_path(input)?;
- parse_meta_name_value_after_path(path, input)
- }
- }
-
- // Unlike meta::parse_meta_path which accepts arbitrary keywords in the path,
- // only the `unsafe` keyword is accepted as an attribute's outermost path.
- fn parse_outermost_meta_path(input: ParseStream) -> Result<Path> {
- if input.peek(Token![unsafe]) {
- let unsafe_token: Token![unsafe] = input.parse()?;
- Ok(Path::from(Ident::new("unsafe", unsafe_token.span)))
- } else {
- Path::parse_mod_style(input)
- }
- }
-
- pub(crate) fn parse_meta_after_path(path: Path, input: ParseStream) -> Result<Meta> {
- if input.peek(token::Paren) || input.peek(token::Bracket) || input.peek(token::Brace) {
- parse_meta_list_after_path(path, input).map(Meta::List)
- } else if input.peek(Token![=]) && !input.peek(Token![==]) && !input.peek(Token![=>]) {
- parse_meta_name_value_after_path(path, input).map(Meta::NameValue)
- } else {
- Ok(Meta::Path(path))
- }
- }
-
- fn parse_meta_list_after_path(path: Path, input: ParseStream) -> Result<MetaList> {
- let (delimiter, tokens) = mac::parse_delimiter(input)?;
- Ok(MetaList {
- path,
- delimiter,
- tokens,
- })
- }
-
- fn parse_meta_name_value_after_path(path: Path, input: ParseStream) -> Result<MetaNameValue> {
- let eq_token: Token![=] = input.parse()?;
- let ahead = input.fork();
- let lit: Option<Lit> = ahead.parse()?;
- let value = if let (Some(lit), true) = (lit, ahead.is_empty()) {
- input.advance_to(&ahead);
- Expr::Lit(ExprLit {
- attrs: Vec::new(),
- lit,
- })
- } else if input.peek(Token![#]) && input.peek2(token::Bracket) {
- return Err(input.error("unexpected attribute inside of attribute"));
- } else {
- input.parse()?
- };
- Ok(MetaNameValue {
- path,
- eq_token,
- value,
- })
- }
-
- pub(super) struct DisplayAttrStyle<'a>(pub &'a AttrStyle);
-
- impl<'a> Display for DisplayAttrStyle<'a> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str(match self.0 {
- AttrStyle::Outer => "#",
- AttrStyle::Inner(_) => "#!",
- })
- }
- }
-
- pub(super) struct DisplayPath<'a>(pub &'a Path);
-
- impl<'a> Display for DisplayPath<'a> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- for (i, segment) in self.0.segments.iter().enumerate() {
- if i > 0 || self.0.leading_colon.is_some() {
- formatter.write_str("::")?;
- }
- write!(formatter, "{}", segment.ident)?;
- }
- Ok(())
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::{AttrStyle, Attribute, Meta, MetaList, MetaNameValue};
- use crate::path;
- use crate::path::printing::PathStyle;
- use proc_macro2::TokenStream;
- use quote::ToTokens;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Attribute {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.pound_token.to_tokens(tokens);
- if let AttrStyle::Inner(b) = &self.style {
- b.to_tokens(tokens);
- }
- self.bracket_token.surround(tokens, |tokens| {
- self.meta.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Meta {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- Meta::Path(path) => path::printing::print_path(tokens, path, PathStyle::Mod),
- Meta::List(meta_list) => meta_list.to_tokens(tokens),
- Meta::NameValue(meta_name_value) => meta_name_value.to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for MetaList {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- path::printing::print_path(tokens, &self.path, PathStyle::Mod);
- self.delimiter.surround(tokens, self.tokens.clone());
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for MetaNameValue {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- path::printing::print_path(tokens, &self.path, PathStyle::Mod);
- self.eq_token.to_tokens(tokens);
- self.value.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/bigint.rs b/deps/crates/vendor/syn-v2/src/bigint.rs
deleted file mode 100644
index d32298b7932..00000000000
--- a/deps/crates/vendor/syn-v2/src/bigint.rs
+++ /dev/null
@@ -1,68 +0,0 @@
-use alloc::string::String;
-use alloc::vec::Vec;
-use core::ops::{AddAssign, MulAssign};
-
-// For implementing base10_digits() accessor on LitInt.
-pub(crate) struct BigInt {
- digits: Vec<u8>,
-}
-
-impl BigInt {
- pub(crate) fn new() -> Self {
- BigInt { digits: Vec::new() }
- }
-
- pub(crate) fn to_string(&self) -> String {
- let mut repr = String::with_capacity(self.digits.len());
-
- let mut has_nonzero = false;
- for digit in self.digits.iter().rev() {
- has_nonzero |= *digit != 0;
- if has_nonzero {
- repr.push((*digit + b'0') as char);
- }
- }
-
- if repr.is_empty() {
- repr.push('0');
- }
-
- repr
- }
-
- fn reserve_two_digits(&mut self) {
- let len = self.digits.len();
- let desired =
- len + !self.digits.ends_with(&[0, 0]) as usize + !self.digits.ends_with(&[0]) as usize;
- self.digits.resize(desired, 0);
- }
-}
-
-impl AddAssign<u8> for BigInt {
- // Assumes increment <16.
- fn add_assign(&mut self, mut increment: u8) {
- self.reserve_two_digits();
-
- let mut i = 0;
- while increment > 0 {
- let sum = self.digits[i] + increment;
- self.digits[i] = sum % 10;
- increment = sum / 10;
- i += 1;
- }
- }
-}
-
-impl MulAssign<u8> for BigInt {
- // Assumes base <=16.
- fn mul_assign(&mut self, base: u8) {
- self.reserve_two_digits();
-
- let mut carry = 0;
- for digit in &mut self.digits {
- let prod = *digit * base + carry;
- *digit = prod % 10;
- carry = prod / 10;
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/buffer.rs b/deps/crates/vendor/syn-v2/src/buffer.rs
deleted file mode 100644
index 277093dc938..00000000000
--- a/deps/crates/vendor/syn-v2/src/buffer.rs
+++ /dev/null
@@ -1,437 +0,0 @@
-//! A stably addressed token buffer supporting efficient traversal based on a
-//! cheaply copyable cursor.
-
-// This module is heavily commented as it contains most of the unsafe code in
-// Syn, and caution should be used when editing it. The public-facing interface
-// is 100% safe but the implementation is fragile internally.
-
-use crate::ext::TokenStreamExt as _;
-use crate::Lifetime;
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-use core::cmp::Ordering;
-use core::marker::PhantomData;
-use core::ptr;
-use proc_macro2::extra::DelimSpan;
-use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};
-
-/// Internal type which is used instead of `TokenTree` to represent a token tree
-/// within a `TokenBuffer`.
-enum Entry {
- // Mimicking types from proc-macro.
- // Group entries contain the offset to the matching End entry.
- Group(Group, usize),
- Ident(Ident),
- Punct(Punct),
- Literal(Literal),
- // End entries contain the offset (negative) to the start of the buffer, and
- // offset (negative) to the matching Group entry.
- End(isize, isize),
-}
-
-/// A buffer that can be efficiently traversed multiple times, unlike
-/// `TokenStream` which requires a deep copy in order to traverse more than
-/// once.
-pub struct TokenBuffer {
- // NOTE: Do not implement clone on this - while the current design could be
- // cloned, other designs which could be desirable may not be cloneable.
- entries: Box<[Entry]>,
-}
-
-impl TokenBuffer {
- fn recursive_new(entries: &mut Vec<Entry>, stream: TokenStream) {
- for tt in stream {
- match tt {
- TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)),
- TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)),
- TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)),
- TokenTree::Group(group) => {
- let group_start_index = entries.len();
- entries.push(Entry::End(0, 0)); // we replace this below
- Self::recursive_new(entries, group.stream());
- let group_end_index = entries.len();
- let group_offset = group_end_index - group_start_index;
- entries.push(Entry::End(
- -(group_end_index as isize),
- -(group_offset as isize),
- ));
- entries[group_start_index] = Entry::Group(group, group_offset);
- }
- }
- }
- }
-
- /// Creates a `TokenBuffer` containing all the tokens from the input
- /// `proc_macro::TokenStream`.
- #[cfg(feature = "proc-macro")]
- #[cfg_attr(docsrs, doc(cfg(feature = "proc-macro")))]
- pub fn new(stream: proc_macro::TokenStream) -> Self {
- Self::new2(stream.into())
- }
-
- /// Creates a `TokenBuffer` containing all the tokens from the input
- /// `proc_macro2::TokenStream`.
- pub fn new2(stream: TokenStream) -> Self {
- let mut entries = Vec::new();
- Self::recursive_new(&mut entries, stream);
- entries.push(Entry::End(-(entries.len() as isize), 0));
- Self {
- entries: entries.into_boxed_slice(),
- }
- }
-
- /// Creates a cursor referencing the first token in the buffer and able to
- /// traverse until the end of the buffer.
- pub fn begin(&self) -> Cursor {
- let ptr = self.entries.as_ptr();
- unsafe { Cursor::create(ptr, ptr.add(self.entries.len() - 1)) }
- }
-}
-
-/// A cheaply copyable cursor into a `TokenBuffer`.
-///
-/// This cursor holds a shared reference into the immutable data which is used
-/// internally to represent a `TokenStream`, and can be efficiently manipulated
-/// and copied around.
-///
-/// An empty `Cursor` can be created directly, or one may create a `TokenBuffer`
-/// object and get a cursor to its first token with `begin()`.
-pub struct Cursor<'a> {
- // The current entry which the `Cursor` is pointing at.
- ptr: *const Entry,
- // This is the only `Entry::End` object which this cursor is allowed to
- // point at. All other `End` objects are skipped over in `Cursor::create`.
- scope: *const Entry,
- // Cursor is covariant in 'a. This field ensures that our pointers are still
- // valid.
- marker: PhantomData<&'a Entry>,
-}
-
-impl<'a> Cursor<'a> {
- /// Creates a cursor referencing a static empty TokenStream.
- pub fn empty() -> Self {
- // It's safe in this situation for us to put an `Entry` object in global
- // storage, despite it not actually being safe to send across threads
- // (`Ident` is a reference into a thread-local table). This is because
- // this entry never includes a `Ident` object.
- //
- // This wrapper struct allows us to break the rules and put a `Sync`
- // object in global storage.
- struct UnsafeSyncEntry(Entry);
- unsafe impl Sync for UnsafeSyncEntry {}
- static EMPTY_ENTRY: UnsafeSyncEntry = UnsafeSyncEntry(Entry::End(0, 0));
-
- Cursor {
- ptr: &EMPTY_ENTRY.0,
- scope: &EMPTY_ENTRY.0,
- marker: PhantomData,
- }
- }
-
- /// This create method intelligently exits non-explicitly-entered
- /// `None`-delimited scopes when the cursor reaches the end of them,
- /// allowing for them to be treated transparently.
- unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self {
- // NOTE: If we're looking at a `End`, we want to advance the cursor
- // past it, unless `ptr == scope`, which means that we're at the edge of
- // our cursor's scope. We should only have `ptr != scope` at the exit
- // from None-delimited groups entered with `ignore_none`.
- while let Entry::End(..) = unsafe { &*ptr } {
- if ptr::eq(ptr, scope) {
- break;
- }
- ptr = unsafe { ptr.add(1) };
- }
-
- Cursor {
- ptr,
- scope,
- marker: PhantomData,
- }
- }
-
- /// Get the current entry.
- fn entry(self) -> &'a Entry {
- unsafe { &*self.ptr }
- }
-
- /// Bump the cursor to point at the next token after the current one. This
- /// is undefined behavior if the cursor is currently looking at an
- /// `Entry::End`.
- ///
- /// If the cursor is looking at an `Entry::Group`, the bumped cursor will
- /// point at the first token in the group (with the same scope end).
- unsafe fn bump_ignore_group(self) -> Cursor<'a> {
- unsafe { Cursor::create(self.ptr.add(1), self.scope) }
- }
-
- /// While the cursor is looking at a `None`-delimited group, move it to look
- /// at the first token inside instead. If the group is empty, this will move
- /// the cursor past the `None`-delimited group.
- ///
- /// WARNING: This mutates its argument.
- fn ignore_none(&mut self) {
- while let Entry::Group(group, _) = self.entry() {
- if group.delimiter() == Delimiter::None {
- unsafe { *self = self.bump_ignore_group() };
- } else {
- break;
- }
- }
- }
-
- /// Checks whether the cursor is currently pointing at the end of its valid
- /// scope.
- pub fn eof(self) -> bool {
- // We're at eof if we're at the end of our scope.
- ptr::eq(self.ptr, self.scope)
- }
-
- /// If the cursor is pointing at a `Ident`, returns it along with a cursor
- /// pointing at the next `TokenTree`.
- pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> {
- self.ignore_none();
- match self.entry() {
- Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })),
- _ => None,
- }
- }
-
- /// If the cursor is pointing at a `Punct`, returns it along with a cursor
- /// pointing at the next `TokenTree`.
- pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> {
- self.ignore_none();
- match self.entry() {
- Entry::Punct(punct) if punct.as_char() != '\'' => {
- Some((punct.clone(), unsafe { self.bump_ignore_group() }))
- }
- _ => None,
- }
- }
-
- /// If the cursor is pointing at a `Literal`, return it along with a cursor
- /// pointing at the next `TokenTree`.
- pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> {
- self.ignore_none();
- match self.entry() {
- Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })),
- _ => None,
- }
- }
-
- /// If the cursor is pointing at a `Lifetime`, returns it along with a
- /// cursor pointing at the next `TokenTree`.
- pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> {
- self.ignore_none();
- match self.entry() {
- Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => {
- let next = unsafe { self.bump_ignore_group() };
- let (ident, rest) = next.ident()?;
- let lifetime = Lifetime {
- apostrophe: punct.span(),
- ident,
- };
- Some((lifetime, rest))
- }
- _ => None,
- }
- }
-
- /// If the cursor is pointing at a `Group` with the given delimiter, returns
- /// a cursor into that group and one pointing to the next `TokenTree`.
- pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, DelimSpan, Cursor<'a>)> {
- // If we're not trying to enter a none-delimited group, we want to
- // ignore them. We have to make sure to _not_ ignore them when we want
- // to enter them, of course. For obvious reasons.
- if delim != Delimiter::None {
- self.ignore_none();
- }
-
- if let Entry::Group(group, end_offset) = self.entry() {
- if group.delimiter() == delim {
- let span = group.delim_span();
- let end_of_group = unsafe { self.ptr.add(*end_offset) };
- let inside_of_group = unsafe { Cursor::create(self.ptr.add(1), end_of_group) };
- let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
- return Some((inside_of_group, span, after_group));
- }
- }
-
- None
- }
-
- /// If the cursor is pointing at a `Group`, returns a cursor into the group
- /// and one pointing to the next `TokenTree`.
- pub fn any_group(self) -> Option<(Cursor<'a>, Delimiter, DelimSpan, Cursor<'a>)> {
- if let Entry::Group(group, end_offset) = self.entry() {
- let delimiter = group.delimiter();
- let span = group.delim_span();
- let end_of_group = unsafe { self.ptr.add(*end_offset) };
- let inside_of_group = unsafe { Cursor::create(self.ptr.add(1), end_of_group) };
- let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
- return Some((inside_of_group, delimiter, span, after_group));
- }
-
- None
- }
-
- pub(crate) fn any_group_token(self) -> Option<(Group, Cursor<'a>)> {
- if let Entry::Group(group, end_offset) = self.entry() {
- let end_of_group = unsafe { self.ptr.add(*end_offset) };
- let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
- return Some((group.clone(), after_group));
- }
-
- None
- }
-
- /// Copies all remaining tokens visible from this cursor into a
- /// `TokenStream`.
- pub fn token_stream(self) -> TokenStream {
- let mut tokens = TokenStream::new();
- let mut cursor = self;
- while let Some((tt, rest)) = cursor.token_tree() {
- tokens.append(tt);
- cursor = rest;
- }
- tokens
- }
-
- /// If the cursor is pointing at a `TokenTree`, returns it along with a
- /// cursor pointing at the next `TokenTree`.
- ///
- /// Returns `None` if the cursor has reached the end of its stream.
- ///
- /// This method does not treat `None`-delimited groups as transparent, and
- /// will return a `Group(None, ..)` if the cursor is looking at one.
- pub fn token_tree(self) -> Option<(TokenTree, Cursor<'a>)> {
- let (tree, len) = match self.entry() {
- Entry::Group(group, end_offset) => (group.clone().into(), *end_offset),
- Entry::Literal(literal) => (literal.clone().into(), 1),
- Entry::Ident(ident) => (ident.clone().into(), 1),
- Entry::Punct(punct) => (punct.clone().into(), 1),
- Entry::End(..) => return None,
- };
-
- let rest = unsafe { Cursor::create(self.ptr.add(len), self.scope) };
- Some((tree, rest))
- }
-
- /// Returns the `Span` of the current token, or `Span::call_site()` if this
- /// cursor points to eof.
- pub fn span(mut self) -> Span {
- match self.entry() {
- Entry::Group(group, _) => group.span(),
- Entry::Literal(literal) => literal.span(),
- Entry::Ident(ident) => ident.span(),
- Entry::Punct(punct) => punct.span(),
- Entry::End(_, offset) => {
- self.ptr = unsafe { self.ptr.offset(*offset) };
- if let Entry::Group(group, _) = self.entry() {
- group.span_close()
- } else {
- Span::call_site()
- }
- }
- }
- }
-
- /// Returns the `Span` of the token immediately prior to the position of
- /// this cursor, or of the current token if there is no previous one.
- #[cfg(any(feature = "full", feature = "derive"))]
- pub(crate) fn prev_span(mut self) -> Span {
- if start_of_buffer(self) < self.ptr {
- self.ptr = unsafe { self.ptr.sub(1) };
- }
- self.span()
- }
-
- /// Skip over the next token that is not a None-delimited group, without
- /// cloning it. Returns `None` if this cursor points to eof.
- ///
- /// This method treats `'lifetimes` as a single token.
- pub(crate) fn skip(mut self) -> Option<Cursor<'a>> {
- self.ignore_none();
-
- let len = match self.entry() {
- Entry::End(..) => return None,
-
- // Treat lifetimes as a single tt for the purposes of 'skip'.
- Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => {
- match unsafe { &*self.ptr.add(1) } {
- Entry::Ident(_) => 2,
- _ => 1,
- }
- }
-
- Entry::Group(_, end_offset) => *end_offset,
- _ => 1,
- };
-
- Some(unsafe { Cursor::create(self.ptr.add(len), self.scope) })
- }
-
- pub(crate) fn scope_delimiter(self) -> Delimiter {
- match unsafe { &*self.scope } {
- Entry::End(_, offset) => match unsafe { &*self.scope.offset(*offset) } {
- Entry::Group(group, _) => group.delimiter(),
- _ => Delimiter::None,
- },
- _ => unreachable!(),
- }
- }
-}
-
-impl<'a> Copy for Cursor<'a> {}
-
-impl<'a> Clone for Cursor<'a> {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-impl<'a> Eq for Cursor<'a> {}
-
-impl<'a> PartialEq for Cursor<'a> {
- fn eq(&self, other: &Self) -> bool {
- ptr::eq(self.ptr, other.ptr)
- }
-}
-
-impl<'a> PartialOrd for Cursor<'a> {
- fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- if same_buffer(*self, *other) {
- Some(cmp_assuming_same_buffer(*self, *other))
- } else {
- None
- }
- }
-}
-
-pub(crate) fn same_scope(a: Cursor, b: Cursor) -> bool {
- ptr::eq(a.scope, b.scope)
-}
-
-pub(crate) fn same_buffer(a: Cursor, b: Cursor) -> bool {
- ptr::eq(start_of_buffer(a), start_of_buffer(b))
-}
-
-fn start_of_buffer(cursor: Cursor) -> *const Entry {
- unsafe {
- match &*cursor.scope {
- Entry::End(offset, _) => cursor.scope.offset(*offset),
- _ => unreachable!(),
- }
- }
-}
-
-pub(crate) fn cmp_assuming_same_buffer(a: Cursor, b: Cursor) -> Ordering {
- a.ptr.cmp(&b.ptr)
-}
-
-pub(crate) fn open_span_of_group(cursor: Cursor) -> Span {
- match cursor.entry() {
- Entry::Group(group, _) => group.span_open(),
- _ => cursor.span(),
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/classify.rs b/deps/crates/vendor/syn-v2/src/classify.rs
deleted file mode 100644
index 6d5edbd559a..00000000000
--- a/deps/crates/vendor/syn-v2/src/classify.rs
+++ /dev/null
@@ -1,311 +0,0 @@
-#[cfg(feature = "full")]
-use crate::expr::Expr;
-#[cfg(any(feature = "printing", feature = "full"))]
-use crate::generics::TypeParamBound;
-#[cfg(any(feature = "printing", feature = "full"))]
-use crate::path::{Path, PathArguments};
-#[cfg(any(feature = "printing", feature = "full"))]
-use crate::punctuated::Punctuated;
-#[cfg(any(feature = "printing", feature = "full"))]
-use crate::ty::{ReturnType, Type};
-#[cfg(any(feature = "printing", feature = "full"))]
-use core::ops::ControlFlow;
-#[cfg(feature = "full")]
-use proc_macro2::{Delimiter, TokenStream, TokenTree};
-
-#[cfg(feature = "full")]
-pub(crate) fn requires_semi_to_be_stmt(expr: &Expr) -> bool {
- match expr {
- Expr::Macro(expr) => !expr.mac.delimiter.is_brace(),
- _ => requires_comma_to_be_match_arm(expr),
- }
-}
-
-#[cfg(feature = "full")]
-pub(crate) fn requires_comma_to_be_match_arm(expr: &Expr) -> bool {
- match expr {
- Expr::If(_)
- | Expr::Match(_)
- | Expr::Block(_) | Expr::Unsafe(_) // both under ExprKind::Block in rustc
- | Expr::While(_)
- | Expr::Loop(_)
- | Expr::ForLoop(_)
- | Expr::TryBlock(_)
- | Expr::Const(_) => false,
-
- Expr::Array(_)
- | Expr::Assign(_)
- | Expr::Async(_)
- | Expr::Await(_)
- | Expr::Binary(_)
- | Expr::Break(_)
- | Expr::Call(_)
- | Expr::Cast(_)
- | Expr::Closure(_)
- | Expr::Continue(_)
- | Expr::Field(_)
- | Expr::Group(_)
- | Expr::Index(_)
- | Expr::Infer(_)
- | Expr::Let(_)
- | Expr::Lit(_)
- | Expr::Macro(_)
- | Expr::MethodCall(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::Range(_)
- | Expr::RawAddr(_)
- | Expr::Reference(_)
- | Expr::Repeat(_)
- | Expr::Return(_)
- | Expr::Struct(_)
- | Expr::Try(_)
- | Expr::Tuple(_)
- | Expr::Unary(_)
- | Expr::Yield(_)
- | Expr::Verbatim(_) => true,
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) fn trailing_unparameterized_path(mut ty: &Type) -> bool {
- loop {
- match ty {
- Type::BareFn(t) => match &t.output {
- ReturnType::Default => return false,
- ReturnType::Type(_, ret) => ty = ret,
- },
- Type::ImplTrait(t) => match last_type_in_bounds(&t.bounds) {
- ControlFlow::Break(trailing_path) => return trailing_path,
- ControlFlow::Continue(t) => ty = t,
- },
- Type::Path(t) => match last_type_in_path(&t.path) {
- ControlFlow::Break(trailing_path) => return trailing_path,
- ControlFlow::Continue(t) => ty = t,
- },
- Type::Ptr(t) => ty = &t.elem,
- Type::Reference(t) => ty = &t.elem,
- Type::TraitObject(t) => match last_type_in_bounds(&t.bounds) {
- ControlFlow::Break(trailing_path) => return trailing_path,
- ControlFlow::Continue(t) => ty = t,
- },
-
- Type::Array(_)
- | Type::Group(_)
- | Type::Infer(_)
- | Type::Macro(_)
- | Type::Never(_)
- | Type::Paren(_)
- | Type::Slice(_)
- | Type::Tuple(_)
- | Type::Verbatim(_) => return false,
- }
- }
-
- fn last_type_in_path(path: &Path) -> ControlFlow<bool, &Type> {
- match &path.segments.last().unwrap().arguments {
- PathArguments::None => ControlFlow::Break(true),
- PathArguments::AngleBracketed(_) => ControlFlow::Break(false),
- PathArguments::Parenthesized(arg) => match &arg.output {
- ReturnType::Default => ControlFlow::Break(false),
- ReturnType::Type(_, ret) => ControlFlow::Continue(ret),
- },
- }
- }
-
- fn last_type_in_bounds(
- bounds: &Punctuated<TypeParamBound, Token![+]>,
- ) -> ControlFlow<bool, &Type> {
- match bounds.last().unwrap() {
- TypeParamBound::Trait(t) => last_type_in_path(&t.path),
- TypeParamBound::Lifetime(_)
- | TypeParamBound::PreciseCapture(_)
- | TypeParamBound::Verbatim(_) => ControlFlow::Break(false),
- }
- }
-}
-
-/// Whether the expression's first token is the label of a loop/block.
-#[cfg(all(feature = "printing", feature = "full"))]
-pub(crate) fn expr_leading_label(mut expr: &Expr) -> bool {
- loop {
- match expr {
- Expr::Block(e) => return e.label.is_some(),
- Expr::ForLoop(e) => return e.label.is_some(),
- Expr::Loop(e) => return e.label.is_some(),
- Expr::While(e) => return e.label.is_some(),
-
- Expr::Assign(e) => expr = &e.left,
- Expr::Await(e) => expr = &e.base,
- Expr::Binary(e) => expr = &e.left,
- Expr::Call(e) => expr = &e.func,
- Expr::Cast(e) => expr = &e.expr,
- Expr::Field(e) => expr = &e.base,
- Expr::Index(e) => expr = &e.expr,
- Expr::MethodCall(e) => expr = &e.receiver,
- Expr::Range(e) => match &e.start {
- Some(start) => expr = start,
- None => return false,
- },
- Expr::Try(e) => expr = &e.expr,
-
- Expr::Array(_)
- | Expr::Async(_)
- | Expr::Break(_)
- | Expr::Closure(_)
- | Expr::Const(_)
- | Expr::Continue(_)
- | Expr::Group(_)
- | Expr::If(_)
- | Expr::Infer(_)
- | Expr::Let(_)
- | Expr::Lit(_)
- | Expr::Macro(_)
- | Expr::Match(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::RawAddr(_)
- | Expr::Reference(_)
- | Expr::Repeat(_)
- | Expr::Return(_)
- | Expr::Struct(_)
- | Expr::TryBlock(_)
- | Expr::Tuple(_)
- | Expr::Unary(_)
- | Expr::Unsafe(_)
- | Expr::Verbatim(_)
- | Expr::Yield(_) => return false,
- }
- }
-}
-
-/// Whether the expression's last token is `}`.
-#[cfg(feature = "full")]
-pub(crate) fn expr_trailing_brace(mut expr: &Expr) -> bool {
- loop {
- match expr {
- Expr::Async(_)
- | Expr::Block(_)
- | Expr::Const(_)
- | Expr::ForLoop(_)
- | Expr::If(_)
- | Expr::Loop(_)
- | Expr::Match(_)
- | Expr::Struct(_)
- | Expr::TryBlock(_)
- | Expr::Unsafe(_)
- | Expr::While(_) => return true,
-
- Expr::Assign(e) => expr = &e.right,
- Expr::Binary(e) => expr = &e.right,
- Expr::Break(e) => match &e.expr {
- Some(e) => expr = e,
- None => return false,
- },
- Expr::Cast(e) => return type_trailing_brace(&e.ty),
- Expr::Closure(e) => expr = &e.body,
- Expr::Let(e) => expr = &e.expr,
- Expr::Macro(e) => return e.mac.delimiter.is_brace(),
- Expr::Range(e) => match &e.end {
- Some(end) => expr = end,
- None => return false,
- },
- Expr::RawAddr(e) => expr = &e.expr,
- Expr::Reference(e) => expr = &e.expr,
- Expr::Return(e) => match &e.expr {
- Some(e) => expr = e,
- None => return false,
- },
- Expr::Unary(e) => expr = &e.expr,
- Expr::Verbatim(e) => return tokens_trailing_brace(e),
- Expr::Yield(e) => match &e.expr {
- Some(e) => expr = e,
- None => return false,
- },
-
- Expr::Array(_)
- | Expr::Await(_)
- | Expr::Call(_)
- | Expr::Continue(_)
- | Expr::Field(_)
- | Expr::Group(_)
- | Expr::Index(_)
- | Expr::Infer(_)
- | Expr::Lit(_)
- | Expr::MethodCall(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::Repeat(_)
- | Expr::Try(_)
- | Expr::Tuple(_) => return false,
- }
- }
-
- fn type_trailing_brace(mut ty: &Type) -> bool {
- loop {
- match ty {
- Type::BareFn(t) => match &t.output {
- ReturnType::Default => return false,
- ReturnType::Type(_, ret) => ty = ret,
- },
- Type::ImplTrait(t) => match last_type_in_bounds(&t.bounds) {
- ControlFlow::Break(trailing_brace) => return trailing_brace,
- ControlFlow::Continue(t) => ty = t,
- },
- Type::Macro(t) => return t.mac.delimiter.is_brace(),
- Type::Path(t) => match last_type_in_path(&t.path) {
- Some(t) => ty = t,
- None => return false,
- },
- Type::Ptr(t) => ty = &t.elem,
- Type::Reference(t) => ty = &t.elem,
- Type::TraitObject(t) => match last_type_in_bounds(&t.bounds) {
- ControlFlow::Break(trailing_brace) => return trailing_brace,
- ControlFlow::Continue(t) => ty = t,
- },
- Type::Verbatim(t) => return tokens_trailing_brace(t),
-
- Type::Array(_)
- | Type::Group(_)
- | Type::Infer(_)
- | Type::Never(_)
- | Type::Paren(_)
- | Type::Slice(_)
- | Type::Tuple(_) => return false,
- }
- }
- }
-
- fn last_type_in_path(path: &Path) -> Option<&Type> {
- match &path.segments.last().unwrap().arguments {
- PathArguments::None | PathArguments::AngleBracketed(_) => None,
- PathArguments::Parenthesized(arg) => match &arg.output {
- ReturnType::Default => None,
- ReturnType::Type(_, ret) => Some(ret),
- },
- }
- }
-
- fn last_type_in_bounds(
- bounds: &Punctuated<TypeParamBound, Token![+]>,
- ) -> ControlFlow<bool, &Type> {
- match bounds.last().unwrap() {
- TypeParamBound::Trait(t) => match last_type_in_path(&t.path) {
- Some(t) => ControlFlow::Continue(t),
- None => ControlFlow::Break(false),
- },
- TypeParamBound::Lifetime(_) | TypeParamBound::PreciseCapture(_) => {
- ControlFlow::Break(false)
- }
- TypeParamBound::Verbatim(t) => ControlFlow::Break(tokens_trailing_brace(t)),
- }
- }
-
- fn tokens_trailing_brace(tokens: &TokenStream) -> bool {
- if let Some(TokenTree::Group(last)) = tokens.clone().into_iter().last() {
- last.delimiter() == Delimiter::Brace
- } else {
- false
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/custom_keyword.rs b/deps/crates/vendor/syn-v2/src/custom_keyword.rs
deleted file mode 100644
index cc4f632c981..00000000000
--- a/deps/crates/vendor/syn-v2/src/custom_keyword.rs
+++ /dev/null
@@ -1,260 +0,0 @@
-/// Define a type that supports parsing and printing a given identifier as if it
-/// were a keyword.
-///
-/// # Usage
-///
-/// As a convention, it is recommended that this macro be invoked within a
-/// module called `kw` or `keyword` and that the resulting parser be invoked
-/// with a `kw::` or `keyword::` prefix.
-///
-/// ```
-/// mod kw {
-/// syn::custom_keyword!(whatever);
-/// }
-/// ```
-///
-/// The generated syntax tree node supports the following operations just like
-/// any built-in keyword token.
-///
-/// - [Peeking] — `input.peek(kw::whatever)`
-///
-/// - [Parsing] — `input.parse::<kw::whatever>()?`
-///
-/// - [Printing] — `quote!( ... #whatever_token ... )`
-///
-/// - Construction from a [`Span`] — `let whatever_token = kw::whatever(sp)`
-///
-/// - Field access to its span — `let sp = whatever_token.span`
-///
-/// [Peeking]: crate::parse::ParseBuffer::peek
-/// [Parsing]: crate::parse::ParseBuffer::parse
-/// [Printing]: quote::ToTokens
-/// [`Span`]: proc_macro2::Span
-///
-/// # Example
-///
-/// This example parses input that looks like `bool = true` or `str = "value"`.
-/// The key must be either the identifier `bool` or the identifier `str`. If
-/// `bool`, the value may be either `true` or `false`. If `str`, the value may
-/// be any string literal.
-///
-/// The symbols `bool` and `str` are not reserved keywords in Rust so these are
-/// not considered keywords in the `syn::token` module. Like any other
-/// identifier that is not a keyword, these can be declared as custom keywords
-/// by crates that need to use them as such.
-///
-/// ```
-/// use syn::{LitBool, LitStr, Result, Token};
-/// use syn::parse::{Parse, ParseStream};
-///
-/// mod kw {
-/// syn::custom_keyword!(bool);
-/// syn::custom_keyword!(str);
-/// }
-///
-/// enum Argument {
-/// Bool {
-/// bool_token: kw::bool,
-/// eq_token: Token![=],
-/// value: LitBool,
-/// },
-/// Str {
-/// str_token: kw::str,
-/// eq_token: Token![=],
-/// value: LitStr,
-/// },
-/// }
-///
-/// impl Parse for Argument {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let lookahead = input.lookahead1();
-/// if lookahead.peek(kw::bool) {
-/// Ok(Argument::Bool {
-/// bool_token: input.parse::<kw::bool>()?,
-/// eq_token: input.parse()?,
-/// value: input.parse()?,
-/// })
-/// } else if lookahead.peek(kw::str) {
-/// Ok(Argument::Str {
-/// str_token: input.parse::<kw::str>()?,
-/// eq_token: input.parse()?,
-/// value: input.parse()?,
-/// })
-/// } else {
-/// Err(lookahead.error())
-/// }
-/// }
-/// }
-/// ```
-#[macro_export]
-macro_rules! custom_keyword {
- ($ident:ident) => {
- #[allow(non_camel_case_types)]
- pub struct $ident {
- #[allow(dead_code)]
- pub span: $crate::__private::Span,
- }
-
- #[doc(hidden)]
- #[allow(dead_code, non_snake_case)]
- pub fn $ident<__S: $crate::__private::IntoSpans<$crate::__private::Span>>(
- span: __S,
- ) -> $ident {
- $ident {
- span: $crate::__private::IntoSpans::into_spans(span),
- }
- }
-
- const _: () = {
- impl $crate::__private::Default for $ident {
- fn default() -> Self {
- $ident {
- span: $crate::__private::Span::call_site(),
- }
- }
- }
-
- $crate::impl_parse_for_custom_keyword!($ident);
- $crate::impl_to_tokens_for_custom_keyword!($ident);
- $crate::impl_clone_for_custom_keyword!($ident);
- $crate::impl_extra_traits_for_custom_keyword!($ident);
- };
- };
-}
-
-// Not public API.
-#[cfg(feature = "parsing")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_parse_for_custom_keyword {
- ($ident:ident) => {
- // For peek.
- impl $crate::__private::CustomToken for $ident {
- fn peek(cursor: $crate::buffer::Cursor) -> $crate::__private::bool {
- if let $crate::__private::Some((ident, _rest)) = cursor.ident() {
- ident == $crate::__private::stringify!($ident)
- } else {
- false
- }
- }
-
- fn display() -> &'static $crate::__private::str {
- $crate::__private::concat!("`", $crate::__private::stringify!($ident), "`")
- }
- }
-
- impl $crate::parse::Parse for $ident {
- fn parse(input: $crate::parse::ParseStream) -> $crate::parse::Result<$ident> {
- input.step(|cursor| {
- if let $crate::__private::Some((ident, rest)) = cursor.ident() {
- if ident == $crate::__private::stringify!($ident) {
- return $crate::__private::Ok(($ident { span: ident.span() }, rest));
- }
- }
- $crate::__private::Err(cursor.error($crate::__private::concat!(
- "expected `",
- $crate::__private::stringify!($ident),
- "`",
- )))
- })
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "parsing"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_parse_for_custom_keyword {
- ($ident:ident) => {};
-}
-
-// Not public API.
-#[cfg(feature = "printing")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_to_tokens_for_custom_keyword {
- ($ident:ident) => {
- impl $crate::__private::ToTokens for $ident {
- fn to_tokens(&self, tokens: &mut $crate::__private::TokenStream2) {
- let ident = $crate::Ident::new($crate::__private::stringify!($ident), self.span);
- $crate::__private::TokenStreamExt::append(tokens, ident);
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "printing"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_to_tokens_for_custom_keyword {
- ($ident:ident) => {};
-}
-
-// Not public API.
-#[cfg(feature = "clone-impls")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_clone_for_custom_keyword {
- ($ident:ident) => {
- impl $crate::__private::Copy for $ident {}
-
- #[allow(clippy::expl_impl_clone_on_copy)]
- impl $crate::__private::Clone for $ident {
- fn clone(&self) -> Self {
- *self
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "clone-impls"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_clone_for_custom_keyword {
- ($ident:ident) => {};
-}
-
-// Not public API.
-#[cfg(feature = "extra-traits")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_extra_traits_for_custom_keyword {
- ($ident:ident) => {
- impl $crate::__private::Debug for $ident {
- fn fmt(&self, f: &mut $crate::__private::Formatter) -> $crate::__private::FmtResult {
- $crate::__private::Formatter::write_str(
- f,
- $crate::__private::concat!(
- "Keyword [",
- $crate::__private::stringify!($ident),
- "]",
- ),
- )
- }
- }
-
- impl $crate::__private::Eq for $ident {}
-
- impl $crate::__private::PartialEq for $ident {
- fn eq(&self, _other: &Self) -> $crate::__private::bool {
- true
- }
- }
-
- impl $crate::__private::Hash for $ident {
- fn hash<__H: $crate::__private::Hasher>(&self, _state: &mut __H) {}
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "extra-traits"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_extra_traits_for_custom_keyword {
- ($ident:ident) => {};
-}
diff --git a/deps/crates/vendor/syn-v2/src/custom_punctuation.rs b/deps/crates/vendor/syn-v2/src/custom_punctuation.rs
deleted file mode 100644
index 58955c7ff19..00000000000
--- a/deps/crates/vendor/syn-v2/src/custom_punctuation.rs
+++ /dev/null
@@ -1,305 +0,0 @@
-/// Define a type that supports parsing and printing a multi-character symbol
-/// as if it were a punctuation token.
-///
-/// # Usage
-///
-/// ```
-/// syn::custom_punctuation!(LeftRightArrow, <=>);
-/// ```
-///
-/// The generated syntax tree node supports the following operations just like
-/// any built-in punctuation token.
-///
-/// - [Peeking] — `input.peek(LeftRightArrow)`
-///
-/// - [Parsing] — `input.parse::<LeftRightArrow>()?`
-///
-/// - [Printing] — `quote!( ... #lrarrow ... )`
-///
-/// - Construction from a [`Span`] — `let lrarrow = LeftRightArrow(sp)`
-///
-/// - Construction from multiple [`Span`] — `let lrarrow = LeftRightArrow([sp, sp, sp])`
-///
-/// - Field access to its spans — `let spans = lrarrow.spans`
-///
-/// [Peeking]: crate::parse::ParseBuffer::peek
-/// [Parsing]: crate::parse::ParseBuffer::parse
-/// [Printing]: quote::ToTokens
-/// [`Span`]: proc_macro2::Span
-///
-/// # Example
-///
-/// ```
-/// use core::iter;
-/// use proc_macro2::{TokenStream, TokenTree};
-/// use syn::parse::{Parse, ParseStream, Peek, Result};
-/// use syn::punctuated::Punctuated;
-/// use syn::Expr;
-///
-/// syn::custom_punctuation!(PathSeparator, </>);
-///
-/// // expr </> expr </> expr ...
-/// struct PathSegments {
-/// segments: Punctuated<Expr, PathSeparator>,
-/// }
-///
-/// impl Parse for PathSegments {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let mut segments = Punctuated::new();
-///
-/// let first = parse_until(input, PathSeparator)?;
-/// segments.push_value(syn::parse2(first)?);
-///
-/// while input.peek(PathSeparator) {
-/// segments.push_punct(input.parse()?);
-///
-/// let next = parse_until(input, PathSeparator)?;
-/// segments.push_value(syn::parse2(next)?);
-/// }
-///
-/// Ok(PathSegments { segments })
-/// }
-/// }
-///
-/// fn parse_until<E: Peek>(input: ParseStream, end: E) -> Result<TokenStream> {
-/// let mut tokens = TokenStream::new();
-/// while !input.is_empty() && !input.peek(end) {
-/// let next: TokenTree = input.parse()?;
-/// tokens.extend(iter::once(next));
-/// }
-/// Ok(tokens)
-/// }
-///
-/// fn main() {
-/// let input = r#" a::b </> c::d::e "#;
-/// let _: PathSegments = syn::parse_str(input).unwrap();
-/// }
-/// ```
-#[macro_export]
-macro_rules! custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {
- pub struct $ident {
- #[allow(dead_code)]
- pub spans: $crate::custom_punctuation_repr!($($tt)+),
- }
-
- #[doc(hidden)]
- #[allow(dead_code, non_snake_case)]
- pub fn $ident<__S: $crate::__private::IntoSpans<$crate::custom_punctuation_repr!($($tt)+)>>(
- spans: __S,
- ) -> $ident {
- let _validate_len = 0 $(+ $crate::custom_punctuation_len!(strict, $tt))*;
- $ident {
- spans: $crate::__private::IntoSpans::into_spans(spans)
- }
- }
-
- const _: () = {
- impl $crate::__private::Default for $ident {
- fn default() -> Self {
- $ident($crate::__private::Span::call_site())
- }
- }
-
- $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+);
- $crate::impl_to_tokens_for_custom_punctuation!($ident, $($tt)+);
- $crate::impl_clone_for_custom_punctuation!($ident, $($tt)+);
- $crate::impl_extra_traits_for_custom_punctuation!($ident, $($tt)+);
- };
- };
-}
-
-// Not public API.
-#[cfg(feature = "parsing")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_parse_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {
- impl $crate::__private::CustomToken for $ident {
- fn peek(cursor: $crate::buffer::Cursor) -> $crate::__private::bool {
- $crate::__private::peek_punct(cursor, $crate::stringify_punct!($($tt)+))
- }
-
- fn display() -> &'static $crate::__private::str {
- $crate::__private::concat!("`", $crate::stringify_punct!($($tt)+), "`")
- }
- }
-
- impl $crate::parse::Parse for $ident {
- fn parse(input: $crate::parse::ParseStream) -> $crate::parse::Result<$ident> {
- let spans: $crate::custom_punctuation_repr!($($tt)+) =
- $crate::__private::parse_punct(input, $crate::stringify_punct!($($tt)+))?;
- Ok($ident(spans))
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "parsing"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_parse_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {};
-}
-
-// Not public API.
-#[cfg(feature = "printing")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_to_tokens_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {
- impl $crate::__private::ToTokens for $ident {
- fn to_tokens(&self, tokens: &mut $crate::__private::TokenStream2) {
- $crate::__private::print_punct($crate::stringify_punct!($($tt)+), &self.spans, tokens)
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "printing"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_to_tokens_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {};
-}
-
-// Not public API.
-#[cfg(feature = "clone-impls")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_clone_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {
- impl $crate::__private::Copy for $ident {}
-
- #[allow(clippy::expl_impl_clone_on_copy)]
- impl $crate::__private::Clone for $ident {
- fn clone(&self) -> Self {
- *self
- }
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "clone-impls"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_clone_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {};
-}
-
-// Not public API.
-#[cfg(feature = "extra-traits")]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_extra_traits_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {
- impl $crate::__private::Debug for $ident {
- fn fmt(&self, f: &mut $crate::__private::Formatter) -> $crate::__private::FmtResult {
- $crate::__private::Formatter::write_str(f, $crate::__private::stringify!($ident))
- }
- }
-
- impl $crate::__private::Eq for $ident {}
-
- impl $crate::__private::PartialEq for $ident {
- fn eq(&self, _other: &Self) -> $crate::__private::bool {
- true
- }
- }
-
- impl $crate::__private::Hash for $ident {
- fn hash<__H: $crate::__private::Hasher>(&self, _state: &mut __H) {}
- }
- };
-}
-
-// Not public API.
-#[cfg(not(feature = "extra-traits"))]
-#[doc(hidden)]
-#[macro_export]
-macro_rules! impl_extra_traits_for_custom_punctuation {
- ($ident:ident, $($tt:tt)+) => {};
-}
-
-// Not public API.
-#[doc(hidden)]
-#[macro_export]
-macro_rules! custom_punctuation_repr {
- ($($tt:tt)+) => {
- [$crate::__private::Span; 0 $(+ $crate::custom_punctuation_len!(lenient, $tt))+]
- };
-}
-
-// Not public API.
-#[doc(hidden)]
-#[macro_export]
-#[rustfmt::skip]
-macro_rules! custom_punctuation_len {
- ($mode:ident, &) => { 1 };
- ($mode:ident, &&) => { 2 };
- ($mode:ident, &=) => { 2 };
- ($mode:ident, @) => { 1 };
- ($mode:ident, ^) => { 1 };
- ($mode:ident, ^=) => { 2 };
- ($mode:ident, :) => { 1 };
- ($mode:ident, ,) => { 1 };
- ($mode:ident, $) => { 1 };
- ($mode:ident, .) => { 1 };
- ($mode:ident, ..) => { 2 };
- ($mode:ident, ...) => { 3 };
- ($mode:ident, ..=) => { 3 };
- ($mode:ident, =) => { 1 };
- ($mode:ident, ==) => { 2 };
- ($mode:ident, =>) => { 2 };
- ($mode:ident, >=) => { 2 };
- ($mode:ident, >) => { 1 };
- ($mode:ident, <-) => { 2 };
- ($mode:ident, <=) => { 2 };
- ($mode:ident, <) => { 1 };
- ($mode:ident, -) => { 1 };
- ($mode:ident, -=) => { 2 };
- ($mode:ident, !=) => { 2 };
- ($mode:ident, !) => { 1 };
- ($mode:ident, |) => { 1 };
- ($mode:ident, |=) => { 2 };
- ($mode:ident, ||) => { 2 };
- ($mode:ident, ::) => { 2 };
- ($mode:ident, %) => { 1 };
- ($mode:ident, %=) => { 2 };
- ($mode:ident, +) => { 1 };
- ($mode:ident, +=) => { 2 };
- ($mode:ident, #) => { 1 };
- ($mode:ident, ?) => { 1 };
- ($mode:ident, ->) => { 2 };
- ($mode:ident, ;) => { 1 };
- ($mode:ident, <<) => { 2 };
- ($mode:ident, <<=) => { 3 };
- ($mode:ident, >>) => { 2 };
- ($mode:ident, >>=) => { 3 };
- ($mode:ident, /) => { 1 };
- ($mode:ident, /=) => { 2 };
- ($mode:ident, *) => { 1 };
- ($mode:ident, *=) => { 2 };
- ($mode:ident, ~) => { 1 };
- (lenient, $tt:tt) => { 0 };
- (strict, $tt:tt) => {{ $crate::custom_punctuation_unexpected!($tt); 0 }};
-}
-
-// Not public API.
-#[doc(hidden)]
-#[macro_export]
-macro_rules! custom_punctuation_unexpected {
- () => {};
-}
-
-// Not public API.
-#[doc(hidden)]
-#[macro_export]
-macro_rules! stringify_punct {
- ($($tt:tt)+) => {
- $crate::__private::concat!($($crate::__private::stringify!($tt)),+)
- };
-}
diff --git a/deps/crates/vendor/syn-v2/src/data.rs b/deps/crates/vendor/syn-v2/src/data.rs
deleted file mode 100644
index 0fdbe7139ff..00000000000
--- a/deps/crates/vendor/syn-v2/src/data.rs
+++ /dev/null
@@ -1,410 +0,0 @@
-use crate::attr::Attribute;
-use crate::expr::{Expr, Index, Member};
-use crate::ident::Ident;
-use crate::punctuated::{self, Punctuated};
-use crate::restriction::{FieldMutability, Visibility};
-use crate::token;
-use crate::ty::Type;
-use alloc::vec::Vec;
-
-ast_struct! {
- /// An enum variant.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Variant {
- pub attrs: Vec<Attribute>,
-
- /// Name of the variant.
- pub ident: Ident,
-
- /// Content stored in the variant.
- pub fields: Fields,
-
- /// Explicit discriminant: `Variant = 1`
- pub discriminant: Option<(Token![=], Expr)>,
- }
-}
-
-ast_enum_of_structs! {
- /// Data stored within an enum variant or struct.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum Fields {
- /// Named fields of a struct or struct variant such as `Point { x: f64,
- /// y: f64 }`.
- Named(FieldsNamed),
-
- /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`.
- Unnamed(FieldsUnnamed),
-
- /// Unit struct or unit variant such as `None`.
- Unit,
- }
-}
-
-ast_struct! {
- /// Named fields of a struct or struct variant such as `Point { x: f64,
- /// y: f64 }`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct FieldsNamed {
- pub brace_token: token::Brace,
- pub named: Punctuated<Field, Token![,]>,
- }
-}
-
-ast_struct! {
- /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct FieldsUnnamed {
- pub paren_token: token::Paren,
- pub unnamed: Punctuated<Field, Token![,]>,
- }
-}
-
-impl Fields {
- /// Get an iterator over the borrowed [`Field`] items in this object. This
- /// iterator can be used to iterate over a named or unnamed struct or
- /// variant's fields uniformly.
- pub fn iter(&self) -> punctuated::Iter<Field> {
- match self {
- Fields::Unit => crate::punctuated::empty_punctuated_iter(),
- Fields::Named(f) => f.named.iter(),
- Fields::Unnamed(f) => f.unnamed.iter(),
- }
- }
-
- /// Get an iterator over the mutably borrowed [`Field`] items in this
- /// object. This iterator can be used to iterate over a named or unnamed
- /// struct or variant's fields uniformly.
- pub fn iter_mut(&mut self) -> punctuated::IterMut<Field> {
- match self {
- Fields::Unit => crate::punctuated::empty_punctuated_iter_mut(),
- Fields::Named(f) => f.named.iter_mut(),
- Fields::Unnamed(f) => f.unnamed.iter_mut(),
- }
- }
-
- /// Returns the number of fields.
- pub fn len(&self) -> usize {
- match self {
- Fields::Unit => 0,
- Fields::Named(f) => f.named.len(),
- Fields::Unnamed(f) => f.unnamed.len(),
- }
- }
-
- /// Returns `true` if there are zero fields.
- pub fn is_empty(&self) -> bool {
- match self {
- Fields::Unit => true,
- Fields::Named(f) => f.named.is_empty(),
- Fields::Unnamed(f) => f.unnamed.is_empty(),
- }
- }
-
- return_impl_trait! {
- /// Get an iterator over the fields of a struct or variant as [`Member`]s.
- /// This iterator can be used to iterate over a named or unnamed struct or
- /// variant's fields uniformly.
- ///
- /// # Example
- ///
- /// The following is a simplistic [`Clone`] derive for structs. (A more
- /// complete implementation would additionally want to infer trait bounds on
- /// the generic type parameters.)
- ///
- /// ```
- /// # use quote::quote;
- /// #
- /// fn derive_clone(input: &syn::ItemStruct) -> proc_macro2::TokenStream {
- /// let ident = &input.ident;
- /// let members = input.fields.members();
- /// let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();
- /// quote! {
- /// impl #impl_generics Clone for #ident #ty_generics #where_clause {
- /// fn clone(&self) -> Self {
- /// Self {
- /// #(#members: self.#members.clone()),*
- /// }
- /// }
- /// }
- /// }
- /// }
- /// ```
- ///
- /// For structs with named fields, it produces an expression like `Self { a:
- /// self.a.clone() }`. For structs with unnamed fields, `Self { 0:
- /// self.0.clone() }`. And for unit structs, `Self {}`.
- pub fn members(&self) -> impl Iterator<Item = Member> + Clone + '_ [Members] {
- Members {
- fields: self.iter(),
- index: 0,
- }
- }
- }
-}
-
-impl IntoIterator for Fields {
- type Item = Field;
- type IntoIter = punctuated::IntoIter<Field>;
-
- fn into_iter(self) -> Self::IntoIter {
- match self {
- Fields::Unit => Punctuated::<Field, ()>::new().into_iter(),
- Fields::Named(f) => f.named.into_iter(),
- Fields::Unnamed(f) => f.unnamed.into_iter(),
- }
- }
-}
-
-impl<'a> IntoIterator for &'a Fields {
- type Item = &'a Field;
- type IntoIter = punctuated::Iter<'a, Field>;
-
- fn into_iter(self) -> Self::IntoIter {
- self.iter()
- }
-}
-
-impl<'a> IntoIterator for &'a mut Fields {
- type Item = &'a mut Field;
- type IntoIter = punctuated::IterMut<'a, Field>;
-
- fn into_iter(self) -> Self::IntoIter {
- self.iter_mut()
- }
-}
-
-ast_struct! {
- /// A field of a struct or enum variant.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Field {
- pub attrs: Vec<Attribute>,
-
- pub vis: Visibility,
-
- pub mutability: FieldMutability,
-
- /// Name of the field, if any.
- ///
- /// Fields of tuple structs have no names.
- pub ident: Option<Ident>,
-
- pub colon_token: Option<Token![:]>,
-
- pub ty: Type,
- }
-}
-
-pub struct Members<'a> {
- fields: punctuated::Iter<'a, Field>,
- index: u32,
-}
-
-impl<'a> Iterator for Members<'a> {
- type Item = Member;
-
- fn next(&mut self) -> Option<Self::Item> {
- let field = self.fields.next()?;
- let member = match &field.ident {
- Some(ident) => Member::Named(ident.clone()),
- None => {
- #[cfg(all(feature = "parsing", feature = "printing"))]
- let span = crate::spanned::Spanned::span(&field.ty);
- #[cfg(not(all(feature = "parsing", feature = "printing")))]
- let span = proc_macro2::Span::call_site();
- Member::Unnamed(Index { index: self.index, span })
- }
- };
- self.index += 1;
- Some(member)
- }
-}
-
-impl<'a> Clone for Members<'a> {
- fn clone(&self) -> Self {
- Members { fields: self.fields.clone(), index: self.index }
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::data::{Field, Fields, FieldsNamed, FieldsUnnamed, Variant};
- use crate::error::Result;
- use crate::expr::Expr;
- use crate::ext::IdentExt as _;
- use crate::ident::Ident;
- #[cfg(not(feature = "full"))]
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- use crate::restriction::{FieldMutability, Visibility};
- #[cfg(not(feature = "full"))]
- use crate::scan_expr::scan_expr;
- use crate::token;
- use crate::ty::Type;
- use crate::verbatim;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Variant {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let _visibility: Visibility = input.parse()?;
- let ident: Ident = input.parse()?;
- let fields = if input.peek(token::Brace) {
- Fields::Named(input.parse()?)
- } else if input.peek(token::Paren) {
- Fields::Unnamed(input.parse()?)
- } else {
- Fields::Unit
- };
- let discriminant = if input.peek(Token![=]) {
- let eq_token: Token![=] = input.parse()?;
- #[cfg(feature = "full")]
- let discriminant: Expr = input.parse()?;
- #[cfg(not(feature = "full"))]
- let discriminant = {
- let begin = input.cursor();
- let ahead = input.fork();
- let mut discriminant: Result<Expr> = ahead.parse();
- if discriminant.is_ok() {
- input.advance_to(&ahead);
- } else if scan_expr(input).is_ok() {
- discriminant = Ok(Expr::Verbatim(verbatim::between(begin, input.cursor())));
- }
- discriminant?
- };
- Some((eq_token, discriminant))
- } else {
- None
- };
- Ok(Variant { attrs, ident, fields, discriminant })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for FieldsNamed {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(FieldsNamed {
- brace_token: braced!(content in input),
- named: content.parse_terminated(Field::parse_named, Token![,])?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for FieldsUnnamed {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(FieldsUnnamed {
- paren_token: parenthesized!(content in input),
- unnamed: content.parse_terminated(Field::parse_unnamed, Token![,])?,
- })
- }
- }
-
- impl Field {
- /// Parses a named (braced struct) field.
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_named(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
-
- let unnamed_field = cfg!(feature = "full") && input.peek(Token![_]);
- let ident = if unnamed_field { input.call(Ident::parse_any) } else { input.parse() }?;
-
- let colon_token: Token![:] = input.parse()?;
-
- let ty: Type = if unnamed_field
- && (input.peek(Token![struct])
- || input.peek(Token![union]) && input.peek2(token::Brace))
- {
- let begin = input.cursor();
- input.call(Ident::parse_any)?;
- input.parse::<FieldsNamed>()?;
- Type::Verbatim(verbatim::between(begin, input.cursor()))
- } else {
- input.parse()?
- };
-
- Ok(Field {
- attrs,
- vis,
- mutability: FieldMutability::None,
- ident: Some(ident),
- colon_token: Some(colon_token),
- ty,
- })
- }
-
- /// Parses an unnamed (tuple struct) field.
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_unnamed(input: ParseStream) -> Result<Self> {
- Ok(Field {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- mutability: FieldMutability::None,
- ident: None,
- colon_token: None,
- ty: input.parse()?,
- })
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::data::{Field, FieldsNamed, FieldsUnnamed, Variant};
- use crate::print::TokensOrDefault;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Variant {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(&self.attrs);
- self.ident.to_tokens(tokens);
- self.fields.to_tokens(tokens);
- if let Some((eq_token, disc)) = &self.discriminant {
- eq_token.to_tokens(tokens);
- disc.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for FieldsNamed {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.brace_token.surround(tokens, |tokens| {
- self.named.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for FieldsUnnamed {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.paren_token.surround(tokens, |tokens| {
- self.unnamed.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Field {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(&self.attrs);
- self.vis.to_tokens(tokens);
- if let Some(ident) = &self.ident {
- ident.to_tokens(tokens);
- TokensOrDefault(&self.colon_token).to_tokens(tokens);
- }
- self.ty.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/derive.rs b/deps/crates/vendor/syn-v2/src/derive.rs
deleted file mode 100644
index 573b88fb166..00000000000
--- a/deps/crates/vendor/syn-v2/src/derive.rs
+++ /dev/null
@@ -1,260 +0,0 @@
-use crate::attr::Attribute;
-use crate::data::{Fields, FieldsNamed, Variant};
-use crate::generics::Generics;
-use crate::ident::Ident;
-use crate::punctuated::Punctuated;
-use crate::restriction::Visibility;
-use crate::token;
-use alloc::vec::Vec;
-
-ast_struct! {
- /// Data structure sent to a `proc_macro_derive` macro.
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub struct DeriveInput {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub ident: Ident,
- pub generics: Generics,
- pub data: Data,
- }
-}
-
-ast_enum! {
- /// The storage of a struct, enum or union data structure.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub enum Data {
- Struct(DataStruct),
- Enum(DataEnum),
- Union(DataUnion),
- }
-}
-
-ast_struct! {
- /// A struct input to a `proc_macro_derive` macro.
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub struct DataStruct {
- pub struct_token: Token![struct],
- pub fields: Fields,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// An enum input to a `proc_macro_derive` macro.
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub struct DataEnum {
- pub enum_token: Token![enum],
- pub brace_token: token::Brace,
- pub variants: Punctuated<Variant, Token![,]>,
- }
-}
-
-ast_struct! {
- /// An untagged union input to a `proc_macro_derive` macro.
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- pub struct DataUnion {
- pub union_token: Token![union],
- pub fields: FieldsNamed,
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::data::{Fields, FieldsNamed, Variant};
- use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
- use crate::error::Result;
- use crate::generics::{Generics, WhereClause};
- use crate::ident::Ident;
- use crate::parse::{Parse, ParseStream};
- use crate::punctuated::Punctuated;
- use crate::restriction::Visibility;
- use crate::token;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for DeriveInput {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis = input.parse::<Visibility>()?;
-
- let lookahead = input.lookahead1();
- if lookahead.peek(Token![struct]) {
- let struct_token = input.parse::<Token![struct]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, fields, semi) = data_struct(input)?;
- Ok(DeriveInput {
- attrs,
- vis,
- ident,
- generics: Generics {
- where_clause,
- ..generics
- },
- data: Data::Struct(DataStruct {
- struct_token,
- fields,
- semi_token: semi,
- }),
- })
- } else if lookahead.peek(Token![enum]) {
- let enum_token = input.parse::<Token![enum]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, brace, variants) = data_enum(input)?;
- Ok(DeriveInput {
- attrs,
- vis,
- ident,
- generics: Generics {
- where_clause,
- ..generics
- },
- data: Data::Enum(DataEnum {
- enum_token,
- brace_token: brace,
- variants,
- }),
- })
- } else if lookahead.peek(Token![union]) {
- let union_token = input.parse::<Token![union]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, fields) = data_union(input)?;
- Ok(DeriveInput {
- attrs,
- vis,
- ident,
- generics: Generics {
- where_clause,
- ..generics
- },
- data: Data::Union(DataUnion {
- union_token,
- fields,
- }),
- })
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- pub(crate) fn data_struct(
- input: ParseStream,
- ) -> Result<(Option<WhereClause>, Fields, Option<Token![;]>)> {
- let mut lookahead = input.lookahead1();
- let mut where_clause = None;
- if lookahead.peek(Token![where]) {
- where_clause = Some(input.parse()?);
- lookahead = input.lookahead1();
- }
-
- if where_clause.is_none() && lookahead.peek(token::Paren) {
- let fields = input.parse()?;
-
- lookahead = input.lookahead1();
- if lookahead.peek(Token![where]) {
- where_clause = Some(input.parse()?);
- lookahead = input.lookahead1();
- }
-
- if lookahead.peek(Token![;]) {
- let semi = input.parse()?;
- Ok((where_clause, Fields::Unnamed(fields), Some(semi)))
- } else {
- Err(lookahead.error())
- }
- } else if lookahead.peek(token::Brace) {
- let fields = input.parse()?;
- Ok((where_clause, Fields::Named(fields), None))
- } else if lookahead.peek(Token![;]) {
- let semi = input.parse()?;
- Ok((where_clause, Fields::Unit, Some(semi)))
- } else {
- Err(lookahead.error())
- }
- }
-
- pub(crate) fn data_enum(
- input: ParseStream,
- ) -> Result<(
- Option<WhereClause>,
- token::Brace,
- Punctuated<Variant, Token![,]>,
- )> {
- let where_clause = input.parse()?;
-
- let content;
- let brace = braced!(content in input);
- let variants = content.parse_terminated(Variant::parse, Token![,])?;
-
- Ok((where_clause, brace, variants))
- }
-
- pub(crate) fn data_union(input: ParseStream) -> Result<(Option<WhereClause>, FieldsNamed)> {
- let where_clause = input.parse()?;
- let fields = input.parse()?;
- Ok((where_clause, fields))
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::FilterAttrs;
- use crate::data::Fields;
- use crate::derive::{Data, DeriveInput};
- use crate::print::TokensOrDefault;
- use proc_macro2::TokenStream;
- use quote::ToTokens;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for DeriveInput {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- for attr in self.attrs.outer() {
- attr.to_tokens(tokens);
- }
- self.vis.to_tokens(tokens);
- match &self.data {
- Data::Struct(d) => d.struct_token.to_tokens(tokens),
- Data::Enum(d) => d.enum_token.to_tokens(tokens),
- Data::Union(d) => d.union_token.to_tokens(tokens),
- }
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- match &self.data {
- Data::Struct(data) => match &data.fields {
- Fields::Named(fields) => {
- self.generics.where_clause.to_tokens(tokens);
- fields.to_tokens(tokens);
- }
- Fields::Unnamed(fields) => {
- fields.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- TokensOrDefault(&data.semi_token).to_tokens(tokens);
- }
- Fields::Unit => {
- self.generics.where_clause.to_tokens(tokens);
- TokensOrDefault(&data.semi_token).to_tokens(tokens);
- }
- },
- Data::Enum(data) => {
- self.generics.where_clause.to_tokens(tokens);
- data.brace_token.surround(tokens, |tokens| {
- data.variants.to_tokens(tokens);
- });
- }
- Data::Union(data) => {
- self.generics.where_clause.to_tokens(tokens);
- data.fields.to_tokens(tokens);
- }
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/discouraged.rs b/deps/crates/vendor/syn-v2/src/discouraged.rs
deleted file mode 100644
index 9e26bd9ac04..00000000000
--- a/deps/crates/vendor/syn-v2/src/discouraged.rs
+++ /dev/null
@@ -1,225 +0,0 @@
-//! Extensions to the parsing API with niche applicability.
-
-use crate::buffer::Cursor;
-use crate::error::Result;
-use crate::parse::{inner_unexpected, ParseBuffer, Unexpected};
-use alloc::rc::Rc;
-use core::cell::Cell;
-use core::mem;
-use proc_macro2::extra::DelimSpan;
-use proc_macro2::Delimiter;
-
-/// Extensions to the `ParseStream` API to support speculative parsing.
-pub trait Speculative {
- /// Advance this parse stream to the position of a forked parse stream.
- ///
- /// This is the opposite operation to [`ParseStream::fork`]. You can fork a
- /// parse stream, perform some speculative parsing, then join the original
- /// stream to the fork to "commit" the parsing from the fork to the main
- /// stream.
- ///
- /// If you can avoid doing this, you should, as it limits the ability to
- /// generate useful errors. That said, it is often the only way to parse
- /// syntax of the form `A* B*` for arbitrary syntax `A` and `B`. The problem
- /// is that when the fork fails to parse an `A`, it's impossible to tell
- /// whether that was because of a syntax error and the user meant to provide
- /// an `A`, or that the `A`s are finished and it's time to start parsing
- /// `B`s. Use with care.
- ///
- /// Also note that if `A` is a subset of `B`, `A* B*` can be parsed by
- /// parsing `B*` and removing the leading members of `A` from the
- /// repetition, bypassing the need to involve the downsides associated with
- /// speculative parsing.
- ///
- /// [`ParseStream::fork`]: ParseBuffer::fork
- ///
- /// # Example
- ///
- /// There has been chatter about the possibility of making the colons in the
- /// turbofish syntax like `path::to::<T>` no longer required by accepting
- /// `path::to<T>` in expression position. Specifically, according to [RFC
- /// 2544], [`PathSegment`] parsing should always try to consume a following
- /// `<` token as the start of generic arguments, and reset to the `<` if
- /// that fails (e.g. the token is acting as a less-than operator).
- ///
- /// This is the exact kind of parsing behavior which requires the "fork,
- /// try, commit" behavior that [`ParseStream::fork`] discourages. With
- /// `advance_to`, we can avoid having to parse the speculatively parsed
- /// content a second time.
- ///
- /// This change in behavior can be implemented in syn by replacing just the
- /// `Parse` implementation for `PathSegment`:
- ///
- /// ```
- /// # use syn::ext::IdentExt;
- /// use syn::parse::discouraged::Speculative;
- /// # use syn::parse::{Parse, ParseStream};
- /// # use syn::{Ident, PathArguments, Result, Token};
- ///
- /// pub struct PathSegment {
- /// pub ident: Ident,
- /// pub arguments: PathArguments,
- /// }
- /// #
- /// # impl<T> From<T> for PathSegment
- /// # where
- /// # T: Into<Ident>,
- /// # {
- /// # fn from(ident: T) -> Self {
- /// # PathSegment {
- /// # ident: ident.into(),
- /// # arguments: PathArguments::None,
- /// # }
- /// # }
- /// # }
- ///
- /// impl Parse for PathSegment {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// if input.peek(Token![super])
- /// || input.peek(Token![self])
- /// || input.peek(Token![Self])
- /// || input.peek(Token![crate])
- /// {
- /// let ident = input.call(Ident::parse_any)?;
- /// return Ok(PathSegment::from(ident));
- /// }
- ///
- /// let ident = input.parse()?;
- /// if input.peek(Token![::]) && input.peek3(Token![<]) {
- /// return Ok(PathSegment {
- /// ident,
- /// arguments: PathArguments::AngleBracketed(input.parse()?),
- /// });
- /// }
- /// if input.peek(Token![<]) && !input.peek(Token![<=]) {
- /// let fork = input.fork();
- /// if let Ok(arguments) = fork.parse() {
- /// input.advance_to(&fork);
- /// return Ok(PathSegment {
- /// ident,
- /// arguments: PathArguments::AngleBracketed(arguments),
- /// });
- /// }
- /// }
- /// Ok(PathSegment::from(ident))
- /// }
- /// }
- ///
- /// # syn::parse_str::<PathSegment>("a<b,c>").unwrap();
- /// ```
- ///
- /// # Drawbacks
- ///
- /// The main drawback of this style of speculative parsing is in error
- /// presentation. Even if the lookahead is the "correct" parse, the error
- /// that is shown is that of the "fallback" parse. To use the same example
- /// as the turbofish above, take the following unfinished "turbofish":
- ///
- /// ```text
- /// let _ = f<&'a fn(), for<'a> serde::>();
- /// ```
- ///
- /// If this is parsed as generic arguments, we can provide the error message
- ///
- /// ```text
- /// error: expected identifier
- /// --> src.rs:L:C
- /// |
- /// L | let _ = f<&'a fn(), for<'a> serde::>();
- /// | ^
- /// ```
- ///
- /// but if parsed using the above speculative parsing, it falls back to
- /// assuming that the `<` is a less-than when it fails to parse the generic
- /// arguments, and tries to interpret the `&'a` as the start of a labelled
- /// loop, resulting in the much less helpful error
- ///
- /// ```text
- /// error: expected `:`
- /// --> src.rs:L:C
- /// |
- /// L | let _ = f<&'a fn(), for<'a> serde::>();
- /// | ^^
- /// ```
- ///
- /// This can be mitigated with various heuristics (two examples: show both
- /// forks' parse errors, or show the one that consumed more tokens), but
- /// when you can control the grammar, sticking to something that can be
- /// parsed LL(3) and without the LL(*) speculative parsing this makes
- /// possible, displaying reasonable errors becomes much more simple.
- ///
- /// [RFC 2544]: https://github.com/rust-lang/rfcs/pull/2544
- /// [`PathSegment`]: crate::PathSegment
- ///
- /// # Performance
- ///
- /// This method performs a cheap fixed amount of work that does not depend
- /// on how far apart the two streams are positioned.
- ///
- /// # Panics
- ///
- /// The forked stream in the argument of `advance_to` must have been
- /// obtained by forking `self`. Attempting to advance to any other stream
- /// will cause a panic.
- fn advance_to(&self, fork: &Self);
-}
-
-impl<'a> Speculative for ParseBuffer<'a> {
- fn advance_to(&self, fork: &Self) {
- if !crate::buffer::same_scope(self.cursor(), fork.cursor()) {
- panic!("fork was not derived from the advancing parse stream");
- }
-
- let (self_unexp, self_sp) = inner_unexpected(self);
- let (fork_unexp, fork_sp) = inner_unexpected(fork);
- if !Rc::ptr_eq(&self_unexp, &fork_unexp) {
- match (fork_sp, self_sp) {
- // Unexpected set on the fork, but not on `self`, copy it over.
- (Some((span, delimiter)), None) => {
- self_unexp.set(Unexpected::Some(span, delimiter));
- }
- // Unexpected unset. Use chain to propagate errors from fork.
- (None, None) => {
- fork_unexp.set(Unexpected::Chain(self_unexp));
-
- // Ensure toplevel 'unexpected' tokens from the fork don't
- // propagate up the chain by replacing the root `unexpected`
- // pointer, only 'unexpected' tokens from existing group
- // parsers should propagate.
- fork.unexpected
- .set(Some(Rc::new(Cell::new(Unexpected::None))));
- }
- // Unexpected has been set on `self`. No changes needed.
- (_, Some(_)) => {}
- }
- }
-
- // See comment on `cell` in the struct definition.
- self.cell
- .set(unsafe { mem::transmute::<Cursor, Cursor<'static>>(fork.cursor()) });
- }
-}
-
-/// Extensions to the `ParseStream` API to support manipulating invisible
-/// delimiters the same as if they were visible.
-pub trait AnyDelimiter {
- /// Returns the delimiter, the span of the delimiter token, and the nested
- /// contents for further parsing.
- fn parse_any_delimiter(&self) -> Result<(Delimiter, DelimSpan, ParseBuffer)>;
-}
-
-impl<'a> AnyDelimiter for ParseBuffer<'a> {
- fn parse_any_delimiter(&self) -> Result<(Delimiter, DelimSpan, ParseBuffer)> {
- self.step(|cursor| {
- if let Some((content, delimiter, span, rest)) = cursor.any_group() {
- let scope = span.close();
- let nested = crate::parse::advance_step_cursor(cursor, content);
- let unexpected = crate::parse::get_unexpected(self);
- let content = crate::parse::new_parse_buffer(scope, nested, unexpected);
- Ok(((delimiter, span, content), rest))
- } else {
- Err(cursor.error("expected any delimiter"))
- }
- })
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/drops.rs b/deps/crates/vendor/syn-v2/src/drops.rs
deleted file mode 100644
index 20ab75e4215..00000000000
--- a/deps/crates/vendor/syn-v2/src/drops.rs
+++ /dev/null
@@ -1,58 +0,0 @@
-use core::iter;
-use core::mem::ManuallyDrop;
-use core::ops::{Deref, DerefMut};
-use core::option;
-use core::slice;
-
-#[repr(transparent)]
-pub(crate) struct NoDrop<T: ?Sized>(ManuallyDrop<T>);
-
-impl<T> NoDrop<T> {
- pub(crate) fn new(value: T) -> Self
- where
- T: TrivialDrop,
- {
- NoDrop(ManuallyDrop::new(value))
- }
-}
-
-impl<T: ?Sized> Deref for NoDrop<T> {
- type Target = T;
- fn deref(&self) -> &Self::Target {
- &self.0
- }
-}
-
-impl<T: ?Sized> DerefMut for NoDrop<T> {
- fn deref_mut(&mut self) -> &mut Self::Target {
- &mut self.0
- }
-}
-
-pub(crate) trait TrivialDrop {}
-
-impl<T> TrivialDrop for iter::Empty<T> {}
-impl<T> TrivialDrop for slice::Iter<'_, T> {}
-impl<T> TrivialDrop for slice::IterMut<'_, T> {}
-impl<T> TrivialDrop for option::IntoIter<&T> {}
-impl<T> TrivialDrop for option::IntoIter<&mut T> {}
-
-#[test]
-fn test_needs_drop() {
- use core::mem::needs_drop;
-
- struct NeedsDrop;
-
- impl Drop for NeedsDrop {
- fn drop(&mut self) {}
- }
-
- assert!(needs_drop::<NeedsDrop>());
-
- // Test each of the types with a handwritten TrivialDrop impl above.
- assert!(!needs_drop::<iter::Empty<NeedsDrop>>());
- assert!(!needs_drop::<slice::Iter<NeedsDrop>>());
- assert!(!needs_drop::<slice::IterMut<NeedsDrop>>());
- assert!(!needs_drop::<option::IntoIter<&NeedsDrop>>());
- assert!(!needs_drop::<option::IntoIter<&mut NeedsDrop>>());
-}
diff --git a/deps/crates/vendor/syn-v2/src/error.rs b/deps/crates/vendor/syn-v2/src/error.rs
deleted file mode 100644
index 2b753ea6010..00000000000
--- a/deps/crates/vendor/syn-v2/src/error.rs
+++ /dev/null
@@ -1,473 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::buffer::Cursor;
-use crate::ext::{PunctExt as _, TokenStreamExt as _};
-use crate::thread::ThreadBound;
-#[cfg(feature = "parsing")]
-use alloc::format;
-use alloc::string::{String, ToString};
-use alloc::vec;
-use alloc::vec::Vec;
-use core::fmt::{self, Debug, Display};
-use core::slice;
-use proc_macro2::{
- Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
-};
-#[cfg(feature = "printing")]
-use quote::ToTokens;
-
-/// The result of a Syn parser.
-pub type Result<T> = core::result::Result<T, Error>;
-
-/// Error returned when a Syn parser cannot parse the input tokens.
-///
-/// # Error reporting in proc macros
-///
-/// The correct way to report errors back to the compiler from a procedural
-/// macro is by emitting an appropriately spanned invocation of
-/// [`compile_error!`] in the generated code. This produces a better diagnostic
-/// message than simply panicking the macro.
-///
-/// [`compile_error!`]: core::compile_error!
-///
-/// When parsing macro input, the [`parse_macro_input!`] macro handles the
-/// conversion to `compile_error!` automatically.
-///
-/// [`parse_macro_input!`]: crate::parse_macro_input!
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// use proc_macro::TokenStream;
-/// use syn::parse::{Parse, ParseStream, Result};
-/// use syn::{parse_macro_input, ItemFn};
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro_attribute]
-/// # };
-/// pub fn my_attr(args: TokenStream, input: TokenStream) -> TokenStream {
-/// let args = parse_macro_input!(args as MyAttrArgs);
-/// let input = parse_macro_input!(input as ItemFn);
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-///
-/// struct MyAttrArgs {
-/// # _k: [(); { stringify! {
-/// ...
-/// # }; 0 }]
-/// }
-///
-/// impl Parse for MyAttrArgs {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// # stringify! {
-/// ...
-/// # };
-/// # unimplemented!()
-/// }
-/// }
-/// ```
-///
-/// For errors that arise later than the initial parsing stage, the
-/// [`.to_compile_error()`] or [`.into_compile_error()`] methods can be used to
-/// perform an explicit conversion to `compile_error!`.
-///
-/// [`.to_compile_error()`]: Error::to_compile_error
-/// [`.into_compile_error()`]: Error::into_compile_error
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// # use proc_macro::TokenStream;
-/// # use syn::{parse_macro_input, DeriveInput};
-/// #
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro_derive(MyDerive)]
-/// # };
-/// pub fn my_derive(input: TokenStream) -> TokenStream {
-/// let input = parse_macro_input!(input as DeriveInput);
-///
-/// // fn(DeriveInput) -> syn::Result<proc_macro2::TokenStream>
-/// expand::my_derive(input)
-/// .unwrap_or_else(syn::Error::into_compile_error)
-/// .into()
-/// }
-/// #
-/// # mod expand {
-/// # use proc_macro2::TokenStream;
-/// # use syn::{DeriveInput, Result};
-/// #
-/// # pub fn my_derive(input: DeriveInput) -> Result<TokenStream> {
-/// # unimplemented!()
-/// # }
-/// # }
-/// ```
-pub struct Error {
- messages: Vec<ErrorMessage>,
-}
-
-struct ErrorMessage {
- // Span is implemented as an index into a thread-local interner to keep the
- // size small. It is not safe to access from a different thread. We want
- // errors to be Send and Sync to play nicely with ecosystem crates for error
- // handling, so pin the span we're given to its original thread and assume
- // it is Span::call_site if accessed from any other thread.
- span: ThreadBound<SpanRange>,
- message: String,
-}
-
-// Cannot use core::ops::Range<Span> because that does not implement Copy,
-// whereas ThreadBound<T> requires a Copy impl as a way to ensure no Drop impls
-// are involved.
-struct SpanRange {
- start: Span,
- end: Span,
-}
-
-#[cfg(test)]
-struct _Test
-where
- Error: Send + Sync;
-
-impl Error {
- /// Usually the [`ParseStream::error`] method will be used instead, which
- /// automatically uses the correct span from the current position of the
- /// parse stream.
- ///
- /// Use `Error::new` when the error needs to be triggered on some span other
- /// than where the parse stream is currently positioned.
- ///
- /// [`ParseStream::error`]: crate::parse::ParseBuffer::error
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{Error, Ident, LitStr, Result, Token};
- /// use syn::parse::ParseStream;
- ///
- /// // Parses input that looks like `name = "string"` where the key must be
- /// // the identifier `name` and the value may be any string literal.
- /// // Returns the string literal.
- /// fn parse_name(input: ParseStream) -> Result<LitStr> {
- /// let name_token: Ident = input.parse()?;
- /// if name_token != "name" {
- /// // Trigger an error not on the current position of the stream,
- /// // but on the position of the unexpected identifier.
- /// return Err(Error::new(name_token.span(), "expected `name`"));
- /// }
- /// input.parse::<Token![=]>()?;
- /// let s: LitStr = input.parse()?;
- /// Ok(s)
- /// }
- /// ```
- pub fn new<T: Display>(span: Span, message: T) -> Self {
- return new(span, message.to_string());
-
- fn new(span: Span, message: String) -> Error {
- Error {
- messages: vec![ErrorMessage {
- span: ThreadBound::new(SpanRange {
- start: span,
- end: span,
- }),
- message,
- }],
- }
- }
- }
-
- /// Creates an error with the specified message spanning the given syntax
- /// tree node.
- ///
- /// Unlike the `Error::new` constructor, this constructor takes an argument
- /// `tokens` which is a syntax tree node. This allows the resulting `Error`
- /// to attempt to span all tokens inside of `tokens`. While you would
- /// typically be able to use the `Spanned` trait with the above `Error::new`
- /// constructor, implementation limitations today mean that
- /// `Error::new_spanned` may provide a higher-quality error message on
- /// stable Rust.
- ///
- /// When in doubt it's recommended to stick to `Error::new` (or
- /// `ParseStream::error`)!
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- pub fn new_spanned<T: ToTokens, U: Display>(tokens: T, message: U) -> Self {
- return new_spanned(tokens.into_token_stream(), message.to_string());
-
- fn new_spanned(tokens: TokenStream, message: String) -> Error {
- let mut iter = tokens.into_iter();
- let start = iter.next().map_or_else(Span::call_site, |t| t.span());
- let end = iter.last().map_or(start, |t| t.span());
- Error {
- messages: vec![ErrorMessage {
- span: ThreadBound::new(SpanRange { start, end }),
- message,
- }],
- }
- }
- }
-
- /// The source location of the error.
- ///
- /// Spans are not thread-safe so this function returns `Span::call_site()`
- /// if called from a different thread than the one on which the `Error` was
- /// originally created.
- pub fn span(&self) -> Span {
- let SpanRange { start, end } = match self.messages[0].span.get() {
- Some(span) => *span,
- None => return Span::call_site(),
- };
- start.join(end).unwrap_or(start)
- }
-
- /// Render the error as an invocation of [`compile_error!`].
- ///
- /// The [`parse_macro_input!`] macro provides a convenient way to invoke
- /// this method correctly in a procedural macro.
- ///
- /// [`compile_error!`]: core::compile_error!
- /// [`parse_macro_input!`]: crate::parse_macro_input!
- pub fn to_compile_error(&self) -> TokenStream {
- let mut tokens = TokenStream::new();
- for msg in &self.messages {
- ErrorMessage::to_compile_error(msg, &mut tokens);
- }
- tokens
- }
-
- /// Render the error as an invocation of [`compile_error!`].
- ///
- /// [`compile_error!`]: core::compile_error!
- ///
- /// # Example
- ///
- /// ```
- /// # extern crate proc_macro;
- /// #
- /// use proc_macro::TokenStream;
- /// use syn::{parse_macro_input, DeriveInput, Error};
- ///
- /// # const _: &str = stringify! {
- /// #[proc_macro_derive(MyTrait)]
- /// # };
- /// pub fn derive_my_trait(input: TokenStream) -> TokenStream {
- /// let input = parse_macro_input!(input as DeriveInput);
- /// my_trait::expand(input)
- /// .unwrap_or_else(Error::into_compile_error)
- /// .into()
- /// }
- ///
- /// mod my_trait {
- /// use proc_macro2::TokenStream;
- /// use syn::{DeriveInput, Result};
- ///
- /// pub(crate) fn expand(input: DeriveInput) -> Result<TokenStream> {
- /// /* ... */
- /// # unimplemented!()
- /// }
- /// }
- /// ```
- pub fn into_compile_error(self) -> TokenStream {
- self.to_compile_error()
- }
-
- /// Add another error message to self such that when `to_compile_error()` is
- /// called, both errors will be emitted together.
- pub fn combine(&mut self, another: Error) {
- self.messages.extend(another.messages);
- }
-}
-
-impl ErrorMessage {
- fn to_compile_error(&self, tokens: &mut TokenStream) {
- let (start, end) = match self.span.get() {
- Some(range) => (range.start, range.end),
- None => (Span::call_site(), Span::call_site()),
- };
-
- // ::core::compile_error!($message)
- tokens.append(TokenTree::Punct(Punct::new_spanned(
- ':',
- Spacing::Joint,
- start,
- )));
- tokens.append(TokenTree::Punct(Punct::new_spanned(
- ':',
- Spacing::Alone,
- start,
- )));
- tokens.append(TokenTree::Ident(Ident::new("core", start)));
- tokens.append(TokenTree::Punct(Punct::new_spanned(
- ':',
- Spacing::Joint,
- start,
- )));
- tokens.append(TokenTree::Punct(Punct::new_spanned(
- ':',
- Spacing::Alone,
- start,
- )));
- tokens.append(TokenTree::Ident(Ident::new("compile_error", start)));
- tokens.append(TokenTree::Punct(Punct::new_spanned(
- '!',
- Spacing::Alone,
- start,
- )));
- tokens.append(TokenTree::Group({
- let mut group = Group::new(
- Delimiter::Brace,
- TokenStream::from({
- let mut string = Literal::string(&self.message);
- string.set_span(end);
- TokenTree::Literal(string)
- }),
- );
- group.set_span(end);
- group
- }));
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) fn new_at<T: Display>(scope: Span, cursor: Cursor, message: T) -> Error {
- if cursor.eof() {
- Error::new(scope, format!("unexpected end of input, {}", message))
- } else {
- let span = crate::buffer::open_span_of_group(cursor);
- Error::new(span, message)
- }
-}
-
-#[cfg(all(feature = "parsing", any(feature = "full", feature = "derive")))]
-pub(crate) fn new2<T: Display>(start: Span, end: Span, message: T) -> Error {
- return new2(start, end, message.to_string());
-
- fn new2(start: Span, end: Span, message: String) -> Error {
- Error {
- messages: vec![ErrorMessage {
- span: ThreadBound::new(SpanRange { start, end }),
- message,
- }],
- }
- }
-}
-
-impl Debug for Error {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- if self.messages.len() == 1 {
- formatter
- .debug_tuple("Error")
- .field(&self.messages[0])
- .finish()
- } else {
- formatter
- .debug_tuple("Error")
- .field(&self.messages)
- .finish()
- }
- }
-}
-
-impl Debug for ErrorMessage {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- Debug::fmt(&self.message, formatter)
- }
-}
-
-impl Display for Error {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str(&self.messages[0].message)
- }
-}
-
-impl Clone for Error {
- fn clone(&self) -> Self {
- Error {
- messages: self.messages.clone(),
- }
- }
-}
-
-impl Clone for ErrorMessage {
- fn clone(&self) -> Self {
- ErrorMessage {
- span: self.span,
- message: self.message.clone(),
- }
- }
-}
-
-impl Clone for SpanRange {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-impl Copy for SpanRange {}
-
-// TODO: impl core::error::Error (requires Rust 1.81+)
-impl std::error::Error for Error {}
-
-impl From<LexError> for Error {
- fn from(err: LexError) -> Self {
- Error::new(err.span(), err)
- }
-}
-
-impl IntoIterator for Error {
- type Item = Error;
- type IntoIter = IntoIter;
-
- fn into_iter(self) -> Self::IntoIter {
- IntoIter {
- messages: self.messages.into_iter(),
- }
- }
-}
-
-pub struct IntoIter {
- messages: vec::IntoIter<ErrorMessage>,
-}
-
-impl Iterator for IntoIter {
- type Item = Error;
-
- fn next(&mut self) -> Option<Self::Item> {
- Some(Error {
- messages: vec![self.messages.next()?],
- })
- }
-}
-
-impl<'a> IntoIterator for &'a Error {
- type Item = Error;
- type IntoIter = Iter<'a>;
-
- fn into_iter(self) -> Self::IntoIter {
- Iter {
- messages: self.messages.iter(),
- }
- }
-}
-
-pub struct Iter<'a> {
- messages: slice::Iter<'a, ErrorMessage>,
-}
-
-impl<'a> Iterator for Iter<'a> {
- type Item = Error;
-
- fn next(&mut self) -> Option<Self::Item> {
- Some(Error {
- messages: vec![self.messages.next()?.clone()],
- })
- }
-}
-
-impl Extend<Error> for Error {
- fn extend<T: IntoIterator<Item = Error>>(&mut self, iter: T) {
- for err in iter {
- self.combine(err);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/export.rs b/deps/crates/vendor/syn-v2/src/export.rs
deleted file mode 100644
index eca67f6adaa..00000000000
--- a/deps/crates/vendor/syn-v2/src/export.rs
+++ /dev/null
@@ -1,73 +0,0 @@
-#[doc(hidden)]
-pub use core::clone::Clone;
-#[doc(hidden)]
-pub use core::cmp::{Eq, PartialEq};
-#[doc(hidden)]
-pub use core::concat;
-#[doc(hidden)]
-pub use core::default::Default;
-#[doc(hidden)]
-pub use core::fmt::Debug;
-#[doc(hidden)]
-pub use core::hash::{Hash, Hasher};
-#[doc(hidden)]
-pub use core::marker::Copy;
-#[doc(hidden)]
-pub use core::option::Option::{None, Some};
-#[doc(hidden)]
-pub use core::result::Result::{Err, Ok};
-#[doc(hidden)]
-pub use core::stringify;
-
-#[doc(hidden)]
-pub type Formatter<'a> = core::fmt::Formatter<'a>;
-#[doc(hidden)]
-pub type FmtResult = core::fmt::Result;
-
-#[doc(hidden)]
-pub type bool = core::primitive::bool;
-#[doc(hidden)]
-pub type str = core::primitive::str;
-
-#[cfg(feature = "printing")]
-#[doc(hidden)]
-pub use quote;
-
-#[doc(hidden)]
-pub type Span = proc_macro2::Span;
-#[doc(hidden)]
-pub type TokenStream2 = proc_macro2::TokenStream;
-
-#[cfg(feature = "parsing")]
-#[doc(hidden)]
-pub use crate::group::{parse_braces, parse_brackets, parse_parens};
-
-#[doc(hidden)]
-pub use crate::span::IntoSpans;
-
-#[cfg(all(feature = "parsing", feature = "printing"))]
-#[doc(hidden)]
-pub use crate::parse_quote::parse as parse_quote;
-
-#[cfg(feature = "parsing")]
-#[doc(hidden)]
-pub use crate::token::parsing::{peek_punct, punct as parse_punct};
-
-#[cfg(feature = "printing")]
-#[doc(hidden)]
-pub use crate::token::printing::punct as print_punct;
-
-#[cfg(feature = "parsing")]
-#[doc(hidden)]
-pub use crate::token::private::CustomToken;
-
-#[cfg(feature = "proc-macro")]
-#[doc(hidden)]
-pub type TokenStream = proc_macro::TokenStream;
-
-#[cfg(feature = "printing")]
-#[doc(hidden)]
-pub use quote::{ToTokens, TokenStreamExt};
-
-#[doc(hidden)]
-pub struct private(pub(crate) ());
diff --git a/deps/crates/vendor/syn-v2/src/expr.rs b/deps/crates/vendor/syn-v2/src/expr.rs
deleted file mode 100644
index 70fc37c2550..00000000000
--- a/deps/crates/vendor/syn-v2/src/expr.rs
+++ /dev/null
@@ -1,4031 +0,0 @@
-use crate::attr::Attribute;
-#[cfg(all(feature = "parsing", feature = "full"))]
-use crate::error::Result;
-#[cfg(feature = "parsing")]
-use crate::ext::IdentExt as _;
-#[cfg(feature = "full")]
-use crate::generics::BoundLifetimes;
-use crate::ident::Ident;
-#[cfg(any(feature = "parsing", feature = "full"))]
-use crate::lifetime::Lifetime;
-use crate::lit::Lit;
-use crate::mac::Macro;
-use crate::op::{BinOp, UnOp};
-#[cfg(feature = "parsing")]
-use crate::parse::ParseStream;
-#[cfg(feature = "full")]
-use crate::pat::Pat;
-use crate::path::{AngleBracketedGenericArguments, Path, QSelf};
-use crate::punctuated::Punctuated;
-#[cfg(feature = "full")]
-use crate::stmt::Block;
-use crate::token;
-#[cfg(feature = "full")]
-use crate::ty::ReturnType;
-use crate::ty::Type;
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-#[cfg(feature = "printing")]
-use core::fmt::{self, Display};
-use core::hash::{Hash, Hasher};
-#[cfg(all(feature = "parsing", feature = "full"))]
-use core::mem;
-use proc_macro2::{Span, TokenStream};
-#[cfg(feature = "printing")]
-use quote::IdentFragment;
-
-ast_enum_of_structs! {
- /// A Rust expression.
- ///
- /// *This type is available only if Syn is built with the `"derive"` or `"full"`
- /// feature, but most of the variants are not available unless "full" is enabled.*
- ///
- /// # Syntax tree enums
- ///
- /// This type is a syntax tree enum. In Syn this and other syntax tree enums
- /// are designed to be traversed using the following rebinding idiom.
- ///
- /// ```
- /// # use syn::Expr;
- /// #
- /// # fn example(expr: Expr) {
- /// # const IGNORE: &str = stringify! {
- /// let expr: Expr = /* ... */;
- /// # };
- /// match expr {
- /// Expr::MethodCall(expr) => {
- /// /* ... */
- /// }
- /// Expr::Cast(expr) => {
- /// /* ... */
- /// }
- /// Expr::If(expr) => {
- /// /* ... */
- /// }
- ///
- /// /* ... */
- /// # _ => {}
- /// # }
- /// # }
- /// ```
- ///
- /// We begin with a variable `expr` of type `Expr` that has no fields
- /// (because it is an enum), and by matching on it and rebinding a variable
- /// with the same name `expr` we effectively imbue our variable with all of
- /// the data fields provided by the variant that it turned out to be. So for
- /// example above if we ended up in the `MethodCall` case then we get to use
- /// `expr.receiver`, `expr.args` etc; if we ended up in the `If` case we get
- /// to use `expr.cond`, `expr.then_branch`, `expr.else_branch`.
- ///
- /// This approach avoids repeating the variant names twice on every line.
- ///
- /// ```
- /// # use syn::{Expr, ExprMethodCall};
- /// #
- /// # fn example(expr: Expr) {
- /// // Repetitive; recommend not doing this.
- /// match expr {
- /// Expr::MethodCall(ExprMethodCall { method, args, .. }) => {
- /// # }
- /// # _ => {}
- /// # }
- /// # }
- /// ```
- ///
- /// In general, the name to which a syntax tree enum variant is bound should
- /// be a suitable name for the complete syntax tree enum type.
- ///
- /// ```
- /// # use syn::{Expr, ExprField};
- /// #
- /// # fn example(discriminant: ExprField) {
- /// // Binding is called `base` which is the name I would use if I were
- /// // assigning `*discriminant.base` without an `if let`.
- /// if let Expr::Tuple(base) = *discriminant.base {
- /// # }
- /// # }
- /// ```
- ///
- /// A sign that you may not be choosing the right variable names is if you
- /// see names getting repeated in your code, like accessing
- /// `receiver.receiver` or `pat.pat` or `cond.cond`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum Expr {
- /// A slice literal expression: `[a, b, c, d]`.
- Array(ExprArray),
-
- /// An assignment expression: `a = compute()`.
- Assign(ExprAssign),
-
- /// An async block: `async { ... }`.
- Async(ExprAsync),
-
- /// An await expression: `fut.await`.
- Await(ExprAwait),
-
- /// A binary operation: `a + b`, `a += b`.
- Binary(ExprBinary),
-
- /// A blocked scope: `{ ... }`.
- Block(ExprBlock),
-
- /// A `break`, with an optional label to break and an optional
- /// expression.
- Break(ExprBreak),
-
- /// A function call expression: `invoke(a, b)`.
- Call(ExprCall),
-
- /// A cast expression: `foo as f64`.
- Cast(ExprCast),
-
- /// A closure expression: `|a, b| a + b`.
- Closure(ExprClosure),
-
- /// A const block: `const { ... }`.
- Const(ExprConst),
-
- /// A `continue`, with an optional label.
- Continue(ExprContinue),
-
- /// Access of a named struct field (`obj.k`) or unnamed tuple struct
- /// field (`obj.0`).
- Field(ExprField),
-
- /// A for loop: `for pat in expr { ... }`.
- ForLoop(ExprForLoop),
-
- /// An expression contained within invisible delimiters.
- ///
- /// This variant is important for faithfully representing the precedence
- /// of expressions and is related to `None`-delimited spans in a
- /// `TokenStream`.
- Group(ExprGroup),
-
- /// An `if` expression with an optional `else` block: `if expr { ... }
- /// else { ... }`.
- ///
- /// The `else` branch expression may only be an `If` or `Block`
- /// expression, not any of the other types of expression.
- If(ExprIf),
-
- /// A square bracketed indexing expression: `vector[2]`.
- Index(ExprIndex),
-
- /// The inferred value of a const generic argument, denoted `_`.
- Infer(ExprInfer),
-
- /// A `let` guard: `let Some(x) = opt`.
- Let(ExprLet),
-
- /// A literal in place of an expression: `1`, `"foo"`.
- Lit(ExprLit),
-
- /// Conditionless loop: `loop { ... }`.
- Loop(ExprLoop),
-
- /// A macro invocation expression: `format!("{}", q)`.
- Macro(ExprMacro),
-
- /// A `match` expression: `match n { Some(n) => {}, None => {} }`.
- Match(ExprMatch),
-
- /// A method call expression: `x.foo::<T>(a, b)`.
- MethodCall(ExprMethodCall),
-
- /// A parenthesized expression: `(a + b)`.
- Paren(ExprParen),
-
- /// A path like `core::mem::replace` possibly containing generic
- /// parameters and a qualified self-type.
- ///
- /// A plain identifier like `x` is a path of length 1.
- Path(ExprPath),
-
- /// A range expression: `1..2`, `1..`, `..2`, `1..=2`, `..=2`.
- Range(ExprRange),
-
- /// Address-of operation: `&raw const place` or `&raw mut place`.
- RawAddr(ExprRawAddr),
-
- /// A referencing operation: `&a` or `&mut a`.
- Reference(ExprReference),
-
- /// An array literal constructed from one repeated element: `[0u8; N]`.
- Repeat(ExprRepeat),
-
- /// A `return`, with an optional value to be returned.
- Return(ExprReturn),
-
- /// A struct literal expression: `Point { x: 1, y: 1 }`.
- ///
- /// The `rest` provides the value of the remaining fields as in `S { a:
- /// 1, b: 1, ..rest }`.
- Struct(ExprStruct),
-
- /// A try-expression: `expr?`.
- Try(ExprTry),
-
- /// A try block: `try { ... }`.
- TryBlock(ExprTryBlock),
-
- /// A tuple expression: `(a, b, c, d)`.
- Tuple(ExprTuple),
-
- /// A unary operation: `!x`, `*x`, `-x`.
- Unary(ExprUnary),
-
- /// An unsafe block: `unsafe { ... }`.
- Unsafe(ExprUnsafe),
-
- /// Tokens in expression position not interpreted by Syn.
- Verbatim(TokenStream),
-
- /// A while loop: `while expr { ... }`.
- While(ExprWhile),
-
- /// A yield expression: `yield expr`.
- Yield(ExprYield),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match expr {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // Expr::Array(expr) => {...}
- // Expr::Assign(expr) => {...}
- // ...
- // Expr::Yield(expr) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// A slice literal expression: `[a, b, c, d]`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprArray #full {
- pub attrs: Vec<Attribute>,
- pub bracket_token: token::Bracket,
- pub elems: Punctuated<Expr, Token![,]>,
- }
-}
-
-ast_struct! {
- /// An assignment expression: `a = compute()`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprAssign #full {
- pub attrs: Vec<Attribute>,
- pub left: Box<Expr>,
- pub eq_token: Token![=],
- pub right: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// An async block: `async { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprAsync #full {
- pub attrs: Vec<Attribute>,
- pub async_token: Token![async],
- pub capture: Option<Token![move]>,
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// An await expression: `fut.await`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprAwait #full {
- pub attrs: Vec<Attribute>,
- pub base: Box<Expr>,
- pub dot_token: Token![.],
- pub await_token: Token![await],
- }
-}
-
-ast_struct! {
- /// A binary operation: `a + b`, `a += b`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprBinary {
- pub attrs: Vec<Attribute>,
- pub left: Box<Expr>,
- pub op: BinOp,
- pub right: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A blocked scope: `{ ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprBlock #full {
- pub attrs: Vec<Attribute>,
- pub label: Option<Label>,
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// A `break`, with an optional label to break and an optional
- /// expression.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprBreak #full {
- pub attrs: Vec<Attribute>,
- pub break_token: Token![break],
- pub label: Option<Lifetime>,
- pub expr: Option<Box<Expr>>,
- }
-}
-
-ast_struct! {
- /// A function call expression: `invoke(a, b)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprCall {
- pub attrs: Vec<Attribute>,
- pub func: Box<Expr>,
- pub paren_token: token::Paren,
- pub args: Punctuated<Expr, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A cast expression: `foo as f64`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprCast {
- pub attrs: Vec<Attribute>,
- pub expr: Box<Expr>,
- pub as_token: Token![as],
- pub ty: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A closure expression: `|a, b| a + b`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprClosure #full {
- pub attrs: Vec<Attribute>,
- pub lifetimes: Option<BoundLifetimes>,
- pub constness: Option<Token![const]>,
- pub movability: Option<Token![static]>,
- pub asyncness: Option<Token![async]>,
- pub capture: Option<Token![move]>,
- pub or1_token: Token![|],
- pub inputs: Punctuated<Pat, Token![,]>,
- pub or2_token: Token![|],
- pub output: ReturnType,
- pub body: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A const block: `const { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprConst #full {
- pub attrs: Vec<Attribute>,
- pub const_token: Token![const],
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// A `continue`, with an optional label.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprContinue #full {
- pub attrs: Vec<Attribute>,
- pub continue_token: Token![continue],
- pub label: Option<Lifetime>,
- }
-}
-
-ast_struct! {
- /// Access of a named struct field (`obj.k`) or unnamed tuple struct
- /// field (`obj.0`).
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprField {
- pub attrs: Vec<Attribute>,
- pub base: Box<Expr>,
- pub dot_token: Token![.],
- pub member: Member,
- }
-}
-
-ast_struct! {
- /// A for loop: `for pat in expr { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprForLoop #full {
- pub attrs: Vec<Attribute>,
- pub label: Option<Label>,
- pub for_token: Token![for],
- pub pat: Box<Pat>,
- pub in_token: Token![in],
- pub expr: Box<Expr>,
- pub body: Block,
- }
-}
-
-ast_struct! {
- /// An expression contained within invisible delimiters.
- ///
- /// This variant is important for faithfully representing the precedence
- /// of expressions and is related to `None`-delimited spans in a
- /// `TokenStream`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprGroup {
- pub attrs: Vec<Attribute>,
- pub group_token: token::Group,
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// An `if` expression with an optional `else` block: `if expr { ... }
- /// else { ... }`.
- ///
- /// The `else` branch expression may only be an `If` or `Block`
- /// expression, not any of the other types of expression.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprIf #full {
- pub attrs: Vec<Attribute>,
- pub if_token: Token![if],
- pub cond: Box<Expr>,
- pub then_branch: Block,
- pub else_branch: Option<(Token![else], Box<Expr>)>,
- }
-}
-
-ast_struct! {
- /// A square bracketed indexing expression: `vector[2]`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprIndex {
- pub attrs: Vec<Attribute>,
- pub expr: Box<Expr>,
- pub bracket_token: token::Bracket,
- pub index: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// The inferred value of a const generic argument, denoted `_`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprInfer #full {
- pub attrs: Vec<Attribute>,
- pub underscore_token: Token![_],
- }
-}
-
-ast_struct! {
- /// A `let` guard: `let Some(x) = opt`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprLet #full {
- pub attrs: Vec<Attribute>,
- pub let_token: Token![let],
- pub pat: Box<Pat>,
- pub eq_token: Token![=],
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A literal in place of an expression: `1`, `"foo"`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprLit {
- pub attrs: Vec<Attribute>,
- pub lit: Lit,
- }
-}
-
-ast_struct! {
- /// Conditionless loop: `loop { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprLoop #full {
- pub attrs: Vec<Attribute>,
- pub label: Option<Label>,
- pub loop_token: Token![loop],
- pub body: Block,
- }
-}
-
-ast_struct! {
- /// A macro invocation expression: `format!("{}", q)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprMacro {
- pub attrs: Vec<Attribute>,
- pub mac: Macro,
- }
-}
-
-ast_struct! {
- /// A `match` expression: `match n { Some(n) => {}, None => {} }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprMatch #full {
- pub attrs: Vec<Attribute>,
- pub match_token: Token![match],
- pub expr: Box<Expr>,
- pub brace_token: token::Brace,
- pub arms: Vec<Arm>,
- }
-}
-
-ast_struct! {
- /// A method call expression: `x.foo::<T>(a, b)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprMethodCall {
- pub attrs: Vec<Attribute>,
- pub receiver: Box<Expr>,
- pub dot_token: Token![.],
- pub method: Ident,
- pub turbofish: Option<AngleBracketedGenericArguments>,
- pub paren_token: token::Paren,
- pub args: Punctuated<Expr, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A parenthesized expression: `(a + b)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprParen {
- pub attrs: Vec<Attribute>,
- pub paren_token: token::Paren,
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A path like `core::mem::replace` possibly containing generic
- /// parameters and a qualified self-type.
- ///
- /// A plain identifier like `x` is a path of length 1.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprPath {
- pub attrs: Vec<Attribute>,
- pub qself: Option<QSelf>,
- pub path: Path,
- }
-}
-
-ast_struct! {
- /// A range expression: `1..2`, `1..`, `..2`, `1..=2`, `..=2`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprRange #full {
- pub attrs: Vec<Attribute>,
- pub start: Option<Box<Expr>>,
- pub limits: RangeLimits,
- pub end: Option<Box<Expr>>,
- }
-}
-
-ast_struct! {
- /// Address-of operation: `&raw const place` or `&raw mut place`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprRawAddr #full {
- pub attrs: Vec<Attribute>,
- pub and_token: Token![&],
- pub raw: Token![raw],
- pub mutability: PointerMutability,
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A referencing operation: `&a` or `&mut a`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprReference {
- pub attrs: Vec<Attribute>,
- pub and_token: Token![&],
- pub mutability: Option<Token![mut]>,
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// An array literal constructed from one repeated element: `[0u8; N]`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprRepeat #full {
- pub attrs: Vec<Attribute>,
- pub bracket_token: token::Bracket,
- pub expr: Box<Expr>,
- pub semi_token: Token![;],
- pub len: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// A `return`, with an optional value to be returned.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprReturn #full {
- pub attrs: Vec<Attribute>,
- pub return_token: Token![return],
- pub expr: Option<Box<Expr>>,
- }
-}
-
-ast_struct! {
- /// A struct literal expression: `Point { x: 1, y: 1 }`.
- ///
- /// The `rest` provides the value of the remaining fields as in `S { a:
- /// 1, b: 1, ..rest }`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprStruct {
- pub attrs: Vec<Attribute>,
- pub qself: Option<QSelf>,
- pub path: Path,
- pub brace_token: token::Brace,
- pub fields: Punctuated<FieldValue, Token![,]>,
- pub dot2_token: Option<Token![..]>,
- pub rest: Option<Box<Expr>>,
- }
-}
-
-ast_struct! {
- /// A try-expression: `expr?`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprTry #full {
- pub attrs: Vec<Attribute>,
- pub expr: Box<Expr>,
- pub question_token: Token![?],
- }
-}
-
-ast_struct! {
- /// A try block: `try { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprTryBlock #full {
- pub attrs: Vec<Attribute>,
- pub try_token: Token![try],
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// A tuple expression: `(a, b, c, d)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprTuple {
- pub attrs: Vec<Attribute>,
- pub paren_token: token::Paren,
- pub elems: Punctuated<Expr, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A unary operation: `!x`, `*x`, `-x`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ExprUnary {
- pub attrs: Vec<Attribute>,
- pub op: UnOp,
- pub expr: Box<Expr>,
- }
-}
-
-ast_struct! {
- /// An unsafe block: `unsafe { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprUnsafe #full {
- pub attrs: Vec<Attribute>,
- pub unsafe_token: Token![unsafe],
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// A while loop: `while expr { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprWhile #full {
- pub attrs: Vec<Attribute>,
- pub label: Option<Label>,
- pub while_token: Token![while],
- pub cond: Box<Expr>,
- pub body: Block,
- }
-}
-
-ast_struct! {
- /// A yield expression: `yield expr`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ExprYield #full {
- pub attrs: Vec<Attribute>,
- pub yield_token: Token![yield],
- pub expr: Option<Box<Expr>>,
- }
-}
-
-impl Expr {
- /// An unspecified invalid expression.
- ///
- /// ```
- /// use core::mem;
- /// use quote::ToTokens;
- /// use syn::{parse_quote, Expr};
- ///
- /// fn unparenthesize(e: &mut Expr) {
- /// while let Expr::Paren(paren) = e {
- /// *e = mem::replace(&mut *paren.expr, Expr::PLACEHOLDER);
- /// }
- /// }
- ///
- /// fn main() {
- /// let mut e: Expr = parse_quote! { ((1 + 1)) };
- /// unparenthesize(&mut e);
- /// assert_eq!("1 + 1", e.to_token_stream().to_string());
- /// }
- /// ```
- pub const PLACEHOLDER: Self = Expr::Path(ExprPath {
- attrs: Vec::new(),
- qself: None,
- path: Path { leading_colon: None, segments: Punctuated::new() },
- });
-
- /// An alternative to the primary `Expr::parse` parser (from the [`Parse`]
- /// trait) for ambiguous syntactic positions in which a trailing brace
- /// should not be taken as part of the expression.
- ///
- /// [`Parse`]: crate::parse::Parse
- ///
- /// Rust grammar has an ambiguity where braces sometimes turn a path
- /// expression into a struct initialization and sometimes do not. In the
- /// following code, the expression `S {}` is one expression. Presumably
- /// there is an empty struct `struct S {}` defined somewhere which it is
- /// instantiating.
- ///
- /// ```
- /// # struct S;
- /// # impl core::ops::Deref for S {
- /// # type Target = bool;
- /// # fn deref(&self) -> &Self::Target {
- /// # &true
- /// # }
- /// # }
- /// let _ = *S {};
- ///
- /// // parsed by rustc as: `*(S {})`
- /// ```
- ///
- /// We would want to parse the above using `Expr::parse` after the `=`
- /// token.
- ///
- /// But in the following, `S {}` is *not* a struct init expression.
- ///
- /// ```
- /// # const S: &bool = &true;
- /// if *S {} {}
- ///
- /// // parsed by rustc as:
- /// //
- /// // if (*S) {
- /// // /* empty block */
- /// // }
- /// // {
- /// // /* another empty block */
- /// // }
- /// ```
- ///
- /// For that reason we would want to parse if-conditions using
- /// `Expr::parse_without_eager_brace` after the `if` token. Same for similar
- /// syntactic positions such as the condition expr after a `while` token or
- /// the expr at the top of a `match`.
- ///
- /// The Rust grammar's choices around which way this ambiguity is resolved
- /// at various syntactic positions is fairly arbitrary. Really either parse
- /// behavior could work in most positions, and language designers just
- /// decide each case based on which is more likely to be what the programmer
- /// had in mind most of the time.
- ///
- /// ```
- /// # struct S;
- /// # fn doc() -> S {
- /// if return S {} {}
- /// # unreachable!()
- /// # }
- ///
- /// // parsed by rustc as:
- /// //
- /// // if (return (S {})) {
- /// // }
- /// //
- /// // but could equally well have been this other arbitrary choice:
- /// //
- /// // if (return S) {
- /// // }
- /// // {}
- /// ```
- ///
- /// Note the grammar ambiguity on trailing braces is distinct from
- /// precedence and is not captured by assigning a precedence level to the
- /// braced struct init expr in relation to other operators. This can be
- /// illustrated by `return 0..S {}` vs `match 0..S {}`. The former parses as
- /// `return (0..(S {}))` implying tighter precedence for struct init than
- /// `..`, while the latter parses as `match (0..S) {}` implying tighter
- /// precedence for `..` than struct init, a contradiction.
- #[cfg(all(feature = "full", feature = "parsing"))]
- #[cfg_attr(docsrs, doc(cfg(all(feature = "full", feature = "parsing"))))]
- pub fn parse_without_eager_brace(input: ParseStream) -> Result<Expr> {
- parsing::ambiguous_expr(input, parsing::AllowStruct(false))
- }
-
- /// An alternative to the primary `Expr::parse` parser (from the [`Parse`]
- /// trait) for syntactic positions in which expression boundaries are placed
- /// more eagerly than done by the typical expression grammar. This includes
- /// expressions at the head of a statement or in the right-hand side of a
- /// `match` arm.
- ///
- /// [`Parse`]: crate::parse::Parse
- ///
- /// Compare the following cases:
- ///
- /// 1.
- /// ```
- /// # let result = ();
- /// # let guard = false;
- /// # let cond = true;
- /// # let f = true;
- /// # let g = f;
- /// #
- /// let _ = match result {
- /// () if guard => if cond { f } else { g }
- /// () => false,
- /// };
- /// ```
- ///
- /// 2.
- /// ```
- /// # let cond = true;
- /// # let f = ();
- /// # let g = f;
- /// #
- /// let _ = || {
- /// if cond { f } else { g }
- /// ()
- /// };
- /// ```
- ///
- /// 3.
- /// ```
- /// # let cond = true;
- /// # let f = || ();
- /// # let g = f;
- /// #
- /// let _ = [if cond { f } else { g } ()];
- /// ```
- ///
- /// The same sequence of tokens `if cond { f } else { g } ()` appears in
- /// expression position 3 times. The first two syntactic positions use eager
- /// placement of expression boundaries, and parse as `Expr::If`, with the
- /// adjacent `()` becoming `Pat::Tuple` or `Expr::Tuple`. In contrast, the
- /// third case uses standard expression boundaries and parses as
- /// `Expr::Call`.
- ///
- /// As with [`parse_without_eager_brace`], this ambiguity in the Rust
- /// grammar is independent of precedence.
- ///
- /// [`parse_without_eager_brace`]: Self::parse_without_eager_brace
- #[cfg(all(feature = "full", feature = "parsing"))]
- #[cfg_attr(docsrs, doc(cfg(all(feature = "full", feature = "parsing"))))]
- pub fn parse_with_earlier_boundary_rule(input: ParseStream) -> Result<Expr> {
- parsing::parse_with_earlier_boundary_rule(input)
- }
-
- /// Returns whether the next token in the parse stream is one that might
- /// possibly form the beginning of an expr.
- ///
- /// This classification is a load-bearing part of the grammar of some Rust
- /// expressions, notably `return` and `break`. For example `return < …` will
- /// never parse `<` as a binary operator regardless of what comes after,
- /// because `<` is a legal starting token for an expression and so it's
- /// required to be continued as a return value, such as `return <Struct as
- /// Trait>::CONST`. Meanwhile `return > …` treats the `>` as a binary
- /// operator because it cannot be a starting token for any Rust expression.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn peek(input: ParseStream) -> bool {
- input.peek(Ident::peek_any) && !input.peek(Token![as]) // value name or keyword
- || input.peek(token::Paren) // tuple
- || input.peek(token::Bracket) // array
- || input.peek(token::Brace) // block
- || input.peek(Lit) // literal
- || input.peek(Token![!]) && !input.peek(Token![!=]) // operator not
- || input.peek(Token![-]) && !input.peek(Token![-=]) && !input.peek(Token![->]) // unary minus
- || input.peek(Token![*]) && !input.peek(Token![*=]) // dereference
- || input.peek(Token![|]) && !input.peek(Token![|=]) // closure
- || input.peek(Token![&]) && !input.peek(Token![&=]) // reference
- || input.peek(Token![..]) // range
- || input.peek(Token![<]) && !input.peek(Token![<=]) && !input.peek(Token![<<=]) // associated path
- || input.peek(Token![::]) // absolute path
- || input.peek(Lifetime) // labeled loop
- || input.peek(Token![#]) // expression attributes
- }
-
- #[cfg(all(feature = "parsing", feature = "full"))]
- pub(crate) fn replace_attrs(&mut self, new: Vec<Attribute>) -> Vec<Attribute> {
- match self {
- Expr::Array(ExprArray { attrs, .. })
- | Expr::Assign(ExprAssign { attrs, .. })
- | Expr::Async(ExprAsync { attrs, .. })
- | Expr::Await(ExprAwait { attrs, .. })
- | Expr::Binary(ExprBinary { attrs, .. })
- | Expr::Block(ExprBlock { attrs, .. })
- | Expr::Break(ExprBreak { attrs, .. })
- | Expr::Call(ExprCall { attrs, .. })
- | Expr::Cast(ExprCast { attrs, .. })
- | Expr::Closure(ExprClosure { attrs, .. })
- | Expr::Const(ExprConst { attrs, .. })
- | Expr::Continue(ExprContinue { attrs, .. })
- | Expr::Field(ExprField { attrs, .. })
- | Expr::ForLoop(ExprForLoop { attrs, .. })
- | Expr::Group(ExprGroup { attrs, .. })
- | Expr::If(ExprIf { attrs, .. })
- | Expr::Index(ExprIndex { attrs, .. })
- | Expr::Infer(ExprInfer { attrs, .. })
- | Expr::Let(ExprLet { attrs, .. })
- | Expr::Lit(ExprLit { attrs, .. })
- | Expr::Loop(ExprLoop { attrs, .. })
- | Expr::Macro(ExprMacro { attrs, .. })
- | Expr::Match(ExprMatch { attrs, .. })
- | Expr::MethodCall(ExprMethodCall { attrs, .. })
- | Expr::Paren(ExprParen { attrs, .. })
- | Expr::Path(ExprPath { attrs, .. })
- | Expr::Range(ExprRange { attrs, .. })
- | Expr::RawAddr(ExprRawAddr { attrs, .. })
- | Expr::Reference(ExprReference { attrs, .. })
- | Expr::Repeat(ExprRepeat { attrs, .. })
- | Expr::Return(ExprReturn { attrs, .. })
- | Expr::Struct(ExprStruct { attrs, .. })
- | Expr::Try(ExprTry { attrs, .. })
- | Expr::TryBlock(ExprTryBlock { attrs, .. })
- | Expr::Tuple(ExprTuple { attrs, .. })
- | Expr::Unary(ExprUnary { attrs, .. })
- | Expr::Unsafe(ExprUnsafe { attrs, .. })
- | Expr::While(ExprWhile { attrs, .. })
- | Expr::Yield(ExprYield { attrs, .. }) => mem::replace(attrs, new),
- Expr::Verbatim(_) => Vec::new(),
- }
- }
-}
-
-ast_enum! {
- /// A struct or tuple struct field accessed in a struct literal or field
- /// expression.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum Member {
- /// A named field like `self.x`.
- Named(Ident),
- /// An unnamed field like `self.0`.
- Unnamed(Index),
- }
-}
-
-impl From<Ident> for Member {
- fn from(ident: Ident) -> Member {
- Member::Named(ident)
- }
-}
-
-impl From<Index> for Member {
- fn from(index: Index) -> Member {
- Member::Unnamed(index)
- }
-}
-
-impl From<usize> for Member {
- fn from(index: usize) -> Member {
- Member::Unnamed(Index::from(index))
- }
-}
-
-impl Eq for Member {}
-
-impl PartialEq for Member {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (Member::Named(this), Member::Named(other)) => this == other,
- (Member::Unnamed(this), Member::Unnamed(other)) => this == other,
- _ => false,
- }
- }
-}
-
-impl Hash for Member {
- fn hash<H: Hasher>(&self, state: &mut H) {
- match self {
- Member::Named(m) => m.hash(state),
- Member::Unnamed(m) => m.hash(state),
- }
- }
-}
-
-#[cfg(feature = "printing")]
-impl IdentFragment for Member {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match self {
- Member::Named(m) => Display::fmt(m, formatter),
- Member::Unnamed(m) => Display::fmt(&m.index, formatter),
- }
- }
-
- fn span(&self) -> Option<Span> {
- match self {
- Member::Named(m) => Some(m.span()),
- Member::Unnamed(m) => Some(m.span),
- }
- }
-}
-
-#[cfg(any(feature = "parsing", feature = "printing"))]
-impl Member {
- pub(crate) fn is_named(&self) -> bool {
- match self {
- Member::Named(_) => true,
- Member::Unnamed(_) => false,
- }
- }
-}
-
-ast_struct! {
- /// The index of an unnamed tuple struct field.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Index {
- pub index: u32,
- pub span: Span,
- }
-}
-
-impl From<usize> for Index {
- fn from(index: usize) -> Index {
- assert!(index < u32::MAX as usize);
- Index { index: index as u32, span: Span::call_site() }
- }
-}
-
-impl Eq for Index {}
-
-impl PartialEq for Index {
- fn eq(&self, other: &Self) -> bool {
- self.index == other.index
- }
-}
-
-impl Hash for Index {
- fn hash<H: Hasher>(&self, state: &mut H) {
- self.index.hash(state);
- }
-}
-
-#[cfg(feature = "printing")]
-impl IdentFragment for Index {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- Display::fmt(&self.index, formatter)
- }
-
- fn span(&self) -> Option<Span> {
- Some(self.span)
- }
-}
-
-ast_struct! {
- /// A field-value pair in a struct literal.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct FieldValue {
- pub attrs: Vec<Attribute>,
- pub member: Member,
-
- /// The colon in `Struct { x: x }`. If written in shorthand like
- /// `Struct { x }`, there is no colon.
- pub colon_token: Option<Token![:]>,
-
- pub expr: Expr,
- }
-}
-
-#[cfg(feature = "full")]
-ast_struct! {
- /// A lifetime labeling a `for`, `while`, or `loop`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Label {
- pub name: Lifetime,
- pub colon_token: Token![:],
- }
-}
-
-#[cfg(feature = "full")]
-ast_struct! {
- /// One arm of a `match` expression: `0..=10 => { return true; }`.
- ///
- /// As in:
- ///
- /// ```
- /// # fn f() -> bool {
- /// # let n = 0;
- /// match n {
- /// 0..=10 => {
- /// return true;
- /// }
- /// // ...
- /// # _ => {}
- /// }
- /// # false
- /// # }
- /// ```
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Arm {
- pub attrs: Vec<Attribute>,
- pub pat: Pat,
- pub guard: Option<(Token![if], Box<Expr>)>,
- pub fat_arrow_token: Token![=>],
- pub body: Box<Expr>,
- pub comma: Option<Token![,]>,
- }
-}
-
-#[cfg(feature = "full")]
-ast_enum! {
- /// Limit types of a range, inclusive or exclusive.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub enum RangeLimits {
- /// Inclusive at the beginning, exclusive at the end.
- HalfOpen(Token![..]),
- /// Inclusive at the beginning and end.
- Closed(Token![..=]),
- }
-}
-
-#[cfg(feature = "full")]
-ast_enum! {
- /// Mutability of a raw pointer (`*const T`, `*mut T`), in which non-mutable
- /// isn't the implicit default.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub enum PointerMutability {
- Const(Token![const]),
- Mut(Token![mut]),
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- #[cfg(feature = "full")]
- use crate::attr;
- use crate::attr::Attribute;
- #[cfg(feature = "full")]
- use crate::buffer::Cursor;
- #[cfg(feature = "full")]
- use crate::classify;
- use crate::error::{Error, Result};
- #[cfg(feature = "full")]
- use crate::expr::{
- Arm, ExprArray, ExprAssign, ExprAsync, ExprAwait, ExprBlock, ExprBreak, ExprClosure,
- ExprConst, ExprContinue, ExprForLoop, ExprIf, ExprInfer, ExprLet, ExprLoop, ExprMatch,
- ExprRange, ExprRawAddr, ExprRepeat, ExprReturn, ExprTry, ExprTryBlock, ExprUnsafe,
- ExprWhile, ExprYield, Label, PointerMutability, RangeLimits,
- };
- use crate::expr::{
- Expr, ExprBinary, ExprCall, ExprCast, ExprField, ExprGroup, ExprIndex, ExprLit, ExprMacro,
- ExprMethodCall, ExprParen, ExprPath, ExprReference, ExprStruct, ExprTuple, ExprUnary,
- FieldValue, Index, Member,
- };
- #[cfg(feature = "full")]
- use crate::generics::{self, BoundLifetimes};
- use crate::ident::Ident;
- #[cfg(feature = "full")]
- use crate::lifetime::Lifetime;
- use crate::lit::{Lit, LitFloat, LitInt};
- use crate::mac::{self, Macro};
- use crate::op::BinOp;
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- #[cfg(feature = "full")]
- use crate::pat::{Pat, PatType};
- use crate::path::{self, AngleBracketedGenericArguments, Path, QSelf};
- use crate::precedence::Precedence;
- use crate::punctuated::Punctuated;
- #[cfg(feature = "full")]
- use crate::stmt::Block;
- use crate::token;
- use crate::ty;
- #[cfg(feature = "full")]
- use crate::ty::{ReturnType, Type};
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::format;
- use alloc::string::ToString;
- use alloc::vec::Vec;
- use core::mem;
- #[cfg(feature = "full")]
- use proc_macro2::{Span, TokenStream};
-
- // When we're parsing expressions which occur before blocks, like in an if
- // statement's condition, we cannot parse a struct literal.
- //
- // Struct literals are ambiguous in certain positions
- // https://github.com/rust-lang/rfcs/pull/92
- #[cfg(feature = "full")]
- pub(super) struct AllowStruct(pub bool);
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Expr {
- fn parse(input: ParseStream) -> Result<Self> {
- ambiguous_expr(
- input,
- #[cfg(feature = "full")]
- AllowStruct(true),
- )
- }
- }
-
- #[cfg(feature = "full")]
- pub(super) fn parse_with_earlier_boundary_rule(input: ParseStream) -> Result<Expr> {
- let mut attrs = input.call(expr_attrs)?;
- let mut expr = if input.peek(token::Group) {
- let allow_struct = AllowStruct(true);
- let atom = expr_group(input, allow_struct)?;
- if continue_parsing_early(&atom) {
- trailer_helper(input, atom)?
- } else {
- atom
- }
- } else if input.peek(Token![if]) {
- Expr::If(input.parse()?)
- } else if input.peek(Token![while]) {
- Expr::While(input.parse()?)
- } else if input.peek(Token![for])
- && !generics::parsing::choose_generics_over_qpath_after_keyword(input)
- {
- Expr::ForLoop(input.parse()?)
- } else if input.peek(Token![loop]) {
- Expr::Loop(input.parse()?)
- } else if input.peek(Token![match]) {
- Expr::Match(input.parse()?)
- } else if input.peek(Token![try]) && input.peek2(token::Brace) {
- Expr::TryBlock(input.parse()?)
- } else if input.peek(Token![unsafe]) {
- Expr::Unsafe(input.parse()?)
- } else if input.peek(Token![const]) && input.peek2(token::Brace) {
- Expr::Const(input.parse()?)
- } else if input.peek(token::Brace) {
- Expr::Block(input.parse()?)
- } else if input.peek(Lifetime) {
- atom_labeled(input)?
- } else {
- let allow_struct = AllowStruct(true);
- unary_expr(input, allow_struct)?
- };
-
- if continue_parsing_early(&expr) {
- attrs.extend(expr.replace_attrs(Vec::new()));
- expr.replace_attrs(attrs);
-
- let allow_struct = AllowStruct(true);
- return parse_expr(input, expr, allow_struct, Precedence::MIN);
- }
-
- if input.peek(Token![.]) && !input.peek(Token![..]) || input.peek(Token![?]) {
- expr = trailer_helper(input, expr)?;
-
- attrs.extend(expr.replace_attrs(Vec::new()));
- expr.replace_attrs(attrs);
-
- let allow_struct = AllowStruct(true);
- return parse_expr(input, expr, allow_struct, Precedence::MIN);
- }
-
- attrs.extend(expr.replace_attrs(Vec::new()));
- expr.replace_attrs(attrs);
- Ok(expr)
- }
-
- #[cfg(feature = "full")]
- impl Copy for AllowStruct {}
-
- #[cfg(feature = "full")]
- impl Clone for AllowStruct {
- fn clone(&self) -> Self {
- *self
- }
- }
-
- #[cfg(feature = "full")]
- fn parse_expr(
- input: ParseStream,
- mut lhs: Expr,
- allow_struct: AllowStruct,
- base: Precedence,
- ) -> Result<Expr> {
- loop {
- let ahead = input.fork();
- if let Expr::Range(_) = lhs {
- // A range cannot be the left-hand side of another binary operator.
- break;
- } else if let Ok(op) = ahead.parse::<BinOp>() {
- let precedence = Precedence::of_binop(&op);
- if precedence < base {
- break;
- }
- if precedence == Precedence::Assign {
- if let Expr::Range(_) = lhs {
- break;
- }
- }
- if precedence == Precedence::Compare {
- if let Expr::Binary(lhs) = &lhs {
- if Precedence::of_binop(&lhs.op) == Precedence::Compare {
- return Err(input.error("comparison operators cannot be chained"));
- }
- }
- }
- input.advance_to(&ahead);
- let right = parse_binop_rhs(input, allow_struct, precedence)?;
- lhs =
- Expr::Binary(ExprBinary { attrs: Vec::new(), left: Box::new(lhs), op, right });
- } else if Precedence::Assign >= base
- && input.peek(Token![=])
- && !input.peek(Token![=>])
- && match lhs {
- Expr::Range(_) => false,
- _ => true,
- }
- {
- let eq_token: Token![=] = input.parse()?;
- let right = parse_binop_rhs(input, allow_struct, Precedence::Assign)?;
- lhs = Expr::Assign(ExprAssign {
- attrs: Vec::new(),
- left: Box::new(lhs),
- eq_token,
- right,
- });
- } else if Precedence::Range >= base && input.peek(Token![..]) {
- let limits: RangeLimits = input.parse()?;
- let end = parse_range_end(input, &limits, allow_struct)?;
- lhs = Expr::Range(ExprRange {
- attrs: Vec::new(),
- start: Some(Box::new(lhs)),
- limits,
- end,
- });
- } else if Precedence::Cast >= base && input.peek(Token![as]) {
- let as_token: Token![as] = input.parse()?;
- let allow_plus = false;
- let allow_group_generic = false;
- let ty = ty::parsing::ambig_ty(input, allow_plus, allow_group_generic)?;
- check_cast(input)?;
- lhs = Expr::Cast(ExprCast {
- attrs: Vec::new(),
- expr: Box::new(lhs),
- as_token,
- ty: Box::new(ty),
- });
- } else {
- break;
- }
- }
- Ok(lhs)
- }
-
- #[cfg(not(feature = "full"))]
- fn parse_expr(input: ParseStream, mut lhs: Expr, base: Precedence) -> Result<Expr> {
- loop {
- let ahead = input.fork();
- if let Ok(op) = ahead.parse::<BinOp>() {
- let precedence = Precedence::of_binop(&op);
- if precedence < base {
- break;
- }
- if precedence == Precedence::Compare {
- if let Expr::Binary(lhs) = &lhs {
- if Precedence::of_binop(&lhs.op) == Precedence::Compare {
- return Err(input.error("comparison operators cannot be chained"));
- }
- }
- }
- input.advance_to(&ahead);
- let right = parse_binop_rhs(input, precedence)?;
- lhs =
- Expr::Binary(ExprBinary { attrs: Vec::new(), left: Box::new(lhs), op, right });
- } else if Precedence::Cast >= base && input.peek(Token![as]) {
- let as_token: Token![as] = input.parse()?;
- let allow_plus = false;
- let allow_group_generic = false;
- let ty = ty::parsing::ambig_ty(input, allow_plus, allow_group_generic)?;
- check_cast(input)?;
- lhs = Expr::Cast(ExprCast {
- attrs: Vec::new(),
- expr: Box::new(lhs),
- as_token,
- ty: Box::new(ty),
- });
- } else {
- break;
- }
- }
- Ok(lhs)
- }
-
- fn parse_binop_rhs(
- input: ParseStream,
- #[cfg(feature = "full")] allow_struct: AllowStruct,
- precedence: Precedence,
- ) -> Result<Box<Expr>> {
- let mut rhs = unary_expr(
- input,
- #[cfg(feature = "full")]
- allow_struct,
- )?;
- loop {
- let next = peek_precedence(input);
- if next > precedence || next == precedence && precedence == Precedence::Assign {
- let cursor = input.cursor();
- rhs = parse_expr(
- input,
- rhs,
- #[cfg(feature = "full")]
- allow_struct,
- next,
- )?;
- if cursor == input.cursor() {
- // Bespoke grammar restrictions separate from precedence can
- // cause parsing to not advance, such as `..a` being
- // disallowed in the left-hand side of binary operators,
- // even ones that have lower precedence than `..`.
- break;
- }
- } else {
- break;
- }
- }
- Ok(Box::new(rhs))
- }
-
- fn peek_precedence(input: ParseStream) -> Precedence {
- if let Ok(op) = input.fork().parse() {
- Precedence::of_binop(&op)
- } else if input.peek(Token![=]) && !input.peek(Token![=>]) {
- Precedence::Assign
- } else if input.peek(Token![..]) {
- Precedence::Range
- } else if input.peek(Token![as]) {
- Precedence::Cast
- } else {
- Precedence::MIN
- }
- }
-
- // Parse an arbitrary expression.
- pub(super) fn ambiguous_expr(
- input: ParseStream,
- #[cfg(feature = "full")] allow_struct: AllowStruct,
- ) -> Result<Expr> {
- let lhs = unary_expr(
- input,
- #[cfg(feature = "full")]
- allow_struct,
- )?;
- parse_expr(
- input,
- lhs,
- #[cfg(feature = "full")]
- allow_struct,
- Precedence::MIN,
- )
- }
-
- #[cfg(feature = "full")]
- fn expr_attrs(input: ParseStream) -> Result<Vec<Attribute>> {
- let mut attrs = Vec::new();
- while !input.peek(token::Group) && input.peek(Token![#]) {
- attrs.push(input.call(attr::parsing::single_parse_outer)?);
- }
- Ok(attrs)
- }
-
- // <UnOp> <trailer>
- // & <trailer>
- // &mut <trailer>
- // box <trailer>
- #[cfg(feature = "full")]
- fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> {
- let begin = input.cursor();
- let attrs = input.call(expr_attrs)?;
- if input.peek(token::Group) {
- return trailer_expr(begin, attrs, input, allow_struct);
- }
-
- if input.peek(Token![&]) {
- let and_token: Token![&] = input.parse()?;
- let raw: Option<Token![raw]> = if input.peek(Token![raw])
- && (input.peek2(Token![mut]) || input.peek2(Token![const]))
- {
- Some(input.parse()?)
- } else {
- None
- };
- let mutability: Option<Token![mut]> = input.parse()?;
- let const_token: Option<Token![const]> =
- if raw.is_some() && mutability.is_none() { Some(input.parse()?) } else { None };
- let expr = Box::new(unary_expr(input, allow_struct)?);
- if let Some(raw) = raw {
- Ok(Expr::RawAddr(ExprRawAddr {
- attrs,
- and_token,
- raw,
- mutability: match mutability {
- Some(mut_token) => PointerMutability::Mut(mut_token),
- None => PointerMutability::Const(const_token.unwrap()),
- },
- expr,
- }))
- } else {
- Ok(Expr::Reference(ExprReference { attrs, and_token, mutability, expr }))
- }
- } else if input.peek(Token![*]) || input.peek(Token![!]) || input.peek(Token![-]) {
- expr_unary(input, attrs, allow_struct).map(Expr::Unary)
- } else {
- trailer_expr(begin, attrs, input, allow_struct)
- }
- }
-
- #[cfg(not(feature = "full"))]
- fn unary_expr(input: ParseStream) -> Result<Expr> {
- if input.peek(Token![&]) {
- Ok(Expr::Reference(ExprReference {
- attrs: Vec::new(),
- and_token: input.parse()?,
- mutability: input.parse()?,
- expr: Box::new(unary_expr(input)?),
- }))
- } else if input.peek(Token![*]) || input.peek(Token![!]) || input.peek(Token![-]) {
- Ok(Expr::Unary(ExprUnary {
- attrs: Vec::new(),
- op: input.parse()?,
- expr: Box::new(unary_expr(input)?),
- }))
- } else {
- trailer_expr(input)
- }
- }
-
- // <atom> (..<args>) ...
- // <atom> . <ident> (..<args>) ...
- // <atom> . <ident> ...
- // <atom> . <lit> ...
- // <atom> [ <expr> ] ...
- // <atom> ? ...
- #[cfg(feature = "full")]
- fn trailer_expr(
- begin: Cursor,
- mut attrs: Vec<Attribute>,
- input: ParseStream,
- allow_struct: AllowStruct,
- ) -> Result<Expr> {
- let atom = atom_expr(input, allow_struct)?;
- let mut e = trailer_helper(input, atom)?;
-
- if let Expr::Verbatim(tokens) = &mut e {
- *tokens = verbatim::between(begin, input.cursor());
- } else if !attrs.is_empty() {
- if let Expr::Range(range) = e {
- let spans: &[Span] = match &range.limits {
- RangeLimits::HalfOpen(limits) => &limits.spans,
- RangeLimits::Closed(limits) => &limits.spans,
- };
- return Err(crate::error::new2(
- spans[0],
- *spans.last().unwrap(),
- "attributes are not allowed on range expressions starting with `..`",
- ));
- }
- let inner_attrs = e.replace_attrs(Vec::new());
- attrs.extend(inner_attrs);
- e.replace_attrs(attrs);
- }
-
- Ok(e)
- }
-
- #[cfg(feature = "full")]
- fn trailer_helper(input: ParseStream, mut e: Expr) -> Result<Expr> {
- loop {
- if input.peek(token::Paren) {
- let content;
- e = Expr::Call(ExprCall {
- attrs: Vec::new(),
- func: Box::new(e),
- paren_token: parenthesized!(content in input),
- args: content.parse_terminated(Expr::parse, Token![,])?,
- });
- } else if input.peek(Token![.])
- && !input.peek(Token![..])
- && match e {
- Expr::Range(_) => false,
- _ => true,
- }
- {
- let mut dot_token: Token![.] = input.parse()?;
-
- let float_token: Option<LitFloat> = input.parse()?;
- if let Some(float_token) = float_token {
- if multi_index(&mut e, &mut dot_token, float_token)? {
- continue;
- }
- }
-
- let await_token: Option<Token![await]> = input.parse()?;
- if let Some(await_token) = await_token {
- e = Expr::Await(ExprAwait {
- attrs: Vec::new(),
- base: Box::new(e),
- dot_token,
- await_token,
- });
- continue;
- }
-
- let member: Member = input.parse()?;
- let turbofish = if member.is_named() && input.peek(Token![::]) {
- Some(AngleBracketedGenericArguments::parse_turbofish(input)?)
- } else {
- None
- };
-
- if turbofish.is_some() || input.peek(token::Paren) {
- if let Member::Named(method) = member {
- let content;
- e = Expr::MethodCall(ExprMethodCall {
- attrs: Vec::new(),
- receiver: Box::new(e),
- dot_token,
- method,
- turbofish,
- paren_token: parenthesized!(content in input),
- args: content.parse_terminated(Expr::parse, Token![,])?,
- });
- continue;
- }
- }
-
- e = Expr::Field(ExprField {
- attrs: Vec::new(),
- base: Box::new(e),
- dot_token,
- member,
- });
- } else if input.peek(token::Bracket) {
- let content;
- e = Expr::Index(ExprIndex {
- attrs: Vec::new(),
- expr: Box::new(e),
- bracket_token: bracketed!(content in input),
- index: content.parse()?,
- });
- } else if input.peek(Token![?])
- && match e {
- Expr::Range(_) => false,
- _ => true,
- }
- {
- e = Expr::Try(ExprTry {
- attrs: Vec::new(),
- expr: Box::new(e),
- question_token: input.parse()?,
- });
- } else {
- break;
- }
- }
- Ok(e)
- }
-
- #[cfg(not(feature = "full"))]
- fn trailer_expr(input: ParseStream) -> Result<Expr> {
- let mut e = atom_expr(input)?;
-
- loop {
- if input.peek(token::Paren) {
- let content;
- e = Expr::Call(ExprCall {
- attrs: Vec::new(),
- func: Box::new(e),
- paren_token: parenthesized!(content in input),
- args: content.parse_terminated(Expr::parse, Token![,])?,
- });
- } else if input.peek(Token![.])
- && !input.peek(Token![..])
- && !input.peek2(Token![await])
- {
- let mut dot_token: Token![.] = input.parse()?;
-
- let float_token: Option<LitFloat> = input.parse()?;
- if let Some(float_token) = float_token {
- if multi_index(&mut e, &mut dot_token, float_token)? {
- continue;
- }
- }
-
- let member: Member = input.parse()?;
- let turbofish = if member.is_named() && input.peek(Token![::]) {
- let colon2_token: Token![::] = input.parse()?;
- let turbofish =
- AngleBracketedGenericArguments::do_parse(Some(colon2_token), input)?;
- Some(turbofish)
- } else {
- None
- };
-
- if turbofish.is_some() || input.peek(token::Paren) {
- if let Member::Named(method) = member {
- let content;
- e = Expr::MethodCall(ExprMethodCall {
- attrs: Vec::new(),
- receiver: Box::new(e),
- dot_token,
- method,
- turbofish,
- paren_token: parenthesized!(content in input),
- args: content.parse_terminated(Expr::parse, Token![,])?,
- });
- continue;
- }
- }
-
- e = Expr::Field(ExprField {
- attrs: Vec::new(),
- base: Box::new(e),
- dot_token,
- member,
- });
- } else if input.peek(token::Bracket) {
- let content;
- e = Expr::Index(ExprIndex {
- attrs: Vec::new(),
- expr: Box::new(e),
- bracket_token: bracketed!(content in input),
- index: content.parse()?,
- });
- } else {
- break;
- }
- }
-
- Ok(e)
- }
-
- // Parse all atomic expressions which don't have to worry about precedence
- // interactions, as they are fully contained.
- #[cfg(feature = "full")]
- fn atom_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> {
- if input.peek(token::Group) {
- expr_group(input, allow_struct)
- } else if input.peek(Lit) {
- input.parse().map(Expr::Lit)
- } else if input.peek(Token![async])
- && (input.peek2(token::Brace) || input.peek2(Token![move]) && input.peek3(token::Brace))
- {
- input.parse().map(Expr::Async)
- } else if input.peek(Token![try]) && input.peek2(token::Brace) {
- input.parse().map(Expr::TryBlock)
- } else if input.peek(Token![|])
- || input.peek(Token![move])
- || input.peek(Token![for])
- && generics::parsing::choose_generics_over_qpath_after_keyword(input)
- || input.peek(Token![const]) && !input.peek2(token::Brace)
- || input.peek(Token![static])
- || input.peek(Token![async]) && (input.peek2(Token![|]) || input.peek2(Token![move]))
- {
- expr_closure(input, allow_struct).map(Expr::Closure)
- } else if token::parsing::peek_keyword(input.cursor(), "builtin") && input.peek2(Token![#])
- {
- expr_builtin(input)
- } else if input.peek(Ident)
- || input.peek(Token![::])
- || input.peek(Token![<])
- || input.peek(Token![self])
- || input.peek(Token![Self])
- || input.peek(Token![super])
- || input.peek(Token![crate])
- || input.peek(Token![try]) && (input.peek2(Token![!]) || input.peek2(Token![::]))
- {
- path_or_macro_or_struct(input, allow_struct)
- } else if input.peek(token::Paren) {
- paren_or_tuple(input)
- } else if input.peek(Token![break]) {
- expr_break(input, allow_struct).map(Expr::Break)
- } else if input.peek(Token![continue]) {
- input.parse().map(Expr::Continue)
- } else if input.peek(Token![return]) {
- input.parse().map(Expr::Return)
- } else if input.peek(Token![become]) {
- expr_become(input)
- } else if input.peek(token::Bracket) {
- array_or_repeat(input)
- } else if input.peek(Token![let]) {
- expr_let(input, allow_struct).map(Expr::Let)
- } else if input.peek(Token![if]) {
- input.parse().map(Expr::If)
- } else if input.peek(Token![while]) {
- input.parse().map(Expr::While)
- } else if input.peek(Token![for]) {
- input.parse().map(Expr::ForLoop)
- } else if input.peek(Token![loop]) {
- input.parse().map(Expr::Loop)
- } else if input.peek(Token![match]) {
- input.parse().map(Expr::Match)
- } else if input.peek(Token![yield]) {
- input.parse().map(Expr::Yield)
- } else if input.peek(Token![unsafe]) {
- input.parse().map(Expr::Unsafe)
- } else if input.peek(Token![const]) {
- input.parse().map(Expr::Const)
- } else if input.peek(token::Brace) {
- input.parse().map(Expr::Block)
- } else if input.peek(Token![..]) {
- expr_range(input, allow_struct).map(Expr::Range)
- } else if input.peek(Token![_]) {
- input.parse().map(Expr::Infer)
- } else if input.peek(Lifetime) {
- atom_labeled(input)
- } else {
- Err(input.error("expected an expression"))
- }
- }
-
- #[cfg(feature = "full")]
- fn atom_labeled(input: ParseStream) -> Result<Expr> {
- let the_label: Label = input.parse()?;
- let mut expr = if input.peek(Token![while]) {
- Expr::While(input.parse()?)
- } else if input.peek(Token![for]) {
- Expr::ForLoop(input.parse()?)
- } else if input.peek(Token![loop]) {
- Expr::Loop(input.parse()?)
- } else if input.peek(token::Brace) {
- Expr::Block(input.parse()?)
- } else {
- return Err(input.error("expected loop or block expression"));
- };
- match &mut expr {
- Expr::While(ExprWhile { label, .. })
- | Expr::ForLoop(ExprForLoop { label, .. })
- | Expr::Loop(ExprLoop { label, .. })
- | Expr::Block(ExprBlock { label, .. }) => *label = Some(the_label),
- _ => unreachable!(),
- }
- Ok(expr)
- }
-
- #[cfg(not(feature = "full"))]
- fn atom_expr(input: ParseStream) -> Result<Expr> {
- if input.peek(token::Group) {
- expr_group(input)
- } else if input.peek(Lit) {
- input.parse().map(Expr::Lit)
- } else if input.peek(token::Paren) {
- paren_or_tuple(input)
- } else if input.peek(Ident)
- || input.peek(Token![::])
- || input.peek(Token![<])
- || input.peek(Token![self])
- || input.peek(Token![Self])
- || input.peek(Token![super])
- || input.peek(Token![crate])
- {
- path_or_macro_or_struct(input)
- } else if input.is_empty() {
- Err(input.error("expected an expression"))
- } else {
- if input.peek(token::Brace) {
- let scan = input.fork();
- let content;
- braced!(content in scan);
- if content.parse::<Expr>().is_ok() && content.is_empty() {
- let expr_block = verbatim::between(input.cursor(), scan.cursor());
- input.advance_to(&scan);
- return Ok(Expr::Verbatim(expr_block));
- }
- }
- Err(input.error("unsupported expression; enable syn's features=[\"full\"]"))
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_builtin(input: ParseStream) -> Result<Expr> {
- let begin = input.cursor();
-
- token::parsing::keyword(input, "builtin")?;
- input.parse::<Token![#]>()?;
- input.parse::<Ident>()?;
-
- let args;
- parenthesized!(args in input);
- args.parse::<TokenStream>()?;
-
- Ok(Expr::Verbatim(verbatim::between(begin, input.cursor())))
- }
-
- fn path_or_macro_or_struct(
- input: ParseStream,
- #[cfg(feature = "full")] allow_struct: AllowStruct,
- ) -> Result<Expr> {
- let expr_style = true;
- let (qself, path) = path::parsing::qpath(input, expr_style)?;
- rest_of_path_or_macro_or_struct(
- qself,
- path,
- input,
- #[cfg(feature = "full")]
- allow_struct,
- )
- }
-
- fn rest_of_path_or_macro_or_struct(
- qself: Option<QSelf>,
- path: Path,
- input: ParseStream,
- #[cfg(feature = "full")] allow_struct: AllowStruct,
- ) -> Result<Expr> {
- if qself.is_none()
- && input.peek(Token![!])
- && !input.peek(Token![!=])
- && path.is_mod_style()
- {
- let bang_token: Token![!] = input.parse()?;
- let (delimiter, tokens) = mac::parse_delimiter(input)?;
- return Ok(Expr::Macro(ExprMacro {
- attrs: Vec::new(),
- mac: Macro { path, bang_token, delimiter, tokens },
- }));
- }
-
- #[cfg(not(feature = "full"))]
- let allow_struct = (true,);
- if allow_struct.0 && input.peek(token::Brace) {
- return expr_struct_helper(input, qself, path).map(Expr::Struct);
- }
-
- Ok(Expr::Path(ExprPath { attrs: Vec::new(), qself, path }))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprMacro { attrs: Vec::new(), mac: input.parse()? })
- }
- }
-
- fn paren_or_tuple(input: ParseStream) -> Result<Expr> {
- let content;
- let paren_token = parenthesized!(content in input);
- if content.is_empty() {
- return Ok(Expr::Tuple(ExprTuple {
- attrs: Vec::new(),
- paren_token,
- elems: Punctuated::new(),
- }));
- }
-
- let first: Expr = content.parse()?;
- if content.is_empty() {
- return Ok(Expr::Paren(ExprParen {
- attrs: Vec::new(),
- paren_token,
- expr: Box::new(first),
- }));
- }
-
- let mut elems = Punctuated::new();
- elems.push_value(first);
- while !content.is_empty() {
- let punct = content.parse()?;
- elems.push_punct(punct);
- if content.is_empty() {
- break;
- }
- let value = content.parse()?;
- elems.push_value(value);
- }
- Ok(Expr::Tuple(ExprTuple { attrs: Vec::new(), paren_token, elems }))
- }
-
- #[cfg(feature = "full")]
- fn array_or_repeat(input: ParseStream) -> Result<Expr> {
- let content;
- let bracket_token = bracketed!(content in input);
- if content.is_empty() {
- return Ok(Expr::Array(ExprArray {
- attrs: Vec::new(),
- bracket_token,
- elems: Punctuated::new(),
- }));
- }
-
- let first: Expr = content.parse()?;
- if content.is_empty() || content.peek(Token![,]) {
- let mut elems = Punctuated::new();
- elems.push_value(first);
- while !content.is_empty() {
- let punct = content.parse()?;
- elems.push_punct(punct);
- if content.is_empty() {
- break;
- }
- let value = content.parse()?;
- elems.push_value(value);
- }
- Ok(Expr::Array(ExprArray { attrs: Vec::new(), bracket_token, elems }))
- } else if content.peek(Token![;]) {
- let semi_token: Token![;] = content.parse()?;
- let len: Expr = content.parse()?;
- Ok(Expr::Repeat(ExprRepeat {
- attrs: Vec::new(),
- bracket_token,
- expr: Box::new(first),
- semi_token,
- len: Box::new(len),
- }))
- } else {
- Err(content.error("expected `,` or `;`"))
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprArray {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- let bracket_token = bracketed!(content in input);
- let mut elems = Punctuated::new();
-
- while !content.is_empty() {
- let first: Expr = content.parse()?;
- elems.push_value(first);
- if content.is_empty() {
- break;
- }
- let punct = content.parse()?;
- elems.push_punct(punct);
- }
-
- Ok(ExprArray { attrs: Vec::new(), bracket_token, elems })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprRepeat {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(ExprRepeat {
- bracket_token: bracketed!(content in input),
- attrs: Vec::new(),
- expr: content.parse()?,
- semi_token: content.parse()?,
- len: content.parse()?,
- })
- }
- }
-
- #[cfg(feature = "full")]
- fn continue_parsing_early(mut expr: &Expr) -> bool {
- while let Expr::Group(group) = expr {
- expr = &group.expr;
- }
- match expr {
- Expr::If(_)
- | Expr::While(_)
- | Expr::ForLoop(_)
- | Expr::Loop(_)
- | Expr::Match(_)
- | Expr::TryBlock(_)
- | Expr::Unsafe(_)
- | Expr::Const(_)
- | Expr::Block(_) => false,
- _ => true,
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprLit {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprLit { attrs: Vec::new(), lit: input.parse()? })
- }
- }
-
- fn expr_group(
- input: ParseStream,
- #[cfg(feature = "full")] allow_struct: AllowStruct,
- ) -> Result<Expr> {
- let group = crate::group::parse_group(input)?;
- let mut inner: Expr = group.content.parse()?;
-
- match inner {
- Expr::Path(mut expr) if expr.attrs.is_empty() => {
- let grouped_len = expr.path.segments.len();
- Path::parse_rest(input, &mut expr.path, true)?;
- match rest_of_path_or_macro_or_struct(
- expr.qself,
- expr.path,
- input,
- #[cfg(feature = "full")]
- allow_struct,
- )? {
- Expr::Path(expr) if expr.path.segments.len() == grouped_len => {
- inner = Expr::Path(expr);
- }
- extended => return Ok(extended),
- }
- }
- _ => {}
- }
-
- Ok(Expr::Group(ExprGroup {
- attrs: Vec::new(),
- group_token: group.token,
- expr: Box::new(inner),
- }))
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprParen {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(ExprParen {
- attrs: Vec::new(),
- paren_token: parenthesized!(content in input),
- expr: content.parse()?,
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprLet {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_struct = AllowStruct(true);
- expr_let(input, allow_struct)
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_let(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprLet> {
- Ok(ExprLet {
- attrs: Vec::new(),
- let_token: input.parse()?,
- pat: Box::new(Pat::parse_multi_with_leading_vert(input)?),
- eq_token: input.parse()?,
- expr: Box::new({
- let lhs = unary_expr(input, allow_struct)?;
- parse_expr(input, lhs, allow_struct, Precedence::Compare)?
- }),
- })
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprIf {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
-
- let mut clauses = Vec::new();
- let mut expr;
- loop {
- let if_token: Token![if] = input.parse()?;
- let cond = input.call(Expr::parse_without_eager_brace)?;
- let then_branch: Block = input.parse()?;
-
- expr = ExprIf {
- attrs: Vec::new(),
- if_token,
- cond: Box::new(cond),
- then_branch,
- else_branch: None,
- };
-
- if !input.peek(Token![else]) {
- break;
- }
-
- let else_token: Token![else] = input.parse()?;
- let lookahead = input.lookahead1();
- if lookahead.peek(Token![if]) {
- expr.else_branch = Some((else_token, Box::new(Expr::PLACEHOLDER)));
- clauses.push(expr);
- } else if lookahead.peek(token::Brace) {
- expr.else_branch = Some((
- else_token,
- Box::new(Expr::Block(ExprBlock {
- attrs: Vec::new(),
- label: None,
- block: input.parse()?,
- })),
- ));
- break;
- } else {
- return Err(lookahead.error());
- }
- }
-
- while let Some(mut prev) = clauses.pop() {
- *prev.else_branch.as_mut().unwrap().1 = Expr::If(expr);
- expr = prev;
- }
- expr.attrs = attrs;
- Ok(expr)
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprInfer {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprInfer {
- attrs: input.call(Attribute::parse_outer)?,
- underscore_token: input.parse()?,
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprForLoop {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let label: Option<Label> = input.parse()?;
- let for_token: Token![for] = input.parse()?;
-
- let pat = Pat::parse_multi_with_leading_vert(input)?;
-
- let in_token: Token![in] = input.parse()?;
- let expr: Expr = input.call(Expr::parse_without_eager_brace)?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprForLoop {
- attrs,
- label,
- for_token,
- pat: Box::new(pat),
- in_token,
- expr: Box::new(expr),
- body: Block { brace_token, stmts },
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprLoop {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let label: Option<Label> = input.parse()?;
- let loop_token: Token![loop] = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprLoop { attrs, label, loop_token, body: Block { brace_token, stmts } })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprMatch {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let match_token: Token![match] = input.parse()?;
- let expr = Expr::parse_without_eager_brace(input)?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
-
- let arms = Arm::parse_multiple(&content)?;
-
- Ok(ExprMatch { attrs, match_token, expr: Box::new(expr), brace_token, arms })
- }
- }
-
- macro_rules! impl_by_parsing_expr {
- (
- $(
- $expr_type:ty, $variant:ident, $msg:expr,
- )*
- ) => {
- $(
- #[cfg(all(feature = "full", feature = "printing"))]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for $expr_type {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut expr: Expr = input.parse()?;
- loop {
- match expr {
- Expr::$variant(inner) => return Ok(inner),
- Expr::Group(next) => expr = *next.expr,
- _ => return Err(Error::new_spanned(expr, $msg)),
- }
- }
- }
- }
- )*
- };
- }
-
- impl_by_parsing_expr! {
- ExprAssign, Assign, "expected assignment expression",
- ExprAwait, Await, "expected await expression",
- ExprBinary, Binary, "expected binary operation",
- ExprCall, Call, "expected function call expression",
- ExprCast, Cast, "expected cast expression",
- ExprField, Field, "expected struct field access",
- ExprIndex, Index, "expected indexing expression",
- ExprMethodCall, MethodCall, "expected method call expression",
- ExprRange, Range, "expected range expression",
- ExprTry, Try, "expected try expression",
- ExprTuple, Tuple, "expected tuple expression",
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprUnary {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = Vec::new();
- let allow_struct = AllowStruct(true);
- expr_unary(input, attrs, allow_struct)
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_unary(
- input: ParseStream,
- attrs: Vec<Attribute>,
- allow_struct: AllowStruct,
- ) -> Result<ExprUnary> {
- Ok(ExprUnary {
- attrs,
- op: input.parse()?,
- expr: Box::new(unary_expr(input, allow_struct)?),
- })
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprClosure {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_struct = AllowStruct(true);
- expr_closure(input, allow_struct)
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprRawAddr {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_struct = AllowStruct(true);
- Ok(ExprRawAddr {
- attrs: Vec::new(),
- and_token: input.parse()?,
- raw: input.parse()?,
- mutability: input.parse()?,
- expr: Box::new(unary_expr(input, allow_struct)?),
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprReference {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_struct = AllowStruct(true);
- Ok(ExprReference {
- attrs: Vec::new(),
- and_token: input.parse()?,
- mutability: input.parse()?,
- expr: Box::new(unary_expr(input, allow_struct)?),
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprBreak {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_struct = AllowStruct(true);
- expr_break(input, allow_struct)
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprReturn {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprReturn {
- attrs: Vec::new(),
- return_token: input.parse()?,
- expr: {
- if Expr::peek(input) {
- Some(input.parse()?)
- } else {
- None
- }
- },
- })
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_become(input: ParseStream) -> Result<Expr> {
- let begin = input.cursor();
- input.parse::<Token![become]>()?;
- input.parse::<Expr>()?;
- Ok(Expr::Verbatim(verbatim::between(begin, input.cursor())))
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprTryBlock {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprTryBlock { attrs: Vec::new(), try_token: input.parse()?, block: input.parse()? })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprYield {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprYield {
- attrs: Vec::new(),
- yield_token: input.parse()?,
- expr: {
- if Expr::peek(input) {
- Some(input.parse()?)
- } else {
- None
- }
- },
- })
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_closure(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprClosure> {
- let lifetimes: Option<BoundLifetimes> = input.parse()?;
- let constness: Option<Token![const]> = input.parse()?;
- let movability: Option<Token![static]> = input.parse()?;
- let asyncness: Option<Token![async]> = input.parse()?;
- let capture: Option<Token![move]> = input.parse()?;
- let or1_token: Token![|] = input.parse()?;
-
- let mut inputs = Punctuated::new();
- loop {
- if input.peek(Token![|]) {
- break;
- }
- let value = closure_arg(input)?;
- inputs.push_value(value);
- if input.peek(Token![|]) {
- break;
- }
- let punct: Token![,] = input.parse()?;
- inputs.push_punct(punct);
- }
-
- let or2_token: Token![|] = input.parse()?;
-
- let (output, body) = if input.peek(Token![->]) {
- let arrow_token: Token![->] = input.parse()?;
- let ty: Type = input.parse()?;
- let body: Block = input.parse()?;
- let output = ReturnType::Type(arrow_token, Box::new(ty));
- let block = Expr::Block(ExprBlock { attrs: Vec::new(), label: None, block: body });
- (output, block)
- } else {
- let body = ambiguous_expr(input, allow_struct)?;
- (ReturnType::Default, body)
- };
-
- Ok(ExprClosure {
- attrs: Vec::new(),
- lifetimes,
- constness,
- movability,
- asyncness,
- capture,
- or1_token,
- inputs,
- or2_token,
- output,
- body: Box::new(body),
- })
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprAsync {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprAsync {
- attrs: Vec::new(),
- async_token: input.parse()?,
- capture: input.parse()?,
- block: input.parse()?,
- })
- }
- }
-
- #[cfg(feature = "full")]
- fn closure_arg(input: ParseStream) -> Result<Pat> {
- let attrs = input.call(Attribute::parse_outer)?;
- let mut pat = Pat::parse_single(input)?;
-
- if input.peek(Token![:]) {
- Ok(Pat::Type(PatType {
- attrs,
- pat: Box::new(pat),
- colon_token: input.parse()?,
- ty: input.parse()?,
- }))
- } else {
- match &mut pat {
- Pat::Const(pat) => pat.attrs = attrs,
- Pat::Ident(pat) => pat.attrs = attrs,
- Pat::Lit(pat) => pat.attrs = attrs,
- Pat::Macro(pat) => pat.attrs = attrs,
- Pat::Or(pat) => pat.attrs = attrs,
- Pat::Paren(pat) => pat.attrs = attrs,
- Pat::Path(pat) => pat.attrs = attrs,
- Pat::Range(pat) => pat.attrs = attrs,
- Pat::Reference(pat) => pat.attrs = attrs,
- Pat::Rest(pat) => pat.attrs = attrs,
- Pat::Slice(pat) => pat.attrs = attrs,
- Pat::Struct(pat) => pat.attrs = attrs,
- Pat::Tuple(pat) => pat.attrs = attrs,
- Pat::TupleStruct(pat) => pat.attrs = attrs,
- Pat::Type(_) => unreachable!(),
- Pat::Verbatim(_) => {}
- Pat::Wild(pat) => pat.attrs = attrs,
- }
- Ok(pat)
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprWhile {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let label: Option<Label> = input.parse()?;
- let while_token: Token![while] = input.parse()?;
- let cond = Expr::parse_without_eager_brace(input)?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprWhile {
- attrs,
- label,
- while_token,
- cond: Box::new(cond),
- body: Block { brace_token, stmts },
- })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprConst {
- fn parse(input: ParseStream) -> Result<Self> {
- let const_token: Token![const] = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- let inner_attrs = content.call(Attribute::parse_inner)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprConst { attrs: inner_attrs, const_token, block: Block { brace_token, stmts } })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Label {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(Label { name: input.parse()?, colon_token: input.parse()? })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Option<Label> {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Lifetime) {
- input.parse().map(Some)
- } else {
- Ok(None)
- }
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprContinue {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ExprContinue {
- attrs: Vec::new(),
- continue_token: input.parse()?,
- label: input.parse()?,
- })
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_break(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprBreak> {
- let break_token: Token![break] = input.parse()?;
-
- let ahead = input.fork();
- let label: Option<Lifetime> = ahead.parse()?;
- if label.is_some() && ahead.peek(Token![:]) {
- // Not allowed: `break 'label: loop {...}`
- // Parentheses are required. `break ('label: loop {...})`
- let _: Expr = input.parse()?;
- let start_span = label.unwrap().apostrophe;
- let end_span = input.cursor().prev_span();
- return Err(crate::error::new2(start_span, end_span, "parentheses required"));
- }
-
- input.advance_to(&ahead);
- let expr = if Expr::peek(input) && (allow_struct.0 || !input.peek(token::Brace)) {
- Some(input.parse()?)
- } else {
- None
- };
-
- Ok(ExprBreak { attrs: Vec::new(), break_token, label, expr })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for FieldValue {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let member: Member = input.parse()?;
- let (colon_token, value) = if input.peek(Token![:]) || !member.is_named() {
- let colon_token: Token![:] = input.parse()?;
- let value: Expr = input.parse()?;
- (Some(colon_token), value)
- } else if let Member::Named(ident) = &member {
- let value = Expr::Path(ExprPath {
- attrs: Vec::new(),
- qself: None,
- path: Path::from(ident.clone()),
- });
- (None, value)
- } else {
- unreachable!()
- };
-
- Ok(FieldValue { attrs, member, colon_token, expr: value })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprStruct {
- fn parse(input: ParseStream) -> Result<Self> {
- let expr_style = true;
- let (qself, path) = path::parsing::qpath(input, expr_style)?;
- expr_struct_helper(input, qself, path)
- }
- }
-
- fn expr_struct_helper(
- input: ParseStream,
- qself: Option<QSelf>,
- path: Path,
- ) -> Result<ExprStruct> {
- let content;
- let brace_token = braced!(content in input);
-
- let mut fields = Punctuated::new();
- while !content.is_empty() {
- if content.peek(Token![..]) {
- return Ok(ExprStruct {
- attrs: Vec::new(),
- qself,
- path,
- brace_token,
- fields,
- dot2_token: Some(content.parse()?),
- rest: if content.is_empty() { None } else { Some(Box::new(content.parse()?)) },
- });
- }
-
- fields.push(content.parse()?);
- if content.is_empty() {
- break;
- }
- let punct: Token![,] = content.parse()?;
- fields.push_punct(punct);
- }
-
- Ok(ExprStruct {
- attrs: Vec::new(),
- qself,
- path,
- brace_token,
- fields,
- dot2_token: None,
- rest: None,
- })
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprUnsafe {
- fn parse(input: ParseStream) -> Result<Self> {
- let unsafe_token: Token![unsafe] = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- let inner_attrs = content.call(Attribute::parse_inner)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprUnsafe { attrs: inner_attrs, unsafe_token, block: Block { brace_token, stmts } })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprBlock {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let label: Option<Label> = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ExprBlock { attrs, label, block: Block { brace_token, stmts } })
- }
- }
-
- #[cfg(feature = "full")]
- fn expr_range(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprRange> {
- let limits: RangeLimits = input.parse()?;
- let end = parse_range_end(input, &limits, allow_struct)?;
- Ok(ExprRange { attrs: Vec::new(), start: None, limits, end })
- }
-
- #[cfg(feature = "full")]
- fn parse_range_end(
- input: ParseStream,
- limits: &RangeLimits,
- allow_struct: AllowStruct,
- ) -> Result<Option<Box<Expr>>> {
- if matches!(limits, RangeLimits::HalfOpen(_))
- && (input.is_empty()
- || input.peek(Token![,])
- || input.peek(Token![;])
- || input.peek(Token![.]) && !input.peek(Token![..])
- || input.peek(Token![?])
- || input.peek(Token![=>])
- || !allow_struct.0 && input.peek(token::Brace)
- || input.peek(Token![=])
- || input.peek(Token![+])
- || input.peek(Token![/])
- || input.peek(Token![%])
- || input.peek(Token![^])
- || input.peek(Token![>])
- || input.peek(Token![<=])
- || input.peek(Token![!=])
- || input.peek(Token![-=])
- || input.peek(Token![*=])
- || input.peek(Token![&=])
- || input.peek(Token![|=])
- || input.peek(Token![<<=])
- || input.peek(Token![as]))
- {
- Ok(None)
- } else {
- let end = parse_binop_rhs(input, allow_struct, Precedence::Range)?;
- Ok(Some(end))
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for RangeLimits {
- fn parse(input: ParseStream) -> Result<Self> {
- let lookahead = input.lookahead1();
- let dot_dot = lookahead.peek(Token![..]);
- let dot_dot_eq = dot_dot && lookahead.peek(Token![..=]);
- let dot_dot_dot = dot_dot && input.peek(Token![...]);
- if dot_dot_eq {
- input.parse().map(RangeLimits::Closed)
- } else if dot_dot && !dot_dot_dot {
- input.parse().map(RangeLimits::HalfOpen)
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- #[cfg(feature = "full")]
- impl RangeLimits {
- pub(crate) fn parse_obsolete(input: ParseStream) -> Result<Self> {
- let lookahead = input.lookahead1();
- let dot_dot = lookahead.peek(Token![..]);
- let dot_dot_eq = dot_dot && lookahead.peek(Token![..=]);
- let dot_dot_dot = dot_dot && input.peek(Token![...]);
- if dot_dot_eq {
- input.parse().map(RangeLimits::Closed)
- } else if dot_dot_dot {
- let dot3: Token![...] = input.parse()?;
- Ok(RangeLimits::Closed(Token))
- } else if dot_dot {
- input.parse().map(RangeLimits::HalfOpen)
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ExprPath {
- fn parse(input: ParseStream) -> Result<Self> {
- #[cfg(not(feature = "full"))]
- let attrs = Vec::new();
- #[cfg(feature = "full")]
- let attrs = input.call(Attribute::parse_outer)?;
-
- let expr_style = true;
- let (qself, path) = path::parsing::qpath(input, expr_style)?;
-
- Ok(ExprPath { attrs, qself, path })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Member {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Ident) {
- input.parse().map(Member::Named)
- } else if input.peek(LitInt) {
- input.parse().map(Member::Unnamed)
- } else {
- Err(input.error("expected identifier or integer"))
- }
- }
- }
-
- #[cfg(feature = "full")]
- impl Arm {
- pub(crate) fn parse_multiple(input: ParseStream) -> Result<Vec<Self>> {
- let mut arms = Vec::new();
- while !input.is_empty() {
- arms.push(input.call(Arm::parse)?);
- }
- Ok(arms)
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Arm {
- fn parse(input: ParseStream) -> Result<Arm> {
- let requires_comma;
- Ok(Arm {
- attrs: input.call(Attribute::parse_outer)?,
- pat: Pat::parse_multi_with_leading_vert(input)?,
- guard: {
- if input.peek(Token![if]) {
- let if_token: Token![if] = input.parse()?;
- let guard: Expr = input.parse()?;
- Some((if_token, Box::new(guard)))
- } else {
- None
- }
- },
- fat_arrow_token: input.parse()?,
- body: {
- let body = Expr::parse_with_earlier_boundary_rule(input)?;
- requires_comma = classify::requires_comma_to_be_match_arm(&body);
- Box::new(body)
- },
- comma: {
- if requires_comma && !input.is_empty() {
- Some(input.parse()?)
- } else {
- input.parse()?
- }
- },
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Index {
- fn parse(input: ParseStream) -> Result<Self> {
- let lit: LitInt = input.parse()?;
- if lit.suffix().is_empty() {
- Ok(Index {
- index: lit
- .base10_digits()
- .parse()
- .map_err(|err| Error::new(lit.span(), err))?,
- span: lit.span(),
- })
- } else {
- Err(Error::new(lit.span(), "expected unsuffixed integer"))
- }
- }
- }
-
- fn multi_index(e: &mut Expr, dot_token: &mut Token![.], float: LitFloat) -> Result<bool> {
- let float_token = float.token();
- let float_span = float_token.span();
- let mut float_repr = float_token.to_string();
- let trailing_dot = float_repr.ends_with('.');
- if trailing_dot {
- float_repr.truncate(float_repr.len() - 1);
- }
-
- let mut offset = 0;
- for part in float_repr.split('.') {
- let mut index: Index =
- crate::parse_str(part).map_err(|err| Error::new(float_span, err))?;
- let part_end = offset + part.len();
- index.span = float_token.subspan(offset..part_end).unwrap_or(float_span);
-
- let base = mem::replace(e, Expr::PLACEHOLDER);
- *e = Expr::Field(ExprField {
- attrs: Vec::new(),
- base: Box::new(base),
- dot_token: Token,
- member: Member::Unnamed(index),
- });
-
- let dot_span = float_token.subspan(part_end..part_end + 1).unwrap_or(float_span);
- *dot_token = Token;
- offset = part_end + 1;
- }
-
- Ok(!trailing_dot)
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for PointerMutability {
- fn parse(input: ParseStream) -> Result<Self> {
- let lookahead = input.lookahead1();
- if lookahead.peek(Token![const]) {
- Ok(PointerMutability::Const(input.parse()?))
- } else if lookahead.peek(Token![mut]) {
- Ok(PointerMutability::Mut(input.parse()?))
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- fn check_cast(input: ParseStream) -> Result<()> {
- let kind = if input.peek(Token![.]) && !input.peek(Token![..]) {
- if input.peek2(Token![await]) {
- "`.await`"
- } else if input.peek2(Ident) && (input.peek3(token::Paren) || input.peek3(Token![::])) {
- "a method call"
- } else {
- "a field access"
- }
- } else if input.peek(Token![?]) {
- "`?`"
- } else if input.peek(token::Bracket) {
- "indexing"
- } else if input.peek(token::Paren) {
- "a function call"
- } else {
- return Ok(());
- };
- let msg = format!("casts cannot be followed by {}", kind);
- Err(input.error(msg))
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) mod printing {
- use crate::attr::Attribute;
- #[cfg(feature = "full")]
- use crate::attr::FilterAttrs;
- #[cfg(feature = "full")]
- use crate::classify;
- #[cfg(feature = "full")]
- use crate::expr::{
- Arm, ExprArray, ExprAssign, ExprAsync, ExprAwait, ExprBlock, ExprBreak, ExprClosure,
- ExprConst, ExprContinue, ExprForLoop, ExprIf, ExprInfer, ExprLet, ExprLoop, ExprMatch,
- ExprRange, ExprRawAddr, ExprRepeat, ExprReturn, ExprTry, ExprTryBlock, ExprUnsafe,
- ExprWhile, ExprYield, Label, PointerMutability, RangeLimits,
- };
- use crate::expr::{
- Expr, ExprBinary, ExprCall, ExprCast, ExprField, ExprGroup, ExprIndex, ExprLit, ExprMacro,
- ExprMethodCall, ExprParen, ExprPath, ExprReference, ExprStruct, ExprTuple, ExprUnary,
- FieldValue, Index, Member,
- };
- use crate::fixup::FixupContext;
- use crate::op::BinOp;
- use crate::path;
- use crate::path::printing::PathStyle;
- use crate::precedence::Precedence;
- use crate::token;
- #[cfg(feature = "full")]
- use crate::ty::ReturnType;
- use proc_macro2::{Literal, Span, TokenStream};
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg(feature = "full")]
- pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) {
- tokens.append_all(attrs.outer());
- }
-
- #[cfg(feature = "full")]
- fn inner_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) {
- tokens.append_all(attrs.inner());
- }
-
- #[cfg(not(feature = "full"))]
- pub(crate) fn outer_attrs_to_tokens(_attrs: &[Attribute], _tokens: &mut TokenStream) {}
-
- pub(crate) fn print_subexpression(
- expr: &Expr,
- needs_group: bool,
- tokens: &mut TokenStream,
- mut fixup: FixupContext,
- ) {
- if needs_group {
- // If we are surrounding the whole cond in parentheses, such as:
- //
- // if (return Struct {}) {}
- //
- // then there is no need for parenthesizing the individual struct
- // expressions within. On the other hand if the whole cond is not
- // parenthesized, then print_expr must parenthesize exterior struct
- // literals.
- //
- // if x == (Struct {}) {}
- //
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| print_expr(expr, tokens, fixup);
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- pub(crate) fn print_expr(expr: &Expr, tokens: &mut TokenStream, mut fixup: FixupContext) {
- #[cfg(feature = "full")]
- let needs_group = fixup.parenthesize(expr);
- #[cfg(not(feature = "full"))]
- let needs_group = false;
-
- if needs_group {
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| match expr {
- #[cfg(feature = "full")]
- Expr::Array(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Assign(e) => print_expr_assign(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Async(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Await(e) => print_expr_await(e, tokens, fixup),
- Expr::Binary(e) => print_expr_binary(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Block(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Break(e) => print_expr_break(e, tokens, fixup),
- Expr::Call(e) => print_expr_call(e, tokens, fixup),
- Expr::Cast(e) => print_expr_cast(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Closure(e) => print_expr_closure(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Const(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Continue(e) => e.to_tokens(tokens),
- Expr::Field(e) => print_expr_field(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::ForLoop(e) => e.to_tokens(tokens),
- Expr::Group(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::If(e) => e.to_tokens(tokens),
- Expr::Index(e) => print_expr_index(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Infer(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Let(e) => print_expr_let(e, tokens, fixup),
- Expr::Lit(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Loop(e) => e.to_tokens(tokens),
- Expr::Macro(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Match(e) => e.to_tokens(tokens),
- Expr::MethodCall(e) => print_expr_method_call(e, tokens, fixup),
- Expr::Paren(e) => e.to_tokens(tokens),
- Expr::Path(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Range(e) => print_expr_range(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::RawAddr(e) => print_expr_raw_addr(e, tokens, fixup),
- Expr::Reference(e) => print_expr_reference(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Repeat(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Return(e) => print_expr_return(e, tokens, fixup),
- Expr::Struct(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Try(e) => print_expr_try(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::TryBlock(e) => e.to_tokens(tokens),
- Expr::Tuple(e) => e.to_tokens(tokens),
- Expr::Unary(e) => print_expr_unary(e, tokens, fixup),
- #[cfg(feature = "full")]
- Expr::Unsafe(e) => e.to_tokens(tokens),
- Expr::Verbatim(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::While(e) => e.to_tokens(tokens),
- #[cfg(feature = "full")]
- Expr::Yield(e) => print_expr_yield(e, tokens, fixup),
-
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- };
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprArray {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.bracket_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprAssign {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_assign(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_assign(e: &ExprAssign, tokens: &mut TokenStream, mut fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
-
- let needs_group = !e.attrs.is_empty();
- if needs_group {
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| {
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- &e.left,
- false,
- false,
- Precedence::Assign,
- );
- print_subexpression(&e.left, left_prec <= Precedence::Range, tokens, left_fixup);
- e.eq_token.to_tokens(tokens);
- print_expr(
- &e.right,
- tokens,
- fixup.rightmost_subexpression_fixup(false, false, Precedence::Assign),
- );
- };
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprAsync {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.async_token.to_tokens(tokens);
- self.capture.to_tokens(tokens);
- self.block.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprAwait {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_await(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_await(e: &ExprAwait, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_dot(&e.base);
- print_subexpression(&e.base, left_prec < Precedence::Unambiguous, tokens, left_fixup);
- e.dot_token.to_tokens(tokens);
- e.await_token.to_tokens(tokens);
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprBinary {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_binary(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_binary(e: &ExprBinary, tokens: &mut TokenStream, mut fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
-
- let needs_group = !e.attrs.is_empty();
- if needs_group {
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| {
- let binop_prec = Precedence::of_binop(&e.op);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- &e.left,
- #[cfg(feature = "full")]
- match &e.op {
- BinOp::Sub(_)
- | BinOp::Mul(_)
- | BinOp::And(_)
- | BinOp::Or(_)
- | BinOp::BitAnd(_)
- | BinOp::BitOr(_)
- | BinOp::Shl(_)
- | BinOp::Lt(_) => true,
- _ => false,
- },
- match &e.op {
- BinOp::Shl(_) | BinOp::Lt(_) => true,
- _ => false,
- },
- #[cfg(feature = "full")]
- binop_prec,
- );
- let left_needs_group = match binop_prec {
- Precedence::Assign => left_prec <= Precedence::Range,
- Precedence::Compare => left_prec <= binop_prec,
- _ => left_prec < binop_prec,
- };
-
- let right_fixup = fixup.rightmost_subexpression_fixup(
- #[cfg(feature = "full")]
- false,
- #[cfg(feature = "full")]
- false,
- #[cfg(feature = "full")]
- binop_prec,
- );
- let right_needs_group = binop_prec != Precedence::Assign
- && right_fixup.rightmost_subexpression_precedence(&e.right) <= binop_prec;
-
- print_subexpression(&e.left, left_needs_group, tokens, left_fixup);
- e.op.to_tokens(tokens);
- print_subexpression(&e.right, right_needs_group, tokens, right_fixup);
- };
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprBlock {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.label.to_tokens(tokens);
- self.block.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.block.stmts);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprBreak {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_break(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_break(e: &ExprBreak, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.break_token.to_tokens(tokens);
- e.label.to_tokens(tokens);
- if let Some(value) = &e.expr {
- print_subexpression(
- value,
- // Parenthesize `break 'inner: loop { break 'inner 1 } + 1`
- // ^---------------------------------^
- e.label.is_none() && classify::expr_leading_label(value),
- tokens,
- fixup.rightmost_subexpression_fixup(true, true, Precedence::Jump),
- );
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprCall {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_call(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_call(e: &ExprCall, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
-
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- &e.func,
- #[cfg(feature = "full")]
- true,
- false,
- #[cfg(feature = "full")]
- Precedence::Unambiguous,
- );
- let needs_group = if let Expr::Field(func) = &*e.func {
- func.member.is_named()
- } else {
- left_prec < Precedence::Unambiguous
- };
- print_subexpression(&e.func, needs_group, tokens, left_fixup);
-
- e.paren_token.surround(tokens, |tokens| {
- e.args.to_tokens(tokens);
- });
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprCast {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_cast(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_cast(e: &ExprCast, tokens: &mut TokenStream, mut fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
-
- let needs_group = !e.attrs.is_empty();
- if needs_group {
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| {
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- &e.expr,
- #[cfg(feature = "full")]
- false,
- false,
- #[cfg(feature = "full")]
- Precedence::Cast,
- );
- print_subexpression(&e.expr, left_prec < Precedence::Cast, tokens, left_fixup);
- e.as_token.to_tokens(tokens);
- e.ty.to_tokens(tokens);
- };
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprClosure {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_closure(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_closure(e: &ExprClosure, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.lifetimes.to_tokens(tokens);
- e.constness.to_tokens(tokens);
- e.movability.to_tokens(tokens);
- e.asyncness.to_tokens(tokens);
- e.capture.to_tokens(tokens);
- e.or1_token.to_tokens(tokens);
- e.inputs.to_tokens(tokens);
- e.or2_token.to_tokens(tokens);
- e.output.to_tokens(tokens);
- if matches!(e.output, ReturnType::Default)
- || matches!(&*e.body, Expr::Block(body) if body.attrs.is_empty() && body.label.is_none())
- {
- print_expr(
- &e.body,
- tokens,
- fixup.rightmost_subexpression_fixup(false, false, Precedence::Jump),
- );
- } else {
- token::Brace::default().surround(tokens, |tokens| {
- print_expr(&e.body, tokens, FixupContext::new_stmt());
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprConst {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.const_token.to_tokens(tokens);
- self.block.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.block.stmts);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprContinue {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.continue_token.to_tokens(tokens);
- self.label.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprField {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_field(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_field(e: &ExprField, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_dot(&e.base);
- print_subexpression(&e.base, left_prec < Precedence::Unambiguous, tokens, left_fixup);
- e.dot_token.to_tokens(tokens);
- e.member.to_tokens(tokens);
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprForLoop {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.label.to_tokens(tokens);
- self.for_token.to_tokens(tokens);
- self.pat.to_tokens(tokens);
- self.in_token.to_tokens(tokens);
- print_expr(&self.expr, tokens, FixupContext::new_condition());
- self.body.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.body.stmts);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprGroup {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.group_token.surround(tokens, |tokens| {
- self.expr.to_tokens(tokens);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprIf {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
-
- let mut expr = self;
- loop {
- expr.if_token.to_tokens(tokens);
- print_expr(&expr.cond, tokens, FixupContext::new_condition());
- expr.then_branch.to_tokens(tokens);
-
- let (else_token, else_) = match &expr.else_branch {
- Some(else_branch) => else_branch,
- None => break,
- };
-
- else_token.to_tokens(tokens);
- match &**else_ {
- Expr::If(next) => {
- expr = next;
- }
- Expr::Block(last) => {
- last.to_tokens(tokens);
- break;
- }
- // If this is not one of the valid expressions to exist in
- // an else clause, wrap it in a block.
- other => {
- token::Brace::default().surround(tokens, |tokens| {
- print_expr(other, tokens, FixupContext::new_stmt());
- });
- break;
- }
- }
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprIndex {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_index(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_index(e: &ExprIndex, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- &e.expr,
- #[cfg(feature = "full")]
- true,
- false,
- #[cfg(feature = "full")]
- Precedence::Unambiguous,
- );
- print_subexpression(&e.expr, left_prec < Precedence::Unambiguous, tokens, left_fixup);
- e.bracket_token.surround(tokens, |tokens| {
- e.index.to_tokens(tokens);
- });
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprInfer {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.underscore_token.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprLet {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_let(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_let(e: &ExprLet, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.let_token.to_tokens(tokens);
- e.pat.to_tokens(tokens);
- e.eq_token.to_tokens(tokens);
- let (right_prec, right_fixup) = fixup.rightmost_subexpression(&e.expr, Precedence::Let);
- print_subexpression(&e.expr, right_prec < Precedence::Let, tokens, right_fixup);
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprLit {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.lit.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprLoop {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.label.to_tokens(tokens);
- self.loop_token.to_tokens(tokens);
- self.body.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.body.stmts);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.mac.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprMatch {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.match_token.to_tokens(tokens);
- print_expr(&self.expr, tokens, FixupContext::new_condition());
- self.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- for (i, arm) in self.arms.iter().enumerate() {
- arm.to_tokens(tokens);
- // Ensure that we have a comma after a non-block arm, except
- // for the last one.
- let is_last = i == self.arms.len() - 1;
- if !is_last
- && classify::requires_comma_to_be_match_arm(&arm.body)
- && arm.comma.is_none()
- {
- <Token![,]>::default().to_tokens(tokens);
- }
- }
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprMethodCall {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_method_call(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_method_call(e: &ExprMethodCall, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_dot(&e.receiver);
- print_subexpression(&e.receiver, left_prec < Precedence::Unambiguous, tokens, left_fixup);
- e.dot_token.to_tokens(tokens);
- e.method.to_tokens(tokens);
- if let Some(turbofish) = &e.turbofish {
- path::printing::print_angle_bracketed_generic_arguments(
- tokens,
- turbofish,
- PathStyle::Expr,
- );
- }
- e.paren_token.surround(tokens, |tokens| {
- e.args.to_tokens(tokens);
- });
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprParen {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.paren_token.surround(tokens, |tokens| {
- self.expr.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprPath {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::Expr);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprRange {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_range(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_range(e: &ExprRange, tokens: &mut TokenStream, mut fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
-
- let needs_group = !e.attrs.is_empty();
- if needs_group {
- fixup = FixupContext::NONE;
- }
-
- let do_print_expr = |tokens: &mut TokenStream| {
- if let Some(start) = &e.start {
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_operator(
- start,
- true,
- false,
- Precedence::Range,
- );
- print_subexpression(start, left_prec <= Precedence::Range, tokens, left_fixup);
- }
- e.limits.to_tokens(tokens);
- if let Some(end) = &e.end {
- let right_fixup =
- fixup.rightmost_subexpression_fixup(false, true, Precedence::Range);
- let right_prec = right_fixup.rightmost_subexpression_precedence(end);
- print_subexpression(end, right_prec <= Precedence::Range, tokens, right_fixup);
- }
- };
-
- if needs_group {
- token::Paren::default().surround(tokens, do_print_expr);
- } else {
- do_print_expr(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprRawAddr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_raw_addr(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_raw_addr(e: &ExprRawAddr, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.and_token.to_tokens(tokens);
- e.raw.to_tokens(tokens);
- e.mutability.to_tokens(tokens);
- let (right_prec, right_fixup) = fixup.rightmost_subexpression(&e.expr, Precedence::Prefix);
- print_subexpression(&e.expr, right_prec < Precedence::Prefix, tokens, right_fixup);
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprReference {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_reference(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_reference(e: &ExprReference, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.and_token.to_tokens(tokens);
- e.mutability.to_tokens(tokens);
- let (right_prec, right_fixup) = fixup.rightmost_subexpression(
- &e.expr,
- #[cfg(feature = "full")]
- Precedence::Prefix,
- );
- print_subexpression(&e.expr, right_prec < Precedence::Prefix, tokens, right_fixup);
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprRepeat {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.bracket_token.surround(tokens, |tokens| {
- self.expr.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- self.len.to_tokens(tokens);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprReturn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_return(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_return(e: &ExprReturn, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.return_token.to_tokens(tokens);
- if let Some(expr) = &e.expr {
- print_expr(
- expr,
- tokens,
- fixup.rightmost_subexpression_fixup(true, false, Precedence::Jump),
- );
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprStruct {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::Expr);
- self.brace_token.surround(tokens, |tokens| {
- self.fields.to_tokens(tokens);
- if let Some(dot2_token) = &self.dot2_token {
- dot2_token.to_tokens(tokens);
- } else if self.rest.is_some() {
- Token).to_tokens(tokens);
- }
- self.rest.to_tokens(tokens);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprTry {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_try(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_try(e: &ExprTry, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- let (left_prec, left_fixup) = fixup.leftmost_subexpression_with_dot(&e.expr);
- print_subexpression(&e.expr, left_prec < Precedence::Unambiguous, tokens, left_fixup);
- e.question_token.to_tokens(tokens);
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprTryBlock {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.try_token.to_tokens(tokens);
- self.block.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprTuple {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.paren_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- // If we only have one argument, we need a trailing comma to
- // distinguish ExprTuple from ExprParen.
- if self.elems.len() == 1 && !self.elems.trailing_punct() {
- <Token![,]>::default().to_tokens(tokens);
- }
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprUnary {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_unary(self, tokens, FixupContext::NONE);
- }
- }
-
- fn print_expr_unary(e: &ExprUnary, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.op.to_tokens(tokens);
- let (right_prec, right_fixup) = fixup.rightmost_subexpression(
- &e.expr,
- #[cfg(feature = "full")]
- Precedence::Prefix,
- );
- print_subexpression(&e.expr, right_prec < Precedence::Prefix, tokens, right_fixup);
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprUnsafe {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.unsafe_token.to_tokens(tokens);
- self.block.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.block.stmts);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprWhile {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.label.to_tokens(tokens);
- self.while_token.to_tokens(tokens);
- print_expr(&self.cond, tokens, FixupContext::new_condition());
- self.body.brace_token.surround(tokens, |tokens| {
- inner_attrs_to_tokens(&self.attrs, tokens);
- tokens.append_all(&self.body.stmts);
- });
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ExprYield {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_expr_yield(self, tokens, FixupContext::NONE);
- }
- }
-
- #[cfg(feature = "full")]
- fn print_expr_yield(e: &ExprYield, tokens: &mut TokenStream, fixup: FixupContext) {
- outer_attrs_to_tokens(&e.attrs, tokens);
- e.yield_token.to_tokens(tokens);
- if let Some(expr) = &e.expr {
- print_expr(
- expr,
- tokens,
- fixup.rightmost_subexpression_fixup(true, false, Precedence::Jump),
- );
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Arm {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(&self.attrs);
- self.pat.to_tokens(tokens);
- if let Some((if_token, guard)) = &self.guard {
- if_token.to_tokens(tokens);
- guard.to_tokens(tokens);
- }
- self.fat_arrow_token.to_tokens(tokens);
- print_expr(&self.body, tokens, FixupContext::new_match_arm());
- self.comma.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for FieldValue {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- outer_attrs_to_tokens(&self.attrs, tokens);
- self.member.to_tokens(tokens);
- if let Some(colon_token) = &self.colon_token {
- colon_token.to_tokens(tokens);
- self.expr.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Index {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- let mut lit = Literal::i64_unsuffixed(i64::from(self.index));
- lit.set_span(self.span);
- tokens.append(lit);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Label {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.name.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Member {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- Member::Named(ident) => ident.to_tokens(tokens),
- Member::Unnamed(index) => index.to_tokens(tokens),
- }
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for RangeLimits {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- RangeLimits::HalfOpen(t) => t.to_tokens(tokens),
- RangeLimits::Closed(t) => t.to_tokens(tokens),
- }
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PointerMutability {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- PointerMutability::Const(const_token) => const_token.to_tokens(tokens),
- PointerMutability::Mut(mut_token) => mut_token.to_tokens(tokens),
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/ext.rs b/deps/crates/vendor/syn-v2/src/ext.rs
deleted file mode 100644
index 212e22398d5..00000000000
--- a/deps/crates/vendor/syn-v2/src/ext.rs
+++ /dev/null
@@ -1,180 +0,0 @@
-//! Extension traits to provide parsing methods on foreign types.
-
-#[cfg(feature = "parsing")]
-use crate::buffer::Cursor;
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-#[cfg(feature = "parsing")]
-use crate::parse::ParseStream;
-#[cfg(feature = "parsing")]
-use crate::parse::Peek;
-#[cfg(feature = "parsing")]
-use crate::sealed::lookahead;
-#[cfg(feature = "parsing")]
-use crate::token::CustomToken;
-use alloc::string::ToString;
-use core::iter;
-use proc_macro2::{Ident, Punct, Spacing, Span, TokenStream, TokenTree};
-
-/// Additional methods for `Ident` not provided by proc-macro2 or libproc_macro.
-///
-/// This trait is sealed and cannot be implemented for types outside of Syn. It
-/// is implemented only for `proc_macro2::Ident`.
-pub trait IdentExt: Sized + private::Sealed {
- /// Parses any identifier including keywords.
- ///
- /// This is useful when parsing macro input which allows Rust keywords as
- /// identifiers.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{Error, Ident, Result, Token};
- /// use syn::ext::IdentExt;
- /// use syn::parse::ParseStream;
- ///
- /// mod kw {
- /// syn::custom_keyword!(name);
- /// }
- ///
- /// // Parses input that looks like `name = NAME` where `NAME` can be
- /// // any identifier.
- /// //
- /// // Examples:
- /// //
- /// // name = anything
- /// // name = impl
- /// fn parse_dsl(input: ParseStream) -> Result<Ident> {
- /// input.parse::<kw::name>()?;
- /// input.parse::<Token![=]>()?;
- /// let name = input.call(Ident::parse_any)?;
- /// Ok(name)
- /// }
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- fn parse_any(input: ParseStream) -> Result<Self>;
-
- /// Peeks any identifier including keywords. Usage:
- /// `input.peek(Ident::peek_any)`
- ///
- /// This is different from `input.peek(Ident)` which only returns true in
- /// the case of an ident which is not a Rust keyword.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- #[allow(non_upper_case_globals)]
- const peek_any: private::PeekFn = private::PeekFn;
-
- /// Strips the raw marker `r#`, if any, from the beginning of an ident.
- ///
- /// - unraw(`x`) = `x`
- /// - unraw(`move`) = `move`
- /// - unraw(`r#move`) = `move`
- ///
- /// # Example
- ///
- /// In the case of interop with other languages like Python that have a
- /// different set of keywords than Rust, we might come across macro input
- /// that involves raw identifiers to refer to ordinary variables in the
- /// other language with a name that happens to be a Rust keyword.
- ///
- /// The function below appends an identifier from the caller's input onto a
- /// fixed prefix. Without using `unraw()`, this would tend to produce
- /// invalid identifiers like `__pyo3_get_r#move`.
- ///
- /// ```
- /// use proc_macro2::Span;
- /// use syn::Ident;
- /// use syn::ext::IdentExt;
- ///
- /// fn ident_for_getter(variable: &Ident) -> Ident {
- /// let getter = format!("__pyo3_get_{}", variable.unraw());
- /// Ident::new(&getter, Span::call_site())
- /// }
- /// ```
- fn unraw(&self) -> Ident;
-}
-
-impl IdentExt for Ident {
- #[cfg(feature = "parsing")]
- fn parse_any(input: ParseStream) -> Result<Self> {
- input.step(|cursor| match cursor.ident() {
- Some((ident, rest)) => Ok((ident, rest)),
- None => Err(cursor.error("expected ident")),
- })
- }
-
- fn unraw(&self) -> Ident {
- let string = self.to_string();
- if let Some(string) = string.strip_prefix("r#") {
- Ident::new(string, self.span())
- } else {
- self.clone()
- }
- }
-}
-
-#[cfg(feature = "parsing")]
-impl Peek for private::PeekFn {
- type Token = private::IdentAny;
-}
-
-#[cfg(feature = "parsing")]
-impl CustomToken for private::IdentAny {
- fn peek(cursor: Cursor) -> bool {
- cursor.ident().is_some()
- }
-
- fn display() -> &'static str {
- "identifier"
- }
-}
-
-#[cfg(feature = "parsing")]
-impl lookahead::Sealed for private::PeekFn {}
-
-pub(crate) trait TokenStreamExt {
- fn append(&mut self, token: TokenTree);
-}
-
-impl TokenStreamExt for TokenStream {
- fn append(&mut self, token: TokenTree) {
- self.extend(iter::once(token));
- }
-}
-
-pub(crate) trait PunctExt {
- fn new_spanned(ch: char, spacing: Spacing, span: Span) -> Self;
-}
-
-impl PunctExt for Punct {
- fn new_spanned(ch: char, spacing: Spacing, span: Span) -> Self {
- let mut punct = Punct::new(ch, spacing);
- punct.set_span(span);
- punct
- }
-}
-
-mod private {
- use proc_macro2::Ident;
-
- pub trait Sealed {}
-
- impl Sealed for Ident {}
-
- #[cfg(feature = "parsing")]
- pub struct PeekFn;
-
- #[cfg(feature = "parsing")]
- pub struct IdentAny;
-
- #[cfg(feature = "parsing")]
- impl Copy for PeekFn {}
-
- #[cfg(feature = "parsing")]
- impl Clone for PeekFn {
- fn clone(&self) -> Self {
- *self
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/file.rs b/deps/crates/vendor/syn-v2/src/file.rs
deleted file mode 100644
index dbb1bcb4fff..00000000000
--- a/deps/crates/vendor/syn-v2/src/file.rs
+++ /dev/null
@@ -1,128 +0,0 @@
-use crate::attr::Attribute;
-use crate::item::Item;
-use alloc::string::String;
-use alloc::vec::Vec;
-
-ast_struct! {
- /// A complete file of Rust source code.
- ///
- /// Typically `File` objects are created with [`parse_file`].
- ///
- /// [`parse_file`]: crate::parse_file
- ///
- /// # Example
- ///
- /// Parse a Rust source file into a `syn::File` and print out a debug
- /// representation of the syntax tree.
- ///
- /// ```
- /// use std::env;
- /// use std::fs;
- /// use std::process;
- ///
- /// fn main() {
- /// # }
- /// #
- /// # fn fake_main() {
- /// let mut args = env::args();
- /// let _ = args.next(); // executable name
- ///
- /// let filename = match (args.next(), args.next()) {
- /// (Some(filename), None) => filename,
- /// _ => {
- /// eprintln!("Usage: dump-syntax path/to/filename.rs");
- /// process::exit(1);
- /// }
- /// };
- ///
- /// let src = fs::read_to_string(&filename).expect("unable to read file");
- /// let syntax = syn::parse_file(&src).expect("unable to parse file");
- ///
- /// // Debug impl is available if Syn is built with "extra-traits" feature.
- /// println!("{:#?}", syntax);
- /// }
- /// ```
- ///
- /// Running with its own source code as input, this program prints output
- /// that begins with:
- ///
- /// ```text
- /// File {
- /// shebang: None,
- /// attrs: [],
- /// items: [
- /// Use(
- /// ItemUse {
- /// attrs: [],
- /// vis: Inherited,
- /// use_token: Use,
- /// leading_colon: None,
- /// tree: Path(
- /// UsePath {
- /// ident: Ident(
- /// std,
- /// ),
- /// colon2_token: Colon2,
- /// tree: Name(
- /// UseName {
- /// ident: Ident(
- /// env,
- /// ),
- /// },
- /// ),
- /// },
- /// ),
- /// semi_token: Semi,
- /// },
- /// ),
- /// ...
- /// ```
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct File {
- pub shebang: Option<String>,
- pub attrs: Vec<Attribute>,
- pub items: Vec<Item>,
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::error::Result;
- use crate::file::File;
- use crate::parse::{Parse, ParseStream};
- use alloc::vec::Vec;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for File {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(File {
- shebang: None,
- attrs: input.call(Attribute::parse_inner)?,
- items: {
- let mut items = Vec::new();
- while !input.is_empty() {
- items.push(input.parse()?);
- }
- items
- },
- })
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::FilterAttrs;
- use crate::file::File;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for File {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.items);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/fixup.rs b/deps/crates/vendor/syn-v2/src/fixup.rs
deleted file mode 100644
index 6d2c3092d54..00000000000
--- a/deps/crates/vendor/syn-v2/src/fixup.rs
+++ /dev/null
@@ -1,773 +0,0 @@
-use crate::classify;
-use crate::expr::Expr;
-#[cfg(feature = "full")]
-use crate::expr::{
- ExprBreak, ExprRange, ExprRawAddr, ExprReference, ExprReturn, ExprUnary, ExprYield,
-};
-use crate::precedence::Precedence;
-#[cfg(feature = "full")]
-use crate::ty::ReturnType;
-
-pub(crate) struct FixupContext {
- #[cfg(feature = "full")]
- previous_operator: Precedence,
- #[cfg(feature = "full")]
- next_operator: Precedence,
-
- // Print expression such that it can be parsed back as a statement
- // consisting of the original expression.
- //
- // The effect of this is for binary operators in statement position to set
- // `leftmost_subexpression_in_stmt` when printing their left-hand operand.
- //
- // (match x {}) - 1; // match needs parens when LHS of binary operator
- //
- // match x {}; // not when its own statement
- //
- #[cfg(feature = "full")]
- stmt: bool,
-
- // This is the difference between:
- //
- // (match x {}) - 1; // subexpression needs parens
- //
- // let _ = match x {} - 1; // no parens
- //
- // There are 3 distinguishable contexts in which `print_expr` might be
- // called with the expression `$match` as its argument, where `$match`
- // represents an expression of kind `ExprKind::Match`:
- //
- // - stmt=false leftmost_subexpression_in_stmt=false
- //
- // Example: `let _ = $match - 1;`
- //
- // No parentheses required.
- //
- // - stmt=false leftmost_subexpression_in_stmt=true
- //
- // Example: `$match - 1;`
- //
- // Must parenthesize `($match)`, otherwise parsing back the output as a
- // statement would terminate the statement after the closing brace of
- // the match, parsing `-1;` as a separate statement.
- //
- // - stmt=true leftmost_subexpression_in_stmt=false
- //
- // Example: `$match;`
- //
- // No parentheses required.
- #[cfg(feature = "full")]
- leftmost_subexpression_in_stmt: bool,
-
- // Print expression such that it can be parsed as a match arm.
- //
- // This is almost equivalent to `stmt`, but the grammar diverges a tiny bit
- // between statements and match arms when it comes to braced macro calls.
- // Macro calls with brace delimiter terminate a statement without a
- // semicolon, but do not terminate a match-arm without comma.
- //
- // m! {} - 1; // two statements: a macro call followed by -1 literal
- //
- // match () {
- // _ => m! {} - 1, // binary subtraction operator
- // }
- //
- #[cfg(feature = "full")]
- match_arm: bool,
-
- // This is almost equivalent to `leftmost_subexpression_in_stmt`, other than
- // for braced macro calls.
- //
- // If we have `m! {} - 1` as an expression, the leftmost subexpression
- // `m! {}` will need to be parenthesized in the statement case but not the
- // match-arm case.
- //
- // (m! {}) - 1; // subexpression needs parens
- //
- // match () {
- // _ => m! {} - 1, // no parens
- // }
- //
- #[cfg(feature = "full")]
- leftmost_subexpression_in_match_arm: bool,
-
- // This is the difference between:
- //
- // if let _ = (Struct {}) {} // needs parens
- //
- // match () {
- // () if let _ = Struct {} => {} // no parens
- // }
- //
- #[cfg(feature = "full")]
- condition: bool,
-
- // This is the difference between:
- //
- // if break Struct {} == (break) {} // needs parens
- //
- // if break break == Struct {} {} // no parens
- //
- #[cfg(feature = "full")]
- rightmost_subexpression_in_condition: bool,
-
- // This is the difference between:
- //
- // if break ({ x }).field + 1 {} needs parens
- //
- // if break 1 + { x }.field {} // no parens
- //
- #[cfg(feature = "full")]
- leftmost_subexpression_in_optional_operand: bool,
-
- // This is the difference between:
- //
- // let _ = (return) - 1; // without paren, this would return -1
- //
- // let _ = return + 1; // no paren because '+' cannot begin expr
- //
- #[cfg(feature = "full")]
- next_operator_can_begin_expr: bool,
-
- // This is the difference between:
- //
- // let _ = 1 + return 1; // no parens if rightmost subexpression
- //
- // let _ = 1 + (return 1) + 1; // needs parens
- //
- #[cfg(feature = "full")]
- next_operator_can_continue_expr: bool,
-
- // This is the difference between:
- //
- // let _ = x as u8 + T;
- //
- // let _ = (x as u8) < T;
- //
- // Without parens, the latter would want to parse `u8<T...` as a type.
- next_operator_can_begin_generics: bool,
-}
-
-impl FixupContext {
- /// The default amount of fixing is minimal fixing. Fixups should be turned
- /// on in a targeted fashion where needed.
- pub const NONE: Self = FixupContext {
- #[cfg(feature = "full")]
- previous_operator: Precedence::MIN,
- #[cfg(feature = "full")]
- next_operator: Precedence::MIN,
- #[cfg(feature = "full")]
- stmt: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_stmt: false,
- #[cfg(feature = "full")]
- match_arm: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_match_arm: false,
- #[cfg(feature = "full")]
- condition: false,
- #[cfg(feature = "full")]
- rightmost_subexpression_in_condition: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_optional_operand: false,
- #[cfg(feature = "full")]
- next_operator_can_begin_expr: false,
- #[cfg(feature = "full")]
- next_operator_can_continue_expr: false,
- next_operator_can_begin_generics: false,
- };
-
- /// Create the initial fixup for printing an expression in statement
- /// position.
- #[cfg(feature = "full")]
- pub fn new_stmt() -> Self {
- FixupContext {
- stmt: true,
- ..FixupContext::NONE
- }
- }
-
- /// Create the initial fixup for printing an expression as the right-hand
- /// side of a match arm.
- #[cfg(feature = "full")]
- pub fn new_match_arm() -> Self {
- FixupContext {
- match_arm: true,
- ..FixupContext::NONE
- }
- }
-
- /// Create the initial fixup for printing an expression as the "condition"
- /// of an `if` or `while`. There are a few other positions which are
- /// grammatically equivalent and also use this, such as the iterator
- /// expression in `for` and the scrutinee in `match`.
- #[cfg(feature = "full")]
- pub fn new_condition() -> Self {
- FixupContext {
- condition: true,
- rightmost_subexpression_in_condition: true,
- ..FixupContext::NONE
- }
- }
-
- /// Transform this fixup into the one that should apply when printing the
- /// leftmost subexpression of the current expression.
- ///
- /// The leftmost subexpression is any subexpression that has the same first
- /// token as the current expression, but has a different last token.
- ///
- /// For example in `$a + $b` and `$a.method()`, the subexpression `$a` is a
- /// leftmost subexpression.
- ///
- /// Not every expression has a leftmost subexpression. For example neither
- /// `-$a` nor `[$a]` have one.
- pub fn leftmost_subexpression_with_operator(
- self,
- expr: &Expr,
- #[cfg(feature = "full")] next_operator_can_begin_expr: bool,
- next_operator_can_begin_generics: bool,
- #[cfg(feature = "full")] precedence: Precedence,
- ) -> (Precedence, Self) {
- let fixup = FixupContext {
- #[cfg(feature = "full")]
- next_operator: precedence,
- #[cfg(feature = "full")]
- stmt: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_stmt: self.stmt || self.leftmost_subexpression_in_stmt,
- #[cfg(feature = "full")]
- match_arm: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_match_arm: self.match_arm
- || self.leftmost_subexpression_in_match_arm,
- #[cfg(feature = "full")]
- rightmost_subexpression_in_condition: false,
- #[cfg(feature = "full")]
- next_operator_can_begin_expr,
- #[cfg(feature = "full")]
- next_operator_can_continue_expr: true,
- next_operator_can_begin_generics,
- ..self
- };
-
- (fixup.leftmost_subexpression_precedence(expr), fixup)
- }
-
- /// Transform this fixup into the one that should apply when printing a
- /// leftmost subexpression followed by a `.` or `?` token, which confer
- /// different statement boundary rules compared to other leftmost
- /// subexpressions.
- pub fn leftmost_subexpression_with_dot(self, expr: &Expr) -> (Precedence, Self) {
- let fixup = FixupContext {
- #[cfg(feature = "full")]
- next_operator: Precedence::Unambiguous,
- #[cfg(feature = "full")]
- stmt: self.stmt || self.leftmost_subexpression_in_stmt,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_stmt: false,
- #[cfg(feature = "full")]
- match_arm: self.match_arm || self.leftmost_subexpression_in_match_arm,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_match_arm: false,
- #[cfg(feature = "full")]
- rightmost_subexpression_in_condition: false,
- #[cfg(feature = "full")]
- next_operator_can_begin_expr: false,
- #[cfg(feature = "full")]
- next_operator_can_continue_expr: true,
- next_operator_can_begin_generics: false,
- ..self
- };
-
- (fixup.leftmost_subexpression_precedence(expr), fixup)
- }
-
- fn leftmost_subexpression_precedence(self, expr: &Expr) -> Precedence {
- #[cfg(feature = "full")]
- if !self.next_operator_can_begin_expr || self.next_operator == Precedence::Range {
- if let Scan::Bailout = scan_right(expr, self, Precedence::MIN, 0, 0) {
- if scan_left(expr, self) {
- return Precedence::Unambiguous;
- }
- }
- }
-
- self.precedence(expr)
- }
-
- /// Transform this fixup into the one that should apply when printing the
- /// rightmost subexpression of the current expression.
- ///
- /// The rightmost subexpression is any subexpression that has a different
- /// first token than the current expression, but has the same last token.
- ///
- /// For example in `$a + $b` and `-$b`, the subexpression `$b` is a
- /// rightmost subexpression.
- ///
- /// Not every expression has a rightmost subexpression. For example neither
- /// `[$b]` nor `$a.f($b)` have one.
- pub fn rightmost_subexpression(
- self,
- expr: &Expr,
- #[cfg(feature = "full")] precedence: Precedence,
- ) -> (Precedence, Self) {
- let fixup = self.rightmost_subexpression_fixup(
- #[cfg(feature = "full")]
- false,
- #[cfg(feature = "full")]
- false,
- #[cfg(feature = "full")]
- precedence,
- );
- (fixup.rightmost_subexpression_precedence(expr), fixup)
- }
-
- pub fn rightmost_subexpression_fixup(
- self,
- #[cfg(feature = "full")] reset_allow_struct: bool,
- #[cfg(feature = "full")] optional_operand: bool,
- #[cfg(feature = "full")] precedence: Precedence,
- ) -> Self {
- FixupContext {
- #[cfg(feature = "full")]
- previous_operator: precedence,
- #[cfg(feature = "full")]
- stmt: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_stmt: false,
- #[cfg(feature = "full")]
- match_arm: false,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_match_arm: false,
- #[cfg(feature = "full")]
- condition: self.condition && !reset_allow_struct,
- #[cfg(feature = "full")]
- leftmost_subexpression_in_optional_operand: self.condition && optional_operand,
- ..self
- }
- }
-
- pub fn rightmost_subexpression_precedence(self, expr: &Expr) -> Precedence {
- let default_prec = self.precedence(expr);
-
- #[cfg(feature = "full")]
- if match self.previous_operator {
- Precedence::Assign | Precedence::Let | Precedence::Prefix => {
- default_prec < self.previous_operator
- }
- _ => default_prec <= self.previous_operator,
- } && match self.next_operator {
- Precedence::Range | Precedence::Or | Precedence::And => true,
- _ => !self.next_operator_can_begin_expr,
- } {
- if let Scan::Bailout | Scan::Fail = scan_right(expr, self, self.previous_operator, 1, 0)
- {
- if scan_left(expr, self) {
- return Precedence::Prefix;
- }
- }
- }
-
- default_prec
- }
-
- /// Determine whether parentheses are needed around the given expression to
- /// head off the early termination of a statement or condition.
- #[cfg(feature = "full")]
- pub fn parenthesize(self, expr: &Expr) -> bool {
- (self.leftmost_subexpression_in_stmt && !classify::requires_semi_to_be_stmt(expr))
- || ((self.stmt || self.leftmost_subexpression_in_stmt) && matches!(expr, Expr::Let(_)))
- || (self.leftmost_subexpression_in_match_arm
- && !classify::requires_comma_to_be_match_arm(expr))
- || (self.condition && matches!(expr, Expr::Struct(_)))
- || (self.rightmost_subexpression_in_condition
- && matches!(
- expr,
- Expr::Return(ExprReturn { expr: None, .. })
- | Expr::Yield(ExprYield { expr: None, .. })
- ))
- || (self.rightmost_subexpression_in_condition
- && !self.condition
- && matches!(
- expr,
- Expr::Break(ExprBreak { expr: None, .. })
- | Expr::Path(_)
- | Expr::Range(ExprRange { end: None, .. })
- ))
- || (self.leftmost_subexpression_in_optional_operand
- && matches!(expr, Expr::Block(expr) if expr.attrs.is_empty() && expr.label.is_none()))
- }
-
- /// Determines the effective precedence of a subexpression. Some expressions
- /// have higher or lower precedence when adjacent to particular operators.
- fn precedence(self, expr: &Expr) -> Precedence {
- #[cfg(feature = "full")]
- if self.next_operator_can_begin_expr {
- // Decrease precedence of value-less jumps when followed by an
- // operator that would otherwise get interpreted as beginning a
- // value for the jump.
- if let Expr::Break(ExprBreak { expr: None, .. })
- | Expr::Return(ExprReturn { expr: None, .. })
- | Expr::Yield(ExprYield { expr: None, .. }) = expr
- {
- return Precedence::Jump;
- }
- }
-
- #[cfg(feature = "full")]
- if !self.next_operator_can_continue_expr {
- match expr {
- // Increase precedence of expressions that extend to the end of
- // current statement or group.
- Expr::Break(_)
- | Expr::Closure(_)
- | Expr::Let(_)
- | Expr::Return(_)
- | Expr::Yield(_) => {
- return Precedence::Prefix;
- }
- Expr::Range(e) if e.start.is_none() => return Precedence::Prefix,
- _ => {}
- }
- }
-
- if self.next_operator_can_begin_generics {
- if let Expr::Cast(cast) = expr {
- if classify::trailing_unparameterized_path(&cast.ty) {
- return Precedence::MIN;
- }
- }
- }
-
- Precedence::of(expr)
- }
-}
-
-impl Copy for FixupContext {}
-
-impl Clone for FixupContext {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-#[cfg(feature = "full")]
-enum Scan {
- Fail,
- Bailout,
- Consume,
-}
-
-#[cfg(feature = "full")]
-impl Copy for Scan {}
-
-#[cfg(feature = "full")]
-impl Clone for Scan {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-#[cfg(feature = "full")]
-impl PartialEq for Scan {
- fn eq(&self, other: &Self) -> bool {
- *self as u8 == *other as u8
- }
-}
-
-#[cfg(feature = "full")]
-fn scan_left(expr: &Expr, fixup: FixupContext) -> bool {
- match expr {
- Expr::Assign(_) => fixup.previous_operator <= Precedence::Assign,
- Expr::Binary(e) => match Precedence::of_binop(&e.op) {
- Precedence::Assign => fixup.previous_operator <= Precedence::Assign,
- binop_prec => fixup.previous_operator < binop_prec,
- },
- Expr::Cast(_) => fixup.previous_operator < Precedence::Cast,
- Expr::Range(e) => e.start.is_none() || fixup.previous_operator < Precedence::Assign,
- _ => true,
- }
-}
-
-#[cfg(feature = "full")]
-fn scan_right(
- expr: &Expr,
- fixup: FixupContext,
- precedence: Precedence,
- fail_offset: u8,
- bailout_offset: u8,
-) -> Scan {
- let consume_by_precedence = if match precedence {
- Precedence::Assign | Precedence::Compare => precedence <= fixup.next_operator,
- _ => precedence < fixup.next_operator,
- } || fixup.next_operator == Precedence::MIN
- {
- Scan::Consume
- } else {
- Scan::Bailout
- };
- if fixup.parenthesize(expr) {
- return consume_by_precedence;
- }
- match expr {
- Expr::Assign(e) if e.attrs.is_empty() => {
- if match fixup.next_operator {
- Precedence::Unambiguous => fail_offset >= 2,
- _ => bailout_offset >= 1,
- } {
- return Scan::Consume;
- }
- let right_fixup = fixup.rightmost_subexpression_fixup(false, false, Precedence::Assign);
- let scan = scan_right(
- &e.right,
- right_fixup,
- Precedence::Assign,
- match fixup.next_operator {
- Precedence::Unambiguous => fail_offset,
- _ => 1,
- },
- 1,
- );
- if let Scan::Bailout | Scan::Consume = scan {
- Scan::Consume
- } else if let Precedence::Unambiguous = fixup.next_operator {
- Scan::Fail
- } else {
- Scan::Bailout
- }
- }
- Expr::Binary(e) if e.attrs.is_empty() => {
- if match fixup.next_operator {
- Precedence::Unambiguous => {
- fail_offset >= 2
- && (consume_by_precedence == Scan::Consume || bailout_offset >= 1)
- }
- _ => bailout_offset >= 1,
- } {
- return Scan::Consume;
- }
- let binop_prec = Precedence::of_binop(&e.op);
- if binop_prec == Precedence::Compare && fixup.next_operator == Precedence::Compare {
- return Scan::Consume;
- }
- let right_fixup = fixup.rightmost_subexpression_fixup(false, false, binop_prec);
- let scan = scan_right(
- &e.right,
- right_fixup,
- binop_prec,
- match fixup.next_operator {
- Precedence::Unambiguous => fail_offset,
- _ => 1,
- },
- consume_by_precedence as u8 - Scan::Bailout as u8,
- );
- match scan {
- Scan::Fail => {}
- Scan::Bailout => return consume_by_precedence,
- Scan::Consume => return Scan::Consume,
- }
- let right_needs_group = binop_prec != Precedence::Assign
- && right_fixup.rightmost_subexpression_precedence(&e.right) <= binop_prec;
- if right_needs_group {
- consume_by_precedence
- } else if let (Scan::Fail, Precedence::Unambiguous) = (scan, fixup.next_operator) {
- Scan::Fail
- } else {
- Scan::Bailout
- }
- }
- Expr::RawAddr(ExprRawAddr { expr, .. })
- | Expr::Reference(ExprReference { expr, .. })
- | Expr::Unary(ExprUnary { expr, .. }) => {
- if match fixup.next_operator {
- Precedence::Unambiguous => {
- fail_offset >= 2
- && (consume_by_precedence == Scan::Consume || bailout_offset >= 1)
- }
- _ => bailout_offset >= 1,
- } {
- return Scan::Consume;
- }
- let right_fixup = fixup.rightmost_subexpression_fixup(false, false, Precedence::Prefix);
- let scan = scan_right(
- expr,
- right_fixup,
- precedence,
- match fixup.next_operator {
- Precedence::Unambiguous => fail_offset,
- _ => 1,
- },
- consume_by_precedence as u8 - Scan::Bailout as u8,
- );
- match scan {
- Scan::Fail => {}
- Scan::Bailout => return consume_by_precedence,
- Scan::Consume => return Scan::Consume,
- }
- if right_fixup.rightmost_subexpression_precedence(expr) < Precedence::Prefix {
- consume_by_precedence
- } else if let (Scan::Fail, Precedence::Unambiguous) = (scan, fixup.next_operator) {
- Scan::Fail
- } else {
- Scan::Bailout
- }
- }
- Expr::Range(e) if e.attrs.is_empty() => match &e.end {
- Some(end) => {
- if fail_offset >= 2 {
- return Scan::Consume;
- }
- let right_fixup =
- fixup.rightmost_subexpression_fixup(false, true, Precedence::Range);
- let scan = scan_right(
- end,
- right_fixup,
- Precedence::Range,
- fail_offset,
- match fixup.next_operator {
- Precedence::Assign | Precedence::Range => 0,
- _ => 1,
- },
- );
- if match (scan, fixup.next_operator) {
- (Scan::Fail, _) => false,
- (Scan::Bailout, Precedence::Assign | Precedence::Range) => false,
- (Scan::Bailout | Scan::Consume, _) => true,
- } {
- return Scan::Consume;
- }
- if right_fixup.rightmost_subexpression_precedence(end) <= Precedence::Range {
- Scan::Consume
- } else {
- Scan::Fail
- }
- }
- None => {
- if fixup.next_operator_can_begin_expr {
- Scan::Consume
- } else {
- Scan::Fail
- }
- }
- },
- Expr::Break(e) => match &e.expr {
- Some(value) => {
- if bailout_offset >= 1 || e.label.is_none() && classify::expr_leading_label(value) {
- return Scan::Consume;
- }
- let right_fixup = fixup.rightmost_subexpression_fixup(true, true, Precedence::Jump);
- match scan_right(value, right_fixup, Precedence::Jump, 1, 1) {
- Scan::Fail => Scan::Bailout,
- Scan::Bailout | Scan::Consume => Scan::Consume,
- }
- }
- None => match fixup.next_operator {
- Precedence::Assign if precedence > Precedence::Assign => Scan::Fail,
- _ => Scan::Consume,
- },
- },
- Expr::Return(ExprReturn { expr, .. }) | Expr::Yield(ExprYield { expr, .. }) => match expr {
- Some(e) => {
- if bailout_offset >= 1 {
- return Scan::Consume;
- }
- let right_fixup =
- fixup.rightmost_subexpression_fixup(true, false, Precedence::Jump);
- match scan_right(e, right_fixup, Precedence::Jump, 1, 1) {
- Scan::Fail => Scan::Bailout,
- Scan::Bailout | Scan::Consume => Scan::Consume,
- }
- }
- None => match fixup.next_operator {
- Precedence::Assign if precedence > Precedence::Assign => Scan::Fail,
- _ => Scan::Consume,
- },
- },
- Expr::Closure(e) => {
- if matches!(e.output, ReturnType::Default)
- || matches!(&*e.body, Expr::Block(body) if body.attrs.is_empty() && body.label.is_none())
- {
- if bailout_offset >= 1 {
- return Scan::Consume;
- }
- let right_fixup =
- fixup.rightmost_subexpression_fixup(false, false, Precedence::Jump);
- match scan_right(&e.body, right_fixup, Precedence::Jump, 1, 1) {
- Scan::Fail => Scan::Bailout,
- Scan::Bailout | Scan::Consume => Scan::Consume,
- }
- } else {
- Scan::Consume
- }
- }
- Expr::Let(e) => {
- if bailout_offset >= 1 {
- return Scan::Consume;
- }
- let right_fixup = fixup.rightmost_subexpression_fixup(false, false, Precedence::Let);
- let scan = scan_right(
- &e.expr,
- right_fixup,
- Precedence::Let,
- 1,
- if fixup.next_operator < Precedence::Let {
- 0
- } else {
- 1
- },
- );
- match scan {
- Scan::Fail | Scan::Bailout if fixup.next_operator < Precedence::Let => {
- return Scan::Bailout;
- }
- Scan::Consume => return Scan::Consume,
- _ => {}
- }
- if right_fixup.rightmost_subexpression_precedence(&e.expr) < Precedence::Let {
- Scan::Consume
- } else if let Scan::Fail = scan {
- Scan::Bailout
- } else {
- Scan::Consume
- }
- }
- Expr::Array(_)
- | Expr::Assign(_)
- | Expr::Async(_)
- | Expr::Await(_)
- | Expr::Binary(_)
- | Expr::Block(_)
- | Expr::Call(_)
- | Expr::Cast(_)
- | Expr::Const(_)
- | Expr::Continue(_)
- | Expr::Field(_)
- | Expr::ForLoop(_)
- | Expr::Group(_)
- | Expr::If(_)
- | Expr::Index(_)
- | Expr::Infer(_)
- | Expr::Lit(_)
- | Expr::Loop(_)
- | Expr::Macro(_)
- | Expr::Match(_)
- | Expr::MethodCall(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::Range(_)
- | Expr::Repeat(_)
- | Expr::Struct(_)
- | Expr::Try(_)
- | Expr::TryBlock(_)
- | Expr::Tuple(_)
- | Expr::Unsafe(_)
- | Expr::Verbatim(_)
- | Expr::While(_) => match fixup.next_operator {
- Precedence::Assign | Precedence::Range if precedence == Precedence::Range => Scan::Fail,
- _ if precedence == Precedence::Let && fixup.next_operator < Precedence::Let => {
- Scan::Fail
- }
- _ => consume_by_precedence,
- },
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/clone.rs b/deps/crates/vendor/syn-v2/src/gen/clone.rs
deleted file mode 100644
index be2b698422d..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/clone.rs
+++ /dev/null
@@ -1,2267 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(clippy::clone_on_copy, clippy::expl_impl_clone_on_copy)]
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Abi {
- fn clone(&self) -> Self {
- crate::Abi {
- extern_token: self.extern_token.clone(),
- name: self.name.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AngleBracketedGenericArguments {
- fn clone(&self) -> Self {
- crate::AngleBracketedGenericArguments {
- colon2_token: self.colon2_token.clone(),
- lt_token: self.lt_token.clone(),
- args: self.args.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Arm {
- fn clone(&self) -> Self {
- crate::Arm {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- guard: self.guard.clone(),
- fat_arrow_token: self.fat_arrow_token.clone(),
- body: self.body.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AssocConst {
- fn clone(&self) -> Self {
- crate::AssocConst {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- value: self.value.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AssocType {
- fn clone(&self) -> Self {
- crate::AssocType {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::AttrStyle {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::AttrStyle {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Attribute {
- fn clone(&self) -> Self {
- crate::Attribute {
- pound_token: self.pound_token.clone(),
- style: self.style.clone(),
- bracket_token: self.bracket_token.clone(),
- meta: self.meta.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BareFnArg {
- fn clone(&self) -> Self {
- crate::BareFnArg {
- attrs: self.attrs.clone(),
- name: self.name.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BareVariadic {
- fn clone(&self) -> Self {
- crate::BareVariadic {
- attrs: self.attrs.clone(),
- name: self.name.clone(),
- dots: self.dots.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::BinOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BinOp {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Block {
- fn clone(&self) -> Self {
- crate::Block {
- brace_token: self.brace_token.clone(),
- stmts: self.stmts.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::BoundLifetimes {
- fn clone(&self) -> Self {
- crate::BoundLifetimes {
- for_token: self.for_token.clone(),
- lt_token: self.lt_token.clone(),
- lifetimes: self.lifetimes.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::CapturedParam {
- fn clone(&self) -> Self {
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- crate::CapturedParam::Lifetime(v0.clone())
- }
- crate::CapturedParam::Ident(v0) => crate::CapturedParam::Ident(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ConstParam {
- fn clone(&self) -> Self {
- crate::ConstParam {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- default: self.default.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Constraint {
- fn clone(&self) -> Self {
- crate::Constraint {
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Data {
- fn clone(&self) -> Self {
- match self {
- crate::Data::Struct(v0) => crate::Data::Struct(v0.clone()),
- crate::Data::Enum(v0) => crate::Data::Enum(v0.clone()),
- crate::Data::Union(v0) => crate::Data::Union(v0.clone()),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataEnum {
- fn clone(&self) -> Self {
- crate::DataEnum {
- enum_token: self.enum_token.clone(),
- brace_token: self.brace_token.clone(),
- variants: self.variants.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataStruct {
- fn clone(&self) -> Self {
- crate::DataStruct {
- struct_token: self.struct_token.clone(),
- fields: self.fields.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DataUnion {
- fn clone(&self) -> Self {
- crate::DataUnion {
- union_token: self.union_token.clone(),
- fields: self.fields.clone(),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::DeriveInput {
- fn clone(&self) -> Self {
- crate::DeriveInput {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- data: self.data.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Expr {
- fn clone(&self) -> Self {
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => crate::Expr::Array(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => crate::Expr::Assign(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => crate::Expr::Async(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => crate::Expr::Await(v0.clone()),
- crate::Expr::Binary(v0) => crate::Expr::Binary(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => crate::Expr::Block(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => crate::Expr::Break(v0.clone()),
- crate::Expr::Call(v0) => crate::Expr::Call(v0.clone()),
- crate::Expr::Cast(v0) => crate::Expr::Cast(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => crate::Expr::Closure(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => crate::Expr::Const(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => crate::Expr::Continue(v0.clone()),
- crate::Expr::Field(v0) => crate::Expr::Field(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => crate::Expr::ForLoop(v0.clone()),
- crate::Expr::Group(v0) => crate::Expr::Group(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => crate::Expr::If(v0.clone()),
- crate::Expr::Index(v0) => crate::Expr::Index(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => crate::Expr::Infer(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => crate::Expr::Let(v0.clone()),
- crate::Expr::Lit(v0) => crate::Expr::Lit(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => crate::Expr::Loop(v0.clone()),
- crate::Expr::Macro(v0) => crate::Expr::Macro(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => crate::Expr::Match(v0.clone()),
- crate::Expr::MethodCall(v0) => crate::Expr::MethodCall(v0.clone()),
- crate::Expr::Paren(v0) => crate::Expr::Paren(v0.clone()),
- crate::Expr::Path(v0) => crate::Expr::Path(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => crate::Expr::Range(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => crate::Expr::RawAddr(v0.clone()),
- crate::Expr::Reference(v0) => crate::Expr::Reference(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => crate::Expr::Repeat(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => crate::Expr::Return(v0.clone()),
- crate::Expr::Struct(v0) => crate::Expr::Struct(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => crate::Expr::Try(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => crate::Expr::TryBlock(v0.clone()),
- crate::Expr::Tuple(v0) => crate::Expr::Tuple(v0.clone()),
- crate::Expr::Unary(v0) => crate::Expr::Unary(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => crate::Expr::Unsafe(v0.clone()),
- crate::Expr::Verbatim(v0) => crate::Expr::Verbatim(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => crate::Expr::While(v0.clone()),
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => crate::Expr::Yield(v0.clone()),
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprArray {
- fn clone(&self) -> Self {
- crate::ExprArray {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAssign {
- fn clone(&self) -> Self {
- crate::ExprAssign {
- attrs: self.attrs.clone(),
- left: self.left.clone(),
- eq_token: self.eq_token.clone(),
- right: self.right.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAsync {
- fn clone(&self) -> Self {
- crate::ExprAsync {
- attrs: self.attrs.clone(),
- async_token: self.async_token.clone(),
- capture: self.capture.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprAwait {
- fn clone(&self) -> Self {
- crate::ExprAwait {
- attrs: self.attrs.clone(),
- base: self.base.clone(),
- dot_token: self.dot_token.clone(),
- await_token: self.await_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBinary {
- fn clone(&self) -> Self {
- crate::ExprBinary {
- attrs: self.attrs.clone(),
- left: self.left.clone(),
- op: self.op.clone(),
- right: self.right.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBlock {
- fn clone(&self) -> Self {
- crate::ExprBlock {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprBreak {
- fn clone(&self) -> Self {
- crate::ExprBreak {
- attrs: self.attrs.clone(),
- break_token: self.break_token.clone(),
- label: self.label.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprCall {
- fn clone(&self) -> Self {
- crate::ExprCall {
- attrs: self.attrs.clone(),
- func: self.func.clone(),
- paren_token: self.paren_token.clone(),
- args: self.args.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprCast {
- fn clone(&self) -> Self {
- crate::ExprCast {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- as_token: self.as_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprClosure {
- fn clone(&self) -> Self {
- crate::ExprClosure {
- attrs: self.attrs.clone(),
- lifetimes: self.lifetimes.clone(),
- constness: self.constness.clone(),
- movability: self.movability.clone(),
- asyncness: self.asyncness.clone(),
- capture: self.capture.clone(),
- or1_token: self.or1_token.clone(),
- inputs: self.inputs.clone(),
- or2_token: self.or2_token.clone(),
- output: self.output.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprConst {
- fn clone(&self) -> Self {
- crate::ExprConst {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprContinue {
- fn clone(&self) -> Self {
- crate::ExprContinue {
- attrs: self.attrs.clone(),
- continue_token: self.continue_token.clone(),
- label: self.label.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprField {
- fn clone(&self) -> Self {
- crate::ExprField {
- attrs: self.attrs.clone(),
- base: self.base.clone(),
- dot_token: self.dot_token.clone(),
- member: self.member.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprForLoop {
- fn clone(&self) -> Self {
- crate::ExprForLoop {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- for_token: self.for_token.clone(),
- pat: self.pat.clone(),
- in_token: self.in_token.clone(),
- expr: self.expr.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprGroup {
- fn clone(&self) -> Self {
- crate::ExprGroup {
- attrs: self.attrs.clone(),
- group_token: self.group_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprIf {
- fn clone(&self) -> Self {
- crate::ExprIf {
- attrs: self.attrs.clone(),
- if_token: self.if_token.clone(),
- cond: self.cond.clone(),
- then_branch: self.then_branch.clone(),
- else_branch: self.else_branch.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprIndex {
- fn clone(&self) -> Self {
- crate::ExprIndex {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- bracket_token: self.bracket_token.clone(),
- index: self.index.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprInfer {
- fn clone(&self) -> Self {
- crate::ExprInfer {
- attrs: self.attrs.clone(),
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLet {
- fn clone(&self) -> Self {
- crate::ExprLet {
- attrs: self.attrs.clone(),
- let_token: self.let_token.clone(),
- pat: self.pat.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLit {
- fn clone(&self) -> Self {
- crate::ExprLit {
- attrs: self.attrs.clone(),
- lit: self.lit.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprLoop {
- fn clone(&self) -> Self {
- crate::ExprLoop {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- loop_token: self.loop_token.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMacro {
- fn clone(&self) -> Self {
- crate::ExprMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMatch {
- fn clone(&self) -> Self {
- crate::ExprMatch {
- attrs: self.attrs.clone(),
- match_token: self.match_token.clone(),
- expr: self.expr.clone(),
- brace_token: self.brace_token.clone(),
- arms: self.arms.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprMethodCall {
- fn clone(&self) -> Self {
- crate::ExprMethodCall {
- attrs: self.attrs.clone(),
- receiver: self.receiver.clone(),
- dot_token: self.dot_token.clone(),
- method: self.method.clone(),
- turbofish: self.turbofish.clone(),
- paren_token: self.paren_token.clone(),
- args: self.args.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprParen {
- fn clone(&self) -> Self {
- crate::ExprParen {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprPath {
- fn clone(&self) -> Self {
- crate::ExprPath {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRange {
- fn clone(&self) -> Self {
- crate::ExprRange {
- attrs: self.attrs.clone(),
- start: self.start.clone(),
- limits: self.limits.clone(),
- end: self.end.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRawAddr {
- fn clone(&self) -> Self {
- crate::ExprRawAddr {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- raw: self.raw.clone(),
- mutability: self.mutability.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprReference {
- fn clone(&self) -> Self {
- crate::ExprReference {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- mutability: self.mutability.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprRepeat {
- fn clone(&self) -> Self {
- crate::ExprRepeat {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- len: self.len.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprReturn {
- fn clone(&self) -> Self {
- crate::ExprReturn {
- attrs: self.attrs.clone(),
- return_token: self.return_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprStruct {
- fn clone(&self) -> Self {
- crate::ExprStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- brace_token: self.brace_token.clone(),
- fields: self.fields.clone(),
- dot2_token: self.dot2_token.clone(),
- rest: self.rest.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTry {
- fn clone(&self) -> Self {
- crate::ExprTry {
- attrs: self.attrs.clone(),
- expr: self.expr.clone(),
- question_token: self.question_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTryBlock {
- fn clone(&self) -> Self {
- crate::ExprTryBlock {
- attrs: self.attrs.clone(),
- try_token: self.try_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprTuple {
- fn clone(&self) -> Self {
- crate::ExprTuple {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprUnary {
- fn clone(&self) -> Self {
- crate::ExprUnary {
- attrs: self.attrs.clone(),
- op: self.op.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprUnsafe {
- fn clone(&self) -> Self {
- crate::ExprUnsafe {
- attrs: self.attrs.clone(),
- unsafe_token: self.unsafe_token.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprWhile {
- fn clone(&self) -> Self {
- crate::ExprWhile {
- attrs: self.attrs.clone(),
- label: self.label.clone(),
- while_token: self.while_token.clone(),
- cond: self.cond.clone(),
- body: self.body.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ExprYield {
- fn clone(&self) -> Self {
- crate::ExprYield {
- attrs: self.attrs.clone(),
- yield_token: self.yield_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Field {
- fn clone(&self) -> Self {
- crate::Field {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldMutability {
- fn clone(&self) -> Self {
- match self {
- crate::FieldMutability::None => crate::FieldMutability::None,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldPat {
- fn clone(&self) -> Self {
- crate::FieldPat {
- attrs: self.attrs.clone(),
- member: self.member.clone(),
- colon_token: self.colon_token.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldValue {
- fn clone(&self) -> Self {
- crate::FieldValue {
- attrs: self.attrs.clone(),
- member: self.member.clone(),
- colon_token: self.colon_token.clone(),
- expr: self.expr.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Fields {
- fn clone(&self) -> Self {
- match self {
- crate::Fields::Named(v0) => crate::Fields::Named(v0.clone()),
- crate::Fields::Unnamed(v0) => crate::Fields::Unnamed(v0.clone()),
- crate::Fields::Unit => crate::Fields::Unit,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldsNamed {
- fn clone(&self) -> Self {
- crate::FieldsNamed {
- brace_token: self.brace_token.clone(),
- named: self.named.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FieldsUnnamed {
- fn clone(&self) -> Self {
- crate::FieldsUnnamed {
- paren_token: self.paren_token.clone(),
- unnamed: self.unnamed.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::File {
- fn clone(&self) -> Self {
- crate::File {
- shebang: self.shebang.clone(),
- attrs: self.attrs.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::FnArg {
- fn clone(&self) -> Self {
- match self {
- crate::FnArg::Receiver(v0) => crate::FnArg::Receiver(v0.clone()),
- crate::FnArg::Typed(v0) => crate::FnArg::Typed(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItem {
- fn clone(&self) -> Self {
- match self {
- crate::ForeignItem::Fn(v0) => crate::ForeignItem::Fn(v0.clone()),
- crate::ForeignItem::Static(v0) => crate::ForeignItem::Static(v0.clone()),
- crate::ForeignItem::Type(v0) => crate::ForeignItem::Type(v0.clone()),
- crate::ForeignItem::Macro(v0) => crate::ForeignItem::Macro(v0.clone()),
- crate::ForeignItem::Verbatim(v0) => crate::ForeignItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemFn {
- fn clone(&self) -> Self {
- crate::ForeignItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- sig: self.sig.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemMacro {
- fn clone(&self) -> Self {
- crate::ForeignItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemStatic {
- fn clone(&self) -> Self {
- crate::ForeignItemStatic {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- static_token: self.static_token.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ForeignItemType {
- fn clone(&self) -> Self {
- crate::ForeignItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::GenericArgument {
- fn clone(&self) -> Self {
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- crate::GenericArgument::Lifetime(v0.clone())
- }
- crate::GenericArgument::Type(v0) => crate::GenericArgument::Type(v0.clone()),
- crate::GenericArgument::Const(v0) => {
- crate::GenericArgument::Const(v0.clone())
- }
- crate::GenericArgument::AssocType(v0) => {
- crate::GenericArgument::AssocType(v0.clone())
- }
- crate::GenericArgument::AssocConst(v0) => {
- crate::GenericArgument::AssocConst(v0.clone())
- }
- crate::GenericArgument::Constraint(v0) => {
- crate::GenericArgument::Constraint(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::GenericParam {
- fn clone(&self) -> Self {
- match self {
- crate::GenericParam::Lifetime(v0) => {
- crate::GenericParam::Lifetime(v0.clone())
- }
- crate::GenericParam::Type(v0) => crate::GenericParam::Type(v0.clone()),
- crate::GenericParam::Const(v0) => crate::GenericParam::Const(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Generics {
- fn clone(&self) -> Self {
- crate::Generics {
- lt_token: self.lt_token.clone(),
- params: self.params.clone(),
- gt_token: self.gt_token.clone(),
- where_clause: self.where_clause.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItem {
- fn clone(&self) -> Self {
- match self {
- crate::ImplItem::Const(v0) => crate::ImplItem::Const(v0.clone()),
- crate::ImplItem::Fn(v0) => crate::ImplItem::Fn(v0.clone()),
- crate::ImplItem::Type(v0) => crate::ImplItem::Type(v0.clone()),
- crate::ImplItem::Macro(v0) => crate::ImplItem::Macro(v0.clone()),
- crate::ImplItem::Verbatim(v0) => crate::ImplItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemConst {
- fn clone(&self) -> Self {
- crate::ImplItemConst {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemFn {
- fn clone(&self) -> Self {
- crate::ImplItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- sig: self.sig.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemMacro {
- fn clone(&self) -> Self {
- crate::ImplItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplItemType {
- fn clone(&self) -> Self {
- crate::ImplItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- defaultness: self.defaultness.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ImplRestriction {
- fn clone(&self) -> Self {
- match *self {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Index {
- fn clone(&self) -> Self {
- crate::Index {
- index: self.index.clone(),
- span: self.span.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Item {
- fn clone(&self) -> Self {
- match self {
- crate::Item::Const(v0) => crate::Item::Const(v0.clone()),
- crate::Item::Enum(v0) => crate::Item::Enum(v0.clone()),
- crate::Item::ExternCrate(v0) => crate::Item::ExternCrate(v0.clone()),
- crate::Item::Fn(v0) => crate::Item::Fn(v0.clone()),
- crate::Item::ForeignMod(v0) => crate::Item::ForeignMod(v0.clone()),
- crate::Item::Impl(v0) => crate::Item::Impl(v0.clone()),
- crate::Item::Macro(v0) => crate::Item::Macro(v0.clone()),
- crate::Item::Mod(v0) => crate::Item::Mod(v0.clone()),
- crate::Item::Static(v0) => crate::Item::Static(v0.clone()),
- crate::Item::Struct(v0) => crate::Item::Struct(v0.clone()),
- crate::Item::Trait(v0) => crate::Item::Trait(v0.clone()),
- crate::Item::TraitAlias(v0) => crate::Item::TraitAlias(v0.clone()),
- crate::Item::Type(v0) => crate::Item::Type(v0.clone()),
- crate::Item::Union(v0) => crate::Item::Union(v0.clone()),
- crate::Item::Use(v0) => crate::Item::Use(v0.clone()),
- crate::Item::Verbatim(v0) => crate::Item::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemConst {
- fn clone(&self) -> Self {
- crate::ItemConst {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemEnum {
- fn clone(&self) -> Self {
- crate::ItemEnum {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- enum_token: self.enum_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- brace_token: self.brace_token.clone(),
- variants: self.variants.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemExternCrate {
- fn clone(&self) -> Self {
- crate::ItemExternCrate {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- extern_token: self.extern_token.clone(),
- crate_token: self.crate_token.clone(),
- ident: self.ident.clone(),
- rename: self.rename.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemFn {
- fn clone(&self) -> Self {
- crate::ItemFn {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- sig: self.sig.clone(),
- block: self.block.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemForeignMod {
- fn clone(&self) -> Self {
- crate::ItemForeignMod {
- attrs: self.attrs.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemImpl {
- fn clone(&self) -> Self {
- crate::ItemImpl {
- attrs: self.attrs.clone(),
- defaultness: self.defaultness.clone(),
- unsafety: self.unsafety.clone(),
- impl_token: self.impl_token.clone(),
- generics: self.generics.clone(),
- trait_: self.trait_.clone(),
- self_ty: self.self_ty.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemMacro {
- fn clone(&self) -> Self {
- crate::ItemMacro {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemMod {
- fn clone(&self) -> Self {
- crate::ItemMod {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- unsafety: self.unsafety.clone(),
- mod_token: self.mod_token.clone(),
- ident: self.ident.clone(),
- content: self.content.clone(),
- semi: self.semi.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemStatic {
- fn clone(&self) -> Self {
- crate::ItemStatic {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- static_token: self.static_token.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemStruct {
- fn clone(&self) -> Self {
- crate::ItemStruct {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- struct_token: self.struct_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- fields: self.fields.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemTrait {
- fn clone(&self) -> Self {
- crate::ItemTrait {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- unsafety: self.unsafety.clone(),
- auto_token: self.auto_token.clone(),
- restriction: self.restriction.clone(),
- trait_token: self.trait_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- supertraits: self.supertraits.clone(),
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemTraitAlias {
- fn clone(&self) -> Self {
- crate::ItemTraitAlias {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- trait_token: self.trait_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- bounds: self.bounds.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemType {
- fn clone(&self) -> Self {
- crate::ItemType {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- eq_token: self.eq_token.clone(),
- ty: self.ty.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemUnion {
- fn clone(&self) -> Self {
- crate::ItemUnion {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- union_token: self.union_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- fields: self.fields.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ItemUse {
- fn clone(&self) -> Self {
- crate::ItemUse {
- attrs: self.attrs.clone(),
- vis: self.vis.clone(),
- use_token: self.use_token.clone(),
- leading_colon: self.leading_colon.clone(),
- tree: self.tree.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Label {
- fn clone(&self) -> Self {
- crate::Label {
- name: self.name.clone(),
- colon_token: self.colon_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LifetimeParam {
- fn clone(&self) -> Self {
- crate::LifetimeParam {
- attrs: self.attrs.clone(),
- lifetime: self.lifetime.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Lit {
- fn clone(&self) -> Self {
- match self {
- crate::Lit::Str(v0) => crate::Lit::Str(v0.clone()),
- crate::Lit::ByteStr(v0) => crate::Lit::ByteStr(v0.clone()),
- crate::Lit::CStr(v0) => crate::Lit::CStr(v0.clone()),
- crate::Lit::Byte(v0) => crate::Lit::Byte(v0.clone()),
- crate::Lit::Char(v0) => crate::Lit::Char(v0.clone()),
- crate::Lit::Int(v0) => crate::Lit::Int(v0.clone()),
- crate::Lit::Float(v0) => crate::Lit::Float(v0.clone()),
- crate::Lit::Bool(v0) => crate::Lit::Bool(v0.clone()),
- crate::Lit::Verbatim(v0) => crate::Lit::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LitBool {
- fn clone(&self) -> Self {
- crate::LitBool {
- value: self.value.clone(),
- span: self.span.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Local {
- fn clone(&self) -> Self {
- crate::Local {
- attrs: self.attrs.clone(),
- let_token: self.let_token.clone(),
- pat: self.pat.clone(),
- init: self.init.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::LocalInit {
- fn clone(&self) -> Self {
- crate::LocalInit {
- eq_token: self.eq_token.clone(),
- expr: self.expr.clone(),
- diverge: self.diverge.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Macro {
- fn clone(&self) -> Self {
- crate::Macro {
- path: self.path.clone(),
- bang_token: self.bang_token.clone(),
- delimiter: self.delimiter.clone(),
- tokens: self.tokens.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MacroDelimiter {
- fn clone(&self) -> Self {
- match self {
- crate::MacroDelimiter::Paren(v0) => crate::MacroDelimiter::Paren(v0.clone()),
- crate::MacroDelimiter::Brace(v0) => crate::MacroDelimiter::Brace(v0.clone()),
- crate::MacroDelimiter::Bracket(v0) => {
- crate::MacroDelimiter::Bracket(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Member {
- fn clone(&self) -> Self {
- match self {
- crate::Member::Named(v0) => crate::Member::Named(v0.clone()),
- crate::Member::Unnamed(v0) => crate::Member::Unnamed(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Meta {
- fn clone(&self) -> Self {
- match self {
- crate::Meta::Path(v0) => crate::Meta::Path(v0.clone()),
- crate::Meta::List(v0) => crate::Meta::List(v0.clone()),
- crate::Meta::NameValue(v0) => crate::Meta::NameValue(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MetaList {
- fn clone(&self) -> Self {
- crate::MetaList {
- path: self.path.clone(),
- delimiter: self.delimiter.clone(),
- tokens: self.tokens.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::MetaNameValue {
- fn clone(&self) -> Self {
- crate::MetaNameValue {
- path: self.path.clone(),
- eq_token: self.eq_token.clone(),
- value: self.value.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ParenthesizedGenericArguments {
- fn clone(&self) -> Self {
- crate::ParenthesizedGenericArguments {
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Pat {
- fn clone(&self) -> Self {
- match self {
- crate::Pat::Const(v0) => crate::Pat::Const(v0.clone()),
- crate::Pat::Ident(v0) => crate::Pat::Ident(v0.clone()),
- crate::Pat::Lit(v0) => crate::Pat::Lit(v0.clone()),
- crate::Pat::Macro(v0) => crate::Pat::Macro(v0.clone()),
- crate::Pat::Or(v0) => crate::Pat::Or(v0.clone()),
- crate::Pat::Paren(v0) => crate::Pat::Paren(v0.clone()),
- crate::Pat::Path(v0) => crate::Pat::Path(v0.clone()),
- crate::Pat::Range(v0) => crate::Pat::Range(v0.clone()),
- crate::Pat::Reference(v0) => crate::Pat::Reference(v0.clone()),
- crate::Pat::Rest(v0) => crate::Pat::Rest(v0.clone()),
- crate::Pat::Slice(v0) => crate::Pat::Slice(v0.clone()),
- crate::Pat::Struct(v0) => crate::Pat::Struct(v0.clone()),
- crate::Pat::Tuple(v0) => crate::Pat::Tuple(v0.clone()),
- crate::Pat::TupleStruct(v0) => crate::Pat::TupleStruct(v0.clone()),
- crate::Pat::Type(v0) => crate::Pat::Type(v0.clone()),
- crate::Pat::Verbatim(v0) => crate::Pat::Verbatim(v0.clone()),
- crate::Pat::Wild(v0) => crate::Pat::Wild(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatIdent {
- fn clone(&self) -> Self {
- crate::PatIdent {
- attrs: self.attrs.clone(),
- by_ref: self.by_ref.clone(),
- mutability: self.mutability.clone(),
- ident: self.ident.clone(),
- subpat: self.subpat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatOr {
- fn clone(&self) -> Self {
- crate::PatOr {
- attrs: self.attrs.clone(),
- leading_vert: self.leading_vert.clone(),
- cases: self.cases.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatParen {
- fn clone(&self) -> Self {
- crate::PatParen {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatReference {
- fn clone(&self) -> Self {
- crate::PatReference {
- attrs: self.attrs.clone(),
- and_token: self.and_token.clone(),
- mutability: self.mutability.clone(),
- pat: self.pat.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatRest {
- fn clone(&self) -> Self {
- crate::PatRest {
- attrs: self.attrs.clone(),
- dot2_token: self.dot2_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatSlice {
- fn clone(&self) -> Self {
- crate::PatSlice {
- attrs: self.attrs.clone(),
- bracket_token: self.bracket_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatStruct {
- fn clone(&self) -> Self {
- crate::PatStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- brace_token: self.brace_token.clone(),
- fields: self.fields.clone(),
- rest: self.rest.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatTuple {
- fn clone(&self) -> Self {
- crate::PatTuple {
- attrs: self.attrs.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatTupleStruct {
- fn clone(&self) -> Self {
- crate::PatTupleStruct {
- attrs: self.attrs.clone(),
- qself: self.qself.clone(),
- path: self.path.clone(),
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatType {
- fn clone(&self) -> Self {
- crate::PatType {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PatWild {
- fn clone(&self) -> Self {
- crate::PatWild {
- attrs: self.attrs.clone(),
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Path {
- fn clone(&self) -> Self {
- crate::Path {
- leading_colon: self.leading_colon.clone(),
- segments: self.segments.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PathArguments {
- fn clone(&self) -> Self {
- match self {
- crate::PathArguments::None => crate::PathArguments::None,
- crate::PathArguments::AngleBracketed(v0) => {
- crate::PathArguments::AngleBracketed(v0.clone())
- }
- crate::PathArguments::Parenthesized(v0) => {
- crate::PathArguments::Parenthesized(v0.clone())
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PathSegment {
- fn clone(&self) -> Self {
- crate::PathSegment {
- ident: self.ident.clone(),
- arguments: self.arguments.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PointerMutability {
- fn clone(&self) -> Self {
- match self {
- crate::PointerMutability::Const(v0) => {
- crate::PointerMutability::Const(v0.clone())
- }
- crate::PointerMutability::Mut(v0) => {
- crate::PointerMutability::Mut(v0.clone())
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PreciseCapture {
- fn clone(&self) -> Self {
- crate::PreciseCapture {
- use_token: self.use_token.clone(),
- lt_token: self.lt_token.clone(),
- params: self.params.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PredicateLifetime {
- fn clone(&self) -> Self {
- crate::PredicateLifetime {
- lifetime: self.lifetime.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::PredicateType {
- fn clone(&self) -> Self {
- crate::PredicateType {
- lifetimes: self.lifetimes.clone(),
- bounded_ty: self.bounded_ty.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::QSelf {
- fn clone(&self) -> Self {
- crate::QSelf {
- lt_token: self.lt_token.clone(),
- ty: self.ty.clone(),
- position: self.position.clone(),
- as_token: self.as_token.clone(),
- gt_token: self.gt_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::RangeLimits {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::RangeLimits {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Receiver {
- fn clone(&self) -> Self {
- crate::Receiver {
- attrs: self.attrs.clone(),
- reference: self.reference.clone(),
- mutability: self.mutability.clone(),
- self_token: self.self_token.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::ReturnType {
- fn clone(&self) -> Self {
- match self {
- crate::ReturnType::Default => crate::ReturnType::Default,
- crate::ReturnType::Type(v0, v1) => {
- crate::ReturnType::Type(v0.clone(), v1.clone())
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Signature {
- fn clone(&self) -> Self {
- crate::Signature {
- constness: self.constness.clone(),
- asyncness: self.asyncness.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- fn_token: self.fn_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- variadic: self.variadic.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::StaticMutability {
- fn clone(&self) -> Self {
- match self {
- crate::StaticMutability::Mut(v0) => crate::StaticMutability::Mut(v0.clone()),
- crate::StaticMutability::None => crate::StaticMutability::None,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Stmt {
- fn clone(&self) -> Self {
- match self {
- crate::Stmt::Local(v0) => crate::Stmt::Local(v0.clone()),
- crate::Stmt::Item(v0) => crate::Stmt::Item(v0.clone()),
- crate::Stmt::Expr(v0, v1) => crate::Stmt::Expr(v0.clone(), v1.clone()),
- crate::Stmt::Macro(v0) => crate::Stmt::Macro(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::StmtMacro {
- fn clone(&self) -> Self {
- crate::StmtMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitBound {
- fn clone(&self) -> Self {
- crate::TraitBound {
- paren_token: self.paren_token.clone(),
- modifier: self.modifier.clone(),
- lifetimes: self.lifetimes.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::TraitBoundModifier {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitBoundModifier {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItem {
- fn clone(&self) -> Self {
- match self {
- crate::TraitItem::Const(v0) => crate::TraitItem::Const(v0.clone()),
- crate::TraitItem::Fn(v0) => crate::TraitItem::Fn(v0.clone()),
- crate::TraitItem::Type(v0) => crate::TraitItem::Type(v0.clone()),
- crate::TraitItem::Macro(v0) => crate::TraitItem::Macro(v0.clone()),
- crate::TraitItem::Verbatim(v0) => crate::TraitItem::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemConst {
- fn clone(&self) -> Self {
- crate::TraitItemConst {
- attrs: self.attrs.clone(),
- const_token: self.const_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- ty: self.ty.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemFn {
- fn clone(&self) -> Self {
- crate::TraitItemFn {
- attrs: self.attrs.clone(),
- sig: self.sig.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemMacro {
- fn clone(&self) -> Self {
- crate::TraitItemMacro {
- attrs: self.attrs.clone(),
- mac: self.mac.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TraitItemType {
- fn clone(&self) -> Self {
- crate::TraitItemType {
- attrs: self.attrs.clone(),
- type_token: self.type_token.clone(),
- ident: self.ident.clone(),
- generics: self.generics.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- default: self.default.clone(),
- semi_token: self.semi_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Type {
- fn clone(&self) -> Self {
- match self {
- crate::Type::Array(v0) => crate::Type::Array(v0.clone()),
- crate::Type::BareFn(v0) => crate::Type::BareFn(v0.clone()),
- crate::Type::Group(v0) => crate::Type::Group(v0.clone()),
- crate::Type::ImplTrait(v0) => crate::Type::ImplTrait(v0.clone()),
- crate::Type::Infer(v0) => crate::Type::Infer(v0.clone()),
- crate::Type::Macro(v0) => crate::Type::Macro(v0.clone()),
- crate::Type::Never(v0) => crate::Type::Never(v0.clone()),
- crate::Type::Paren(v0) => crate::Type::Paren(v0.clone()),
- crate::Type::Path(v0) => crate::Type::Path(v0.clone()),
- crate::Type::Ptr(v0) => crate::Type::Ptr(v0.clone()),
- crate::Type::Reference(v0) => crate::Type::Reference(v0.clone()),
- crate::Type::Slice(v0) => crate::Type::Slice(v0.clone()),
- crate::Type::TraitObject(v0) => crate::Type::TraitObject(v0.clone()),
- crate::Type::Tuple(v0) => crate::Type::Tuple(v0.clone()),
- crate::Type::Verbatim(v0) => crate::Type::Verbatim(v0.clone()),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeArray {
- fn clone(&self) -> Self {
- crate::TypeArray {
- bracket_token: self.bracket_token.clone(),
- elem: self.elem.clone(),
- semi_token: self.semi_token.clone(),
- len: self.len.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeBareFn {
- fn clone(&self) -> Self {
- crate::TypeBareFn {
- lifetimes: self.lifetimes.clone(),
- unsafety: self.unsafety.clone(),
- abi: self.abi.clone(),
- fn_token: self.fn_token.clone(),
- paren_token: self.paren_token.clone(),
- inputs: self.inputs.clone(),
- variadic: self.variadic.clone(),
- output: self.output.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeGroup {
- fn clone(&self) -> Self {
- crate::TypeGroup {
- group_token: self.group_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeImplTrait {
- fn clone(&self) -> Self {
- crate::TypeImplTrait {
- impl_token: self.impl_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeInfer {
- fn clone(&self) -> Self {
- crate::TypeInfer {
- underscore_token: self.underscore_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeMacro {
- fn clone(&self) -> Self {
- crate::TypeMacro {
- mac: self.mac.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeNever {
- fn clone(&self) -> Self {
- crate::TypeNever {
- bang_token: self.bang_token.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParam {
- fn clone(&self) -> Self {
- crate::TypeParam {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- colon_token: self.colon_token.clone(),
- bounds: self.bounds.clone(),
- eq_token: self.eq_token.clone(),
- default: self.default.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParamBound {
- fn clone(&self) -> Self {
- match self {
- crate::TypeParamBound::Trait(v0) => crate::TypeParamBound::Trait(v0.clone()),
- crate::TypeParamBound::Lifetime(v0) => {
- crate::TypeParamBound::Lifetime(v0.clone())
- }
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- crate::TypeParamBound::PreciseCapture(v0.clone())
- }
- crate::TypeParamBound::Verbatim(v0) => {
- crate::TypeParamBound::Verbatim(v0.clone())
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeParen {
- fn clone(&self) -> Self {
- crate::TypeParen {
- paren_token: self.paren_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypePath {
- fn clone(&self) -> Self {
- crate::TypePath {
- qself: self.qself.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypePtr {
- fn clone(&self) -> Self {
- crate::TypePtr {
- star_token: self.star_token.clone(),
- const_token: self.const_token.clone(),
- mutability: self.mutability.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeReference {
- fn clone(&self) -> Self {
- crate::TypeReference {
- and_token: self.and_token.clone(),
- lifetime: self.lifetime.clone(),
- mutability: self.mutability.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeSlice {
- fn clone(&self) -> Self {
- crate::TypeSlice {
- bracket_token: self.bracket_token.clone(),
- elem: self.elem.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeTraitObject {
- fn clone(&self) -> Self {
- crate::TypeTraitObject {
- dyn_token: self.dyn_token.clone(),
- bounds: self.bounds.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::TypeTuple {
- fn clone(&self) -> Self {
- crate::TypeTuple {
- paren_token: self.paren_token.clone(),
- elems: self.elems.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for crate::UnOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UnOp {
- fn clone(&self) -> Self {
- *self
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseGlob {
- fn clone(&self) -> Self {
- crate::UseGlob {
- star_token: self.star_token.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseGroup {
- fn clone(&self) -> Self {
- crate::UseGroup {
- brace_token: self.brace_token.clone(),
- items: self.items.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseName {
- fn clone(&self) -> Self {
- crate::UseName {
- ident: self.ident.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UsePath {
- fn clone(&self) -> Self {
- crate::UsePath {
- ident: self.ident.clone(),
- colon2_token: self.colon2_token.clone(),
- tree: self.tree.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseRename {
- fn clone(&self) -> Self {
- crate::UseRename {
- ident: self.ident.clone(),
- as_token: self.as_token.clone(),
- rename: self.rename.clone(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::UseTree {
- fn clone(&self) -> Self {
- match self {
- crate::UseTree::Path(v0) => crate::UseTree::Path(v0.clone()),
- crate::UseTree::Name(v0) => crate::UseTree::Name(v0.clone()),
- crate::UseTree::Rename(v0) => crate::UseTree::Rename(v0.clone()),
- crate::UseTree::Glob(v0) => crate::UseTree::Glob(v0.clone()),
- crate::UseTree::Group(v0) => crate::UseTree::Group(v0.clone()),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Variadic {
- fn clone(&self) -> Self {
- crate::Variadic {
- attrs: self.attrs.clone(),
- pat: self.pat.clone(),
- dots: self.dots.clone(),
- comma: self.comma.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Variant {
- fn clone(&self) -> Self {
- crate::Variant {
- attrs: self.attrs.clone(),
- ident: self.ident.clone(),
- fields: self.fields.clone(),
- discriminant: self.discriminant.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::VisRestricted {
- fn clone(&self) -> Self {
- crate::VisRestricted {
- pub_token: self.pub_token.clone(),
- paren_token: self.paren_token.clone(),
- in_token: self.in_token.clone(),
- path: self.path.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::Visibility {
- fn clone(&self) -> Self {
- match self {
- crate::Visibility::Public(v0) => crate::Visibility::Public(v0.clone()),
- crate::Visibility::Restricted(v0) => {
- crate::Visibility::Restricted(v0.clone())
- }
- crate::Visibility::Inherited => crate::Visibility::Inherited,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::WhereClause {
- fn clone(&self) -> Self {
- crate::WhereClause {
- where_token: self.where_token.clone(),
- predicates: self.predicates.clone(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for crate::WherePredicate {
- fn clone(&self) -> Self {
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- crate::WherePredicate::Lifetime(v0.clone())
- }
- crate::WherePredicate::Type(v0) => crate::WherePredicate::Type(v0.clone()),
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/debug.rs b/deps/crates/vendor/syn-v2/src/gen/debug.rs
deleted file mode 100644
index bf0784d1c46..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/debug.rs
+++ /dev/null
@@ -1,3238 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unknown_lints, non_local_definitions)]
-use core::fmt::{self, Debug};
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Abi {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Abi");
- formatter.field("extern_token", &self.extern_token);
- formatter.field("name", &self.name);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AngleBracketedGenericArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "AngleBracketedGenericArguments")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::AngleBracketedGenericArguments {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("colon2_token", &self.colon2_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("args", &self.args);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Arm {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Arm");
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("guard", &self.guard);
- formatter.field("fat_arrow_token", &self.fat_arrow_token);
- formatter.field("body", &self.body);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AssocConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocConst");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("value", &self.value);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AssocType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocType");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::AttrStyle {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("AttrStyle::")?;
- match self {
- crate::AttrStyle::Outer => formatter.write_str("Outer"),
- crate::AttrStyle::Inner(v0) => {
- let mut formatter = formatter.debug_tuple("Inner");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Attribute {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Attribute");
- formatter.field("pound_token", &self.pound_token);
- formatter.field("style", &self.style);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("meta", &self.meta);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BareFnArg {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareFnArg");
- formatter.field("attrs", &self.attrs);
- formatter.field("name", &self.name);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BareVariadic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareVariadic");
- formatter.field("attrs", &self.attrs);
- formatter.field("name", &self.name);
- formatter.field("dots", &self.dots);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BinOp {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("BinOp::")?;
- match self {
- crate::BinOp::Add(v0) => {
- let mut formatter = formatter.debug_tuple("Add");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Sub(v0) => {
- let mut formatter = formatter.debug_tuple("Sub");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Mul(v0) => {
- let mut formatter = formatter.debug_tuple("Mul");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Div(v0) => {
- let mut formatter = formatter.debug_tuple("Div");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Rem(v0) => {
- let mut formatter = formatter.debug_tuple("Rem");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::And(v0) => {
- let mut formatter = formatter.debug_tuple("And");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Or(v0) => {
- let mut formatter = formatter.debug_tuple("Or");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitXor(v0) => {
- let mut formatter = formatter.debug_tuple("BitXor");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitAnd(v0) => {
- let mut formatter = formatter.debug_tuple("BitAnd");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitOr(v0) => {
- let mut formatter = formatter.debug_tuple("BitOr");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Shl(v0) => {
- let mut formatter = formatter.debug_tuple("Shl");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Shr(v0) => {
- let mut formatter = formatter.debug_tuple("Shr");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Eq(v0) => {
- let mut formatter = formatter.debug_tuple("Eq");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Lt(v0) => {
- let mut formatter = formatter.debug_tuple("Lt");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Le(v0) => {
- let mut formatter = formatter.debug_tuple("Le");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Ne(v0) => {
- let mut formatter = formatter.debug_tuple("Ne");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Ge(v0) => {
- let mut formatter = formatter.debug_tuple("Ge");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::Gt(v0) => {
- let mut formatter = formatter.debug_tuple("Gt");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::AddAssign(v0) => {
- let mut formatter = formatter.debug_tuple("AddAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::SubAssign(v0) => {
- let mut formatter = formatter.debug_tuple("SubAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::MulAssign(v0) => {
- let mut formatter = formatter.debug_tuple("MulAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::DivAssign(v0) => {
- let mut formatter = formatter.debug_tuple("DivAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::RemAssign(v0) => {
- let mut formatter = formatter.debug_tuple("RemAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitXorAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitXorAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitAndAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitAndAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::BitOrAssign(v0) => {
- let mut formatter = formatter.debug_tuple("BitOrAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::ShlAssign(v0) => {
- let mut formatter = formatter.debug_tuple("ShlAssign");
- formatter.field(v0);
- formatter.finish()
- }
- crate::BinOp::ShrAssign(v0) => {
- let mut formatter = formatter.debug_tuple("ShrAssign");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Block {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Block");
- formatter.field("brace_token", &self.brace_token);
- formatter.field("stmts", &self.stmts);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::BoundLifetimes {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BoundLifetimes");
- formatter.field("for_token", &self.for_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::CapturedParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("CapturedParam::")?;
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::CapturedParam::Ident(v0) => {
- let mut formatter = formatter.debug_tuple("Ident");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ConstParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ConstParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("default", &self.default);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Constraint {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Constraint");
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Data {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Data::")?;
- match self {
- crate::Data::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Data::Enum(v0) => v0.debug(formatter, "Enum"),
- crate::Data::Union(v0) => v0.debug(formatter, "Union"),
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataEnum {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataEnum")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataEnum {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("enum_token", &self.enum_token);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("variants", &self.variants);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataStruct")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("struct_token", &self.struct_token);
- formatter.field("fields", &self.fields);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DataUnion {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "DataUnion")
- }
-}
-#[cfg(feature = "derive")]
-impl crate::DataUnion {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("union_token", &self.union_token);
- formatter.field("fields", &self.fields);
- formatter.finish()
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::DeriveInput {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DeriveInput");
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("data", &self.data);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Expr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Expr::")?;
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => v0.debug(formatter, "Array"),
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => v0.debug(formatter, "Assign"),
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => v0.debug(formatter, "Async"),
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => v0.debug(formatter, "Await"),
- crate::Expr::Binary(v0) => v0.debug(formatter, "Binary"),
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => v0.debug(formatter, "Block"),
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => v0.debug(formatter, "Break"),
- crate::Expr::Call(v0) => v0.debug(formatter, "Call"),
- crate::Expr::Cast(v0) => v0.debug(formatter, "Cast"),
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => v0.debug(formatter, "Closure"),
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => v0.debug(formatter, "Const"),
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => v0.debug(formatter, "Continue"),
- crate::Expr::Field(v0) => v0.debug(formatter, "Field"),
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => v0.debug(formatter, "ForLoop"),
- crate::Expr::Group(v0) => v0.debug(formatter, "Group"),
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => v0.debug(formatter, "If"),
- crate::Expr::Index(v0) => v0.debug(formatter, "Index"),
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => v0.debug(formatter, "Infer"),
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => v0.debug(formatter, "Let"),
- crate::Expr::Lit(v0) => v0.debug(formatter, "Lit"),
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => v0.debug(formatter, "Loop"),
- crate::Expr::Macro(v0) => v0.debug(formatter, "Macro"),
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => v0.debug(formatter, "Match"),
- crate::Expr::MethodCall(v0) => v0.debug(formatter, "MethodCall"),
- crate::Expr::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Expr::Path(v0) => v0.debug(formatter, "Path"),
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => v0.debug(formatter, "Range"),
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => v0.debug(formatter, "RawAddr"),
- crate::Expr::Reference(v0) => v0.debug(formatter, "Reference"),
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => v0.debug(formatter, "Repeat"),
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => v0.debug(formatter, "Return"),
- crate::Expr::Struct(v0) => v0.debug(formatter, "Struct"),
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => v0.debug(formatter, "Try"),
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => v0.debug(formatter, "TryBlock"),
- crate::Expr::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Expr::Unary(v0) => v0.debug(formatter, "Unary"),
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => v0.debug(formatter, "Unsafe"),
- crate::Expr::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => v0.debug(formatter, "While"),
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => v0.debug(formatter, "Yield"),
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprArray {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprArray")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprArray {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAssign {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAssign")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAssign {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("left", &self.left);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("right", &self.right);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAsync {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAsync")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAsync {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("async_token", &self.async_token);
- formatter.field("capture", &self.capture);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprAwait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprAwait")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprAwait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("base", &self.base);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("await_token", &self.await_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBinary {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBinary")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprBinary {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("left", &self.left);
- formatter.field("op", &self.op);
- formatter.field("right", &self.right);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBlock {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBlock")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprBlock {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprBreak {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprBreak")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprBreak {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("break_token", &self.break_token);
- formatter.field("label", &self.label);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprCall {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprCall")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprCall {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("func", &self.func);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("args", &self.args);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprCast {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprCast")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprCast {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("as_token", &self.as_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprClosure {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprClosure")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprClosure {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("constness", &self.constness);
- formatter.field("movability", &self.movability);
- formatter.field("asyncness", &self.asyncness);
- formatter.field("capture", &self.capture);
- formatter.field("or1_token", &self.or1_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("or2_token", &self.or2_token);
- formatter.field("output", &self.output);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprContinue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprContinue")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprContinue {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("continue_token", &self.continue_token);
- formatter.field("label", &self.label);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprField {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprField")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprField {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("base", &self.base);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("member", &self.member);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprForLoop {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprForLoop")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprForLoop {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("for_token", &self.for_token);
- formatter.field("pat", &self.pat);
- formatter.field("in_token", &self.in_token);
- formatter.field("expr", &self.expr);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprGroup")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprGroup {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("group_token", &self.group_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprIf {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprIf")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprIf {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("if_token", &self.if_token);
- formatter.field("cond", &self.cond);
- formatter.field("then_branch", &self.then_branch);
- formatter.field("else_branch", &self.else_branch);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprIndex {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprIndex")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprIndex {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("index", &self.index);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprInfer {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprInfer")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprInfer {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLet {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLet")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprLet {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("let_token", &self.let_token);
- formatter.field("pat", &self.pat);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLit")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprLit {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("lit", &self.lit);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprLoop {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprLoop")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprLoop {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("loop_token", &self.loop_token);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMacro")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMatch {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMatch")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprMatch {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("match_token", &self.match_token);
- formatter.field("expr", &self.expr);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("arms", &self.arms);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprMethodCall {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprMethodCall")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprMethodCall {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("receiver", &self.receiver);
- formatter.field("dot_token", &self.dot_token);
- formatter.field("method", &self.method);
- formatter.field("turbofish", &self.turbofish);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("args", &self.args);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprParen")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprPath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprPath")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprPath {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRange {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRange")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRange {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("start", &self.start);
- formatter.field("limits", &self.limits);
- formatter.field("end", &self.end);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRawAddr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRawAddr")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRawAddr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("raw", &self.raw);
- formatter.field("mutability", &self.mutability);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprReference")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprRepeat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprRepeat")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprRepeat {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.field("len", &self.len);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprReturn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprReturn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprReturn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("return_token", &self.return_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprStruct")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("fields", &self.fields);
- formatter.field("dot2_token", &self.dot2_token);
- formatter.field("rest", &self.rest);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTry {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTry")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprTry {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("expr", &self.expr);
- formatter.field("question_token", &self.question_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTryBlock {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTryBlock")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprTryBlock {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("try_token", &self.try_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprTuple")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprUnary {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprUnary")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ExprUnary {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("op", &self.op);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprUnsafe {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprUnsafe")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprUnsafe {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("unsafe_token", &self.unsafe_token);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprWhile {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprWhile")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprWhile {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("label", &self.label);
- formatter.field("while_token", &self.while_token);
- formatter.field("cond", &self.cond);
- formatter.field("body", &self.body);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ExprYield {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ExprYield")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ExprYield {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("yield_token", &self.yield_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Field {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Field");
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("FieldMutability::")?;
- match self {
- crate::FieldMutability::None => formatter.write_str("None"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldPat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldPat");
- formatter.field("attrs", &self.attrs);
- formatter.field("member", &self.member);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldValue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldValue");
- formatter.field("attrs", &self.attrs);
- formatter.field("member", &self.member);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("expr", &self.expr);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Fields {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Fields::")?;
- match self {
- crate::Fields::Named(v0) => v0.debug(formatter, "Named"),
- crate::Fields::Unnamed(v0) => v0.debug(formatter, "Unnamed"),
- crate::Fields::Unit => formatter.write_str("Unit"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldsNamed {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "FieldsNamed")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::FieldsNamed {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("named", &self.named);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FieldsUnnamed {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "FieldsUnnamed")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::FieldsUnnamed {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("unnamed", &self.unnamed);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::File {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("File");
- formatter.field("shebang", &self.shebang);
- formatter.field("attrs", &self.attrs);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::FnArg {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("FnArg::")?;
- match self {
- crate::FnArg::Receiver(v0) => {
- let mut formatter = formatter.debug_tuple("Receiver");
- formatter.field(v0);
- formatter.finish()
- }
- crate::FnArg::Typed(v0) => {
- let mut formatter = formatter.debug_tuple("Typed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ForeignItem::")?;
- match self {
- crate::ForeignItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::ForeignItem::Static(v0) => v0.debug(formatter, "Static"),
- crate::ForeignItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::ForeignItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::ForeignItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("sig", &self.sig);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemStatic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemStatic")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemStatic {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("static_token", &self.static_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ForeignItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ForeignItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ForeignItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::GenericArgument {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("GenericArgument::")?;
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::AssocType(v0) => {
- let mut formatter = formatter.debug_tuple("AssocType");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::AssocConst(v0) => {
- let mut formatter = formatter.debug_tuple("AssocConst");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericArgument::Constraint(v0) => {
- let mut formatter = formatter.debug_tuple("Constraint");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::GenericParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("GenericParam::")?;
- match self {
- crate::GenericParam::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericParam::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- crate::GenericParam::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Generics {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Generics");
- formatter.field("lt_token", &self.lt_token);
- formatter.field("params", &self.params);
- formatter.field("gt_token", &self.gt_token);
- formatter.field("where_clause", &self.where_clause);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ImplItem::")?;
- match self {
- crate::ImplItem::Const(v0) => v0.debug(formatter, "Const"),
- crate::ImplItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::ImplItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::ImplItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::ImplItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("sig", &self.sig);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ImplItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ImplItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ImplRestriction {
- fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
- match *self {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Index {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Index");
- formatter.field("index", &self.index);
- formatter.field("span", &self.span);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Item {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Item::")?;
- match self {
- crate::Item::Const(v0) => v0.debug(formatter, "Const"),
- crate::Item::Enum(v0) => v0.debug(formatter, "Enum"),
- crate::Item::ExternCrate(v0) => v0.debug(formatter, "ExternCrate"),
- crate::Item::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::Item::ForeignMod(v0) => v0.debug(formatter, "ForeignMod"),
- crate::Item::Impl(v0) => v0.debug(formatter, "Impl"),
- crate::Item::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Item::Mod(v0) => v0.debug(formatter, "Mod"),
- crate::Item::Static(v0) => v0.debug(formatter, "Static"),
- crate::Item::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Item::Trait(v0) => v0.debug(formatter, "Trait"),
- crate::Item::TraitAlias(v0) => v0.debug(formatter, "TraitAlias"),
- crate::Item::Type(v0) => v0.debug(formatter, "Type"),
- crate::Item::Union(v0) => v0.debug(formatter, "Union"),
- crate::Item::Use(v0) => v0.debug(formatter, "Use"),
- crate::Item::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemEnum {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemEnum")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemEnum {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("enum_token", &self.enum_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("variants", &self.variants);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemExternCrate {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemExternCrate")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemExternCrate {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("extern_token", &self.extern_token);
- formatter.field("crate_token", &self.crate_token);
- formatter.field("ident", &self.ident);
- formatter.field("rename", &self.rename);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("sig", &self.sig);
- formatter.field("block", &self.block);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemForeignMod {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemForeignMod")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemForeignMod {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemImpl {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemImpl")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemImpl {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("defaultness", &self.defaultness);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("impl_token", &self.impl_token);
- formatter.field("generics", &self.generics);
- formatter.field("trait_", &self.trait_);
- formatter.field("self_ty", &self.self_ty);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemMod {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemMod")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemMod {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("mod_token", &self.mod_token);
- formatter.field("ident", &self.ident);
- formatter.field("content", &self.content);
- formatter.field("semi", &self.semi);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemStatic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemStatic")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemStatic {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("static_token", &self.static_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("struct_token", &self.struct_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("fields", &self.fields);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemTrait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemTrait")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemTrait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("auto_token", &self.auto_token);
- formatter.field("restriction", &self.restriction);
- formatter.field("trait_token", &self.trait_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("supertraits", &self.supertraits);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemTraitAlias {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemTraitAlias")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemTraitAlias {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("trait_token", &self.trait_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("ty", &self.ty);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemUnion {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemUnion")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemUnion {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("union_token", &self.union_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("fields", &self.fields);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ItemUse {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ItemUse")
- }
-}
-#[cfg(feature = "full")]
-impl crate::ItemUse {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("vis", &self.vis);
- formatter.field("use_token", &self.use_token);
- formatter.field("leading_colon", &self.leading_colon);
- formatter.field("tree", &self.tree);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Label {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Label");
- formatter.field("name", &self.name);
- formatter.field("colon_token", &self.colon_token);
- formatter.finish()
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Lifetime {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Lifetime")
- }
-}
-impl crate::Lifetime {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("apostrophe", &self.apostrophe);
- formatter.field("ident", &self.ident);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::LifetimeParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LifetimeParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("lifetime", &self.lifetime);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Lit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Lit::")?;
- match self {
- crate::Lit::Str(v0) => v0.debug(formatter, "Str"),
- crate::Lit::ByteStr(v0) => v0.debug(formatter, "ByteStr"),
- crate::Lit::CStr(v0) => v0.debug(formatter, "CStr"),
- crate::Lit::Byte(v0) => v0.debug(formatter, "Byte"),
- crate::Lit::Char(v0) => v0.debug(formatter, "Char"),
- crate::Lit::Int(v0) => v0.debug(formatter, "Int"),
- crate::Lit::Float(v0) => v0.debug(formatter, "Float"),
- crate::Lit::Bool(v0) => v0.debug(formatter, "Bool"),
- crate::Lit::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Local {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Local")
- }
-}
-#[cfg(feature = "full")]
-impl crate::Local {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("let_token", &self.let_token);
- formatter.field("pat", &self.pat);
- formatter.field("init", &self.init);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::LocalInit {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LocalInit");
- formatter.field("eq_token", &self.eq_token);
- formatter.field("expr", &self.expr);
- formatter.field("diverge", &self.diverge);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Macro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Macro");
- formatter.field("path", &self.path);
- formatter.field("bang_token", &self.bang_token);
- formatter.field("delimiter", &self.delimiter);
- formatter.field("tokens", &self.tokens);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MacroDelimiter {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("MacroDelimiter::")?;
- match self {
- crate::MacroDelimiter::Paren(v0) => {
- let mut formatter = formatter.debug_tuple("Paren");
- formatter.field(v0);
- formatter.finish()
- }
- crate::MacroDelimiter::Brace(v0) => {
- let mut formatter = formatter.debug_tuple("Brace");
- formatter.field(v0);
- formatter.finish()
- }
- crate::MacroDelimiter::Bracket(v0) => {
- let mut formatter = formatter.debug_tuple("Bracket");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Member {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Member::")?;
- match self {
- crate::Member::Named(v0) => {
- let mut formatter = formatter.debug_tuple("Named");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Member::Unnamed(v0) => {
- let mut formatter = formatter.debug_tuple("Unnamed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Meta {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Meta::")?;
- match self {
- crate::Meta::Path(v0) => v0.debug(formatter, "Path"),
- crate::Meta::List(v0) => v0.debug(formatter, "List"),
- crate::Meta::NameValue(v0) => v0.debug(formatter, "NameValue"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MetaList {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "MetaList")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::MetaList {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("path", &self.path);
- formatter.field("delimiter", &self.delimiter);
- formatter.field("tokens", &self.tokens);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::MetaNameValue {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "MetaNameValue")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::MetaNameValue {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("path", &self.path);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("value", &self.value);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ParenthesizedGenericArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "ParenthesizedGenericArguments")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::ParenthesizedGenericArguments {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Pat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Pat::")?;
- match self {
- crate::Pat::Const(v0) => v0.debug(formatter, "Const"),
- crate::Pat::Ident(v0) => v0.debug(formatter, "Ident"),
- crate::Pat::Lit(v0) => v0.debug(formatter, "Lit"),
- crate::Pat::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Pat::Or(v0) => v0.debug(formatter, "Or"),
- crate::Pat::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Pat::Path(v0) => v0.debug(formatter, "Path"),
- crate::Pat::Range(v0) => v0.debug(formatter, "Range"),
- crate::Pat::Reference(v0) => v0.debug(formatter, "Reference"),
- crate::Pat::Rest(v0) => v0.debug(formatter, "Rest"),
- crate::Pat::Slice(v0) => v0.debug(formatter, "Slice"),
- crate::Pat::Struct(v0) => v0.debug(formatter, "Struct"),
- crate::Pat::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Pat::TupleStruct(v0) => v0.debug(formatter, "TupleStruct"),
- crate::Pat::Type(v0) => v0.debug(formatter, "Type"),
- crate::Pat::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Pat::Wild(v0) => v0.debug(formatter, "Wild"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatIdent {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatIdent")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatIdent {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("by_ref", &self.by_ref);
- formatter.field("mutability", &self.mutability);
- formatter.field("ident", &self.ident);
- formatter.field("subpat", &self.subpat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatOr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatOr")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatOr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("leading_vert", &self.leading_vert);
- formatter.field("cases", &self.cases);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatParen")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatReference")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("and_token", &self.and_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("pat", &self.pat);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatRest {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatRest")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatRest {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("dot2_token", &self.dot2_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatSlice {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatSlice")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatSlice {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("brace_token", &self.brace_token);
- formatter.field("fields", &self.fields);
- formatter.field("rest", &self.rest);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatTuple")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatTupleStruct {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatTupleStruct")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatTupleStruct {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PatWild {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "PatWild")
- }
-}
-#[cfg(feature = "full")]
-impl crate::PatWild {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Path {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "Path")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::Path {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("leading_colon", &self.leading_colon);
- formatter.field("segments", &self.segments);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PathArguments {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("PathArguments::")?;
- match self {
- crate::PathArguments::None => formatter.write_str("None"),
- crate::PathArguments::AngleBracketed(v0) => {
- v0.debug(formatter, "AngleBracketed")
- }
- crate::PathArguments::Parenthesized(v0) => {
- v0.debug(formatter, "Parenthesized")
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PathSegment {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PathSegment");
- formatter.field("ident", &self.ident);
- formatter.field("arguments", &self.arguments);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PointerMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("PointerMutability::")?;
- match self {
- crate::PointerMutability::Const(v0) => {
- let mut formatter = formatter.debug_tuple("Const");
- formatter.field(v0);
- formatter.finish()
- }
- crate::PointerMutability::Mut(v0) => {
- let mut formatter = formatter.debug_tuple("Mut");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PreciseCapture {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PreciseCapture");
- formatter.field("use_token", &self.use_token);
- formatter.field("lt_token", &self.lt_token);
- formatter.field("params", &self.params);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PredicateLifetime {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateLifetime");
- formatter.field("lifetime", &self.lifetime);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::PredicateType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateType");
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("bounded_ty", &self.bounded_ty);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::QSelf {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("QSelf");
- formatter.field("lt_token", &self.lt_token);
- formatter.field("ty", &self.ty);
- formatter.field("position", &self.position);
- formatter.field("as_token", &self.as_token);
- formatter.field("gt_token", &self.gt_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::RangeLimits {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("RangeLimits::")?;
- match self {
- crate::RangeLimits::HalfOpen(v0) => {
- let mut formatter = formatter.debug_tuple("HalfOpen");
- formatter.field(v0);
- formatter.finish()
- }
- crate::RangeLimits::Closed(v0) => {
- let mut formatter = formatter.debug_tuple("Closed");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Receiver {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Receiver");
- formatter.field("attrs", &self.attrs);
- formatter.field("reference", &self.reference);
- formatter.field("mutability", &self.mutability);
- formatter.field("self_token", &self.self_token);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::ReturnType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("ReturnType::")?;
- match self {
- crate::ReturnType::Default => formatter.write_str("Default"),
- crate::ReturnType::Type(v0, v1) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.field(v1);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Signature {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Signature");
- formatter.field("constness", &self.constness);
- formatter.field("asyncness", &self.asyncness);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("fn_token", &self.fn_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("variadic", &self.variadic);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::StaticMutability {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("StaticMutability::")?;
- match self {
- crate::StaticMutability::Mut(v0) => {
- let mut formatter = formatter.debug_tuple("Mut");
- formatter.field(v0);
- formatter.finish()
- }
- crate::StaticMutability::None => formatter.write_str("None"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Stmt {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Stmt::")?;
- match self {
- crate::Stmt::Local(v0) => v0.debug(formatter, "Local"),
- crate::Stmt::Item(v0) => {
- let mut formatter = formatter.debug_tuple("Item");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Stmt::Expr(v0, v1) => {
- let mut formatter = formatter.debug_tuple("Expr");
- formatter.field(v0);
- formatter.field(v1);
- formatter.finish()
- }
- crate::Stmt::Macro(v0) => v0.debug(formatter, "Macro"),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::StmtMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "StmtMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::StmtMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitBound {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitBound");
- formatter.field("paren_token", &self.paren_token);
- formatter.field("modifier", &self.modifier);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitBoundModifier {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TraitBoundModifier::")?;
- match self {
- crate::TraitBoundModifier::None => formatter.write_str("None"),
- crate::TraitBoundModifier::Maybe(v0) => {
- let mut formatter = formatter.debug_tuple("Maybe");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItem {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TraitItem::")?;
- match self {
- crate::TraitItem::Const(v0) => v0.debug(formatter, "Const"),
- crate::TraitItem::Fn(v0) => v0.debug(formatter, "Fn"),
- crate::TraitItem::Type(v0) => v0.debug(formatter, "Type"),
- crate::TraitItem::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::TraitItem::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemConst {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemConst")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemConst {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("const_token", &self.const_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("ty", &self.ty);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemFn")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("sig", &self.sig);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemMacro")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("mac", &self.mac);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TraitItemType {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TraitItemType")
- }
-}
-#[cfg(feature = "full")]
-impl crate::TraitItemType {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("attrs", &self.attrs);
- formatter.field("type_token", &self.type_token);
- formatter.field("ident", &self.ident);
- formatter.field("generics", &self.generics);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("default", &self.default);
- formatter.field("semi_token", &self.semi_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Type {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Type::")?;
- match self {
- crate::Type::Array(v0) => v0.debug(formatter, "Array"),
- crate::Type::BareFn(v0) => v0.debug(formatter, "BareFn"),
- crate::Type::Group(v0) => v0.debug(formatter, "Group"),
- crate::Type::ImplTrait(v0) => v0.debug(formatter, "ImplTrait"),
- crate::Type::Infer(v0) => v0.debug(formatter, "Infer"),
- crate::Type::Macro(v0) => v0.debug(formatter, "Macro"),
- crate::Type::Never(v0) => v0.debug(formatter, "Never"),
- crate::Type::Paren(v0) => v0.debug(formatter, "Paren"),
- crate::Type::Path(v0) => v0.debug(formatter, "Path"),
- crate::Type::Ptr(v0) => v0.debug(formatter, "Ptr"),
- crate::Type::Reference(v0) => v0.debug(formatter, "Reference"),
- crate::Type::Slice(v0) => v0.debug(formatter, "Slice"),
- crate::Type::TraitObject(v0) => v0.debug(formatter, "TraitObject"),
- crate::Type::Tuple(v0) => v0.debug(formatter, "Tuple"),
- crate::Type::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeArray {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeArray")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeArray {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elem", &self.elem);
- formatter.field("semi_token", &self.semi_token);
- formatter.field("len", &self.len);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeBareFn {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeBareFn")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeBareFn {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("lifetimes", &self.lifetimes);
- formatter.field("unsafety", &self.unsafety);
- formatter.field("abi", &self.abi);
- formatter.field("fn_token", &self.fn_token);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("inputs", &self.inputs);
- formatter.field("variadic", &self.variadic);
- formatter.field("output", &self.output);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeGroup")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeGroup {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("group_token", &self.group_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeImplTrait {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeImplTrait")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeImplTrait {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("impl_token", &self.impl_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeInfer {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeInfer")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeInfer {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("underscore_token", &self.underscore_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeMacro {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeMacro")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeMacro {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("mac", &self.mac);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeNever {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeNever")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeNever {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bang_token", &self.bang_token);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParam {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeParam");
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("colon_token", &self.colon_token);
- formatter.field("bounds", &self.bounds);
- formatter.field("eq_token", &self.eq_token);
- formatter.field("default", &self.default);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParamBound {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("TypeParamBound::")?;
- match self {
- crate::TypeParamBound::Trait(v0) => {
- let mut formatter = formatter.debug_tuple("Trait");
- formatter.field(v0);
- formatter.finish()
- }
- crate::TypeParamBound::Lifetime(v0) => v0.debug(formatter, "Lifetime"),
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- let mut formatter = formatter.debug_tuple("PreciseCapture");
- formatter.field(v0);
- formatter.finish()
- }
- crate::TypeParamBound::Verbatim(v0) => {
- let mut formatter = formatter.debug_tuple("Verbatim");
- formatter.field(v0);
- formatter.finish()
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeParen {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeParen")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeParen {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypePath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypePath")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypePath {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("qself", &self.qself);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypePtr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypePtr")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypePtr {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("star_token", &self.star_token);
- formatter.field("const_token", &self.const_token);
- formatter.field("mutability", &self.mutability);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeReference {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeReference")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeReference {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("and_token", &self.and_token);
- formatter.field("lifetime", &self.lifetime);
- formatter.field("mutability", &self.mutability);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeSlice {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeSlice")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeSlice {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("bracket_token", &self.bracket_token);
- formatter.field("elem", &self.elem);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeTraitObject {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeTraitObject")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeTraitObject {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("dyn_token", &self.dyn_token);
- formatter.field("bounds", &self.bounds);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::TypeTuple {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "TypeTuple")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::TypeTuple {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("elems", &self.elems);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UnOp {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("UnOp::")?;
- match self {
- crate::UnOp::Deref(v0) => {
- let mut formatter = formatter.debug_tuple("Deref");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UnOp::Not(v0) => {
- let mut formatter = formatter.debug_tuple("Not");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UnOp::Neg(v0) => {
- let mut formatter = formatter.debug_tuple("Neg");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseGlob {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGlob");
- formatter.field("star_token", &self.star_token);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseGroup {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGroup");
- formatter.field("brace_token", &self.brace_token);
- formatter.field("items", &self.items);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseName {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseName");
- formatter.field("ident", &self.ident);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UsePath {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UsePath");
- formatter.field("ident", &self.ident);
- formatter.field("colon2_token", &self.colon2_token);
- formatter.field("tree", &self.tree);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseRename {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseRename");
- formatter.field("ident", &self.ident);
- formatter.field("as_token", &self.as_token);
- formatter.field("rename", &self.rename);
- formatter.finish()
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::UseTree {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("UseTree::")?;
- match self {
- crate::UseTree::Path(v0) => {
- let mut formatter = formatter.debug_tuple("Path");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Name(v0) => {
- let mut formatter = formatter.debug_tuple("Name");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Rename(v0) => {
- let mut formatter = formatter.debug_tuple("Rename");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Glob(v0) => {
- let mut formatter = formatter.debug_tuple("Glob");
- formatter.field(v0);
- formatter.finish()
- }
- crate::UseTree::Group(v0) => {
- let mut formatter = formatter.debug_tuple("Group");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Variadic {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variadic");
- formatter.field("attrs", &self.attrs);
- formatter.field("pat", &self.pat);
- formatter.field("dots", &self.dots);
- formatter.field("comma", &self.comma);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Variant {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variant");
- formatter.field("attrs", &self.attrs);
- formatter.field("ident", &self.ident);
- formatter.field("fields", &self.fields);
- formatter.field("discriminant", &self.discriminant);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::VisRestricted {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "VisRestricted")
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-impl crate::VisRestricted {
- fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- let mut formatter = formatter.debug_struct(name);
- formatter.field("pub_token", &self.pub_token);
- formatter.field("paren_token", &self.paren_token);
- formatter.field("in_token", &self.in_token);
- formatter.field("path", &self.path);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::Visibility {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Visibility::")?;
- match self {
- crate::Visibility::Public(v0) => {
- let mut formatter = formatter.debug_tuple("Public");
- formatter.field(v0);
- formatter.finish()
- }
- crate::Visibility::Restricted(v0) => v0.debug(formatter, "Restricted"),
- crate::Visibility::Inherited => formatter.write_str("Inherited"),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::WhereClause {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("WhereClause");
- formatter.field("where_token", &self.where_token);
- formatter.field("predicates", &self.predicates);
- formatter.finish()
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for crate::WherePredicate {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("WherePredicate::")?;
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- let mut formatter = formatter.debug_tuple("Lifetime");
- formatter.field(v0);
- formatter.finish()
- }
- crate::WherePredicate::Type(v0) => {
- let mut formatter = formatter.debug_tuple("Type");
- formatter.field(v0);
- formatter.finish()
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/eq.rs b/deps/crates/vendor/syn-v2/src/gen/eq.rs
deleted file mode 100644
index 5ba15722b7b..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/eq.rs
+++ /dev/null
@@ -1,2308 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#[cfg(any(feature = "derive", feature = "full"))]
-use crate::tt::TokenStreamHelper;
-#[cfg(feature = "extra-traits")]
-use alloc::string::ToString;
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Abi {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Abi {
- fn eq(&self, other: &Self) -> bool {
- self.name == other.name
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AngleBracketedGenericArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AngleBracketedGenericArguments {
- fn eq(&self, other: &Self) -> bool {
- self.colon2_token == other.colon2_token && self.args == other.args
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Arm {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Arm {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.guard == other.guard
- && self.body == other.body && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AssocConst {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AssocConst {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.value == other.value
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AssocType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AssocType {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::AttrStyle {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::AttrStyle {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::AttrStyle::Outer, crate::AttrStyle::Outer) => true,
- (crate::AttrStyle::Inner(_), crate::AttrStyle::Inner(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Attribute {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Attribute {
- fn eq(&self, other: &Self) -> bool {
- self.style == other.style && self.meta == other.meta
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BareFnArg {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BareFnArg {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.name == other.name && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BareVariadic {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BareVariadic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.name == other.name && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BinOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BinOp {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::BinOp::Add(_), crate::BinOp::Add(_)) => true,
- (crate::BinOp::Sub(_), crate::BinOp::Sub(_)) => true,
- (crate::BinOp::Mul(_), crate::BinOp::Mul(_)) => true,
- (crate::BinOp::Div(_), crate::BinOp::Div(_)) => true,
- (crate::BinOp::Rem(_), crate::BinOp::Rem(_)) => true,
- (crate::BinOp::And(_), crate::BinOp::And(_)) => true,
- (crate::BinOp::Or(_), crate::BinOp::Or(_)) => true,
- (crate::BinOp::BitXor(_), crate::BinOp::BitXor(_)) => true,
- (crate::BinOp::BitAnd(_), crate::BinOp::BitAnd(_)) => true,
- (crate::BinOp::BitOr(_), crate::BinOp::BitOr(_)) => true,
- (crate::BinOp::Shl(_), crate::BinOp::Shl(_)) => true,
- (crate::BinOp::Shr(_), crate::BinOp::Shr(_)) => true,
- (crate::BinOp::Eq(_), crate::BinOp::Eq(_)) => true,
- (crate::BinOp::Lt(_), crate::BinOp::Lt(_)) => true,
- (crate::BinOp::Le(_), crate::BinOp::Le(_)) => true,
- (crate::BinOp::Ne(_), crate::BinOp::Ne(_)) => true,
- (crate::BinOp::Ge(_), crate::BinOp::Ge(_)) => true,
- (crate::BinOp::Gt(_), crate::BinOp::Gt(_)) => true,
- (crate::BinOp::AddAssign(_), crate::BinOp::AddAssign(_)) => true,
- (crate::BinOp::SubAssign(_), crate::BinOp::SubAssign(_)) => true,
- (crate::BinOp::MulAssign(_), crate::BinOp::MulAssign(_)) => true,
- (crate::BinOp::DivAssign(_), crate::BinOp::DivAssign(_)) => true,
- (crate::BinOp::RemAssign(_), crate::BinOp::RemAssign(_)) => true,
- (crate::BinOp::BitXorAssign(_), crate::BinOp::BitXorAssign(_)) => true,
- (crate::BinOp::BitAndAssign(_), crate::BinOp::BitAndAssign(_)) => true,
- (crate::BinOp::BitOrAssign(_), crate::BinOp::BitOrAssign(_)) => true,
- (crate::BinOp::ShlAssign(_), crate::BinOp::ShlAssign(_)) => true,
- (crate::BinOp::ShrAssign(_), crate::BinOp::ShrAssign(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Block {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Block {
- fn eq(&self, other: &Self) -> bool {
- self.stmts == other.stmts
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::BoundLifetimes {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::BoundLifetimes {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::CapturedParam {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::CapturedParam {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::CapturedParam::Lifetime(self0),
- crate::CapturedParam::Lifetime(other0),
- ) => self0 == other0,
- (crate::CapturedParam::Ident(self0), crate::CapturedParam::Ident(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ConstParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ConstParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident && self.ty == other.ty
- && self.eq_token == other.eq_token && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Constraint {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Constraint {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.generics == other.generics
- && self.bounds == other.bounds
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Data {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Data {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Data::Struct(self0), crate::Data::Struct(other0)) => self0 == other0,
- (crate::Data::Enum(self0), crate::Data::Enum(other0)) => self0 == other0,
- (crate::Data::Union(self0), crate::Data::Union(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataEnum {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataEnum {
- fn eq(&self, other: &Self) -> bool {
- self.variants == other.variants
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataStruct {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataStruct {
- fn eq(&self, other: &Self) -> bool {
- self.fields == other.fields && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DataUnion {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DataUnion {
- fn eq(&self, other: &Self) -> bool {
- self.fields == other.fields
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::DeriveInput {}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::DeriveInput {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.data == other.data
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Expr {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Expr {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- #[cfg(feature = "full")]
- (crate::Expr::Array(self0), crate::Expr::Array(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Assign(self0), crate::Expr::Assign(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Async(self0), crate::Expr::Async(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Await(self0), crate::Expr::Await(other0)) => self0 == other0,
- (crate::Expr::Binary(self0), crate::Expr::Binary(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Block(self0), crate::Expr::Block(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Break(self0), crate::Expr::Break(other0)) => self0 == other0,
- (crate::Expr::Call(self0), crate::Expr::Call(other0)) => self0 == other0,
- (crate::Expr::Cast(self0), crate::Expr::Cast(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Closure(self0), crate::Expr::Closure(other0)) => {
- self0 == other0
- }
- #[cfg(feature = "full")]
- (crate::Expr::Const(self0), crate::Expr::Const(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Continue(self0), crate::Expr::Continue(other0)) => {
- self0 == other0
- }
- (crate::Expr::Field(self0), crate::Expr::Field(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::ForLoop(self0), crate::Expr::ForLoop(other0)) => {
- self0 == other0
- }
- (crate::Expr::Group(self0), crate::Expr::Group(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::If(self0), crate::Expr::If(other0)) => self0 == other0,
- (crate::Expr::Index(self0), crate::Expr::Index(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Infer(self0), crate::Expr::Infer(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Let(self0), crate::Expr::Let(other0)) => self0 == other0,
- (crate::Expr::Lit(self0), crate::Expr::Lit(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Loop(self0), crate::Expr::Loop(other0)) => self0 == other0,
- (crate::Expr::Macro(self0), crate::Expr::Macro(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Match(self0), crate::Expr::Match(other0)) => self0 == other0,
- (crate::Expr::MethodCall(self0), crate::Expr::MethodCall(other0)) => {
- self0 == other0
- }
- (crate::Expr::Paren(self0), crate::Expr::Paren(other0)) => self0 == other0,
- (crate::Expr::Path(self0), crate::Expr::Path(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Range(self0), crate::Expr::Range(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::RawAddr(self0), crate::Expr::RawAddr(other0)) => {
- self0 == other0
- }
- (crate::Expr::Reference(self0), crate::Expr::Reference(other0)) => {
- self0 == other0
- }
- #[cfg(feature = "full")]
- (crate::Expr::Repeat(self0), crate::Expr::Repeat(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Return(self0), crate::Expr::Return(other0)) => self0 == other0,
- (crate::Expr::Struct(self0), crate::Expr::Struct(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Try(self0), crate::Expr::Try(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::TryBlock(self0), crate::Expr::TryBlock(other0)) => {
- self0 == other0
- }
- (crate::Expr::Tuple(self0), crate::Expr::Tuple(other0)) => self0 == other0,
- (crate::Expr::Unary(self0), crate::Expr::Unary(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Unsafe(self0), crate::Expr::Unsafe(other0)) => self0 == other0,
- (crate::Expr::Verbatim(self0), crate::Expr::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- #[cfg(feature = "full")]
- (crate::Expr::While(self0), crate::Expr::While(other0)) => self0 == other0,
- #[cfg(feature = "full")]
- (crate::Expr::Yield(self0), crate::Expr::Yield(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprArray {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprArray {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAssign {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAssign {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.left == other.left && self.right == other.right
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAsync {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAsync {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.capture == other.capture
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprAwait {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprAwait {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.base == other.base
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBinary {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBinary {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.left == other.left && self.op == other.op
- && self.right == other.right
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBlock {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBlock {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprBreak {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprBreak {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprCall {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprCall {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.func == other.func && self.args == other.args
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprCast {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprCast {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprClosure {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprClosure {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lifetimes == other.lifetimes
- && self.constness == other.constness && self.movability == other.movability
- && self.asyncness == other.asyncness && self.capture == other.capture
- && self.inputs == other.inputs && self.output == other.output
- && self.body == other.body
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprContinue {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprContinue {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprField {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprField {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.base == other.base
- && self.member == other.member
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprForLoop {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprForLoop {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.pat == other.pat
- && self.expr == other.expr && self.body == other.body
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprGroup {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprGroup {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprIf {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprIf {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.cond == other.cond
- && self.then_branch == other.then_branch
- && self.else_branch == other.else_branch
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprIndex {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprIndex {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.index == other.index
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprInfer {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprInfer {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLet {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLet {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLit {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLit {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lit == other.lit
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprLoop {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprLoop {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.body == other.body
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMacro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMatch {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMatch {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.arms == other.arms
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprMethodCall {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprMethodCall {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.receiver == other.receiver
- && self.method == other.method && self.turbofish == other.turbofish
- && self.args == other.args
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprParen {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprParen {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprPath {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprPath {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRange {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRange {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.start == other.start
- && self.limits == other.limits && self.end == other.end
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRawAddr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRawAddr {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprReference {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprReference {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprRepeat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprRepeat {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr && self.len == other.len
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprReturn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprReturn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprStruct {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.fields == other.fields && self.dot2_token == other.dot2_token
- && self.rest == other.rest
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTry {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTry {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTryBlock {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTryBlock {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprTuple {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprTuple {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprUnary {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprUnary {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.op == other.op && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprUnsafe {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprUnsafe {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprWhile {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprWhile {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.label == other.label && self.cond == other.cond
- && self.body == other.body
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ExprYield {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ExprYield {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Field {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Field {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.colon_token == other.colon_token && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldMutability {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::FieldMutability::None, crate::FieldMutability::None) => true,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldPat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldPat {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.member == other.member
- && self.colon_token == other.colon_token && self.pat == other.pat
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldValue {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldValue {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.member == other.member
- && self.colon_token == other.colon_token && self.expr == other.expr
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Fields {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Fields {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Fields::Named(self0), crate::Fields::Named(other0)) => {
- self0 == other0
- }
- (crate::Fields::Unnamed(self0), crate::Fields::Unnamed(other0)) => {
- self0 == other0
- }
- (crate::Fields::Unit, crate::Fields::Unit) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldsNamed {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldsNamed {
- fn eq(&self, other: &Self) -> bool {
- self.named == other.named
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FieldsUnnamed {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FieldsUnnamed {
- fn eq(&self, other: &Self) -> bool {
- self.unnamed == other.unnamed
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::File {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::File {
- fn eq(&self, other: &Self) -> bool {
- self.shebang == other.shebang && self.attrs == other.attrs
- && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::FnArg {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::FnArg {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::FnArg::Receiver(self0), crate::FnArg::Receiver(other0)) => {
- self0 == other0
- }
- (crate::FnArg::Typed(self0), crate::FnArg::Typed(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ForeignItem::Fn(self0), crate::ForeignItem::Fn(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Static(self0), crate::ForeignItem::Static(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Type(self0), crate::ForeignItem::Type(other0)) => {
- self0 == other0
- }
- (crate::ForeignItem::Macro(self0), crate::ForeignItem::Macro(other0)) => {
- self0 == other0
- }
- (
- crate::ForeignItem::Verbatim(self0),
- crate::ForeignItem::Verbatim(other0),
- ) => TokenStreamHelper(self0) == TokenStreamHelper(other0),
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemStatic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemStatic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ForeignItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ForeignItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::GenericArgument {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::GenericArgument {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::GenericArgument::Lifetime(self0),
- crate::GenericArgument::Lifetime(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Type(self0),
- crate::GenericArgument::Type(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Const(self0),
- crate::GenericArgument::Const(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::AssocType(self0),
- crate::GenericArgument::AssocType(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::AssocConst(self0),
- crate::GenericArgument::AssocConst(other0),
- ) => self0 == other0,
- (
- crate::GenericArgument::Constraint(self0),
- crate::GenericArgument::Constraint(other0),
- ) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::GenericParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::GenericParam {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::GenericParam::Lifetime(self0),
- crate::GenericParam::Lifetime(other0),
- ) => self0 == other0,
- (crate::GenericParam::Type(self0), crate::GenericParam::Type(other0)) => {
- self0 == other0
- }
- (crate::GenericParam::Const(self0), crate::GenericParam::Const(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Generics {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Generics {
- fn eq(&self, other: &Self) -> bool {
- self.lt_token == other.lt_token && self.params == other.params
- && self.gt_token == other.gt_token && self.where_clause == other.where_clause
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ImplItem::Const(self0), crate::ImplItem::Const(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Fn(self0), crate::ImplItem::Fn(other0)) => self0 == other0,
- (crate::ImplItem::Type(self0), crate::ImplItem::Type(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Macro(self0), crate::ImplItem::Macro(other0)) => {
- self0 == other0
- }
- (crate::ImplItem::Verbatim(self0), crate::ImplItem::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.sig == other.sig
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.defaultness == other.defaultness && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ImplRestriction {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ImplRestriction {
- fn eq(&self, _other: &Self) -> bool {
- match *self {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Item {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Item {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Item::Const(self0), crate::Item::Const(other0)) => self0 == other0,
- (crate::Item::Enum(self0), crate::Item::Enum(other0)) => self0 == other0,
- (crate::Item::ExternCrate(self0), crate::Item::ExternCrate(other0)) => {
- self0 == other0
- }
- (crate::Item::Fn(self0), crate::Item::Fn(other0)) => self0 == other0,
- (crate::Item::ForeignMod(self0), crate::Item::ForeignMod(other0)) => {
- self0 == other0
- }
- (crate::Item::Impl(self0), crate::Item::Impl(other0)) => self0 == other0,
- (crate::Item::Macro(self0), crate::Item::Macro(other0)) => self0 == other0,
- (crate::Item::Mod(self0), crate::Item::Mod(other0)) => self0 == other0,
- (crate::Item::Static(self0), crate::Item::Static(other0)) => self0 == other0,
- (crate::Item::Struct(self0), crate::Item::Struct(other0)) => self0 == other0,
- (crate::Item::Trait(self0), crate::Item::Trait(other0)) => self0 == other0,
- (crate::Item::TraitAlias(self0), crate::Item::TraitAlias(other0)) => {
- self0 == other0
- }
- (crate::Item::Type(self0), crate::Item::Type(other0)) => self0 == other0,
- (crate::Item::Union(self0), crate::Item::Union(other0)) => self0 == other0,
- (crate::Item::Use(self0), crate::Item::Use(other0)) => self0 == other0,
- (crate::Item::Verbatim(self0), crate::Item::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemEnum {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemEnum {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.variants == other.variants
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemExternCrate {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemExternCrate {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.rename == other.rename
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.sig == other.sig
- && self.block == other.block
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemForeignMod {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemForeignMod {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.unsafety == other.unsafety
- && self.abi == other.abi && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemImpl {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemImpl {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.defaultness == other.defaultness
- && self.unsafety == other.unsafety && self.generics == other.generics
- && self.trait_ == other.trait_ && self.self_ty == other.self_ty
- && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemMod {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemMod {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.unsafety == other.unsafety && self.ident == other.ident
- && self.content == other.content && self.semi == other.semi
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemStatic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemStatic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.mutability == other.mutability && self.ident == other.ident
- && self.ty == other.ty && self.expr == other.expr
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.fields == other.fields
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemTrait {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemTrait {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.unsafety == other.unsafety && self.auto_token == other.auto_token
- && self.restriction == other.restriction && self.ident == other.ident
- && self.generics == other.generics && self.colon_token == other.colon_token
- && self.supertraits == other.supertraits && self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemTraitAlias {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemTraitAlias {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.bounds == other.bounds
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemUnion {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemUnion {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis && self.ident == other.ident
- && self.generics == other.generics && self.fields == other.fields
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ItemUse {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ItemUse {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.vis == other.vis
- && self.leading_colon == other.leading_colon && self.tree == other.tree
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Label {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Label {
- fn eq(&self, other: &Self) -> bool {
- self.name == other.name
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LifetimeParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LifetimeParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.lifetime == other.lifetime
- && self.colon_token == other.colon_token && self.bounds == other.bounds
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Lit {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Lit {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Lit::Str(self0), crate::Lit::Str(other0)) => self0 == other0,
- (crate::Lit::ByteStr(self0), crate::Lit::ByteStr(other0)) => self0 == other0,
- (crate::Lit::CStr(self0), crate::Lit::CStr(other0)) => self0 == other0,
- (crate::Lit::Byte(self0), crate::Lit::Byte(other0)) => self0 == other0,
- (crate::Lit::Char(self0), crate::Lit::Char(other0)) => self0 == other0,
- (crate::Lit::Int(self0), crate::Lit::Int(other0)) => self0 == other0,
- (crate::Lit::Float(self0), crate::Lit::Float(other0)) => self0 == other0,
- (crate::Lit::Bool(self0), crate::Lit::Bool(other0)) => self0 == other0,
- (crate::Lit::Verbatim(self0), crate::Lit::Verbatim(other0)) => {
- self0.to_string() == other0.to_string()
- }
- _ => false,
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitBool {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LitBool {
- fn eq(&self, other: &Self) -> bool {
- self.value == other.value
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitByte {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitByteStr {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitCStr {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitChar {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitFloat {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitInt {}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LitStr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Local {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Local {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.init == other.init
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::LocalInit {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::LocalInit {
- fn eq(&self, other: &Self) -> bool {
- self.expr == other.expr && self.diverge == other.diverge
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Macro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Macro {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.delimiter == other.delimiter
- && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MacroDelimiter {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MacroDelimiter {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::MacroDelimiter::Paren(_), crate::MacroDelimiter::Paren(_)) => true,
- (crate::MacroDelimiter::Brace(_), crate::MacroDelimiter::Brace(_)) => true,
- (crate::MacroDelimiter::Bracket(_), crate::MacroDelimiter::Bracket(_)) => {
- true
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Meta {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Meta {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Meta::Path(self0), crate::Meta::Path(other0)) => self0 == other0,
- (crate::Meta::List(self0), crate::Meta::List(other0)) => self0 == other0,
- (crate::Meta::NameValue(self0), crate::Meta::NameValue(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MetaList {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MetaList {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.delimiter == other.delimiter
- && TokenStreamHelper(&self.tokens) == TokenStreamHelper(&other.tokens)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::MetaNameValue {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::MetaNameValue {
- fn eq(&self, other: &Self) -> bool {
- self.path == other.path && self.value == other.value
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ParenthesizedGenericArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ParenthesizedGenericArguments {
- fn eq(&self, other: &Self) -> bool {
- self.inputs == other.inputs && self.output == other.output
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Pat {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Pat {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Pat::Const(self0), crate::Pat::Const(other0)) => self0 == other0,
- (crate::Pat::Ident(self0), crate::Pat::Ident(other0)) => self0 == other0,
- (crate::Pat::Lit(self0), crate::Pat::Lit(other0)) => self0 == other0,
- (crate::Pat::Macro(self0), crate::Pat::Macro(other0)) => self0 == other0,
- (crate::Pat::Or(self0), crate::Pat::Or(other0)) => self0 == other0,
- (crate::Pat::Paren(self0), crate::Pat::Paren(other0)) => self0 == other0,
- (crate::Pat::Path(self0), crate::Pat::Path(other0)) => self0 == other0,
- (crate::Pat::Range(self0), crate::Pat::Range(other0)) => self0 == other0,
- (crate::Pat::Reference(self0), crate::Pat::Reference(other0)) => {
- self0 == other0
- }
- (crate::Pat::Rest(self0), crate::Pat::Rest(other0)) => self0 == other0,
- (crate::Pat::Slice(self0), crate::Pat::Slice(other0)) => self0 == other0,
- (crate::Pat::Struct(self0), crate::Pat::Struct(other0)) => self0 == other0,
- (crate::Pat::Tuple(self0), crate::Pat::Tuple(other0)) => self0 == other0,
- (crate::Pat::TupleStruct(self0), crate::Pat::TupleStruct(other0)) => {
- self0 == other0
- }
- (crate::Pat::Type(self0), crate::Pat::Type(other0)) => self0 == other0,
- (crate::Pat::Verbatim(self0), crate::Pat::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- (crate::Pat::Wild(self0), crate::Pat::Wild(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatIdent {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatIdent {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.by_ref == other.by_ref
- && self.mutability == other.mutability && self.ident == other.ident
- && self.subpat == other.subpat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatOr {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatOr {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.leading_vert == other.leading_vert
- && self.cases == other.cases
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatParen {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatParen {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatReference {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatReference {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mutability == other.mutability
- && self.pat == other.pat
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatRest {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatRest {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatSlice {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatSlice {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.fields == other.fields && self.rest == other.rest
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatTuple {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatTuple {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatTupleStruct {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatTupleStruct {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.qself == other.qself && self.path == other.path
- && self.elems == other.elems
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.ty == other.ty
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PatWild {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PatWild {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Path {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Path {
- fn eq(&self, other: &Self) -> bool {
- self.leading_colon == other.leading_colon && self.segments == other.segments
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PathArguments {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PathArguments {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::PathArguments::None, crate::PathArguments::None) => true,
- (
- crate::PathArguments::AngleBracketed(self0),
- crate::PathArguments::AngleBracketed(other0),
- ) => self0 == other0,
- (
- crate::PathArguments::Parenthesized(self0),
- crate::PathArguments::Parenthesized(other0),
- ) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PathSegment {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PathSegment {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.arguments == other.arguments
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PointerMutability {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PointerMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::PointerMutability::Const(_), crate::PointerMutability::Const(_)) => {
- true
- }
- (crate::PointerMutability::Mut(_), crate::PointerMutability::Mut(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PreciseCapture {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PreciseCapture {
- fn eq(&self, other: &Self) -> bool {
- self.params == other.params
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PredicateLifetime {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PredicateLifetime {
- fn eq(&self, other: &Self) -> bool {
- self.lifetime == other.lifetime && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::PredicateType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::PredicateType {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes && self.bounded_ty == other.bounded_ty
- && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::QSelf {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::QSelf {
- fn eq(&self, other: &Self) -> bool {
- self.ty == other.ty && self.position == other.position
- && self.as_token == other.as_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::RangeLimits {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::RangeLimits {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::RangeLimits::HalfOpen(_), crate::RangeLimits::HalfOpen(_)) => true,
- (crate::RangeLimits::Closed(_), crate::RangeLimits::Closed(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Receiver {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Receiver {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.reference == other.reference
- && self.mutability == other.mutability
- && self.colon_token == other.colon_token && self.ty == other.ty
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::ReturnType {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::ReturnType {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::ReturnType::Default, crate::ReturnType::Default) => true,
- (crate::ReturnType::Type(_, self1), crate::ReturnType::Type(_, other1)) => {
- self1 == other1
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Signature {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Signature {
- fn eq(&self, other: &Self) -> bool {
- self.constness == other.constness && self.asyncness == other.asyncness
- && self.unsafety == other.unsafety && self.abi == other.abi
- && self.ident == other.ident && self.generics == other.generics
- && self.inputs == other.inputs && self.variadic == other.variadic
- && self.output == other.output
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::StaticMutability {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::StaticMutability {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::StaticMutability::Mut(_), crate::StaticMutability::Mut(_)) => true,
- (crate::StaticMutability::None, crate::StaticMutability::None) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Stmt {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Stmt {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Stmt::Local(self0), crate::Stmt::Local(other0)) => self0 == other0,
- (crate::Stmt::Item(self0), crate::Stmt::Item(other0)) => self0 == other0,
- (crate::Stmt::Expr(self0, self1), crate::Stmt::Expr(other0, other1)) => {
- self0 == other0 && self1 == other1
- }
- (crate::Stmt::Macro(self0), crate::Stmt::Macro(other0)) => self0 == other0,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::StmtMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::StmtMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitBound {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitBound {
- fn eq(&self, other: &Self) -> bool {
- self.paren_token == other.paren_token && self.modifier == other.modifier
- && self.lifetimes == other.lifetimes && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitBoundModifier {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitBoundModifier {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::TraitBoundModifier::None, crate::TraitBoundModifier::None) => true,
- (
- crate::TraitBoundModifier::Maybe(_),
- crate::TraitBoundModifier::Maybe(_),
- ) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItem {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItem {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::TraitItem::Const(self0), crate::TraitItem::Const(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Fn(self0), crate::TraitItem::Fn(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Type(self0), crate::TraitItem::Type(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Macro(self0), crate::TraitItem::Macro(other0)) => {
- self0 == other0
- }
- (crate::TraitItem::Verbatim(self0), crate::TraitItem::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemConst {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemConst {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.generics == other.generics && self.ty == other.ty
- && self.default == other.default
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemFn {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemFn {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.sig == other.sig
- && self.default == other.default && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemMacro {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemMacro {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.mac == other.mac
- && self.semi_token == other.semi_token
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TraitItemType {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TraitItemType {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.generics == other.generics && self.colon_token == other.colon_token
- && self.bounds == other.bounds && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Type {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Type {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Type::Array(self0), crate::Type::Array(other0)) => self0 == other0,
- (crate::Type::BareFn(self0), crate::Type::BareFn(other0)) => self0 == other0,
- (crate::Type::Group(self0), crate::Type::Group(other0)) => self0 == other0,
- (crate::Type::ImplTrait(self0), crate::Type::ImplTrait(other0)) => {
- self0 == other0
- }
- (crate::Type::Infer(self0), crate::Type::Infer(other0)) => self0 == other0,
- (crate::Type::Macro(self0), crate::Type::Macro(other0)) => self0 == other0,
- (crate::Type::Never(self0), crate::Type::Never(other0)) => self0 == other0,
- (crate::Type::Paren(self0), crate::Type::Paren(other0)) => self0 == other0,
- (crate::Type::Path(self0), crate::Type::Path(other0)) => self0 == other0,
- (crate::Type::Ptr(self0), crate::Type::Ptr(other0)) => self0 == other0,
- (crate::Type::Reference(self0), crate::Type::Reference(other0)) => {
- self0 == other0
- }
- (crate::Type::Slice(self0), crate::Type::Slice(other0)) => self0 == other0,
- (crate::Type::TraitObject(self0), crate::Type::TraitObject(other0)) => {
- self0 == other0
- }
- (crate::Type::Tuple(self0), crate::Type::Tuple(other0)) => self0 == other0,
- (crate::Type::Verbatim(self0), crate::Type::Verbatim(other0)) => {
- TokenStreamHelper(self0) == TokenStreamHelper(other0)
- }
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeArray {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeArray {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem && self.len == other.len
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeBareFn {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeBareFn {
- fn eq(&self, other: &Self) -> bool {
- self.lifetimes == other.lifetimes && self.unsafety == other.unsafety
- && self.abi == other.abi && self.inputs == other.inputs
- && self.variadic == other.variadic && self.output == other.output
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeGroup {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeGroup {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeImplTrait {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeImplTrait {
- fn eq(&self, other: &Self) -> bool {
- self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeInfer {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeInfer {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeMacro {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeMacro {
- fn eq(&self, other: &Self) -> bool {
- self.mac == other.mac
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeNever {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeNever {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParam {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParam {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.colon_token == other.colon_token && self.bounds == other.bounds
- && self.eq_token == other.eq_token && self.default == other.default
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParamBound {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParamBound {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::TypeParamBound::Trait(self0),
- crate::TypeParamBound::Trait(other0),
- ) => self0 == other0,
- (
- crate::TypeParamBound::Lifetime(self0),
- crate::TypeParamBound::Lifetime(other0),
- ) => self0 == other0,
- #[cfg(feature = "full")]
- (
- crate::TypeParamBound::PreciseCapture(self0),
- crate::TypeParamBound::PreciseCapture(other0),
- ) => self0 == other0,
- (
- crate::TypeParamBound::Verbatim(self0),
- crate::TypeParamBound::Verbatim(other0),
- ) => TokenStreamHelper(self0) == TokenStreamHelper(other0),
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeParen {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeParen {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypePath {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypePath {
- fn eq(&self, other: &Self) -> bool {
- self.qself == other.qself && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypePtr {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypePtr {
- fn eq(&self, other: &Self) -> bool {
- self.const_token == other.const_token && self.mutability == other.mutability
- && self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeReference {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeReference {
- fn eq(&self, other: &Self) -> bool {
- self.lifetime == other.lifetime && self.mutability == other.mutability
- && self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeSlice {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeSlice {
- fn eq(&self, other: &Self) -> bool {
- self.elem == other.elem
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeTraitObject {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeTraitObject {
- fn eq(&self, other: &Self) -> bool {
- self.dyn_token == other.dyn_token && self.bounds == other.bounds
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::TypeTuple {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::TypeTuple {
- fn eq(&self, other: &Self) -> bool {
- self.elems == other.elems
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UnOp {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UnOp {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::UnOp::Deref(_), crate::UnOp::Deref(_)) => true,
- (crate::UnOp::Not(_), crate::UnOp::Not(_)) => true,
- (crate::UnOp::Neg(_), crate::UnOp::Neg(_)) => true,
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseGlob {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseGlob {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseGroup {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseGroup {
- fn eq(&self, other: &Self) -> bool {
- self.items == other.items
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseName {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseName {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UsePath {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UsePath {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.tree == other.tree
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseRename {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseRename {
- fn eq(&self, other: &Self) -> bool {
- self.ident == other.ident && self.rename == other.rename
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::UseTree {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::UseTree {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::UseTree::Path(self0), crate::UseTree::Path(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Name(self0), crate::UseTree::Name(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Rename(self0), crate::UseTree::Rename(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Glob(self0), crate::UseTree::Glob(other0)) => {
- self0 == other0
- }
- (crate::UseTree::Group(self0), crate::UseTree::Group(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Variadic {}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Variadic {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.pat == other.pat && self.comma == other.comma
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Variant {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Variant {
- fn eq(&self, other: &Self) -> bool {
- self.attrs == other.attrs && self.ident == other.ident
- && self.fields == other.fields && self.discriminant == other.discriminant
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::VisRestricted {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::VisRestricted {
- fn eq(&self, other: &Self) -> bool {
- self.in_token == other.in_token && self.path == other.path
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::Visibility {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::Visibility {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (crate::Visibility::Public(_), crate::Visibility::Public(_)) => true,
- (
- crate::Visibility::Restricted(self0),
- crate::Visibility::Restricted(other0),
- ) => self0 == other0,
- (crate::Visibility::Inherited, crate::Visibility::Inherited) => true,
- _ => false,
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::WhereClause {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::WhereClause {
- fn eq(&self, other: &Self) -> bool {
- self.predicates == other.predicates
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for crate::WherePredicate {}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for crate::WherePredicate {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (
- crate::WherePredicate::Lifetime(self0),
- crate::WherePredicate::Lifetime(other0),
- ) => self0 == other0,
- (crate::WherePredicate::Type(self0), crate::WherePredicate::Type(other0)) => {
- self0 == other0
- }
- _ => false,
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/fold.rs b/deps/crates/vendor/syn-v2/src/gen/fold.rs
deleted file mode 100644
index b71421f47a3..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/fold.rs
+++ /dev/null
@@ -1,3906 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unreachable_code, unused_variables)]
-#![allow(
- clippy::match_wildcard_for_single_variants,
- clippy::needless_match,
- clippy::needless_pass_by_ref_mut,
-)]
-#[cfg(any(feature = "derive", feature = "full"))]
-use alloc::boxed::Box;
-#[cfg(any(feature = "derive", feature = "full"))]
-use alloc::vec::Vec;
-#[cfg(feature = "full")]
-macro_rules! full {
- ($e:expr) => {
- $e
- };
-}
-#[cfg(all(feature = "derive", not(feature = "full")))]
-macro_rules! full {
- ($e:expr) => {
- unreachable!()
- };
-}
-/// Syntax tree traversal to transform the nodes of an owned syntax tree.
-///
-/// See the [module documentation] for details.
-///
-/// [module documentation]: self
-pub trait Fold {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_abi(&mut self, i: crate::Abi) -> crate::Abi {
- fold_abi(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_angle_bracketed_generic_arguments(
- &mut self,
- i: crate::AngleBracketedGenericArguments,
- ) -> crate::AngleBracketedGenericArguments {
- fold_angle_bracketed_generic_arguments(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_arm(&mut self, i: crate::Arm) -> crate::Arm {
- fold_arm(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_assoc_const(&mut self, i: crate::AssocConst) -> crate::AssocConst {
- fold_assoc_const(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_assoc_type(&mut self, i: crate::AssocType) -> crate::AssocType {
- fold_assoc_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attr_style(&mut self, i: crate::AttrStyle) -> crate::AttrStyle {
- fold_attr_style(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attribute(&mut self, i: crate::Attribute) -> crate::Attribute {
- fold_attribute(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_attributes(&mut self, i: Vec<crate::Attribute>) -> Vec<crate::Attribute> {
- fold_vec(i, self, Self::fold_attribute)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bare_fn_arg(&mut self, i: crate::BareFnArg) -> crate::BareFnArg {
- fold_bare_fn_arg(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bare_variadic(&mut self, i: crate::BareVariadic) -> crate::BareVariadic {
- fold_bare_variadic(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bin_op(&mut self, i: crate::BinOp) -> crate::BinOp {
- fold_bin_op(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_block(&mut self, i: crate::Block) -> crate::Block {
- fold_block(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_bound_lifetimes(
- &mut self,
- i: crate::BoundLifetimes,
- ) -> crate::BoundLifetimes {
- fold_bound_lifetimes(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_captured_param(&mut self, i: crate::CapturedParam) -> crate::CapturedParam {
- fold_captured_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_const_param(&mut self, i: crate::ConstParam) -> crate::ConstParam {
- fold_const_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_constraint(&mut self, i: crate::Constraint) -> crate::Constraint {
- fold_constraint(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data(&mut self, i: crate::Data) -> crate::Data {
- fold_data(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_enum(&mut self, i: crate::DataEnum) -> crate::DataEnum {
- fold_data_enum(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_struct(&mut self, i: crate::DataStruct) -> crate::DataStruct {
- fold_data_struct(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_data_union(&mut self, i: crate::DataUnion) -> crate::DataUnion {
- fold_data_union(self, i)
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn fold_derive_input(&mut self, i: crate::DeriveInput) -> crate::DeriveInput {
- fold_derive_input(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr(&mut self, i: crate::Expr) -> crate::Expr {
- fold_expr(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_array(&mut self, i: crate::ExprArray) -> crate::ExprArray {
- fold_expr_array(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_assign(&mut self, i: crate::ExprAssign) -> crate::ExprAssign {
- fold_expr_assign(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_async(&mut self, i: crate::ExprAsync) -> crate::ExprAsync {
- fold_expr_async(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_await(&mut self, i: crate::ExprAwait) -> crate::ExprAwait {
- fold_expr_await(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_binary(&mut self, i: crate::ExprBinary) -> crate::ExprBinary {
- fold_expr_binary(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_block(&mut self, i: crate::ExprBlock) -> crate::ExprBlock {
- fold_expr_block(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_break(&mut self, i: crate::ExprBreak) -> crate::ExprBreak {
- fold_expr_break(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_call(&mut self, i: crate::ExprCall) -> crate::ExprCall {
- fold_expr_call(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_cast(&mut self, i: crate::ExprCast) -> crate::ExprCast {
- fold_expr_cast(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_closure(&mut self, i: crate::ExprClosure) -> crate::ExprClosure {
- fold_expr_closure(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_const(&mut self, i: crate::ExprConst) -> crate::ExprConst {
- fold_expr_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_continue(&mut self, i: crate::ExprContinue) -> crate::ExprContinue {
- fold_expr_continue(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_field(&mut self, i: crate::ExprField) -> crate::ExprField {
- fold_expr_field(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_for_loop(&mut self, i: crate::ExprForLoop) -> crate::ExprForLoop {
- fold_expr_for_loop(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_group(&mut self, i: crate::ExprGroup) -> crate::ExprGroup {
- fold_expr_group(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_if(&mut self, i: crate::ExprIf) -> crate::ExprIf {
- fold_expr_if(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_index(&mut self, i: crate::ExprIndex) -> crate::ExprIndex {
- fold_expr_index(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_infer(&mut self, i: crate::ExprInfer) -> crate::ExprInfer {
- fold_expr_infer(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_let(&mut self, i: crate::ExprLet) -> crate::ExprLet {
- fold_expr_let(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_lit(&mut self, i: crate::ExprLit) -> crate::ExprLit {
- fold_expr_lit(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_loop(&mut self, i: crate::ExprLoop) -> crate::ExprLoop {
- fold_expr_loop(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_macro(&mut self, i: crate::ExprMacro) -> crate::ExprMacro {
- fold_expr_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_match(&mut self, i: crate::ExprMatch) -> crate::ExprMatch {
- fold_expr_match(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_method_call(
- &mut self,
- i: crate::ExprMethodCall,
- ) -> crate::ExprMethodCall {
- fold_expr_method_call(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_paren(&mut self, i: crate::ExprParen) -> crate::ExprParen {
- fold_expr_paren(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_path(&mut self, i: crate::ExprPath) -> crate::ExprPath {
- fold_expr_path(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_range(&mut self, i: crate::ExprRange) -> crate::ExprRange {
- fold_expr_range(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_raw_addr(&mut self, i: crate::ExprRawAddr) -> crate::ExprRawAddr {
- fold_expr_raw_addr(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_reference(&mut self, i: crate::ExprReference) -> crate::ExprReference {
- fold_expr_reference(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_repeat(&mut self, i: crate::ExprRepeat) -> crate::ExprRepeat {
- fold_expr_repeat(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_return(&mut self, i: crate::ExprReturn) -> crate::ExprReturn {
- fold_expr_return(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_struct(&mut self, i: crate::ExprStruct) -> crate::ExprStruct {
- fold_expr_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_try(&mut self, i: crate::ExprTry) -> crate::ExprTry {
- fold_expr_try(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_try_block(&mut self, i: crate::ExprTryBlock) -> crate::ExprTryBlock {
- fold_expr_try_block(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_tuple(&mut self, i: crate::ExprTuple) -> crate::ExprTuple {
- fold_expr_tuple(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_expr_unary(&mut self, i: crate::ExprUnary) -> crate::ExprUnary {
- fold_expr_unary(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_unsafe(&mut self, i: crate::ExprUnsafe) -> crate::ExprUnsafe {
- fold_expr_unsafe(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_while(&mut self, i: crate::ExprWhile) -> crate::ExprWhile {
- fold_expr_while(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_expr_yield(&mut self, i: crate::ExprYield) -> crate::ExprYield {
- fold_expr_yield(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field(&mut self, i: crate::Field) -> crate::Field {
- fold_field(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field_mutability(
- &mut self,
- i: crate::FieldMutability,
- ) -> crate::FieldMutability {
- fold_field_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_field_pat(&mut self, i: crate::FieldPat) -> crate::FieldPat {
- fold_field_pat(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_field_value(&mut self, i: crate::FieldValue) -> crate::FieldValue {
- fold_field_value(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields(&mut self, i: crate::Fields) -> crate::Fields {
- fold_fields(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields_named(&mut self, i: crate::FieldsNamed) -> crate::FieldsNamed {
- fold_fields_named(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_fields_unnamed(&mut self, i: crate::FieldsUnnamed) -> crate::FieldsUnnamed {
- fold_fields_unnamed(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_file(&mut self, i: crate::File) -> crate::File {
- fold_file(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_fn_arg(&mut self, i: crate::FnArg) -> crate::FnArg {
- fold_fn_arg(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item(&mut self, i: crate::ForeignItem) -> crate::ForeignItem {
- fold_foreign_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_fn(&mut self, i: crate::ForeignItemFn) -> crate::ForeignItemFn {
- fold_foreign_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_macro(
- &mut self,
- i: crate::ForeignItemMacro,
- ) -> crate::ForeignItemMacro {
- fold_foreign_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_static(
- &mut self,
- i: crate::ForeignItemStatic,
- ) -> crate::ForeignItemStatic {
- fold_foreign_item_static(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_foreign_item_type(
- &mut self,
- i: crate::ForeignItemType,
- ) -> crate::ForeignItemType {
- fold_foreign_item_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generic_argument(
- &mut self,
- i: crate::GenericArgument,
- ) -> crate::GenericArgument {
- fold_generic_argument(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generic_param(&mut self, i: crate::GenericParam) -> crate::GenericParam {
- fold_generic_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_generics(&mut self, i: crate::Generics) -> crate::Generics {
- fold_generics(self, i)
- }
- fn fold_ident(&mut self, i: proc_macro2::Ident) -> proc_macro2::Ident {
- fold_ident(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item(&mut self, i: crate::ImplItem) -> crate::ImplItem {
- fold_impl_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_const(&mut self, i: crate::ImplItemConst) -> crate::ImplItemConst {
- fold_impl_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_fn(&mut self, i: crate::ImplItemFn) -> crate::ImplItemFn {
- fold_impl_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_macro(&mut self, i: crate::ImplItemMacro) -> crate::ImplItemMacro {
- fold_impl_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_item_type(&mut self, i: crate::ImplItemType) -> crate::ImplItemType {
- fold_impl_item_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_impl_restriction(
- &mut self,
- i: crate::ImplRestriction,
- ) -> crate::ImplRestriction {
- fold_impl_restriction(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_index(&mut self, i: crate::Index) -> crate::Index {
- fold_index(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item(&mut self, i: crate::Item) -> crate::Item {
- fold_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_const(&mut self, i: crate::ItemConst) -> crate::ItemConst {
- fold_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_enum(&mut self, i: crate::ItemEnum) -> crate::ItemEnum {
- fold_item_enum(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_extern_crate(
- &mut self,
- i: crate::ItemExternCrate,
- ) -> crate::ItemExternCrate {
- fold_item_extern_crate(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_fn(&mut self, i: crate::ItemFn) -> crate::ItemFn {
- fold_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_foreign_mod(
- &mut self,
- i: crate::ItemForeignMod,
- ) -> crate::ItemForeignMod {
- fold_item_foreign_mod(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_impl(&mut self, i: crate::ItemImpl) -> crate::ItemImpl {
- fold_item_impl(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_macro(&mut self, i: crate::ItemMacro) -> crate::ItemMacro {
- fold_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_mod(&mut self, i: crate::ItemMod) -> crate::ItemMod {
- fold_item_mod(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_static(&mut self, i: crate::ItemStatic) -> crate::ItemStatic {
- fold_item_static(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_struct(&mut self, i: crate::ItemStruct) -> crate::ItemStruct {
- fold_item_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_trait(&mut self, i: crate::ItemTrait) -> crate::ItemTrait {
- fold_item_trait(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_trait_alias(
- &mut self,
- i: crate::ItemTraitAlias,
- ) -> crate::ItemTraitAlias {
- fold_item_trait_alias(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_type(&mut self, i: crate::ItemType) -> crate::ItemType {
- fold_item_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_union(&mut self, i: crate::ItemUnion) -> crate::ItemUnion {
- fold_item_union(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_item_use(&mut self, i: crate::ItemUse) -> crate::ItemUse {
- fold_item_use(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_label(&mut self, i: crate::Label) -> crate::Label {
- fold_label(self, i)
- }
- fn fold_lifetime(&mut self, i: crate::Lifetime) -> crate::Lifetime {
- fold_lifetime(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_lifetime_param(&mut self, i: crate::LifetimeParam) -> crate::LifetimeParam {
- fold_lifetime_param(self, i)
- }
- fn fold_lit(&mut self, i: crate::Lit) -> crate::Lit {
- fold_lit(self, i)
- }
- fn fold_lit_bool(&mut self, i: crate::LitBool) -> crate::LitBool {
- fold_lit_bool(self, i)
- }
- fn fold_lit_byte(&mut self, i: crate::LitByte) -> crate::LitByte {
- fold_lit_byte(self, i)
- }
- fn fold_lit_byte_str(&mut self, i: crate::LitByteStr) -> crate::LitByteStr {
- fold_lit_byte_str(self, i)
- }
- fn fold_lit_cstr(&mut self, i: crate::LitCStr) -> crate::LitCStr {
- fold_lit_cstr(self, i)
- }
- fn fold_lit_char(&mut self, i: crate::LitChar) -> crate::LitChar {
- fold_lit_char(self, i)
- }
- fn fold_lit_float(&mut self, i: crate::LitFloat) -> crate::LitFloat {
- fold_lit_float(self, i)
- }
- fn fold_lit_int(&mut self, i: crate::LitInt) -> crate::LitInt {
- fold_lit_int(self, i)
- }
- fn fold_lit_str(&mut self, i: crate::LitStr) -> crate::LitStr {
- fold_lit_str(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_local(&mut self, i: crate::Local) -> crate::Local {
- fold_local(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_local_init(&mut self, i: crate::LocalInit) -> crate::LocalInit {
- fold_local_init(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_macro(&mut self, i: crate::Macro) -> crate::Macro {
- fold_macro(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_macro_delimiter(
- &mut self,
- i: crate::MacroDelimiter,
- ) -> crate::MacroDelimiter {
- fold_macro_delimiter(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_member(&mut self, i: crate::Member) -> crate::Member {
- fold_member(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta(&mut self, i: crate::Meta) -> crate::Meta {
- fold_meta(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta_list(&mut self, i: crate::MetaList) -> crate::MetaList {
- fold_meta_list(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_meta_name_value(&mut self, i: crate::MetaNameValue) -> crate::MetaNameValue {
- fold_meta_name_value(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_parenthesized_generic_arguments(
- &mut self,
- i: crate::ParenthesizedGenericArguments,
- ) -> crate::ParenthesizedGenericArguments {
- fold_parenthesized_generic_arguments(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat(&mut self, i: crate::Pat) -> crate::Pat {
- fold_pat(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_ident(&mut self, i: crate::PatIdent) -> crate::PatIdent {
- fold_pat_ident(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_or(&mut self, i: crate::PatOr) -> crate::PatOr {
- fold_pat_or(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_paren(&mut self, i: crate::PatParen) -> crate::PatParen {
- fold_pat_paren(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_reference(&mut self, i: crate::PatReference) -> crate::PatReference {
- fold_pat_reference(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_rest(&mut self, i: crate::PatRest) -> crate::PatRest {
- fold_pat_rest(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_slice(&mut self, i: crate::PatSlice) -> crate::PatSlice {
- fold_pat_slice(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_struct(&mut self, i: crate::PatStruct) -> crate::PatStruct {
- fold_pat_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_tuple(&mut self, i: crate::PatTuple) -> crate::PatTuple {
- fold_pat_tuple(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_tuple_struct(
- &mut self,
- i: crate::PatTupleStruct,
- ) -> crate::PatTupleStruct {
- fold_pat_tuple_struct(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_type(&mut self, i: crate::PatType) -> crate::PatType {
- fold_pat_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pat_wild(&mut self, i: crate::PatWild) -> crate::PatWild {
- fold_pat_wild(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path(&mut self, i: crate::Path) -> crate::Path {
- fold_path(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path_arguments(&mut self, i: crate::PathArguments) -> crate::PathArguments {
- fold_path_arguments(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_path_segment(&mut self, i: crate::PathSegment) -> crate::PathSegment {
- fold_path_segment(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_pointer_mutability(
- &mut self,
- i: crate::PointerMutability,
- ) -> crate::PointerMutability {
- fold_pointer_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_precise_capture(
- &mut self,
- i: crate::PreciseCapture,
- ) -> crate::PreciseCapture {
- fold_precise_capture(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_predicate_lifetime(
- &mut self,
- i: crate::PredicateLifetime,
- ) -> crate::PredicateLifetime {
- fold_predicate_lifetime(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_predicate_type(&mut self, i: crate::PredicateType) -> crate::PredicateType {
- fold_predicate_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_qself(&mut self, i: crate::QSelf) -> crate::QSelf {
- fold_qself(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_range_limits(&mut self, i: crate::RangeLimits) -> crate::RangeLimits {
- fold_range_limits(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_receiver(&mut self, i: crate::Receiver) -> crate::Receiver {
- fold_receiver(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_return_type(&mut self, i: crate::ReturnType) -> crate::ReturnType {
- fold_return_type(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_signature(&mut self, i: crate::Signature) -> crate::Signature {
- fold_signature(self, i)
- }
- fn fold_span(&mut self, i: proc_macro2::Span) -> proc_macro2::Span {
- i
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_static_mutability(
- &mut self,
- i: crate::StaticMutability,
- ) -> crate::StaticMutability {
- fold_static_mutability(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_stmt(&mut self, i: crate::Stmt) -> crate::Stmt {
- fold_stmt(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_stmt_macro(&mut self, i: crate::StmtMacro) -> crate::StmtMacro {
- fold_stmt_macro(self, i)
- }
- fn fold_token_stream(
- &mut self,
- i: proc_macro2::TokenStream,
- ) -> proc_macro2::TokenStream {
- i
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_trait_bound(&mut self, i: crate::TraitBound) -> crate::TraitBound {
- fold_trait_bound(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_trait_bound_modifier(
- &mut self,
- i: crate::TraitBoundModifier,
- ) -> crate::TraitBoundModifier {
- fold_trait_bound_modifier(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item(&mut self, i: crate::TraitItem) -> crate::TraitItem {
- fold_trait_item(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_const(
- &mut self,
- i: crate::TraitItemConst,
- ) -> crate::TraitItemConst {
- fold_trait_item_const(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_fn(&mut self, i: crate::TraitItemFn) -> crate::TraitItemFn {
- fold_trait_item_fn(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_macro(
- &mut self,
- i: crate::TraitItemMacro,
- ) -> crate::TraitItemMacro {
- fold_trait_item_macro(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_trait_item_type(&mut self, i: crate::TraitItemType) -> crate::TraitItemType {
- fold_trait_item_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type(&mut self, i: crate::Type) -> crate::Type {
- fold_type(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_array(&mut self, i: crate::TypeArray) -> crate::TypeArray {
- fold_type_array(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_bare_fn(&mut self, i: crate::TypeBareFn) -> crate::TypeBareFn {
- fold_type_bare_fn(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_group(&mut self, i: crate::TypeGroup) -> crate::TypeGroup {
- fold_type_group(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_impl_trait(&mut self, i: crate::TypeImplTrait) -> crate::TypeImplTrait {
- fold_type_impl_trait(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_infer(&mut self, i: crate::TypeInfer) -> crate::TypeInfer {
- fold_type_infer(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_macro(&mut self, i: crate::TypeMacro) -> crate::TypeMacro {
- fold_type_macro(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_never(&mut self, i: crate::TypeNever) -> crate::TypeNever {
- fold_type_never(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_param(&mut self, i: crate::TypeParam) -> crate::TypeParam {
- fold_type_param(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_param_bound(
- &mut self,
- i: crate::TypeParamBound,
- ) -> crate::TypeParamBound {
- fold_type_param_bound(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_paren(&mut self, i: crate::TypeParen) -> crate::TypeParen {
- fold_type_paren(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_path(&mut self, i: crate::TypePath) -> crate::TypePath {
- fold_type_path(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_ptr(&mut self, i: crate::TypePtr) -> crate::TypePtr {
- fold_type_ptr(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_reference(&mut self, i: crate::TypeReference) -> crate::TypeReference {
- fold_type_reference(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_slice(&mut self, i: crate::TypeSlice) -> crate::TypeSlice {
- fold_type_slice(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_trait_object(
- &mut self,
- i: crate::TypeTraitObject,
- ) -> crate::TypeTraitObject {
- fold_type_trait_object(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_type_tuple(&mut self, i: crate::TypeTuple) -> crate::TypeTuple {
- fold_type_tuple(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_un_op(&mut self, i: crate::UnOp) -> crate::UnOp {
- fold_un_op(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_glob(&mut self, i: crate::UseGlob) -> crate::UseGlob {
- fold_use_glob(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_group(&mut self, i: crate::UseGroup) -> crate::UseGroup {
- fold_use_group(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_name(&mut self, i: crate::UseName) -> crate::UseName {
- fold_use_name(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_path(&mut self, i: crate::UsePath) -> crate::UsePath {
- fold_use_path(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_rename(&mut self, i: crate::UseRename) -> crate::UseRename {
- fold_use_rename(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_use_tree(&mut self, i: crate::UseTree) -> crate::UseTree {
- fold_use_tree(self, i)
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn fold_variadic(&mut self, i: crate::Variadic) -> crate::Variadic {
- fold_variadic(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_variant(&mut self, i: crate::Variant) -> crate::Variant {
- fold_variant(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_vis_restricted(&mut self, i: crate::VisRestricted) -> crate::VisRestricted {
- fold_vis_restricted(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_visibility(&mut self, i: crate::Visibility) -> crate::Visibility {
- fold_visibility(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_where_clause(&mut self, i: crate::WhereClause) -> crate::WhereClause {
- fold_where_clause(self, i)
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn fold_where_predicate(
- &mut self,
- i: crate::WherePredicate,
- ) -> crate::WherePredicate {
- fold_where_predicate(self, i)
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_abi<F>(f: &mut F, node: crate::Abi) -> crate::Abi
-where
- F: Fold + ?Sized,
-{
- crate::Abi {
- extern_token: node.extern_token,
- name: (node.name).map(|it| f.fold_lit_str(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_angle_bracketed_generic_arguments<F>(
- f: &mut F,
- node: crate::AngleBracketedGenericArguments,
-) -> crate::AngleBracketedGenericArguments
-where
- F: Fold + ?Sized,
-{
- crate::AngleBracketedGenericArguments {
- colon2_token: node.colon2_token,
- lt_token: node.lt_token,
- args: crate::punctuated::fold(node.args, f, F::fold_generic_argument),
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_arm<F>(f: &mut F, node: crate::Arm) -> crate::Arm
-where
- F: Fold + ?Sized,
-{
- crate::Arm {
- attrs: f.fold_attributes(node.attrs),
- pat: f.fold_pat(node.pat),
- guard: (node.guard).map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- fat_arrow_token: node.fat_arrow_token,
- body: Box::new(f.fold_expr(*node.body)),
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_assoc_const<F>(f: &mut F, node: crate::AssocConst) -> crate::AssocConst
-where
- F: Fold + ?Sized,
-{
- crate::AssocConst {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- eq_token: node.eq_token,
- value: f.fold_expr(node.value),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_assoc_type<F>(f: &mut F, node: crate::AssocType) -> crate::AssocType
-where
- F: Fold + ?Sized,
-{
- crate::AssocType {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- eq_token: node.eq_token,
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_attr_style<F>(f: &mut F, node: crate::AttrStyle) -> crate::AttrStyle
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::AttrStyle::Outer => crate::AttrStyle::Outer,
- crate::AttrStyle::Inner(_binding_0) => crate::AttrStyle::Inner(_binding_0),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_attribute<F>(f: &mut F, node: crate::Attribute) -> crate::Attribute
-where
- F: Fold + ?Sized,
-{
- crate::Attribute {
- pound_token: node.pound_token,
- style: f.fold_attr_style(node.style),
- bracket_token: node.bracket_token,
- meta: f.fold_meta(node.meta),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bare_fn_arg<F>(f: &mut F, node: crate::BareFnArg) -> crate::BareFnArg
-where
- F: Fold + ?Sized,
-{
- crate::BareFnArg {
- attrs: f.fold_attributes(node.attrs),
- name: (node.name).map(|it| (f.fold_ident((it).0), (it).1)),
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bare_variadic<F>(f: &mut F, node: crate::BareVariadic) -> crate::BareVariadic
-where
- F: Fold + ?Sized,
-{
- crate::BareVariadic {
- attrs: f.fold_attributes(node.attrs),
- name: (node.name).map(|it| (f.fold_ident((it).0), (it).1)),
- dots: node.dots,
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bin_op<F>(f: &mut F, node: crate::BinOp) -> crate::BinOp
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::BinOp::Add(_binding_0) => crate::BinOp::Add(_binding_0),
- crate::BinOp::Sub(_binding_0) => crate::BinOp::Sub(_binding_0),
- crate::BinOp::Mul(_binding_0) => crate::BinOp::Mul(_binding_0),
- crate::BinOp::Div(_binding_0) => crate::BinOp::Div(_binding_0),
- crate::BinOp::Rem(_binding_0) => crate::BinOp::Rem(_binding_0),
- crate::BinOp::And(_binding_0) => crate::BinOp::And(_binding_0),
- crate::BinOp::Or(_binding_0) => crate::BinOp::Or(_binding_0),
- crate::BinOp::BitXor(_binding_0) => crate::BinOp::BitXor(_binding_0),
- crate::BinOp::BitAnd(_binding_0) => crate::BinOp::BitAnd(_binding_0),
- crate::BinOp::BitOr(_binding_0) => crate::BinOp::BitOr(_binding_0),
- crate::BinOp::Shl(_binding_0) => crate::BinOp::Shl(_binding_0),
- crate::BinOp::Shr(_binding_0) => crate::BinOp::Shr(_binding_0),
- crate::BinOp::Eq(_binding_0) => crate::BinOp::Eq(_binding_0),
- crate::BinOp::Lt(_binding_0) => crate::BinOp::Lt(_binding_0),
- crate::BinOp::Le(_binding_0) => crate::BinOp::Le(_binding_0),
- crate::BinOp::Ne(_binding_0) => crate::BinOp::Ne(_binding_0),
- crate::BinOp::Ge(_binding_0) => crate::BinOp::Ge(_binding_0),
- crate::BinOp::Gt(_binding_0) => crate::BinOp::Gt(_binding_0),
- crate::BinOp::AddAssign(_binding_0) => crate::BinOp::AddAssign(_binding_0),
- crate::BinOp::SubAssign(_binding_0) => crate::BinOp::SubAssign(_binding_0),
- crate::BinOp::MulAssign(_binding_0) => crate::BinOp::MulAssign(_binding_0),
- crate::BinOp::DivAssign(_binding_0) => crate::BinOp::DivAssign(_binding_0),
- crate::BinOp::RemAssign(_binding_0) => crate::BinOp::RemAssign(_binding_0),
- crate::BinOp::BitXorAssign(_binding_0) => crate::BinOp::BitXorAssign(_binding_0),
- crate::BinOp::BitAndAssign(_binding_0) => crate::BinOp::BitAndAssign(_binding_0),
- crate::BinOp::BitOrAssign(_binding_0) => crate::BinOp::BitOrAssign(_binding_0),
- crate::BinOp::ShlAssign(_binding_0) => crate::BinOp::ShlAssign(_binding_0),
- crate::BinOp::ShrAssign(_binding_0) => crate::BinOp::ShrAssign(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_block<F>(f: &mut F, node: crate::Block) -> crate::Block
-where
- F: Fold + ?Sized,
-{
- crate::Block {
- brace_token: node.brace_token,
- stmts: fold_vec(node.stmts, f, F::fold_stmt),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_bound_lifetimes<F>(
- f: &mut F,
- node: crate::BoundLifetimes,
-) -> crate::BoundLifetimes
-where
- F: Fold + ?Sized,
-{
- crate::BoundLifetimes {
- for_token: node.for_token,
- lt_token: node.lt_token,
- lifetimes: crate::punctuated::fold(node.lifetimes, f, F::fold_generic_param),
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_captured_param<F>(
- f: &mut F,
- node: crate::CapturedParam,
-) -> crate::CapturedParam
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- crate::CapturedParam::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::CapturedParam::Ident(_binding_0) => {
- crate::CapturedParam::Ident(f.fold_ident(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_const_param<F>(f: &mut F, node: crate::ConstParam) -> crate::ConstParam
-where
- F: Fold + ?Sized,
-{
- crate::ConstParam {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- eq_token: node.eq_token,
- default: (node.default).map(|it| f.fold_expr(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_constraint<F>(f: &mut F, node: crate::Constraint) -> crate::Constraint
-where
- F: Fold + ?Sized,
-{
- crate::Constraint {
- ident: f.fold_ident(node.ident),
- generics: (node.generics).map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data<F>(f: &mut F, node: crate::Data) -> crate::Data
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Data::Struct(_binding_0) => {
- crate::Data::Struct(f.fold_data_struct(_binding_0))
- }
- crate::Data::Enum(_binding_0) => crate::Data::Enum(f.fold_data_enum(_binding_0)),
- crate::Data::Union(_binding_0) => {
- crate::Data::Union(f.fold_data_union(_binding_0))
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_enum<F>(f: &mut F, node: crate::DataEnum) -> crate::DataEnum
-where
- F: Fold + ?Sized,
-{
- crate::DataEnum {
- enum_token: node.enum_token,
- brace_token: node.brace_token,
- variants: crate::punctuated::fold(node.variants, f, F::fold_variant),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_struct<F>(f: &mut F, node: crate::DataStruct) -> crate::DataStruct
-where
- F: Fold + ?Sized,
-{
- crate::DataStruct {
- struct_token: node.struct_token,
- fields: f.fold_fields(node.fields),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_data_union<F>(f: &mut F, node: crate::DataUnion) -> crate::DataUnion
-where
- F: Fold + ?Sized,
-{
- crate::DataUnion {
- union_token: node.union_token,
- fields: f.fold_fields_named(node.fields),
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn fold_derive_input<F>(f: &mut F, node: crate::DeriveInput) -> crate::DeriveInput
-where
- F: Fold + ?Sized,
-{
- crate::DeriveInput {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- data: f.fold_data(node.data),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr<F>(f: &mut F, node: crate::Expr) -> crate::Expr
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Expr::Array(_binding_0) => {
- crate::Expr::Array(full!(f.fold_expr_array(_binding_0)))
- }
- crate::Expr::Assign(_binding_0) => {
- crate::Expr::Assign(full!(f.fold_expr_assign(_binding_0)))
- }
- crate::Expr::Async(_binding_0) => {
- crate::Expr::Async(full!(f.fold_expr_async(_binding_0)))
- }
- crate::Expr::Await(_binding_0) => {
- crate::Expr::Await(full!(f.fold_expr_await(_binding_0)))
- }
- crate::Expr::Binary(_binding_0) => {
- crate::Expr::Binary(f.fold_expr_binary(_binding_0))
- }
- crate::Expr::Block(_binding_0) => {
- crate::Expr::Block(full!(f.fold_expr_block(_binding_0)))
- }
- crate::Expr::Break(_binding_0) => {
- crate::Expr::Break(full!(f.fold_expr_break(_binding_0)))
- }
- crate::Expr::Call(_binding_0) => crate::Expr::Call(f.fold_expr_call(_binding_0)),
- crate::Expr::Cast(_binding_0) => crate::Expr::Cast(f.fold_expr_cast(_binding_0)),
- crate::Expr::Closure(_binding_0) => {
- crate::Expr::Closure(full!(f.fold_expr_closure(_binding_0)))
- }
- crate::Expr::Const(_binding_0) => {
- crate::Expr::Const(full!(f.fold_expr_const(_binding_0)))
- }
- crate::Expr::Continue(_binding_0) => {
- crate::Expr::Continue(full!(f.fold_expr_continue(_binding_0)))
- }
- crate::Expr::Field(_binding_0) => {
- crate::Expr::Field(f.fold_expr_field(_binding_0))
- }
- crate::Expr::ForLoop(_binding_0) => {
- crate::Expr::ForLoop(full!(f.fold_expr_for_loop(_binding_0)))
- }
- crate::Expr::Group(_binding_0) => {
- crate::Expr::Group(f.fold_expr_group(_binding_0))
- }
- crate::Expr::If(_binding_0) => crate::Expr::If(full!(f.fold_expr_if(_binding_0))),
- crate::Expr::Index(_binding_0) => {
- crate::Expr::Index(f.fold_expr_index(_binding_0))
- }
- crate::Expr::Infer(_binding_0) => {
- crate::Expr::Infer(full!(f.fold_expr_infer(_binding_0)))
- }
- crate::Expr::Let(_binding_0) => {
- crate::Expr::Let(full!(f.fold_expr_let(_binding_0)))
- }
- crate::Expr::Lit(_binding_0) => crate::Expr::Lit(f.fold_expr_lit(_binding_0)),
- crate::Expr::Loop(_binding_0) => {
- crate::Expr::Loop(full!(f.fold_expr_loop(_binding_0)))
- }
- crate::Expr::Macro(_binding_0) => {
- crate::Expr::Macro(f.fold_expr_macro(_binding_0))
- }
- crate::Expr::Match(_binding_0) => {
- crate::Expr::Match(full!(f.fold_expr_match(_binding_0)))
- }
- crate::Expr::MethodCall(_binding_0) => {
- crate::Expr::MethodCall(f.fold_expr_method_call(_binding_0))
- }
- crate::Expr::Paren(_binding_0) => {
- crate::Expr::Paren(f.fold_expr_paren(_binding_0))
- }
- crate::Expr::Path(_binding_0) => crate::Expr::Path(f.fold_expr_path(_binding_0)),
- crate::Expr::Range(_binding_0) => {
- crate::Expr::Range(full!(f.fold_expr_range(_binding_0)))
- }
- crate::Expr::RawAddr(_binding_0) => {
- crate::Expr::RawAddr(full!(f.fold_expr_raw_addr(_binding_0)))
- }
- crate::Expr::Reference(_binding_0) => {
- crate::Expr::Reference(f.fold_expr_reference(_binding_0))
- }
- crate::Expr::Repeat(_binding_0) => {
- crate::Expr::Repeat(full!(f.fold_expr_repeat(_binding_0)))
- }
- crate::Expr::Return(_binding_0) => {
- crate::Expr::Return(full!(f.fold_expr_return(_binding_0)))
- }
- crate::Expr::Struct(_binding_0) => {
- crate::Expr::Struct(f.fold_expr_struct(_binding_0))
- }
- crate::Expr::Try(_binding_0) => {
- crate::Expr::Try(full!(f.fold_expr_try(_binding_0)))
- }
- crate::Expr::TryBlock(_binding_0) => {
- crate::Expr::TryBlock(full!(f.fold_expr_try_block(_binding_0)))
- }
- crate::Expr::Tuple(_binding_0) => {
- crate::Expr::Tuple(f.fold_expr_tuple(_binding_0))
- }
- crate::Expr::Unary(_binding_0) => {
- crate::Expr::Unary(f.fold_expr_unary(_binding_0))
- }
- crate::Expr::Unsafe(_binding_0) => {
- crate::Expr::Unsafe(full!(f.fold_expr_unsafe(_binding_0)))
- }
- crate::Expr::Verbatim(_binding_0) => {
- crate::Expr::Verbatim(f.fold_token_stream(_binding_0))
- }
- crate::Expr::While(_binding_0) => {
- crate::Expr::While(full!(f.fold_expr_while(_binding_0)))
- }
- crate::Expr::Yield(_binding_0) => {
- crate::Expr::Yield(full!(f.fold_expr_yield(_binding_0)))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_array<F>(f: &mut F, node: crate::ExprArray) -> crate::ExprArray
-where
- F: Fold + ?Sized,
-{
- crate::ExprArray {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_expr),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_assign<F>(f: &mut F, node: crate::ExprAssign) -> crate::ExprAssign
-where
- F: Fold + ?Sized,
-{
- crate::ExprAssign {
- attrs: f.fold_attributes(node.attrs),
- left: Box::new(f.fold_expr(*node.left)),
- eq_token: node.eq_token,
- right: Box::new(f.fold_expr(*node.right)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_async<F>(f: &mut F, node: crate::ExprAsync) -> crate::ExprAsync
-where
- F: Fold + ?Sized,
-{
- crate::ExprAsync {
- attrs: f.fold_attributes(node.attrs),
- async_token: node.async_token,
- capture: node.capture,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_await<F>(f: &mut F, node: crate::ExprAwait) -> crate::ExprAwait
-where
- F: Fold + ?Sized,
-{
- crate::ExprAwait {
- attrs: f.fold_attributes(node.attrs),
- base: Box::new(f.fold_expr(*node.base)),
- dot_token: node.dot_token,
- await_token: node.await_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_binary<F>(f: &mut F, node: crate::ExprBinary) -> crate::ExprBinary
-where
- F: Fold + ?Sized,
-{
- crate::ExprBinary {
- attrs: f.fold_attributes(node.attrs),
- left: Box::new(f.fold_expr(*node.left)),
- op: f.fold_bin_op(node.op),
- right: Box::new(f.fold_expr(*node.right)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_block<F>(f: &mut F, node: crate::ExprBlock) -> crate::ExprBlock
-where
- F: Fold + ?Sized,
-{
- crate::ExprBlock {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_break<F>(f: &mut F, node: crate::ExprBreak) -> crate::ExprBreak
-where
- F: Fold + ?Sized,
-{
- crate::ExprBreak {
- attrs: f.fold_attributes(node.attrs),
- break_token: node.break_token,
- label: (node.label).map(|it| f.fold_lifetime(it)),
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_call<F>(f: &mut F, node: crate::ExprCall) -> crate::ExprCall
-where
- F: Fold + ?Sized,
-{
- crate::ExprCall {
- attrs: f.fold_attributes(node.attrs),
- func: Box::new(f.fold_expr(*node.func)),
- paren_token: node.paren_token,
- args: crate::punctuated::fold(node.args, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_cast<F>(f: &mut F, node: crate::ExprCast) -> crate::ExprCast
-where
- F: Fold + ?Sized,
-{
- crate::ExprCast {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- as_token: node.as_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_closure<F>(f: &mut F, node: crate::ExprClosure) -> crate::ExprClosure
-where
- F: Fold + ?Sized,
-{
- crate::ExprClosure {
- attrs: f.fold_attributes(node.attrs),
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- constness: node.constness,
- movability: node.movability,
- asyncness: node.asyncness,
- capture: node.capture,
- or1_token: node.or1_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_pat),
- or2_token: node.or2_token,
- output: f.fold_return_type(node.output),
- body: Box::new(f.fold_expr(*node.body)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_const<F>(f: &mut F, node: crate::ExprConst) -> crate::ExprConst
-where
- F: Fold + ?Sized,
-{
- crate::ExprConst {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_continue<F>(f: &mut F, node: crate::ExprContinue) -> crate::ExprContinue
-where
- F: Fold + ?Sized,
-{
- crate::ExprContinue {
- attrs: f.fold_attributes(node.attrs),
- continue_token: node.continue_token,
- label: (node.label).map(|it| f.fold_lifetime(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_field<F>(f: &mut F, node: crate::ExprField) -> crate::ExprField
-where
- F: Fold + ?Sized,
-{
- crate::ExprField {
- attrs: f.fold_attributes(node.attrs),
- base: Box::new(f.fold_expr(*node.base)),
- dot_token: node.dot_token,
- member: f.fold_member(node.member),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_for_loop<F>(f: &mut F, node: crate::ExprForLoop) -> crate::ExprForLoop
-where
- F: Fold + ?Sized,
-{
- crate::ExprForLoop {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- for_token: node.for_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- in_token: node.in_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- body: f.fold_block(node.body),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_group<F>(f: &mut F, node: crate::ExprGroup) -> crate::ExprGroup
-where
- F: Fold + ?Sized,
-{
- crate::ExprGroup {
- attrs: f.fold_attributes(node.attrs),
- group_token: node.group_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_if<F>(f: &mut F, node: crate::ExprIf) -> crate::ExprIf
-where
- F: Fold + ?Sized,
-{
- crate::ExprIf {
- attrs: f.fold_attributes(node.attrs),
- if_token: node.if_token,
- cond: Box::new(f.fold_expr(*node.cond)),
- then_branch: f.fold_block(node.then_branch),
- else_branch: (node.else_branch)
- .map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_index<F>(f: &mut F, node: crate::ExprIndex) -> crate::ExprIndex
-where
- F: Fold + ?Sized,
-{
- crate::ExprIndex {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- bracket_token: node.bracket_token,
- index: Box::new(f.fold_expr(*node.index)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_infer<F>(f: &mut F, node: crate::ExprInfer) -> crate::ExprInfer
-where
- F: Fold + ?Sized,
-{
- crate::ExprInfer {
- attrs: f.fold_attributes(node.attrs),
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_let<F>(f: &mut F, node: crate::ExprLet) -> crate::ExprLet
-where
- F: Fold + ?Sized,
-{
- crate::ExprLet {
- attrs: f.fold_attributes(node.attrs),
- let_token: node.let_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_lit<F>(f: &mut F, node: crate::ExprLit) -> crate::ExprLit
-where
- F: Fold + ?Sized,
-{
- crate::ExprLit {
- attrs: f.fold_attributes(node.attrs),
- lit: f.fold_lit(node.lit),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_loop<F>(f: &mut F, node: crate::ExprLoop) -> crate::ExprLoop
-where
- F: Fold + ?Sized,
-{
- crate::ExprLoop {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- loop_token: node.loop_token,
- body: f.fold_block(node.body),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_macro<F>(f: &mut F, node: crate::ExprMacro) -> crate::ExprMacro
-where
- F: Fold + ?Sized,
-{
- crate::ExprMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_match<F>(f: &mut F, node: crate::ExprMatch) -> crate::ExprMatch
-where
- F: Fold + ?Sized,
-{
- crate::ExprMatch {
- attrs: f.fold_attributes(node.attrs),
- match_token: node.match_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- brace_token: node.brace_token,
- arms: fold_vec(node.arms, f, F::fold_arm),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_method_call<F>(
- f: &mut F,
- node: crate::ExprMethodCall,
-) -> crate::ExprMethodCall
-where
- F: Fold + ?Sized,
-{
- crate::ExprMethodCall {
- attrs: f.fold_attributes(node.attrs),
- receiver: Box::new(f.fold_expr(*node.receiver)),
- dot_token: node.dot_token,
- method: f.fold_ident(node.method),
- turbofish: (node.turbofish)
- .map(|it| f.fold_angle_bracketed_generic_arguments(it)),
- paren_token: node.paren_token,
- args: crate::punctuated::fold(node.args, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_paren<F>(f: &mut F, node: crate::ExprParen) -> crate::ExprParen
-where
- F: Fold + ?Sized,
-{
- crate::ExprParen {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_path<F>(f: &mut F, node: crate::ExprPath) -> crate::ExprPath
-where
- F: Fold + ?Sized,
-{
- crate::ExprPath {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_range<F>(f: &mut F, node: crate::ExprRange) -> crate::ExprRange
-where
- F: Fold + ?Sized,
-{
- crate::ExprRange {
- attrs: f.fold_attributes(node.attrs),
- start: (node.start).map(|it| Box::new(f.fold_expr(*it))),
- limits: f.fold_range_limits(node.limits),
- end: (node.end).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_raw_addr<F>(f: &mut F, node: crate::ExprRawAddr) -> crate::ExprRawAddr
-where
- F: Fold + ?Sized,
-{
- crate::ExprRawAddr {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- raw: node.raw,
- mutability: f.fold_pointer_mutability(node.mutability),
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_reference<F>(
- f: &mut F,
- node: crate::ExprReference,
-) -> crate::ExprReference
-where
- F: Fold + ?Sized,
-{
- crate::ExprReference {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- mutability: node.mutability,
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_repeat<F>(f: &mut F, node: crate::ExprRepeat) -> crate::ExprRepeat
-where
- F: Fold + ?Sized,
-{
- crate::ExprRepeat {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- len: Box::new(f.fold_expr(*node.len)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_return<F>(f: &mut F, node: crate::ExprReturn) -> crate::ExprReturn
-where
- F: Fold + ?Sized,
-{
- crate::ExprReturn {
- attrs: f.fold_attributes(node.attrs),
- return_token: node.return_token,
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_struct<F>(f: &mut F, node: crate::ExprStruct) -> crate::ExprStruct
-where
- F: Fold + ?Sized,
-{
- crate::ExprStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- brace_token: node.brace_token,
- fields: crate::punctuated::fold(node.fields, f, F::fold_field_value),
- dot2_token: node.dot2_token,
- rest: (node.rest).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_try<F>(f: &mut F, node: crate::ExprTry) -> crate::ExprTry
-where
- F: Fold + ?Sized,
-{
- crate::ExprTry {
- attrs: f.fold_attributes(node.attrs),
- expr: Box::new(f.fold_expr(*node.expr)),
- question_token: node.question_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_try_block<F>(
- f: &mut F,
- node: crate::ExprTryBlock,
-) -> crate::ExprTryBlock
-where
- F: Fold + ?Sized,
-{
- crate::ExprTryBlock {
- attrs: f.fold_attributes(node.attrs),
- try_token: node.try_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_tuple<F>(f: &mut F, node: crate::ExprTuple) -> crate::ExprTuple
-where
- F: Fold + ?Sized,
-{
- crate::ExprTuple {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_expr_unary<F>(f: &mut F, node: crate::ExprUnary) -> crate::ExprUnary
-where
- F: Fold + ?Sized,
-{
- crate::ExprUnary {
- attrs: f.fold_attributes(node.attrs),
- op: f.fold_un_op(node.op),
- expr: Box::new(f.fold_expr(*node.expr)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_unsafe<F>(f: &mut F, node: crate::ExprUnsafe) -> crate::ExprUnsafe
-where
- F: Fold + ?Sized,
-{
- crate::ExprUnsafe {
- attrs: f.fold_attributes(node.attrs),
- unsafe_token: node.unsafe_token,
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_while<F>(f: &mut F, node: crate::ExprWhile) -> crate::ExprWhile
-where
- F: Fold + ?Sized,
-{
- crate::ExprWhile {
- attrs: f.fold_attributes(node.attrs),
- label: (node.label).map(|it| f.fold_label(it)),
- while_token: node.while_token,
- cond: Box::new(f.fold_expr(*node.cond)),
- body: f.fold_block(node.body),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_expr_yield<F>(f: &mut F, node: crate::ExprYield) -> crate::ExprYield
-where
- F: Fold + ?Sized,
-{
- crate::ExprYield {
- attrs: f.fold_attributes(node.attrs),
- yield_token: node.yield_token,
- expr: (node.expr).map(|it| Box::new(f.fold_expr(*it))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field<F>(f: &mut F, node: crate::Field) -> crate::Field
-where
- F: Fold + ?Sized,
-{
- crate::Field {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- mutability: f.fold_field_mutability(node.mutability),
- ident: (node.ident).map(|it| f.fold_ident(it)),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field_mutability<F>(
- f: &mut F,
- node: crate::FieldMutability,
-) -> crate::FieldMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::FieldMutability::None => crate::FieldMutability::None,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_field_pat<F>(f: &mut F, node: crate::FieldPat) -> crate::FieldPat
-where
- F: Fold + ?Sized,
-{
- crate::FieldPat {
- attrs: f.fold_attributes(node.attrs),
- member: f.fold_member(node.member),
- colon_token: node.colon_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_field_value<F>(f: &mut F, node: crate::FieldValue) -> crate::FieldValue
-where
- F: Fold + ?Sized,
-{
- crate::FieldValue {
- attrs: f.fold_attributes(node.attrs),
- member: f.fold_member(node.member),
- colon_token: node.colon_token,
- expr: f.fold_expr(node.expr),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields<F>(f: &mut F, node: crate::Fields) -> crate::Fields
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Fields::Named(_binding_0) => {
- crate::Fields::Named(f.fold_fields_named(_binding_0))
- }
- crate::Fields::Unnamed(_binding_0) => {
- crate::Fields::Unnamed(f.fold_fields_unnamed(_binding_0))
- }
- crate::Fields::Unit => crate::Fields::Unit,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields_named<F>(f: &mut F, node: crate::FieldsNamed) -> crate::FieldsNamed
-where
- F: Fold + ?Sized,
-{
- crate::FieldsNamed {
- brace_token: node.brace_token,
- named: crate::punctuated::fold(node.named, f, F::fold_field),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_fields_unnamed<F>(
- f: &mut F,
- node: crate::FieldsUnnamed,
-) -> crate::FieldsUnnamed
-where
- F: Fold + ?Sized,
-{
- crate::FieldsUnnamed {
- paren_token: node.paren_token,
- unnamed: crate::punctuated::fold(node.unnamed, f, F::fold_field),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_file<F>(f: &mut F, node: crate::File) -> crate::File
-where
- F: Fold + ?Sized,
-{
- crate::File {
- shebang: node.shebang,
- attrs: f.fold_attributes(node.attrs),
- items: fold_vec(node.items, f, F::fold_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_fn_arg<F>(f: &mut F, node: crate::FnArg) -> crate::FnArg
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- crate::FnArg::Receiver(f.fold_receiver(_binding_0))
- }
- crate::FnArg::Typed(_binding_0) => {
- crate::FnArg::Typed(f.fold_pat_type(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item<F>(f: &mut F, node: crate::ForeignItem) -> crate::ForeignItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- crate::ForeignItem::Fn(f.fold_foreign_item_fn(_binding_0))
- }
- crate::ForeignItem::Static(_binding_0) => {
- crate::ForeignItem::Static(f.fold_foreign_item_static(_binding_0))
- }
- crate::ForeignItem::Type(_binding_0) => {
- crate::ForeignItem::Type(f.fold_foreign_item_type(_binding_0))
- }
- crate::ForeignItem::Macro(_binding_0) => {
- crate::ForeignItem::Macro(f.fold_foreign_item_macro(_binding_0))
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- crate::ForeignItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_fn<F>(
- f: &mut F,
- node: crate::ForeignItemFn,
-) -> crate::ForeignItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- sig: f.fold_signature(node.sig),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_macro<F>(
- f: &mut F,
- node: crate::ForeignItemMacro,
-) -> crate::ForeignItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_static<F>(
- f: &mut F,
- node: crate::ForeignItemStatic,
-) -> crate::ForeignItemStatic
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemStatic {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- static_token: node.static_token,
- mutability: f.fold_static_mutability(node.mutability),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_foreign_item_type<F>(
- f: &mut F,
- node: crate::ForeignItemType,
-) -> crate::ForeignItemType
-where
- F: Fold + ?Sized,
-{
- crate::ForeignItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generic_argument<F>(
- f: &mut F,
- node: crate::GenericArgument,
-) -> crate::GenericArgument
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- crate::GenericArgument::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::GenericArgument::Type(_binding_0) => {
- crate::GenericArgument::Type(f.fold_type(_binding_0))
- }
- crate::GenericArgument::Const(_binding_0) => {
- crate::GenericArgument::Const(f.fold_expr(_binding_0))
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- crate::GenericArgument::AssocType(f.fold_assoc_type(_binding_0))
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- crate::GenericArgument::AssocConst(f.fold_assoc_const(_binding_0))
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- crate::GenericArgument::Constraint(f.fold_constraint(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generic_param<F>(f: &mut F, node: crate::GenericParam) -> crate::GenericParam
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- crate::GenericParam::Lifetime(f.fold_lifetime_param(_binding_0))
- }
- crate::GenericParam::Type(_binding_0) => {
- crate::GenericParam::Type(f.fold_type_param(_binding_0))
- }
- crate::GenericParam::Const(_binding_0) => {
- crate::GenericParam::Const(f.fold_const_param(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_generics<F>(f: &mut F, node: crate::Generics) -> crate::Generics
-where
- F: Fold + ?Sized,
-{
- crate::Generics {
- lt_token: node.lt_token,
- params: crate::punctuated::fold(node.params, f, F::fold_generic_param),
- gt_token: node.gt_token,
- where_clause: (node.where_clause).map(|it| f.fold_where_clause(it)),
- }
-}
-pub fn fold_ident<F>(f: &mut F, node: proc_macro2::Ident) -> proc_macro2::Ident
-where
- F: Fold + ?Sized,
-{
- let mut node = node;
- let span = f.fold_span(node.span());
- node.set_span(span);
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item<F>(f: &mut F, node: crate::ImplItem) -> crate::ImplItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ImplItem::Const(_binding_0) => {
- crate::ImplItem::Const(f.fold_impl_item_const(_binding_0))
- }
- crate::ImplItem::Fn(_binding_0) => {
- crate::ImplItem::Fn(f.fold_impl_item_fn(_binding_0))
- }
- crate::ImplItem::Type(_binding_0) => {
- crate::ImplItem::Type(f.fold_impl_item_type(_binding_0))
- }
- crate::ImplItem::Macro(_binding_0) => {
- crate::ImplItem::Macro(f.fold_impl_item_macro(_binding_0))
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- crate::ImplItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_const<F>(
- f: &mut F,
- node: crate::ImplItemConst,
-) -> crate::ImplItemConst
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemConst {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- eq_token: node.eq_token,
- expr: f.fold_expr(node.expr),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_fn<F>(f: &mut F, node: crate::ImplItemFn) -> crate::ImplItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- sig: f.fold_signature(node.sig),
- block: f.fold_block(node.block),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_macro<F>(
- f: &mut F,
- node: crate::ImplItemMacro,
-) -> crate::ImplItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_item_type<F>(
- f: &mut F,
- node: crate::ImplItemType,
-) -> crate::ImplItemType
-where
- F: Fold + ?Sized,
-{
- crate::ImplItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- defaultness: node.defaultness,
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- ty: f.fold_type(node.ty),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_impl_restriction<F>(
- f: &mut F,
- node: crate::ImplRestriction,
-) -> crate::ImplRestriction
-where
- F: Fold + ?Sized,
-{
- match node {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_index<F>(f: &mut F, node: crate::Index) -> crate::Index
-where
- F: Fold + ?Sized,
-{
- crate::Index {
- index: node.index,
- span: f.fold_span(node.span),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item<F>(f: &mut F, node: crate::Item) -> crate::Item
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Item::Const(_binding_0) => {
- crate::Item::Const(f.fold_item_const(_binding_0))
- }
- crate::Item::Enum(_binding_0) => crate::Item::Enum(f.fold_item_enum(_binding_0)),
- crate::Item::ExternCrate(_binding_0) => {
- crate::Item::ExternCrate(f.fold_item_extern_crate(_binding_0))
- }
- crate::Item::Fn(_binding_0) => crate::Item::Fn(f.fold_item_fn(_binding_0)),
- crate::Item::ForeignMod(_binding_0) => {
- crate::Item::ForeignMod(f.fold_item_foreign_mod(_binding_0))
- }
- crate::Item::Impl(_binding_0) => crate::Item::Impl(f.fold_item_impl(_binding_0)),
- crate::Item::Macro(_binding_0) => {
- crate::Item::Macro(f.fold_item_macro(_binding_0))
- }
- crate::Item::Mod(_binding_0) => crate::Item::Mod(f.fold_item_mod(_binding_0)),
- crate::Item::Static(_binding_0) => {
- crate::Item::Static(f.fold_item_static(_binding_0))
- }
- crate::Item::Struct(_binding_0) => {
- crate::Item::Struct(f.fold_item_struct(_binding_0))
- }
- crate::Item::Trait(_binding_0) => {
- crate::Item::Trait(f.fold_item_trait(_binding_0))
- }
- crate::Item::TraitAlias(_binding_0) => {
- crate::Item::TraitAlias(f.fold_item_trait_alias(_binding_0))
- }
- crate::Item::Type(_binding_0) => crate::Item::Type(f.fold_item_type(_binding_0)),
- crate::Item::Union(_binding_0) => {
- crate::Item::Union(f.fold_item_union(_binding_0))
- }
- crate::Item::Use(_binding_0) => crate::Item::Use(f.fold_item_use(_binding_0)),
- crate::Item::Verbatim(_binding_0) => {
- crate::Item::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_const<F>(f: &mut F, node: crate::ItemConst) -> crate::ItemConst
-where
- F: Fold + ?Sized,
-{
- crate::ItemConst {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_enum<F>(f: &mut F, node: crate::ItemEnum) -> crate::ItemEnum
-where
- F: Fold + ?Sized,
-{
- crate::ItemEnum {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- enum_token: node.enum_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- brace_token: node.brace_token,
- variants: crate::punctuated::fold(node.variants, f, F::fold_variant),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_extern_crate<F>(
- f: &mut F,
- node: crate::ItemExternCrate,
-) -> crate::ItemExternCrate
-where
- F: Fold + ?Sized,
-{
- crate::ItemExternCrate {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- extern_token: node.extern_token,
- crate_token: node.crate_token,
- ident: f.fold_ident(node.ident),
- rename: (node.rename).map(|it| ((it).0, f.fold_ident((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_fn<F>(f: &mut F, node: crate::ItemFn) -> crate::ItemFn
-where
- F: Fold + ?Sized,
-{
- crate::ItemFn {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- sig: f.fold_signature(node.sig),
- block: Box::new(f.fold_block(*node.block)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_foreign_mod<F>(
- f: &mut F,
- node: crate::ItemForeignMod,
-) -> crate::ItemForeignMod
-where
- F: Fold + ?Sized,
-{
- crate::ItemForeignMod {
- attrs: f.fold_attributes(node.attrs),
- unsafety: node.unsafety,
- abi: f.fold_abi(node.abi),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_foreign_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_impl<F>(f: &mut F, node: crate::ItemImpl) -> crate::ItemImpl
-where
- F: Fold + ?Sized,
-{
- crate::ItemImpl {
- attrs: f.fold_attributes(node.attrs),
- defaultness: node.defaultness,
- unsafety: node.unsafety,
- impl_token: node.impl_token,
- generics: f.fold_generics(node.generics),
- trait_: (node.trait_).map(|it| ((it).0, f.fold_path((it).1), (it).2)),
- self_ty: Box::new(f.fold_type(*node.self_ty)),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_impl_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_macro<F>(f: &mut F, node: crate::ItemMacro) -> crate::ItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::ItemMacro {
- attrs: f.fold_attributes(node.attrs),
- ident: (node.ident).map(|it| f.fold_ident(it)),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_mod<F>(f: &mut F, node: crate::ItemMod) -> crate::ItemMod
-where
- F: Fold + ?Sized,
-{
- crate::ItemMod {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- unsafety: node.unsafety,
- mod_token: node.mod_token,
- ident: f.fold_ident(node.ident),
- content: (node.content).map(|it| ((it).0, fold_vec((it).1, f, F::fold_item))),
- semi: node.semi,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_static<F>(f: &mut F, node: crate::ItemStatic) -> crate::ItemStatic
-where
- F: Fold + ?Sized,
-{
- crate::ItemStatic {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- static_token: node.static_token,
- mutability: f.fold_static_mutability(node.mutability),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_struct<F>(f: &mut F, node: crate::ItemStruct) -> crate::ItemStruct
-where
- F: Fold + ?Sized,
-{
- crate::ItemStruct {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- struct_token: node.struct_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- fields: f.fold_fields(node.fields),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_trait<F>(f: &mut F, node: crate::ItemTrait) -> crate::ItemTrait
-where
- F: Fold + ?Sized,
-{
- crate::ItemTrait {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- unsafety: node.unsafety,
- auto_token: node.auto_token,
- restriction: (node.restriction).map(|it| f.fold_impl_restriction(it)),
- trait_token: node.trait_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- supertraits: crate::punctuated::fold(
- node.supertraits,
- f,
- F::fold_type_param_bound,
- ),
- brace_token: node.brace_token,
- items: fold_vec(node.items, f, F::fold_trait_item),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_trait_alias<F>(
- f: &mut F,
- node: crate::ItemTraitAlias,
-) -> crate::ItemTraitAlias
-where
- F: Fold + ?Sized,
-{
- crate::ItemTraitAlias {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- trait_token: node.trait_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_type<F>(f: &mut F, node: crate::ItemType) -> crate::ItemType
-where
- F: Fold + ?Sized,
-{
- crate::ItemType {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- eq_token: node.eq_token,
- ty: Box::new(f.fold_type(*node.ty)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_union<F>(f: &mut F, node: crate::ItemUnion) -> crate::ItemUnion
-where
- F: Fold + ?Sized,
-{
- crate::ItemUnion {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- union_token: node.union_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- fields: f.fold_fields_named(node.fields),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_item_use<F>(f: &mut F, node: crate::ItemUse) -> crate::ItemUse
-where
- F: Fold + ?Sized,
-{
- crate::ItemUse {
- attrs: f.fold_attributes(node.attrs),
- vis: f.fold_visibility(node.vis),
- use_token: node.use_token,
- leading_colon: node.leading_colon,
- tree: f.fold_use_tree(node.tree),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_label<F>(f: &mut F, node: crate::Label) -> crate::Label
-where
- F: Fold + ?Sized,
-{
- crate::Label {
- name: f.fold_lifetime(node.name),
- colon_token: node.colon_token,
- }
-}
-pub fn fold_lifetime<F>(f: &mut F, node: crate::Lifetime) -> crate::Lifetime
-where
- F: Fold + ?Sized,
-{
- crate::Lifetime {
- apostrophe: f.fold_span(node.apostrophe),
- ident: f.fold_ident(node.ident),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_lifetime_param<F>(
- f: &mut F,
- node: crate::LifetimeParam,
-) -> crate::LifetimeParam
-where
- F: Fold + ?Sized,
-{
- crate::LifetimeParam {
- attrs: f.fold_attributes(node.attrs),
- lifetime: f.fold_lifetime(node.lifetime),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_lifetime),
- }
-}
-pub fn fold_lit<F>(f: &mut F, node: crate::Lit) -> crate::Lit
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Lit::Str(_binding_0) => crate::Lit::Str(f.fold_lit_str(_binding_0)),
- crate::Lit::ByteStr(_binding_0) => {
- crate::Lit::ByteStr(f.fold_lit_byte_str(_binding_0))
- }
- crate::Lit::CStr(_binding_0) => crate::Lit::CStr(f.fold_lit_cstr(_binding_0)),
- crate::Lit::Byte(_binding_0) => crate::Lit::Byte(f.fold_lit_byte(_binding_0)),
- crate::Lit::Char(_binding_0) => crate::Lit::Char(f.fold_lit_char(_binding_0)),
- crate::Lit::Int(_binding_0) => crate::Lit::Int(f.fold_lit_int(_binding_0)),
- crate::Lit::Float(_binding_0) => crate::Lit::Float(f.fold_lit_float(_binding_0)),
- crate::Lit::Bool(_binding_0) => crate::Lit::Bool(f.fold_lit_bool(_binding_0)),
- crate::Lit::Verbatim(_binding_0) => crate::Lit::Verbatim(_binding_0),
- }
-}
-pub fn fold_lit_bool<F>(f: &mut F, node: crate::LitBool) -> crate::LitBool
-where
- F: Fold + ?Sized,
-{
- crate::LitBool {
- value: node.value,
- span: f.fold_span(node.span),
- }
-}
-pub fn fold_lit_byte<F>(f: &mut F, node: crate::LitByte) -> crate::LitByte
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_byte_str<F>(f: &mut F, node: crate::LitByteStr) -> crate::LitByteStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_cstr<F>(f: &mut F, node: crate::LitCStr) -> crate::LitCStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_char<F>(f: &mut F, node: crate::LitChar) -> crate::LitChar
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_float<F>(f: &mut F, node: crate::LitFloat) -> crate::LitFloat
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_int<F>(f: &mut F, node: crate::LitInt) -> crate::LitInt
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-pub fn fold_lit_str<F>(f: &mut F, node: crate::LitStr) -> crate::LitStr
-where
- F: Fold + ?Sized,
-{
- let span = f.fold_span(node.span());
- let mut node = node;
- node.set_span(span);
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_local<F>(f: &mut F, node: crate::Local) -> crate::Local
-where
- F: Fold + ?Sized,
-{
- crate::Local {
- attrs: f.fold_attributes(node.attrs),
- let_token: node.let_token,
- pat: f.fold_pat(node.pat),
- init: (node.init).map(|it| f.fold_local_init(it)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_local_init<F>(f: &mut F, node: crate::LocalInit) -> crate::LocalInit
-where
- F: Fold + ?Sized,
-{
- crate::LocalInit {
- eq_token: node.eq_token,
- expr: Box::new(f.fold_expr(*node.expr)),
- diverge: (node.diverge).map(|it| ((it).0, Box::new(f.fold_expr(*(it).1)))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_macro<F>(f: &mut F, node: crate::Macro) -> crate::Macro
-where
- F: Fold + ?Sized,
-{
- crate::Macro {
- path: f.fold_path(node.path),
- bang_token: node.bang_token,
- delimiter: f.fold_macro_delimiter(node.delimiter),
- tokens: f.fold_token_stream(node.tokens),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_macro_delimiter<F>(
- f: &mut F,
- node: crate::MacroDelimiter,
-) -> crate::MacroDelimiter
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::MacroDelimiter::Paren(_binding_0) => {
- crate::MacroDelimiter::Paren(_binding_0)
- }
- crate::MacroDelimiter::Brace(_binding_0) => {
- crate::MacroDelimiter::Brace(_binding_0)
- }
- crate::MacroDelimiter::Bracket(_binding_0) => {
- crate::MacroDelimiter::Bracket(_binding_0)
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_member<F>(f: &mut F, node: crate::Member) -> crate::Member
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Member::Named(_binding_0) => {
- crate::Member::Named(f.fold_ident(_binding_0))
- }
- crate::Member::Unnamed(_binding_0) => {
- crate::Member::Unnamed(f.fold_index(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta<F>(f: &mut F, node: crate::Meta) -> crate::Meta
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Meta::Path(_binding_0) => crate::Meta::Path(f.fold_path(_binding_0)),
- crate::Meta::List(_binding_0) => crate::Meta::List(f.fold_meta_list(_binding_0)),
- crate::Meta::NameValue(_binding_0) => {
- crate::Meta::NameValue(f.fold_meta_name_value(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta_list<F>(f: &mut F, node: crate::MetaList) -> crate::MetaList
-where
- F: Fold + ?Sized,
-{
- crate::MetaList {
- path: f.fold_path(node.path),
- delimiter: f.fold_macro_delimiter(node.delimiter),
- tokens: f.fold_token_stream(node.tokens),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_meta_name_value<F>(
- f: &mut F,
- node: crate::MetaNameValue,
-) -> crate::MetaNameValue
-where
- F: Fold + ?Sized,
-{
- crate::MetaNameValue {
- path: f.fold_path(node.path),
- eq_token: node.eq_token,
- value: f.fold_expr(node.value),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_parenthesized_generic_arguments<F>(
- f: &mut F,
- node: crate::ParenthesizedGenericArguments,
-) -> crate::ParenthesizedGenericArguments
-where
- F: Fold + ?Sized,
-{
- crate::ParenthesizedGenericArguments {
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_type),
- output: f.fold_return_type(node.output),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat<F>(f: &mut F, node: crate::Pat) -> crate::Pat
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Pat::Const(_binding_0) => crate::Pat::Const(f.fold_expr_const(_binding_0)),
- crate::Pat::Ident(_binding_0) => crate::Pat::Ident(f.fold_pat_ident(_binding_0)),
- crate::Pat::Lit(_binding_0) => crate::Pat::Lit(f.fold_expr_lit(_binding_0)),
- crate::Pat::Macro(_binding_0) => crate::Pat::Macro(f.fold_expr_macro(_binding_0)),
- crate::Pat::Or(_binding_0) => crate::Pat::Or(f.fold_pat_or(_binding_0)),
- crate::Pat::Paren(_binding_0) => crate::Pat::Paren(f.fold_pat_paren(_binding_0)),
- crate::Pat::Path(_binding_0) => crate::Pat::Path(f.fold_expr_path(_binding_0)),
- crate::Pat::Range(_binding_0) => crate::Pat::Range(f.fold_expr_range(_binding_0)),
- crate::Pat::Reference(_binding_0) => {
- crate::Pat::Reference(f.fold_pat_reference(_binding_0))
- }
- crate::Pat::Rest(_binding_0) => crate::Pat::Rest(f.fold_pat_rest(_binding_0)),
- crate::Pat::Slice(_binding_0) => crate::Pat::Slice(f.fold_pat_slice(_binding_0)),
- crate::Pat::Struct(_binding_0) => {
- crate::Pat::Struct(f.fold_pat_struct(_binding_0))
- }
- crate::Pat::Tuple(_binding_0) => crate::Pat::Tuple(f.fold_pat_tuple(_binding_0)),
- crate::Pat::TupleStruct(_binding_0) => {
- crate::Pat::TupleStruct(f.fold_pat_tuple_struct(_binding_0))
- }
- crate::Pat::Type(_binding_0) => crate::Pat::Type(f.fold_pat_type(_binding_0)),
- crate::Pat::Verbatim(_binding_0) => {
- crate::Pat::Verbatim(f.fold_token_stream(_binding_0))
- }
- crate::Pat::Wild(_binding_0) => crate::Pat::Wild(f.fold_pat_wild(_binding_0)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_ident<F>(f: &mut F, node: crate::PatIdent) -> crate::PatIdent
-where
- F: Fold + ?Sized,
-{
- crate::PatIdent {
- attrs: f.fold_attributes(node.attrs),
- by_ref: node.by_ref,
- mutability: node.mutability,
- ident: f.fold_ident(node.ident),
- subpat: (node.subpat).map(|it| ((it).0, Box::new(f.fold_pat(*(it).1)))),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_or<F>(f: &mut F, node: crate::PatOr) -> crate::PatOr
-where
- F: Fold + ?Sized,
-{
- crate::PatOr {
- attrs: f.fold_attributes(node.attrs),
- leading_vert: node.leading_vert,
- cases: crate::punctuated::fold(node.cases, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_paren<F>(f: &mut F, node: crate::PatParen) -> crate::PatParen
-where
- F: Fold + ?Sized,
-{
- crate::PatParen {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_reference<F>(f: &mut F, node: crate::PatReference) -> crate::PatReference
-where
- F: Fold + ?Sized,
-{
- crate::PatReference {
- attrs: f.fold_attributes(node.attrs),
- and_token: node.and_token,
- mutability: node.mutability,
- pat: Box::new(f.fold_pat(*node.pat)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_rest<F>(f: &mut F, node: crate::PatRest) -> crate::PatRest
-where
- F: Fold + ?Sized,
-{
- crate::PatRest {
- attrs: f.fold_attributes(node.attrs),
- dot2_token: node.dot2_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_slice<F>(f: &mut F, node: crate::PatSlice) -> crate::PatSlice
-where
- F: Fold + ?Sized,
-{
- crate::PatSlice {
- attrs: f.fold_attributes(node.attrs),
- bracket_token: node.bracket_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_struct<F>(f: &mut F, node: crate::PatStruct) -> crate::PatStruct
-where
- F: Fold + ?Sized,
-{
- crate::PatStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- brace_token: node.brace_token,
- fields: crate::punctuated::fold(node.fields, f, F::fold_field_pat),
- rest: (node.rest).map(|it| f.fold_pat_rest(it)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_tuple<F>(f: &mut F, node: crate::PatTuple) -> crate::PatTuple
-where
- F: Fold + ?Sized,
-{
- crate::PatTuple {
- attrs: f.fold_attributes(node.attrs),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_tuple_struct<F>(
- f: &mut F,
- node: crate::PatTupleStruct,
-) -> crate::PatTupleStruct
-where
- F: Fold + ?Sized,
-{
- crate::PatTupleStruct {
- attrs: f.fold_attributes(node.attrs),
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_pat),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_type<F>(f: &mut F, node: crate::PatType) -> crate::PatType
-where
- F: Fold + ?Sized,
-{
- crate::PatType {
- attrs: f.fold_attributes(node.attrs),
- pat: Box::new(f.fold_pat(*node.pat)),
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pat_wild<F>(f: &mut F, node: crate::PatWild) -> crate::PatWild
-where
- F: Fold + ?Sized,
-{
- crate::PatWild {
- attrs: f.fold_attributes(node.attrs),
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path<F>(f: &mut F, node: crate::Path) -> crate::Path
-where
- F: Fold + ?Sized,
-{
- crate::Path {
- leading_colon: node.leading_colon,
- segments: crate::punctuated::fold(node.segments, f, F::fold_path_segment),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path_arguments<F>(
- f: &mut F,
- node: crate::PathArguments,
-) -> crate::PathArguments
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::PathArguments::None => crate::PathArguments::None,
- crate::PathArguments::AngleBracketed(_binding_0) => {
- crate::PathArguments::AngleBracketed(
- f.fold_angle_bracketed_generic_arguments(_binding_0),
- )
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- crate::PathArguments::Parenthesized(
- f.fold_parenthesized_generic_arguments(_binding_0),
- )
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_path_segment<F>(f: &mut F, node: crate::PathSegment) -> crate::PathSegment
-where
- F: Fold + ?Sized,
-{
- crate::PathSegment {
- ident: f.fold_ident(node.ident),
- arguments: f.fold_path_arguments(node.arguments),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_pointer_mutability<F>(
- f: &mut F,
- node: crate::PointerMutability,
-) -> crate::PointerMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::PointerMutability::Const(_binding_0) => {
- crate::PointerMutability::Const(_binding_0)
- }
- crate::PointerMutability::Mut(_binding_0) => {
- crate::PointerMutability::Mut(_binding_0)
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_precise_capture<F>(
- f: &mut F,
- node: crate::PreciseCapture,
-) -> crate::PreciseCapture
-where
- F: Fold + ?Sized,
-{
- crate::PreciseCapture {
- use_token: node.use_token,
- lt_token: node.lt_token,
- params: crate::punctuated::fold(node.params, f, F::fold_captured_param),
- gt_token: node.gt_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_predicate_lifetime<F>(
- f: &mut F,
- node: crate::PredicateLifetime,
-) -> crate::PredicateLifetime
-where
- F: Fold + ?Sized,
-{
- crate::PredicateLifetime {
- lifetime: f.fold_lifetime(node.lifetime),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_lifetime),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_predicate_type<F>(
- f: &mut F,
- node: crate::PredicateType,
-) -> crate::PredicateType
-where
- F: Fold + ?Sized,
-{
- crate::PredicateType {
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- bounded_ty: f.fold_type(node.bounded_ty),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_qself<F>(f: &mut F, node: crate::QSelf) -> crate::QSelf
-where
- F: Fold + ?Sized,
-{
- crate::QSelf {
- lt_token: node.lt_token,
- ty: Box::new(f.fold_type(*node.ty)),
- position: node.position,
- as_token: node.as_token,
- gt_token: node.gt_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_range_limits<F>(f: &mut F, node: crate::RangeLimits) -> crate::RangeLimits
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::RangeLimits::HalfOpen(_binding_0) => {
- crate::RangeLimits::HalfOpen(_binding_0)
- }
- crate::RangeLimits::Closed(_binding_0) => crate::RangeLimits::Closed(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_receiver<F>(f: &mut F, node: crate::Receiver) -> crate::Receiver
-where
- F: Fold + ?Sized,
-{
- crate::Receiver {
- attrs: f.fold_attributes(node.attrs),
- reference: (node.reference)
- .map(|it| ((it).0, ((it).1).map(|it| f.fold_lifetime(it)))),
- mutability: node.mutability,
- self_token: node.self_token,
- colon_token: node.colon_token,
- ty: Box::new(f.fold_type(*node.ty)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_return_type<F>(f: &mut F, node: crate::ReturnType) -> crate::ReturnType
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::ReturnType::Default => crate::ReturnType::Default,
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- crate::ReturnType::Type(_binding_0, Box::new(f.fold_type(*_binding_1)))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_signature<F>(f: &mut F, node: crate::Signature) -> crate::Signature
-where
- F: Fold + ?Sized,
-{
- crate::Signature {
- constness: node.constness,
- asyncness: node.asyncness,
- unsafety: node.unsafety,
- abi: (node.abi).map(|it| f.fold_abi(it)),
- fn_token: node.fn_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_fn_arg),
- variadic: (node.variadic).map(|it| f.fold_variadic(it)),
- output: f.fold_return_type(node.output),
- }
-}
-pub fn fold_span<F>(f: &mut F, node: proc_macro2::Span) -> proc_macro2::Span
-where
- F: Fold + ?Sized,
-{
- node
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_static_mutability<F>(
- f: &mut F,
- node: crate::StaticMutability,
-) -> crate::StaticMutability
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::StaticMutability::Mut(_binding_0) => {
- crate::StaticMutability::Mut(_binding_0)
- }
- crate::StaticMutability::None => crate::StaticMutability::None,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_stmt<F>(f: &mut F, node: crate::Stmt) -> crate::Stmt
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Stmt::Local(_binding_0) => crate::Stmt::Local(f.fold_local(_binding_0)),
- crate::Stmt::Item(_binding_0) => crate::Stmt::Item(f.fold_item(_binding_0)),
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- crate::Stmt::Expr(f.fold_expr(_binding_0), _binding_1)
- }
- crate::Stmt::Macro(_binding_0) => {
- crate::Stmt::Macro(f.fold_stmt_macro(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_stmt_macro<F>(f: &mut F, node: crate::StmtMacro) -> crate::StmtMacro
-where
- F: Fold + ?Sized,
-{
- crate::StmtMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_trait_bound<F>(f: &mut F, node: crate::TraitBound) -> crate::TraitBound
-where
- F: Fold + ?Sized,
-{
- crate::TraitBound {
- paren_token: node.paren_token,
- modifier: f.fold_trait_bound_modifier(node.modifier),
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_trait_bound_modifier<F>(
- f: &mut F,
- node: crate::TraitBoundModifier,
-) -> crate::TraitBoundModifier
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TraitBoundModifier::None => crate::TraitBoundModifier::None,
- crate::TraitBoundModifier::Maybe(_binding_0) => {
- crate::TraitBoundModifier::Maybe(_binding_0)
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item<F>(f: &mut F, node: crate::TraitItem) -> crate::TraitItem
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TraitItem::Const(_binding_0) => {
- crate::TraitItem::Const(f.fold_trait_item_const(_binding_0))
- }
- crate::TraitItem::Fn(_binding_0) => {
- crate::TraitItem::Fn(f.fold_trait_item_fn(_binding_0))
- }
- crate::TraitItem::Type(_binding_0) => {
- crate::TraitItem::Type(f.fold_trait_item_type(_binding_0))
- }
- crate::TraitItem::Macro(_binding_0) => {
- crate::TraitItem::Macro(f.fold_trait_item_macro(_binding_0))
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- crate::TraitItem::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_const<F>(
- f: &mut F,
- node: crate::TraitItemConst,
-) -> crate::TraitItemConst
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemConst {
- attrs: f.fold_attributes(node.attrs),
- const_token: node.const_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- ty: f.fold_type(node.ty),
- default: (node.default).map(|it| ((it).0, f.fold_expr((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_fn<F>(f: &mut F, node: crate::TraitItemFn) -> crate::TraitItemFn
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemFn {
- attrs: f.fold_attributes(node.attrs),
- sig: f.fold_signature(node.sig),
- default: (node.default).map(|it| f.fold_block(it)),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_macro<F>(
- f: &mut F,
- node: crate::TraitItemMacro,
-) -> crate::TraitItemMacro
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemMacro {
- attrs: f.fold_attributes(node.attrs),
- mac: f.fold_macro(node.mac),
- semi_token: node.semi_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_trait_item_type<F>(
- f: &mut F,
- node: crate::TraitItemType,
-) -> crate::TraitItemType
-where
- F: Fold + ?Sized,
-{
- crate::TraitItemType {
- attrs: f.fold_attributes(node.attrs),
- type_token: node.type_token,
- ident: f.fold_ident(node.ident),
- generics: f.fold_generics(node.generics),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- default: (node.default).map(|it| ((it).0, f.fold_type((it).1))),
- semi_token: node.semi_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type<F>(f: &mut F, node: crate::Type) -> crate::Type
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Type::Array(_binding_0) => {
- crate::Type::Array(f.fold_type_array(_binding_0))
- }
- crate::Type::BareFn(_binding_0) => {
- crate::Type::BareFn(f.fold_type_bare_fn(_binding_0))
- }
- crate::Type::Group(_binding_0) => {
- crate::Type::Group(f.fold_type_group(_binding_0))
- }
- crate::Type::ImplTrait(_binding_0) => {
- crate::Type::ImplTrait(f.fold_type_impl_trait(_binding_0))
- }
- crate::Type::Infer(_binding_0) => {
- crate::Type::Infer(f.fold_type_infer(_binding_0))
- }
- crate::Type::Macro(_binding_0) => {
- crate::Type::Macro(f.fold_type_macro(_binding_0))
- }
- crate::Type::Never(_binding_0) => {
- crate::Type::Never(f.fold_type_never(_binding_0))
- }
- crate::Type::Paren(_binding_0) => {
- crate::Type::Paren(f.fold_type_paren(_binding_0))
- }
- crate::Type::Path(_binding_0) => crate::Type::Path(f.fold_type_path(_binding_0)),
- crate::Type::Ptr(_binding_0) => crate::Type::Ptr(f.fold_type_ptr(_binding_0)),
- crate::Type::Reference(_binding_0) => {
- crate::Type::Reference(f.fold_type_reference(_binding_0))
- }
- crate::Type::Slice(_binding_0) => {
- crate::Type::Slice(f.fold_type_slice(_binding_0))
- }
- crate::Type::TraitObject(_binding_0) => {
- crate::Type::TraitObject(f.fold_type_trait_object(_binding_0))
- }
- crate::Type::Tuple(_binding_0) => {
- crate::Type::Tuple(f.fold_type_tuple(_binding_0))
- }
- crate::Type::Verbatim(_binding_0) => {
- crate::Type::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_array<F>(f: &mut F, node: crate::TypeArray) -> crate::TypeArray
-where
- F: Fold + ?Sized,
-{
- crate::TypeArray {
- bracket_token: node.bracket_token,
- elem: Box::new(f.fold_type(*node.elem)),
- semi_token: node.semi_token,
- len: f.fold_expr(node.len),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_bare_fn<F>(f: &mut F, node: crate::TypeBareFn) -> crate::TypeBareFn
-where
- F: Fold + ?Sized,
-{
- crate::TypeBareFn {
- lifetimes: (node.lifetimes).map(|it| f.fold_bound_lifetimes(it)),
- unsafety: node.unsafety,
- abi: (node.abi).map(|it| f.fold_abi(it)),
- fn_token: node.fn_token,
- paren_token: node.paren_token,
- inputs: crate::punctuated::fold(node.inputs, f, F::fold_bare_fn_arg),
- variadic: (node.variadic).map(|it| f.fold_bare_variadic(it)),
- output: f.fold_return_type(node.output),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_group<F>(f: &mut F, node: crate::TypeGroup) -> crate::TypeGroup
-where
- F: Fold + ?Sized,
-{
- crate::TypeGroup {
- group_token: node.group_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_impl_trait<F>(
- f: &mut F,
- node: crate::TypeImplTrait,
-) -> crate::TypeImplTrait
-where
- F: Fold + ?Sized,
-{
- crate::TypeImplTrait {
- impl_token: node.impl_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_infer<F>(f: &mut F, node: crate::TypeInfer) -> crate::TypeInfer
-where
- F: Fold + ?Sized,
-{
- crate::TypeInfer {
- underscore_token: node.underscore_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_macro<F>(f: &mut F, node: crate::TypeMacro) -> crate::TypeMacro
-where
- F: Fold + ?Sized,
-{
- crate::TypeMacro {
- mac: f.fold_macro(node.mac),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_never<F>(f: &mut F, node: crate::TypeNever) -> crate::TypeNever
-where
- F: Fold + ?Sized,
-{
- crate::TypeNever {
- bang_token: node.bang_token,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_param<F>(f: &mut F, node: crate::TypeParam) -> crate::TypeParam
-where
- F: Fold + ?Sized,
-{
- crate::TypeParam {
- attrs: f.fold_attributes(node.attrs),
- ident: f.fold_ident(node.ident),
- colon_token: node.colon_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- eq_token: node.eq_token,
- default: (node.default).map(|it| f.fold_type(it)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_param_bound<F>(
- f: &mut F,
- node: crate::TypeParamBound,
-) -> crate::TypeParamBound
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- crate::TypeParamBound::Trait(f.fold_trait_bound(_binding_0))
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- crate::TypeParamBound::Lifetime(f.fold_lifetime(_binding_0))
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- crate::TypeParamBound::PreciseCapture(
- full!(f.fold_precise_capture(_binding_0)),
- )
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- crate::TypeParamBound::Verbatim(f.fold_token_stream(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_paren<F>(f: &mut F, node: crate::TypeParen) -> crate::TypeParen
-where
- F: Fold + ?Sized,
-{
- crate::TypeParen {
- paren_token: node.paren_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_path<F>(f: &mut F, node: crate::TypePath) -> crate::TypePath
-where
- F: Fold + ?Sized,
-{
- crate::TypePath {
- qself: (node.qself).map(|it| f.fold_qself(it)),
- path: f.fold_path(node.path),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_ptr<F>(f: &mut F, node: crate::TypePtr) -> crate::TypePtr
-where
- F: Fold + ?Sized,
-{
- crate::TypePtr {
- star_token: node.star_token,
- const_token: node.const_token,
- mutability: node.mutability,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_reference<F>(
- f: &mut F,
- node: crate::TypeReference,
-) -> crate::TypeReference
-where
- F: Fold + ?Sized,
-{
- crate::TypeReference {
- and_token: node.and_token,
- lifetime: (node.lifetime).map(|it| f.fold_lifetime(it)),
- mutability: node.mutability,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_slice<F>(f: &mut F, node: crate::TypeSlice) -> crate::TypeSlice
-where
- F: Fold + ?Sized,
-{
- crate::TypeSlice {
- bracket_token: node.bracket_token,
- elem: Box::new(f.fold_type(*node.elem)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_trait_object<F>(
- f: &mut F,
- node: crate::TypeTraitObject,
-) -> crate::TypeTraitObject
-where
- F: Fold + ?Sized,
-{
- crate::TypeTraitObject {
- dyn_token: node.dyn_token,
- bounds: crate::punctuated::fold(node.bounds, f, F::fold_type_param_bound),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_type_tuple<F>(f: &mut F, node: crate::TypeTuple) -> crate::TypeTuple
-where
- F: Fold + ?Sized,
-{
- crate::TypeTuple {
- paren_token: node.paren_token,
- elems: crate::punctuated::fold(node.elems, f, F::fold_type),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_un_op<F>(f: &mut F, node: crate::UnOp) -> crate::UnOp
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::UnOp::Deref(_binding_0) => crate::UnOp::Deref(_binding_0),
- crate::UnOp::Not(_binding_0) => crate::UnOp::Not(_binding_0),
- crate::UnOp::Neg(_binding_0) => crate::UnOp::Neg(_binding_0),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_glob<F>(f: &mut F, node: crate::UseGlob) -> crate::UseGlob
-where
- F: Fold + ?Sized,
-{
- crate::UseGlob {
- star_token: node.star_token,
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_group<F>(f: &mut F, node: crate::UseGroup) -> crate::UseGroup
-where
- F: Fold + ?Sized,
-{
- crate::UseGroup {
- brace_token: node.brace_token,
- items: crate::punctuated::fold(node.items, f, F::fold_use_tree),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_name<F>(f: &mut F, node: crate::UseName) -> crate::UseName
-where
- F: Fold + ?Sized,
-{
- crate::UseName {
- ident: f.fold_ident(node.ident),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_path<F>(f: &mut F, node: crate::UsePath) -> crate::UsePath
-where
- F: Fold + ?Sized,
-{
- crate::UsePath {
- ident: f.fold_ident(node.ident),
- colon2_token: node.colon2_token,
- tree: Box::new(f.fold_use_tree(*node.tree)),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_rename<F>(f: &mut F, node: crate::UseRename) -> crate::UseRename
-where
- F: Fold + ?Sized,
-{
- crate::UseRename {
- ident: f.fold_ident(node.ident),
- as_token: node.as_token,
- rename: f.fold_ident(node.rename),
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_use_tree<F>(f: &mut F, node: crate::UseTree) -> crate::UseTree
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::UseTree::Path(_binding_0) => {
- crate::UseTree::Path(f.fold_use_path(_binding_0))
- }
- crate::UseTree::Name(_binding_0) => {
- crate::UseTree::Name(f.fold_use_name(_binding_0))
- }
- crate::UseTree::Rename(_binding_0) => {
- crate::UseTree::Rename(f.fold_use_rename(_binding_0))
- }
- crate::UseTree::Glob(_binding_0) => {
- crate::UseTree::Glob(f.fold_use_glob(_binding_0))
- }
- crate::UseTree::Group(_binding_0) => {
- crate::UseTree::Group(f.fold_use_group(_binding_0))
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn fold_variadic<F>(f: &mut F, node: crate::Variadic) -> crate::Variadic
-where
- F: Fold + ?Sized,
-{
- crate::Variadic {
- attrs: f.fold_attributes(node.attrs),
- pat: (node.pat).map(|it| (Box::new(f.fold_pat(*(it).0)), (it).1)),
- dots: node.dots,
- comma: node.comma,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_variant<F>(f: &mut F, node: crate::Variant) -> crate::Variant
-where
- F: Fold + ?Sized,
-{
- crate::Variant {
- attrs: f.fold_attributes(node.attrs),
- ident: f.fold_ident(node.ident),
- fields: f.fold_fields(node.fields),
- discriminant: (node.discriminant).map(|it| ((it).0, f.fold_expr((it).1))),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_vis_restricted<F>(
- f: &mut F,
- node: crate::VisRestricted,
-) -> crate::VisRestricted
-where
- F: Fold + ?Sized,
-{
- crate::VisRestricted {
- pub_token: node.pub_token,
- paren_token: node.paren_token,
- in_token: node.in_token,
- path: Box::new(f.fold_path(*node.path)),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_visibility<F>(f: &mut F, node: crate::Visibility) -> crate::Visibility
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::Visibility::Public(_binding_0) => crate::Visibility::Public(_binding_0),
- crate::Visibility::Restricted(_binding_0) => {
- crate::Visibility::Restricted(f.fold_vis_restricted(_binding_0))
- }
- crate::Visibility::Inherited => crate::Visibility::Inherited,
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_where_clause<F>(f: &mut F, node: crate::WhereClause) -> crate::WhereClause
-where
- F: Fold + ?Sized,
-{
- crate::WhereClause {
- where_token: node.where_token,
- predicates: crate::punctuated::fold(node.predicates, f, F::fold_where_predicate),
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn fold_where_predicate<F>(
- f: &mut F,
- node: crate::WherePredicate,
-) -> crate::WherePredicate
-where
- F: Fold + ?Sized,
-{
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- crate::WherePredicate::Lifetime(f.fold_predicate_lifetime(_binding_0))
- }
- crate::WherePredicate::Type(_binding_0) => {
- crate::WherePredicate::Type(f.fold_predicate_type(_binding_0))
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-fn fold_vec<T, V, F>(vec: Vec<T>, fold: &mut V, mut f: F) -> Vec<T>
-where
- V: ?Sized,
- F: FnMut(&mut V, T) -> T,
-{
- vec.into_iter().map(|it| f(fold, it)).collect()
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/hash.rs b/deps/crates/vendor/syn-v2/src/gen/hash.rs
deleted file mode 100644
index 508af526c1e..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/hash.rs
+++ /dev/null
@@ -1,2878 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#[cfg(any(feature = "derive", feature = "full"))]
-use crate::tt::TokenStreamHelper;
-#[cfg(feature = "extra-traits")]
-use alloc::string::ToString;
-use core::hash::{Hash, Hasher};
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Abi {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.name.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AngleBracketedGenericArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.colon2_token.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Arm {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.guard.hash(state);
- self.body.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AssocConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.value.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AssocType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::AttrStyle {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::AttrStyle::Outer => {
- state.write_u8(0u8);
- }
- crate::AttrStyle::Inner(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Attribute {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.style.hash(state);
- self.meta.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BareFnArg {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.name.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BareVariadic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.name.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BinOp {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::BinOp::Add(_) => {
- state.write_u8(0u8);
- }
- crate::BinOp::Sub(_) => {
- state.write_u8(1u8);
- }
- crate::BinOp::Mul(_) => {
- state.write_u8(2u8);
- }
- crate::BinOp::Div(_) => {
- state.write_u8(3u8);
- }
- crate::BinOp::Rem(_) => {
- state.write_u8(4u8);
- }
- crate::BinOp::And(_) => {
- state.write_u8(5u8);
- }
- crate::BinOp::Or(_) => {
- state.write_u8(6u8);
- }
- crate::BinOp::BitXor(_) => {
- state.write_u8(7u8);
- }
- crate::BinOp::BitAnd(_) => {
- state.write_u8(8u8);
- }
- crate::BinOp::BitOr(_) => {
- state.write_u8(9u8);
- }
- crate::BinOp::Shl(_) => {
- state.write_u8(10u8);
- }
- crate::BinOp::Shr(_) => {
- state.write_u8(11u8);
- }
- crate::BinOp::Eq(_) => {
- state.write_u8(12u8);
- }
- crate::BinOp::Lt(_) => {
- state.write_u8(13u8);
- }
- crate::BinOp::Le(_) => {
- state.write_u8(14u8);
- }
- crate::BinOp::Ne(_) => {
- state.write_u8(15u8);
- }
- crate::BinOp::Ge(_) => {
- state.write_u8(16u8);
- }
- crate::BinOp::Gt(_) => {
- state.write_u8(17u8);
- }
- crate::BinOp::AddAssign(_) => {
- state.write_u8(18u8);
- }
- crate::BinOp::SubAssign(_) => {
- state.write_u8(19u8);
- }
- crate::BinOp::MulAssign(_) => {
- state.write_u8(20u8);
- }
- crate::BinOp::DivAssign(_) => {
- state.write_u8(21u8);
- }
- crate::BinOp::RemAssign(_) => {
- state.write_u8(22u8);
- }
- crate::BinOp::BitXorAssign(_) => {
- state.write_u8(23u8);
- }
- crate::BinOp::BitAndAssign(_) => {
- state.write_u8(24u8);
- }
- crate::BinOp::BitOrAssign(_) => {
- state.write_u8(25u8);
- }
- crate::BinOp::ShlAssign(_) => {
- state.write_u8(26u8);
- }
- crate::BinOp::ShrAssign(_) => {
- state.write_u8(27u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Block {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.stmts.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::BoundLifetimes {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::CapturedParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::CapturedParam::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::CapturedParam::Ident(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ConstParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- self.eq_token.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Constraint {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.generics.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Data {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Data::Struct(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Data::Enum(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Data::Union(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataEnum {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.variants.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.fields.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DataUnion {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.fields.hash(state);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::DeriveInput {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.data.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Expr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- #[cfg(feature = "full")]
- crate::Expr::Array(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Assign(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Async(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Await(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Expr::Binary(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Block(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Break(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Expr::Call(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Expr::Cast(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Closure(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Const(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Continue(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Expr::Field(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::ForLoop(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Expr::Group(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::If(v0) => {
- state.write_u8(15u8);
- v0.hash(state);
- }
- crate::Expr::Index(v0) => {
- state.write_u8(16u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Infer(v0) => {
- state.write_u8(17u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Let(v0) => {
- state.write_u8(18u8);
- v0.hash(state);
- }
- crate::Expr::Lit(v0) => {
- state.write_u8(19u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Loop(v0) => {
- state.write_u8(20u8);
- v0.hash(state);
- }
- crate::Expr::Macro(v0) => {
- state.write_u8(21u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Match(v0) => {
- state.write_u8(22u8);
- v0.hash(state);
- }
- crate::Expr::MethodCall(v0) => {
- state.write_u8(23u8);
- v0.hash(state);
- }
- crate::Expr::Paren(v0) => {
- state.write_u8(24u8);
- v0.hash(state);
- }
- crate::Expr::Path(v0) => {
- state.write_u8(25u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Range(v0) => {
- state.write_u8(26u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::RawAddr(v0) => {
- state.write_u8(27u8);
- v0.hash(state);
- }
- crate::Expr::Reference(v0) => {
- state.write_u8(28u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Repeat(v0) => {
- state.write_u8(29u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Return(v0) => {
- state.write_u8(30u8);
- v0.hash(state);
- }
- crate::Expr::Struct(v0) => {
- state.write_u8(31u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Try(v0) => {
- state.write_u8(32u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::TryBlock(v0) => {
- state.write_u8(33u8);
- v0.hash(state);
- }
- crate::Expr::Tuple(v0) => {
- state.write_u8(34u8);
- v0.hash(state);
- }
- crate::Expr::Unary(v0) => {
- state.write_u8(35u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Unsafe(v0) => {
- state.write_u8(36u8);
- v0.hash(state);
- }
- crate::Expr::Verbatim(v0) => {
- state.write_u8(37u8);
- TokenStreamHelper(v0).hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::While(v0) => {
- state.write_u8(38u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::Expr::Yield(v0) => {
- state.write_u8(39u8);
- v0.hash(state);
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprArray {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAssign {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.left.hash(state);
- self.right.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAsync {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.capture.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprAwait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.base.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBinary {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.left.hash(state);
- self.op.hash(state);
- self.right.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBlock {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprBreak {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprCall {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.func.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprCast {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprClosure {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lifetimes.hash(state);
- self.constness.hash(state);
- self.movability.hash(state);
- self.asyncness.hash(state);
- self.capture.hash(state);
- self.inputs.hash(state);
- self.output.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprContinue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprField {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.base.hash(state);
- self.member.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprForLoop {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.pat.hash(state);
- self.expr.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprIf {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.cond.hash(state);
- self.then_branch.hash(state);
- self.else_branch.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprIndex {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.index.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprInfer {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLet {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lit.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprLoop {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMatch {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.arms.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprMethodCall {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.receiver.hash(state);
- self.method.hash(state);
- self.turbofish.hash(state);
- self.args.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprPath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRange {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.start.hash(state);
- self.limits.hash(state);
- self.end.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRawAddr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprRepeat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- self.len.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprReturn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.fields.hash(state);
- self.dot2_token.hash(state);
- self.rest.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTry {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTryBlock {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprUnary {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.op.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprUnsafe {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprWhile {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.label.hash(state);
- self.cond.hash(state);
- self.body.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ExprYield {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Field {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.colon_token.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::FieldMutability::None => {
- state.write_u8(0u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldPat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.member.hash(state);
- self.colon_token.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldValue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.member.hash(state);
- self.colon_token.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Fields {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Fields::Named(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Fields::Unnamed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Fields::Unit => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldsNamed {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.named.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FieldsUnnamed {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.unnamed.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::File {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.shebang.hash(state);
- self.attrs.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::FnArg {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::FnArg::Receiver(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::FnArg::Typed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ForeignItem::Fn(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::ForeignItem::Static(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::ForeignItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::ForeignItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::ForeignItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.sig.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemStatic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ForeignItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::GenericArgument {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::GenericArgument::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::GenericArgument::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::GenericArgument::Const(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::GenericArgument::AssocType(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::GenericArgument::AssocConst(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::GenericArgument::Constraint(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::GenericParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::GenericParam::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::GenericParam::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::GenericParam::Const(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Generics {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lt_token.hash(state);
- self.params.hash(state);
- self.gt_token.hash(state);
- self.where_clause.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ImplItem::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::ImplItem::Fn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::ImplItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::ImplItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::ImplItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.sig.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.defaultness.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ImplRestriction {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {
- match *self {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Item {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Item::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Item::Enum(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Item::ExternCrate(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Item::Fn(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Item::ForeignMod(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Item::Impl(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Item::Macro(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Item::Mod(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Item::Static(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Item::Struct(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Item::Trait(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Item::TraitAlias(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Item::Type(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Item::Union(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Item::Use(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- crate::Item::Verbatim(v0) => {
- state.write_u8(15u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemEnum {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.variants.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemExternCrate {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.rename.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.sig.hash(state);
- self.block.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemForeignMod {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemImpl {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.defaultness.hash(state);
- self.unsafety.hash(state);
- self.generics.hash(state);
- self.trait_.hash(state);
- self.self_ty.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemMod {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.unsafety.hash(state);
- self.ident.hash(state);
- self.content.hash(state);
- self.semi.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemStatic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.ty.hash(state);
- self.expr.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.fields.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemTrait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.unsafety.hash(state);
- self.auto_token.hash(state);
- self.restriction.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.colon_token.hash(state);
- self.supertraits.hash(state);
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemTraitAlias {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemUnion {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.fields.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ItemUse {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.vis.hash(state);
- self.leading_colon.hash(state);
- self.tree.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Label {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.name.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LifetimeParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.lifetime.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Lit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Lit::Str(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Lit::ByteStr(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Lit::CStr(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Lit::Byte(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Lit::Char(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Lit::Int(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Lit::Float(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Lit::Bool(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Lit::Verbatim(v0) => {
- state.write_u8(8u8);
- v0.to_string().hash(state);
- }
- }
- }
-}
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LitBool {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.value.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Local {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.init.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::LocalInit {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.expr.hash(state);
- self.diverge.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Macro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.delimiter.hash(state);
- TokenStreamHelper(&self.tokens).hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MacroDelimiter {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::MacroDelimiter::Paren(_) => {
- state.write_u8(0u8);
- }
- crate::MacroDelimiter::Brace(_) => {
- state.write_u8(1u8);
- }
- crate::MacroDelimiter::Bracket(_) => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Meta {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Meta::Path(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Meta::List(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Meta::NameValue(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MetaList {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.delimiter.hash(state);
- TokenStreamHelper(&self.tokens).hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::MetaNameValue {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.path.hash(state);
- self.value.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ParenthesizedGenericArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.inputs.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Pat {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Pat::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Pat::Ident(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Pat::Lit(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Pat::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Pat::Or(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Pat::Paren(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Pat::Path(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Pat::Range(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Pat::Reference(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Pat::Rest(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Pat::Slice(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Pat::Struct(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Pat::Tuple(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Pat::TupleStruct(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Pat::Type(v0) => {
- state.write_u8(14u8);
- v0.hash(state);
- }
- crate::Pat::Verbatim(v0) => {
- state.write_u8(15u8);
- TokenStreamHelper(v0).hash(state);
- }
- crate::Pat::Wild(v0) => {
- state.write_u8(16u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatIdent {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.by_ref.hash(state);
- self.mutability.hash(state);
- self.ident.hash(state);
- self.subpat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatOr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.leading_vert.hash(state);
- self.cases.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mutability.hash(state);
- self.pat.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatRest {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatSlice {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.fields.hash(state);
- self.rest.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatTupleStruct {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.qself.hash(state);
- self.path.hash(state);
- self.elems.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PatWild {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Path {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.leading_colon.hash(state);
- self.segments.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PathArguments {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::PathArguments::None => {
- state.write_u8(0u8);
- }
- crate::PathArguments::AngleBracketed(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::PathArguments::Parenthesized(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PathSegment {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.arguments.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PointerMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::PointerMutability::Const(_) => {
- state.write_u8(0u8);
- }
- crate::PointerMutability::Mut(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PreciseCapture {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.params.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PredicateLifetime {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetime.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::PredicateType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- self.bounded_ty.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::QSelf {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ty.hash(state);
- self.position.hash(state);
- self.as_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::RangeLimits {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::RangeLimits::HalfOpen(_) => {
- state.write_u8(0u8);
- }
- crate::RangeLimits::Closed(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Receiver {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.reference.hash(state);
- self.mutability.hash(state);
- self.colon_token.hash(state);
- self.ty.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::ReturnType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::ReturnType::Default => {
- state.write_u8(0u8);
- }
- crate::ReturnType::Type(_, v1) => {
- state.write_u8(1u8);
- v1.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Signature {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.constness.hash(state);
- self.asyncness.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.inputs.hash(state);
- self.variadic.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::StaticMutability {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::StaticMutability::Mut(_) => {
- state.write_u8(0u8);
- }
- crate::StaticMutability::None => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Stmt {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Stmt::Local(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Stmt::Item(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Stmt::Expr(v0, v1) => {
- state.write_u8(2u8);
- v0.hash(state);
- v1.hash(state);
- }
- crate::Stmt::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::StmtMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitBound {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.paren_token.hash(state);
- self.modifier.hash(state);
- self.lifetimes.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitBoundModifier {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TraitBoundModifier::None => {
- state.write_u8(0u8);
- }
- crate::TraitBoundModifier::Maybe(_) => {
- state.write_u8(1u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItem {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TraitItem::Const(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::TraitItem::Fn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::TraitItem::Type(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::TraitItem::Macro(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::TraitItem::Verbatim(v0) => {
- state.write_u8(4u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemConst {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.ty.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.sig.hash(state);
- self.default.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.mac.hash(state);
- self.semi_token.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TraitItemType {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.generics.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Type {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Type::Array(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::Type::BareFn(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Type::Group(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::Type::ImplTrait(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::Type::Infer(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- crate::Type::Macro(v0) => {
- state.write_u8(5u8);
- v0.hash(state);
- }
- crate::Type::Never(v0) => {
- state.write_u8(6u8);
- v0.hash(state);
- }
- crate::Type::Paren(v0) => {
- state.write_u8(7u8);
- v0.hash(state);
- }
- crate::Type::Path(v0) => {
- state.write_u8(8u8);
- v0.hash(state);
- }
- crate::Type::Ptr(v0) => {
- state.write_u8(9u8);
- v0.hash(state);
- }
- crate::Type::Reference(v0) => {
- state.write_u8(10u8);
- v0.hash(state);
- }
- crate::Type::Slice(v0) => {
- state.write_u8(11u8);
- v0.hash(state);
- }
- crate::Type::TraitObject(v0) => {
- state.write_u8(12u8);
- v0.hash(state);
- }
- crate::Type::Tuple(v0) => {
- state.write_u8(13u8);
- v0.hash(state);
- }
- crate::Type::Verbatim(v0) => {
- state.write_u8(14u8);
- TokenStreamHelper(v0).hash(state);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeArray {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- self.len.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeBareFn {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetimes.hash(state);
- self.unsafety.hash(state);
- self.abi.hash(state);
- self.inputs.hash(state);
- self.variadic.hash(state);
- self.output.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeImplTrait {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeInfer {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeMacro {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.mac.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeNever {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParam {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.colon_token.hash(state);
- self.bounds.hash(state);
- self.eq_token.hash(state);
- self.default.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParamBound {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::TypeParamBound::Trait(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::TypeParamBound::Lifetime(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- #[cfg(feature = "full")]
- crate::TypeParamBound::PreciseCapture(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::TypeParamBound::Verbatim(v0) => {
- state.write_u8(3u8);
- TokenStreamHelper(v0).hash(state);
- }
- #[cfg(not(feature = "full"))]
- _ => unreachable!(),
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeParen {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypePath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.qself.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypePtr {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.const_token.hash(state);
- self.mutability.hash(state);
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeReference {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.lifetime.hash(state);
- self.mutability.hash(state);
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeSlice {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elem.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeTraitObject {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.dyn_token.hash(state);
- self.bounds.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::TypeTuple {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.elems.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UnOp {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::UnOp::Deref(_) => {
- state.write_u8(0u8);
- }
- crate::UnOp::Not(_) => {
- state.write_u8(1u8);
- }
- crate::UnOp::Neg(_) => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseGlob {
- fn hash<H>(&self, _state: &mut H)
- where
- H: Hasher,
- {}
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseGroup {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.items.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseName {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UsePath {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.tree.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseRename {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.ident.hash(state);
- self.rename.hash(state);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::UseTree {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::UseTree::Path(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::UseTree::Name(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::UseTree::Rename(v0) => {
- state.write_u8(2u8);
- v0.hash(state);
- }
- crate::UseTree::Glob(v0) => {
- state.write_u8(3u8);
- v0.hash(state);
- }
- crate::UseTree::Group(v0) => {
- state.write_u8(4u8);
- v0.hash(state);
- }
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Variadic {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.pat.hash(state);
- self.comma.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Variant {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.attrs.hash(state);
- self.ident.hash(state);
- self.fields.hash(state);
- self.discriminant.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::VisRestricted {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.in_token.hash(state);
- self.path.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::Visibility {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::Visibility::Public(_) => {
- state.write_u8(0u8);
- }
- crate::Visibility::Restricted(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- crate::Visibility::Inherited => {
- state.write_u8(2u8);
- }
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::WhereClause {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.predicates.hash(state);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for crate::WherePredicate {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- match self {
- crate::WherePredicate::Lifetime(v0) => {
- state.write_u8(0u8);
- v0.hash(state);
- }
- crate::WherePredicate::Type(v0) => {
- state.write_u8(1u8);
- v0.hash(state);
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/token.css b/deps/crates/vendor/syn-v2/src/gen/token.css
deleted file mode 100644
index ed82ae1502b..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/token.css
+++ /dev/null
@@ -1,737 +0,0 @@
-a.struct[title="struct syn::token::Abstract"],
-a.struct[title="struct syn::token::And"],
-a.struct[title="struct syn::token::AndAnd"],
-a.struct[title="struct syn::token::AndEq"],
-a.struct[title="struct syn::token::As"],
-a.struct[title="struct syn::token::Async"],
-a.struct[title="struct syn::token::At"],
-a.struct[title="struct syn::token::Auto"],
-a.struct[title="struct syn::token::Await"],
-a.struct[title="struct syn::token::Become"],
-a.struct[title="struct syn::token::Box"],
-a.struct[title="struct syn::token::Break"],
-a.struct[title="struct syn::token::Caret"],
-a.struct[title="struct syn::token::CaretEq"],
-a.struct[title="struct syn::token::Colon"],
-a.struct[title="struct syn::token::Comma"],
-a.struct[title="struct syn::token::Const"],
-a.struct[title="struct syn::token::Continue"],
-a.struct[title="struct syn::token::Crate"],
-a.struct[title="struct syn::token::Default"],
-a.struct[title="struct syn::token::Do"],
-a.struct[title="struct syn::token::Dollar"],
-a.struct[title="struct syn::token::Dot"],
-a.struct[title="struct syn::token::DotDot"],
-a.struct[title="struct syn::token::DotDotDot"],
-a.struct[title="struct syn::token::DotDotEq"],
-a.struct[title="struct syn::token::Dyn"],
-a.struct[title="struct syn::token::Else"],
-a.struct[title="struct syn::token::Enum"],
-a.struct[title="struct syn::token::Eq"],
-a.struct[title="struct syn::token::EqEq"],
-a.struct[title="struct syn::token::Extern"],
-a.struct[title="struct syn::token::FatArrow"],
-a.struct[title="struct syn::token::Final"],
-a.struct[title="struct syn::token::Fn"],
-a.struct[title="struct syn::token::For"],
-a.struct[title="struct syn::token::Ge"],
-a.struct[title="struct syn::token::Gt"],
-a.struct[title="struct syn::token::If"],
-a.struct[title="struct syn::token::Impl"],
-a.struct[title="struct syn::token::In"],
-a.struct[title="struct syn::token::LArrow"],
-a.struct[title="struct syn::token::Le"],
-a.struct[title="struct syn::token::Let"],
-a.struct[title="struct syn::token::Loop"],
-a.struct[title="struct syn::token::Lt"],
-a.struct[title="struct syn::token::Macro"],
-a.struct[title="struct syn::token::Match"],
-a.struct[title="struct syn::token::Minus"],
-a.struct[title="struct syn::token::MinusEq"],
-a.struct[title="struct syn::token::Mod"],
-a.struct[title="struct syn::token::Move"],
-a.struct[title="struct syn::token::Mut"],
-a.struct[title="struct syn::token::Ne"],
-a.struct[title="struct syn::token::Not"],
-a.struct[title="struct syn::token::Or"],
-a.struct[title="struct syn::token::OrEq"],
-a.struct[title="struct syn::token::OrOr"],
-a.struct[title="struct syn::token::Override"],
-a.struct[title="struct syn::token::PathSep"],
-a.struct[title="struct syn::token::Percent"],
-a.struct[title="struct syn::token::PercentEq"],
-a.struct[title="struct syn::token::Plus"],
-a.struct[title="struct syn::token::PlusEq"],
-a.struct[title="struct syn::token::Pound"],
-a.struct[title="struct syn::token::Priv"],
-a.struct[title="struct syn::token::Pub"],
-a.struct[title="struct syn::token::Question"],
-a.struct[title="struct syn::token::RArrow"],
-a.struct[title="struct syn::token::Raw"],
-a.struct[title="struct syn::token::Ref"],
-a.struct[title="struct syn::token::Return"],
-a.struct[title="struct syn::token::SelfType"],
-a.struct[title="struct syn::token::SelfValue"],
-a.struct[title="struct syn::token::Semi"],
-a.struct[title="struct syn::token::Shl"],
-a.struct[title="struct syn::token::ShlEq"],
-a.struct[title="struct syn::token::Shr"],
-a.struct[title="struct syn::token::ShrEq"],
-a.struct[title="struct syn::token::Slash"],
-a.struct[title="struct syn::token::SlashEq"],
-a.struct[title="struct syn::token::Star"],
-a.struct[title="struct syn::token::StarEq"],
-a.struct[title="struct syn::token::Static"],
-a.struct[title="struct syn::token::Struct"],
-a.struct[title="struct syn::token::Super"],
-a.struct[title="struct syn::token::Tilde"],
-a.struct[title="struct syn::token::Trait"],
-a.struct[title="struct syn::token::Try"],
-a.struct[title="struct syn::token::Type"],
-a.struct[title="struct syn::token::Typeof"],
-a.struct[title="struct syn::token::Underscore"],
-a.struct[title="struct syn::token::Union"],
-a.struct[title="struct syn::token::Unsafe"],
-a.struct[title="struct syn::token::Unsized"],
-a.struct[title="struct syn::token::Use"],
-a.struct[title="struct syn::token::Virtual"],
-a.struct[title="struct syn::token::Where"],
-a.struct[title="struct syn::token::While"],
-a.struct[title="struct syn::token::Yield"] {
- display: inline-block;
- color: transparent;
- white-space: nowrap;
-}
-
-a.struct[title="struct syn::token::Abstract"]::before,
-a.struct[title="struct syn::token::And"]::before,
-a.struct[title="struct syn::token::AndAnd"]::before,
-a.struct[title="struct syn::token::AndEq"]::before,
-a.struct[title="struct syn::token::As"]::before,
-a.struct[title="struct syn::token::Async"]::before,
-a.struct[title="struct syn::token::At"]::before,
-a.struct[title="struct syn::token::Auto"]::before,
-a.struct[title="struct syn::token::Await"]::before,
-a.struct[title="struct syn::token::Become"]::before,
-a.struct[title="struct syn::token::Box"]::before,
-a.struct[title="struct syn::token::Break"]::before,
-a.struct[title="struct syn::token::Caret"]::before,
-a.struct[title="struct syn::token::CaretEq"]::before,
-a.struct[title="struct syn::token::Colon"]::before,
-a.struct[title="struct syn::token::Comma"]::before,
-a.struct[title="struct syn::token::Const"]::before,
-a.struct[title="struct syn::token::Continue"]::before,
-a.struct[title="struct syn::token::Crate"]::before,
-a.struct[title="struct syn::token::Default"]::before,
-a.struct[title="struct syn::token::Do"]::before,
-a.struct[title="struct syn::token::Dollar"]::before,
-a.struct[title="struct syn::token::Dot"]::before,
-a.struct[title="struct syn::token::DotDot"]::before,
-a.struct[title="struct syn::token::DotDotDot"]::before,
-a.struct[title="struct syn::token::DotDotEq"]::before,
-a.struct[title="struct syn::token::Dyn"]::before,
-a.struct[title="struct syn::token::Else"]::before,
-a.struct[title="struct syn::token::Enum"]::before,
-a.struct[title="struct syn::token::Eq"]::before,
-a.struct[title="struct syn::token::EqEq"]::before,
-a.struct[title="struct syn::token::Extern"]::before,
-a.struct[title="struct syn::token::FatArrow"]::before,
-a.struct[title="struct syn::token::Final"]::before,
-a.struct[title="struct syn::token::Fn"]::before,
-a.struct[title="struct syn::token::For"]::before,
-a.struct[title="struct syn::token::Ge"]::before,
-a.struct[title="struct syn::token::Gt"]::before,
-a.struct[title="struct syn::token::If"]::before,
-a.struct[title="struct syn::token::Impl"]::before,
-a.struct[title="struct syn::token::In"]::before,
-a.struct[title="struct syn::token::LArrow"]::before,
-a.struct[title="struct syn::token::Le"]::before,
-a.struct[title="struct syn::token::Let"]::before,
-a.struct[title="struct syn::token::Loop"]::before,
-a.struct[title="struct syn::token::Lt"]::before,
-a.struct[title="struct syn::token::Macro"]::before,
-a.struct[title="struct syn::token::Match"]::before,
-a.struct[title="struct syn::token::Minus"]::before,
-a.struct[title="struct syn::token::MinusEq"]::before,
-a.struct[title="struct syn::token::Mod"]::before,
-a.struct[title="struct syn::token::Move"]::before,
-a.struct[title="struct syn::token::Mut"]::before,
-a.struct[title="struct syn::token::Ne"]::before,
-a.struct[title="struct syn::token::Not"]::before,
-a.struct[title="struct syn::token::Or"]::before,
-a.struct[title="struct syn::token::OrEq"]::before,
-a.struct[title="struct syn::token::OrOr"]::before,
-a.struct[title="struct syn::token::Override"]::before,
-a.struct[title="struct syn::token::PathSep"]::before,
-a.struct[title="struct syn::token::Percent"]::before,
-a.struct[title="struct syn::token::PercentEq"]::before,
-a.struct[title="struct syn::token::Plus"]::before,
-a.struct[title="struct syn::token::PlusEq"]::before,
-a.struct[title="struct syn::token::Pound"]::before,
-a.struct[title="struct syn::token::Priv"]::before,
-a.struct[title="struct syn::token::Pub"]::before,
-a.struct[title="struct syn::token::Question"]::before,
-a.struct[title="struct syn::token::RArrow"]::before,
-a.struct[title="struct syn::token::Raw"]::before,
-a.struct[title="struct syn::token::Ref"]::before,
-a.struct[title="struct syn::token::Return"]::before,
-a.struct[title="struct syn::token::SelfType"]::before,
-a.struct[title="struct syn::token::SelfValue"]::before,
-a.struct[title="struct syn::token::Semi"]::before,
-a.struct[title="struct syn::token::Shl"]::before,
-a.struct[title="struct syn::token::ShlEq"]::before,
-a.struct[title="struct syn::token::Shr"]::before,
-a.struct[title="struct syn::token::ShrEq"]::before,
-a.struct[title="struct syn::token::Slash"]::before,
-a.struct[title="struct syn::token::SlashEq"]::before,
-a.struct[title="struct syn::token::Star"]::before,
-a.struct[title="struct syn::token::StarEq"]::before,
-a.struct[title="struct syn::token::Static"]::before,
-a.struct[title="struct syn::token::Struct"]::before,
-a.struct[title="struct syn::token::Super"]::before,
-a.struct[title="struct syn::token::Tilde"]::before,
-a.struct[title="struct syn::token::Trait"]::before,
-a.struct[title="struct syn::token::Try"]::before,
-a.struct[title="struct syn::token::Type"]::before,
-a.struct[title="struct syn::token::Typeof"]::before,
-a.struct[title="struct syn::token::Underscore"]::before,
-a.struct[title="struct syn::token::Union"]::before,
-a.struct[title="struct syn::token::Unsafe"]::before,
-a.struct[title="struct syn::token::Unsized"]::before,
-a.struct[title="struct syn::token::Use"]::before,
-a.struct[title="struct syn::token::Virtual"]::before,
-a.struct[title="struct syn::token::Where"]::before,
-a.struct[title="struct syn::token::While"]::before,
-a.struct[title="struct syn::token::Yield"]::before {
- display: inline-block;
- color: var(--type-link-color);
- width: 0;
-}
-
-a.struct[title="struct syn::token::Abstract"]::before {
- content: "Token![abstract]";
-}
-
-a.struct[title="struct syn::token::And"]::before {
- content: "Token![&]";
-}
-
-a.struct[title="struct syn::token::AndAnd"]::before {
- content: "Token![&&]";
-}
-
-a.struct[title="struct syn::token::AndEq"]::before {
- content: "Token![&=]";
-}
-
-a.struct[title="struct syn::token::As"]::before {
- content: "Token![as]";
-}
-
-a.struct[title="struct syn::token::Async"]::before {
- content: "Token![async]";
-}
-
-a.struct[title="struct syn::token::At"]::before {
- content: "Token![@]";
-}
-
-a.struct[title="struct syn::token::Auto"]::before {
- content: "Token![auto]";
-}
-
-a.struct[title="struct syn::token::Await"]::before {
- content: "Token![await]";
-}
-
-a.struct[title="struct syn::token::Become"]::before {
- content: "Token![become]";
-}
-
-a.struct[title="struct syn::token::Box"]::before {
- content: "Token![box]";
-}
-
-a.struct[title="struct syn::token::Break"]::before {
- content: "Token![break]";
-}
-
-a.struct[title="struct syn::token::Caret"]::before {
- content: "Token![^]";
-}
-
-a.struct[title="struct syn::token::CaretEq"]::before {
- content: "Token![^=]";
-}
-
-a.struct[title="struct syn::token::Colon"]::before {
- content: "Token![:]";
-}
-
-a.struct[title="struct syn::token::Comma"]::before {
- content: "Token![,]";
-}
-
-a.struct[title="struct syn::token::Const"]::before {
- content: "Token![const]";
-}
-
-a.struct[title="struct syn::token::Continue"]::before {
- content: "Token![continue]";
-}
-
-a.struct[title="struct syn::token::Crate"]::before {
- content: "Token![crate]";
-}
-
-a.struct[title="struct syn::token::Default"]::before {
- content: "Token![default]";
-}
-
-a.struct[title="struct syn::token::Do"]::before {
- content: "Token![do]";
-}
-
-a.struct[title="struct syn::token::Dollar"]::before {
- content: "Token![$]";
-}
-
-a.struct[title="struct syn::token::Dot"]::before {
- content: "Token![.]";
-}
-
-a.struct[title="struct syn::token::DotDot"]::before {
- content: "Token![..]";
-}
-
-a.struct[title="struct syn::token::DotDotDot"]::before {
- content: "Token![...]";
-}
-
-a.struct[title="struct syn::token::DotDotEq"]::before {
- content: "Token![..=]";
-}
-
-a.struct[title="struct syn::token::Dyn"]::before {
- content: "Token![dyn]";
-}
-
-a.struct[title="struct syn::token::Else"]::before {
- content: "Token![else]";
-}
-
-a.struct[title="struct syn::token::Enum"]::before {
- content: "Token![enum]";
-}
-
-a.struct[title="struct syn::token::Eq"]::before {
- content: "Token![=]";
-}
-
-a.struct[title="struct syn::token::EqEq"]::before {
- content: "Token![==]";
-}
-
-a.struct[title="struct syn::token::Extern"]::before {
- content: "Token![extern]";
-}
-
-a.struct[title="struct syn::token::FatArrow"]::before {
- content: "Token![=>]";
-}
-
-a.struct[title="struct syn::token::Final"]::before {
- content: "Token![final]";
-}
-
-a.struct[title="struct syn::token::Fn"]::before {
- content: "Token![fn]";
-}
-
-a.struct[title="struct syn::token::For"]::before {
- content: "Token![for]";
-}
-
-a.struct[title="struct syn::token::Ge"]::before {
- content: "Token![>=]";
-}
-
-a.struct[title="struct syn::token::Gt"]::before {
- content: "Token![>]";
-}
-
-a.struct[title="struct syn::token::If"]::before {
- content: "Token![if]";
-}
-
-a.struct[title="struct syn::token::Impl"]::before {
- content: "Token![impl]";
-}
-
-a.struct[title="struct syn::token::In"]::before {
- content: "Token![in]";
-}
-
-a.struct[title="struct syn::token::LArrow"]::before {
- content: "Token![<-]";
-}
-
-a.struct[title="struct syn::token::Le"]::before {
- content: "Token![<=]";
-}
-
-a.struct[title="struct syn::token::Let"]::before {
- content: "Token![let]";
-}
-
-a.struct[title="struct syn::token::Loop"]::before {
- content: "Token![loop]";
-}
-
-a.struct[title="struct syn::token::Lt"]::before {
- content: "Token![<]";
-}
-
-a.struct[title="struct syn::token::Macro"]::before {
- content: "Token![macro]";
-}
-
-a.struct[title="struct syn::token::Match"]::before {
- content: "Token![match]";
-}
-
-a.struct[title="struct syn::token::Minus"]::before {
- content: "Token![-]";
-}
-
-a.struct[title="struct syn::token::MinusEq"]::before {
- content: "Token![-=]";
-}
-
-a.struct[title="struct syn::token::Mod"]::before {
- content: "Token![mod]";
-}
-
-a.struct[title="struct syn::token::Move"]::before {
- content: "Token![move]";
-}
-
-a.struct[title="struct syn::token::Mut"]::before {
- content: "Token![mut]";
-}
-
-a.struct[title="struct syn::token::Ne"]::before {
- content: "Token![!=]";
-}
-
-a.struct[title="struct syn::token::Not"]::before {
- content: "Token![!]";
-}
-
-a.struct[title="struct syn::token::Or"]::before {
- content: "Token![|]";
-}
-
-a.struct[title="struct syn::token::OrEq"]::before {
- content: "Token![|=]";
-}
-
-a.struct[title="struct syn::token::OrOr"]::before {
- content: "Token![||]";
-}
-
-a.struct[title="struct syn::token::Override"]::before {
- content: "Token![override]";
-}
-
-a.struct[title="struct syn::token::PathSep"]::before {
- content: "Token![::]";
-}
-
-a.struct[title="struct syn::token::Percent"]::before {
- content: "Token![%]";
-}
-
-a.struct[title="struct syn::token::PercentEq"]::before {
- content: "Token![%=]";
-}
-
-a.struct[title="struct syn::token::Plus"]::before {
- content: "Token![+]";
-}
-
-a.struct[title="struct syn::token::PlusEq"]::before {
- content: "Token![+=]";
-}
-
-a.struct[title="struct syn::token::Pound"]::before {
- content: "Token![#]";
-}
-
-a.struct[title="struct syn::token::Priv"]::before {
- content: "Token![priv]";
-}
-
-a.struct[title="struct syn::token::Pub"]::before {
- content: "Token![pub]";
-}
-
-a.struct[title="struct syn::token::Question"]::before {
- content: "Token![?]";
-}
-
-a.struct[title="struct syn::token::RArrow"]::before {
- content: "Token![->]";
-}
-
-a.struct[title="struct syn::token::Raw"]::before {
- content: "Token![raw]";
-}
-
-a.struct[title="struct syn::token::Ref"]::before {
- content: "Token![ref]";
-}
-
-a.struct[title="struct syn::token::Return"]::before {
- content: "Token![return]";
-}
-
-a.struct[title="struct syn::token::SelfType"]::before {
- content: "Token![Self]";
-}
-
-a.struct[title="struct syn::token::SelfValue"]::before {
- content: "Token![self]";
-}
-
-a.struct[title="struct syn::token::Semi"]::before {
- content: "Token![;]";
-}
-
-a.struct[title="struct syn::token::Shl"]::before {
- content: "Token![<<]";
-}
-
-a.struct[title="struct syn::token::ShlEq"]::before {
- content: "Token![<<=]";
-}
-
-a.struct[title="struct syn::token::Shr"]::before {
- content: "Token![>>]";
-}
-
-a.struct[title="struct syn::token::ShrEq"]::before {
- content: "Token![>>=]";
-}
-
-a.struct[title="struct syn::token::Slash"]::before {
- content: "Token![/]";
-}
-
-a.struct[title="struct syn::token::SlashEq"]::before {
- content: "Token![/=]";
-}
-
-a.struct[title="struct syn::token::Star"]::before {
- content: "Token![*]";
-}
-
-a.struct[title="struct syn::token::StarEq"]::before {
- content: "Token![*=]";
-}
-
-a.struct[title="struct syn::token::Static"]::before {
- content: "Token![static]";
-}
-
-a.struct[title="struct syn::token::Struct"]::before {
- content: "Token![struct]";
-}
-
-a.struct[title="struct syn::token::Super"]::before {
- content: "Token![super]";
-}
-
-a.struct[title="struct syn::token::Tilde"]::before {
- content: "Token![~]";
-}
-
-a.struct[title="struct syn::token::Trait"]::before {
- content: "Token![trait]";
-}
-
-a.struct[title="struct syn::token::Try"]::before {
- content: "Token![try]";
-}
-
-a.struct[title="struct syn::token::Type"]::before {
- content: "Token![type]";
-}
-
-a.struct[title="struct syn::token::Typeof"]::before {
- content: "Token![typeof]";
-}
-
-a.struct[title="struct syn::token::Underscore"]::before {
- content: "Token![_]";
- font-size: calc(100% * 10 / 9);
-}
-
-a.struct[title="struct syn::token::Union"]::before {
- content: "Token![union]";
-}
-
-a.struct[title="struct syn::token::Unsafe"]::before {
- content: "Token![unsafe]";
-}
-
-a.struct[title="struct syn::token::Unsized"]::before {
- content: "Token![unsized]";
-}
-
-a.struct[title="struct syn::token::Use"]::before {
- content: "Token![use]";
-}
-
-a.struct[title="struct syn::token::Virtual"]::before {
- content: "Token![virtual]";
-}
-
-a.struct[title="struct syn::token::Where"]::before {
- content: "Token![where]";
-}
-
-a.struct[title="struct syn::token::While"]::before {
- content: "Token![while]";
-}
-
-a.struct[title="struct syn::token::Yield"]::before {
- content: "Token![yield]";
-}
-
-a.struct[title="struct syn::token::Underscore"] {
- font-size: calc(100% * 9 / 10);
-}
-
-a.struct[title="struct syn::token::PercentEq"]::after,
-a.struct[title="struct syn::token::Question"]::after {
- content: ".";
-}
-
-a.struct[title="struct syn::token::DotDotDot"]::after,
-a.struct[title="struct syn::token::FatArrow"]::after,
-a.struct[title="struct syn::token::Percent"]::after {
- content: "..";
-}
-
-a.struct[title="struct syn::token::CaretEq"]::after,
-a.struct[title="struct syn::token::Dollar"]::after,
-a.struct[title="struct syn::token::DotDotEq"]::after,
-a.struct[title="struct syn::token::MinusEq"]::after,
-a.struct[title="struct syn::token::PathSep"]::after,
-a.struct[title="struct syn::token::SelfValue"]::after,
-a.struct[title="struct syn::token::SlashEq"]::after {
- content: "...";
-}
-
-a.struct[title="struct syn::token::AndAnd"]::after,
-a.struct[title="struct syn::token::Caret"]::after,
-a.struct[title="struct syn::token::Colon"]::after,
-a.struct[title="struct syn::token::Comma"]::after,
-a.struct[title="struct syn::token::DotDot"]::after,
-a.struct[title="struct syn::token::LArrow"]::after,
-a.struct[title="struct syn::token::Minus"]::after,
-a.struct[title="struct syn::token::PlusEq"]::after,
-a.struct[title="struct syn::token::Pound"]::after,
-a.struct[title="struct syn::token::RArrow"]::after,
-a.struct[title="struct syn::token::SelfType"]::after,
-a.struct[title="struct syn::token::Slash"]::after,
-a.struct[title="struct syn::token::StarEq"]::after,
-a.struct[title="struct syn::token::Tilde"]::after {
- content: "....";
-}
-
-a.struct[title="struct syn::token::AndEq"]::after,
-a.struct[title="struct syn::token::Plus"]::after,
-a.struct[title="struct syn::token::Semi"]::after,
-a.struct[title="struct syn::token::Star"]::after {
- content: ".....";
-}
-
-a.struct[title="struct syn::token::And"]::after,
-a.struct[title="struct syn::token::Dot"]::after,
-a.struct[title="struct syn::token::EqEq"]::after,
-a.struct[title="struct syn::token::Not"]::after,
-a.struct[title="struct syn::token::OrEq"]::after,
-a.struct[title="struct syn::token::OrOr"]::after,
-a.struct[title="struct syn::token::ShlEq"]::after,
-a.struct[title="struct syn::token::ShrEq"]::after {
- content: "......";
-}
-
-a.struct[title="struct syn::token::At"]::after,
-a.struct[title="struct syn::token::Eq"]::after,
-a.struct[title="struct syn::token::Gt"]::after,
-a.struct[title="struct syn::token::Lt"]::after,
-a.struct[title="struct syn::token::Or"]::after,
-a.struct[title="struct syn::token::Shl"]::after,
-a.struct[title="struct syn::token::Shr"]::after {
- content: ".......";
-}
-
-a.struct[title="struct syn::token::Abstract"]::after,
-a.struct[title="struct syn::token::As"]::after,
-a.struct[title="struct syn::token::Async"]::after,
-a.struct[title="struct syn::token::Auto"]::after,
-a.struct[title="struct syn::token::Await"]::after,
-a.struct[title="struct syn::token::Become"]::after,
-a.struct[title="struct syn::token::Box"]::after,
-a.struct[title="struct syn::token::Break"]::after,
-a.struct[title="struct syn::token::Const"]::after,
-a.struct[title="struct syn::token::Continue"]::after,
-a.struct[title="struct syn::token::Crate"]::after,
-a.struct[title="struct syn::token::Default"]::after,
-a.struct[title="struct syn::token::Do"]::after,
-a.struct[title="struct syn::token::Dyn"]::after,
-a.struct[title="struct syn::token::Else"]::after,
-a.struct[title="struct syn::token::Enum"]::after,
-a.struct[title="struct syn::token::Extern"]::after,
-a.struct[title="struct syn::token::Final"]::after,
-a.struct[title="struct syn::token::Fn"]::after,
-a.struct[title="struct syn::token::For"]::after,
-a.struct[title="struct syn::token::Ge"]::after,
-a.struct[title="struct syn::token::If"]::after,
-a.struct[title="struct syn::token::Impl"]::after,
-a.struct[title="struct syn::token::In"]::after,
-a.struct[title="struct syn::token::Le"]::after,
-a.struct[title="struct syn::token::Let"]::after,
-a.struct[title="struct syn::token::Loop"]::after,
-a.struct[title="struct syn::token::Macro"]::after,
-a.struct[title="struct syn::token::Match"]::after,
-a.struct[title="struct syn::token::Mod"]::after,
-a.struct[title="struct syn::token::Move"]::after,
-a.struct[title="struct syn::token::Mut"]::after,
-a.struct[title="struct syn::token::Ne"]::after,
-a.struct[title="struct syn::token::Override"]::after,
-a.struct[title="struct syn::token::Priv"]::after,
-a.struct[title="struct syn::token::Pub"]::after,
-a.struct[title="struct syn::token::Raw"]::after,
-a.struct[title="struct syn::token::Ref"]::after,
-a.struct[title="struct syn::token::Return"]::after,
-a.struct[title="struct syn::token::Static"]::after,
-a.struct[title="struct syn::token::Struct"]::after,
-a.struct[title="struct syn::token::Super"]::after,
-a.struct[title="struct syn::token::Trait"]::after,
-a.struct[title="struct syn::token::Try"]::after,
-a.struct[title="struct syn::token::Type"]::after,
-a.struct[title="struct syn::token::Typeof"]::after,
-a.struct[title="struct syn::token::Union"]::after,
-a.struct[title="struct syn::token::Unsafe"]::after,
-a.struct[title="struct syn::token::Unsized"]::after,
-a.struct[title="struct syn::token::Use"]::after,
-a.struct[title="struct syn::token::Virtual"]::after,
-a.struct[title="struct syn::token::Where"]::after,
-a.struct[title="struct syn::token::While"]::after,
-a.struct[title="struct syn::token::Yield"]::after {
- content: "........";
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/visit.rs b/deps/crates/vendor/syn-v2/src/gen/visit.rs
deleted file mode 100644
index cd258fcde12..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/visit.rs
+++ /dev/null
@@ -1,3941 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unused_variables)]
-#![allow(clippy::needless_pass_by_ref_mut)]
-#[cfg(any(feature = "full", feature = "derive"))]
-use crate::punctuated::Punctuated;
-#[cfg(feature = "full")]
-macro_rules! full {
- ($e:expr) => {
- $e
- };
-}
-#[cfg(all(feature = "derive", not(feature = "full")))]
-macro_rules! full {
- ($e:expr) => {
- unreachable!()
- };
-}
-macro_rules! skip {
- ($($tt:tt)*) => {};
-}
-/// Syntax tree traversal to walk a shared borrow of a syntax tree.
-///
-/// See the [module documentation] for details.
-///
-/// [module documentation]: self
-pub trait Visit<'ast> {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_abi(&mut self, i: &'ast crate::Abi) {
- visit_abi(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_angle_bracketed_generic_arguments(
- &mut self,
- i: &'ast crate::AngleBracketedGenericArguments,
- ) {
- visit_angle_bracketed_generic_arguments(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_arm(&mut self, i: &'ast crate::Arm) {
- visit_arm(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_const(&mut self, i: &'ast crate::AssocConst) {
- visit_assoc_const(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_type(&mut self, i: &'ast crate::AssocType) {
- visit_assoc_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attr_style(&mut self, i: &'ast crate::AttrStyle) {
- visit_attr_style(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attribute(&mut self, i: &'ast crate::Attribute) {
- visit_attribute(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_fn_arg(&mut self, i: &'ast crate::BareFnArg) {
- visit_bare_fn_arg(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_variadic(&mut self, i: &'ast crate::BareVariadic) {
- visit_bare_variadic(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bin_op(&mut self, i: &'ast crate::BinOp) {
- visit_bin_op(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_block(&mut self, i: &'ast crate::Block) {
- visit_block(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bound_lifetimes(&mut self, i: &'ast crate::BoundLifetimes) {
- visit_bound_lifetimes(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_captured_param(&mut self, i: &'ast crate::CapturedParam) {
- visit_captured_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_const_param(&mut self, i: &'ast crate::ConstParam) {
- visit_const_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_constraint(&mut self, i: &'ast crate::Constraint) {
- visit_constraint(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data(&mut self, i: &'ast crate::Data) {
- visit_data(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_enum(&mut self, i: &'ast crate::DataEnum) {
- visit_data_enum(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_struct(&mut self, i: &'ast crate::DataStruct) {
- visit_data_struct(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_union(&mut self, i: &'ast crate::DataUnion) {
- visit_data_union(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_derive_input(&mut self, i: &'ast crate::DeriveInput) {
- visit_derive_input(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr(&mut self, i: &'ast crate::Expr) {
- visit_expr(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_array(&mut self, i: &'ast crate::ExprArray) {
- visit_expr_array(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_assign(&mut self, i: &'ast crate::ExprAssign) {
- visit_expr_assign(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_async(&mut self, i: &'ast crate::ExprAsync) {
- visit_expr_async(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_await(&mut self, i: &'ast crate::ExprAwait) {
- visit_expr_await(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_binary(&mut self, i: &'ast crate::ExprBinary) {
- visit_expr_binary(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_block(&mut self, i: &'ast crate::ExprBlock) {
- visit_expr_block(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_break(&mut self, i: &'ast crate::ExprBreak) {
- visit_expr_break(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_call(&mut self, i: &'ast crate::ExprCall) {
- visit_expr_call(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_cast(&mut self, i: &'ast crate::ExprCast) {
- visit_expr_cast(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_closure(&mut self, i: &'ast crate::ExprClosure) {
- visit_expr_closure(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_const(&mut self, i: &'ast crate::ExprConst) {
- visit_expr_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_continue(&mut self, i: &'ast crate::ExprContinue) {
- visit_expr_continue(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_field(&mut self, i: &'ast crate::ExprField) {
- visit_expr_field(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_for_loop(&mut self, i: &'ast crate::ExprForLoop) {
- visit_expr_for_loop(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_group(&mut self, i: &'ast crate::ExprGroup) {
- visit_expr_group(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_if(&mut self, i: &'ast crate::ExprIf) {
- visit_expr_if(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_index(&mut self, i: &'ast crate::ExprIndex) {
- visit_expr_index(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_infer(&mut self, i: &'ast crate::ExprInfer) {
- visit_expr_infer(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_let(&mut self, i: &'ast crate::ExprLet) {
- visit_expr_let(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_lit(&mut self, i: &'ast crate::ExprLit) {
- visit_expr_lit(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_loop(&mut self, i: &'ast crate::ExprLoop) {
- visit_expr_loop(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_macro(&mut self, i: &'ast crate::ExprMacro) {
- visit_expr_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_match(&mut self, i: &'ast crate::ExprMatch) {
- visit_expr_match(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_method_call(&mut self, i: &'ast crate::ExprMethodCall) {
- visit_expr_method_call(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_paren(&mut self, i: &'ast crate::ExprParen) {
- visit_expr_paren(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_path(&mut self, i: &'ast crate::ExprPath) {
- visit_expr_path(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_range(&mut self, i: &'ast crate::ExprRange) {
- visit_expr_range(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_raw_addr(&mut self, i: &'ast crate::ExprRawAddr) {
- visit_expr_raw_addr(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_reference(&mut self, i: &'ast crate::ExprReference) {
- visit_expr_reference(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_repeat(&mut self, i: &'ast crate::ExprRepeat) {
- visit_expr_repeat(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_return(&mut self, i: &'ast crate::ExprReturn) {
- visit_expr_return(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_struct(&mut self, i: &'ast crate::ExprStruct) {
- visit_expr_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try(&mut self, i: &'ast crate::ExprTry) {
- visit_expr_try(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_block(&mut self, i: &'ast crate::ExprTryBlock) {
- visit_expr_try_block(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_tuple(&mut self, i: &'ast crate::ExprTuple) {
- visit_expr_tuple(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_unary(&mut self, i: &'ast crate::ExprUnary) {
- visit_expr_unary(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_unsafe(&mut self, i: &'ast crate::ExprUnsafe) {
- visit_expr_unsafe(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_while(&mut self, i: &'ast crate::ExprWhile) {
- visit_expr_while(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_yield(&mut self, i: &'ast crate::ExprYield) {
- visit_expr_yield(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field(&mut self, i: &'ast crate::Field) {
- visit_field(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mutability(&mut self, i: &'ast crate::FieldMutability) {
- visit_field_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_field_pat(&mut self, i: &'ast crate::FieldPat) {
- visit_field_pat(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_value(&mut self, i: &'ast crate::FieldValue) {
- visit_field_value(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields(&mut self, i: &'ast crate::Fields) {
- visit_fields(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_named(&mut self, i: &'ast crate::FieldsNamed) {
- visit_fields_named(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_unnamed(&mut self, i: &'ast crate::FieldsUnnamed) {
- visit_fields_unnamed(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_file(&mut self, i: &'ast crate::File) {
- visit_file(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_fn_arg(&mut self, i: &'ast crate::FnArg) {
- visit_fn_arg(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item(&mut self, i: &'ast crate::ForeignItem) {
- visit_foreign_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_fn(&mut self, i: &'ast crate::ForeignItemFn) {
- visit_foreign_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_macro(&mut self, i: &'ast crate::ForeignItemMacro) {
- visit_foreign_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_static(&mut self, i: &'ast crate::ForeignItemStatic) {
- visit_foreign_item_static(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_type(&mut self, i: &'ast crate::ForeignItemType) {
- visit_foreign_item_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_argument(&mut self, i: &'ast crate::GenericArgument) {
- visit_generic_argument(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_param(&mut self, i: &'ast crate::GenericParam) {
- visit_generic_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generics(&mut self, i: &'ast crate::Generics) {
- visit_generics(self, i);
- }
- fn visit_ident(&mut self, i: &'ast proc_macro2::Ident) {
- visit_ident(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item(&mut self, i: &'ast crate::ImplItem) {
- visit_impl_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_const(&mut self, i: &'ast crate::ImplItemConst) {
- visit_impl_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_fn(&mut self, i: &'ast crate::ImplItemFn) {
- visit_impl_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_macro(&mut self, i: &'ast crate::ImplItemMacro) {
- visit_impl_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_type(&mut self, i: &'ast crate::ImplItemType) {
- visit_impl_item_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_restriction(&mut self, i: &'ast crate::ImplRestriction) {
- visit_impl_restriction(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_index(&mut self, i: &'ast crate::Index) {
- visit_index(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item(&mut self, i: &'ast crate::Item) {
- visit_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_const(&mut self, i: &'ast crate::ItemConst) {
- visit_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_enum(&mut self, i: &'ast crate::ItemEnum) {
- visit_item_enum(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_extern_crate(&mut self, i: &'ast crate::ItemExternCrate) {
- visit_item_extern_crate(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_fn(&mut self, i: &'ast crate::ItemFn) {
- visit_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_foreign_mod(&mut self, i: &'ast crate::ItemForeignMod) {
- visit_item_foreign_mod(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_impl(&mut self, i: &'ast crate::ItemImpl) {
- visit_item_impl(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_macro(&mut self, i: &'ast crate::ItemMacro) {
- visit_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mod(&mut self, i: &'ast crate::ItemMod) {
- visit_item_mod(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_static(&mut self, i: &'ast crate::ItemStatic) {
- visit_item_static(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_struct(&mut self, i: &'ast crate::ItemStruct) {
- visit_item_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait(&mut self, i: &'ast crate::ItemTrait) {
- visit_item_trait(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_alias(&mut self, i: &'ast crate::ItemTraitAlias) {
- visit_item_trait_alias(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_type(&mut self, i: &'ast crate::ItemType) {
- visit_item_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_union(&mut self, i: &'ast crate::ItemUnion) {
- visit_item_union(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_use(&mut self, i: &'ast crate::ItemUse) {
- visit_item_use(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_label(&mut self, i: &'ast crate::Label) {
- visit_label(self, i);
- }
- fn visit_lifetime(&mut self, i: &'ast crate::Lifetime) {
- visit_lifetime(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_lifetime_param(&mut self, i: &'ast crate::LifetimeParam) {
- visit_lifetime_param(self, i);
- }
- fn visit_lit(&mut self, i: &'ast crate::Lit) {
- visit_lit(self, i);
- }
- fn visit_lit_bool(&mut self, i: &'ast crate::LitBool) {
- visit_lit_bool(self, i);
- }
- fn visit_lit_byte(&mut self, i: &'ast crate::LitByte) {
- visit_lit_byte(self, i);
- }
- fn visit_lit_byte_str(&mut self, i: &'ast crate::LitByteStr) {
- visit_lit_byte_str(self, i);
- }
- fn visit_lit_cstr(&mut self, i: &'ast crate::LitCStr) {
- visit_lit_cstr(self, i);
- }
- fn visit_lit_char(&mut self, i: &'ast crate::LitChar) {
- visit_lit_char(self, i);
- }
- fn visit_lit_float(&mut self, i: &'ast crate::LitFloat) {
- visit_lit_float(self, i);
- }
- fn visit_lit_int(&mut self, i: &'ast crate::LitInt) {
- visit_lit_int(self, i);
- }
- fn visit_lit_str(&mut self, i: &'ast crate::LitStr) {
- visit_lit_str(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local(&mut self, i: &'ast crate::Local) {
- visit_local(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_init(&mut self, i: &'ast crate::LocalInit) {
- visit_local_init(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro(&mut self, i: &'ast crate::Macro) {
- visit_macro(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_delimiter(&mut self, i: &'ast crate::MacroDelimiter) {
- visit_macro_delimiter(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_member(&mut self, i: &'ast crate::Member) {
- visit_member(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta(&mut self, i: &'ast crate::Meta) {
- visit_meta(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_list(&mut self, i: &'ast crate::MetaList) {
- visit_meta_list(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_name_value(&mut self, i: &'ast crate::MetaNameValue) {
- visit_meta_name_value(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_parenthesized_generic_arguments(
- &mut self,
- i: &'ast crate::ParenthesizedGenericArguments,
- ) {
- visit_parenthesized_generic_arguments(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat(&mut self, i: &'ast crate::Pat) {
- visit_pat(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_ident(&mut self, i: &'ast crate::PatIdent) {
- visit_pat_ident(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_or(&mut self, i: &'ast crate::PatOr) {
- visit_pat_or(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_paren(&mut self, i: &'ast crate::PatParen) {
- visit_pat_paren(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_reference(&mut self, i: &'ast crate::PatReference) {
- visit_pat_reference(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_rest(&mut self, i: &'ast crate::PatRest) {
- visit_pat_rest(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_slice(&mut self, i: &'ast crate::PatSlice) {
- visit_pat_slice(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_struct(&mut self, i: &'ast crate::PatStruct) {
- visit_pat_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple(&mut self, i: &'ast crate::PatTuple) {
- visit_pat_tuple(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_struct(&mut self, i: &'ast crate::PatTupleStruct) {
- visit_pat_tuple_struct(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_type(&mut self, i: &'ast crate::PatType) {
- visit_pat_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_wild(&mut self, i: &'ast crate::PatWild) {
- visit_pat_wild(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path(&mut self, i: &'ast crate::Path) {
- visit_path(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_arguments(&mut self, i: &'ast crate::PathArguments) {
- visit_path_arguments(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_segment(&mut self, i: &'ast crate::PathSegment) {
- visit_path_segment(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pointer_mutability(&mut self, i: &'ast crate::PointerMutability) {
- visit_pointer_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_precise_capture(&mut self, i: &'ast crate::PreciseCapture) {
- visit_precise_capture(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_lifetime(&mut self, i: &'ast crate::PredicateLifetime) {
- visit_predicate_lifetime(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_type(&mut self, i: &'ast crate::PredicateType) {
- visit_predicate_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_qself(&mut self, i: &'ast crate::QSelf) {
- visit_qself(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_range_limits(&mut self, i: &'ast crate::RangeLimits) {
- visit_range_limits(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_receiver(&mut self, i: &'ast crate::Receiver) {
- visit_receiver(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_return_type(&mut self, i: &'ast crate::ReturnType) {
- visit_return_type(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_signature(&mut self, i: &'ast crate::Signature) {
- visit_signature(self, i);
- }
- fn visit_span(&mut self, i: &proc_macro2::Span) {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_static_mutability(&mut self, i: &'ast crate::StaticMutability) {
- visit_static_mutability(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt(&mut self, i: &'ast crate::Stmt) {
- visit_stmt(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_macro(&mut self, i: &'ast crate::StmtMacro) {
- visit_stmt_macro(self, i);
- }
- fn visit_token_stream(&mut self, i: &'ast proc_macro2::TokenStream) {}
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound(&mut self, i: &'ast crate::TraitBound) {
- visit_trait_bound(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_modifier(&mut self, i: &'ast crate::TraitBoundModifier) {
- visit_trait_bound_modifier(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item(&mut self, i: &'ast crate::TraitItem) {
- visit_trait_item(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_const(&mut self, i: &'ast crate::TraitItemConst) {
- visit_trait_item_const(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_fn(&mut self, i: &'ast crate::TraitItemFn) {
- visit_trait_item_fn(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_macro(&mut self, i: &'ast crate::TraitItemMacro) {
- visit_trait_item_macro(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_type(&mut self, i: &'ast crate::TraitItemType) {
- visit_trait_item_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type(&mut self, i: &'ast crate::Type) {
- visit_type(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_array(&mut self, i: &'ast crate::TypeArray) {
- visit_type_array(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_bare_fn(&mut self, i: &'ast crate::TypeBareFn) {
- visit_type_bare_fn(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_group(&mut self, i: &'ast crate::TypeGroup) {
- visit_type_group(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_impl_trait(&mut self, i: &'ast crate::TypeImplTrait) {
- visit_type_impl_trait(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_infer(&mut self, i: &'ast crate::TypeInfer) {
- visit_type_infer(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_macro(&mut self, i: &'ast crate::TypeMacro) {
- visit_type_macro(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_never(&mut self, i: &'ast crate::TypeNever) {
- visit_type_never(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param(&mut self, i: &'ast crate::TypeParam) {
- visit_type_param(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_bound(&mut self, i: &'ast crate::TypeParamBound) {
- visit_type_param_bound(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_paren(&mut self, i: &'ast crate::TypeParen) {
- visit_type_paren(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_path(&mut self, i: &'ast crate::TypePath) {
- visit_type_path(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_ptr(&mut self, i: &'ast crate::TypePtr) {
- visit_type_ptr(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_reference(&mut self, i: &'ast crate::TypeReference) {
- visit_type_reference(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_slice(&mut self, i: &'ast crate::TypeSlice) {
- visit_type_slice(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_trait_object(&mut self, i: &'ast crate::TypeTraitObject) {
- visit_type_trait_object(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_tuple(&mut self, i: &'ast crate::TypeTuple) {
- visit_type_tuple(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_un_op(&mut self, i: &'ast crate::UnOp) {
- visit_un_op(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_glob(&mut self, i: &'ast crate::UseGlob) {
- visit_use_glob(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_group(&mut self, i: &'ast crate::UseGroup) {
- visit_use_group(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_name(&mut self, i: &'ast crate::UseName) {
- visit_use_name(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_path(&mut self, i: &'ast crate::UsePath) {
- visit_use_path(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_rename(&mut self, i: &'ast crate::UseRename) {
- visit_use_rename(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_tree(&mut self, i: &'ast crate::UseTree) {
- visit_use_tree(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_variadic(&mut self, i: &'ast crate::Variadic) {
- visit_variadic(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_variant(&mut self, i: &'ast crate::Variant) {
- visit_variant(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_vis_restricted(&mut self, i: &'ast crate::VisRestricted) {
- visit_vis_restricted(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_visibility(&mut self, i: &'ast crate::Visibility) {
- visit_visibility(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_clause(&mut self, i: &'ast crate::WhereClause) {
- visit_where_clause(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_predicate(&mut self, i: &'ast crate::WherePredicate) {
- visit_where_predicate(self, i);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_abi<'ast, V>(v: &mut V, node: &'ast crate::Abi)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.extern_token);
- if let Some(it) = &node.name {
- v.visit_lit_str(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_angle_bracketed_generic_arguments<'ast, V>(
- v: &mut V,
- node: &'ast crate::AngleBracketedGenericArguments,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.colon2_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_generic_argument(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_arm<'ast, V>(v: &mut V, node: &'ast crate::Arm)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_pat(&node.pat);
- if let Some(it) = &node.guard {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
- skip!(node.fat_arrow_token);
- v.visit_expr(&*node.body);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_assoc_const<'ast, V>(v: &mut V, node: &'ast crate::AssocConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.eq_token);
- v.visit_expr(&node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_assoc_type<'ast, V>(v: &mut V, node: &'ast crate::AssocType)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.eq_token);
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_attr_style<'ast, V>(v: &mut V, node: &'ast crate::AttrStyle)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::AttrStyle::Outer => {}
- crate::AttrStyle::Inner(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_attribute<'ast, V>(v: &mut V, node: &'ast crate::Attribute)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.pound_token);
- v.visit_attr_style(&node.style);
- skip!(node.bracket_token);
- v.visit_meta(&node.meta);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_fn_arg<'ast, V>(v: &mut V, node: &'ast crate::BareFnArg)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.name {
- v.visit_ident(&(it).0);
- skip!((it).1);
- }
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_variadic<'ast, V>(v: &mut V, node: &'ast crate::BareVariadic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.name {
- v.visit_ident(&(it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bin_op<'ast, V>(v: &mut V, node: &'ast crate::BinOp)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::BinOp::Add(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Sub(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Mul(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Div(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Rem(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::And(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Or(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXor(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAnd(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shl(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Eq(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Lt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Le(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ne(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ge(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Gt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::AddAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::SubAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::MulAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::DivAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::RemAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXorAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAndAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShlAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_block<'ast, V>(v: &mut V, node: &'ast crate::Block)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for it in &node.stmts {
- v.visit_stmt(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bound_lifetimes<'ast, V>(v: &mut V, node: &'ast crate::BoundLifetimes)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.for_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.lifetimes) {
- let it = el.value();
- v.visit_generic_param(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_captured_param<'ast, V>(v: &mut V, node: &'ast crate::CapturedParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::CapturedParam::Ident(_binding_0) => {
- v.visit_ident(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_const_param<'ast, V>(v: &mut V, node: &'ast crate::ConstParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- skip!(node.eq_token);
- if let Some(it) = &node.default {
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_constraint<'ast, V>(v: &mut V, node: &'ast crate::Constraint)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- if let Some(it) = &node.generics {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data<'ast, V>(v: &mut V, node: &'ast crate::Data)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Data::Struct(_binding_0) => {
- v.visit_data_struct(_binding_0);
- }
- crate::Data::Enum(_binding_0) => {
- v.visit_data_enum(_binding_0);
- }
- crate::Data::Union(_binding_0) => {
- v.visit_data_union(_binding_0);
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_enum<'ast, V>(v: &mut V, node: &'ast crate::DataEnum)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.enum_token);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.variants) {
- let it = el.value();
- v.visit_variant(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_struct<'ast, V>(v: &mut V, node: &'ast crate::DataStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.struct_token);
- v.visit_fields(&node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_union<'ast, V>(v: &mut V, node: &'ast crate::DataUnion)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.union_token);
- v.visit_fields_named(&node.fields);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_derive_input<'ast, V>(v: &mut V, node: &'ast crate::DeriveInput)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_data(&node.data);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr<'ast, V>(v: &mut V, node: &'ast crate::Expr)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Expr::Array(_binding_0) => {
- full!(v.visit_expr_array(_binding_0));
- }
- crate::Expr::Assign(_binding_0) => {
- full!(v.visit_expr_assign(_binding_0));
- }
- crate::Expr::Async(_binding_0) => {
- full!(v.visit_expr_async(_binding_0));
- }
- crate::Expr::Await(_binding_0) => {
- full!(v.visit_expr_await(_binding_0));
- }
- crate::Expr::Binary(_binding_0) => {
- v.visit_expr_binary(_binding_0);
- }
- crate::Expr::Block(_binding_0) => {
- full!(v.visit_expr_block(_binding_0));
- }
- crate::Expr::Break(_binding_0) => {
- full!(v.visit_expr_break(_binding_0));
- }
- crate::Expr::Call(_binding_0) => {
- v.visit_expr_call(_binding_0);
- }
- crate::Expr::Cast(_binding_0) => {
- v.visit_expr_cast(_binding_0);
- }
- crate::Expr::Closure(_binding_0) => {
- full!(v.visit_expr_closure(_binding_0));
- }
- crate::Expr::Const(_binding_0) => {
- full!(v.visit_expr_const(_binding_0));
- }
- crate::Expr::Continue(_binding_0) => {
- full!(v.visit_expr_continue(_binding_0));
- }
- crate::Expr::Field(_binding_0) => {
- v.visit_expr_field(_binding_0);
- }
- crate::Expr::ForLoop(_binding_0) => {
- full!(v.visit_expr_for_loop(_binding_0));
- }
- crate::Expr::Group(_binding_0) => {
- v.visit_expr_group(_binding_0);
- }
- crate::Expr::If(_binding_0) => {
- full!(v.visit_expr_if(_binding_0));
- }
- crate::Expr::Index(_binding_0) => {
- v.visit_expr_index(_binding_0);
- }
- crate::Expr::Infer(_binding_0) => {
- full!(v.visit_expr_infer(_binding_0));
- }
- crate::Expr::Let(_binding_0) => {
- full!(v.visit_expr_let(_binding_0));
- }
- crate::Expr::Lit(_binding_0) => {
- v.visit_expr_lit(_binding_0);
- }
- crate::Expr::Loop(_binding_0) => {
- full!(v.visit_expr_loop(_binding_0));
- }
- crate::Expr::Macro(_binding_0) => {
- v.visit_expr_macro(_binding_0);
- }
- crate::Expr::Match(_binding_0) => {
- full!(v.visit_expr_match(_binding_0));
- }
- crate::Expr::MethodCall(_binding_0) => {
- v.visit_expr_method_call(_binding_0);
- }
- crate::Expr::Paren(_binding_0) => {
- v.visit_expr_paren(_binding_0);
- }
- crate::Expr::Path(_binding_0) => {
- v.visit_expr_path(_binding_0);
- }
- crate::Expr::Range(_binding_0) => {
- full!(v.visit_expr_range(_binding_0));
- }
- crate::Expr::RawAddr(_binding_0) => {
- full!(v.visit_expr_raw_addr(_binding_0));
- }
- crate::Expr::Reference(_binding_0) => {
- v.visit_expr_reference(_binding_0);
- }
- crate::Expr::Repeat(_binding_0) => {
- full!(v.visit_expr_repeat(_binding_0));
- }
- crate::Expr::Return(_binding_0) => {
- full!(v.visit_expr_return(_binding_0));
- }
- crate::Expr::Struct(_binding_0) => {
- v.visit_expr_struct(_binding_0);
- }
- crate::Expr::Try(_binding_0) => {
- full!(v.visit_expr_try(_binding_0));
- }
- crate::Expr::TryBlock(_binding_0) => {
- full!(v.visit_expr_try_block(_binding_0));
- }
- crate::Expr::Tuple(_binding_0) => {
- v.visit_expr_tuple(_binding_0);
- }
- crate::Expr::Unary(_binding_0) => {
- v.visit_expr_unary(_binding_0);
- }
- crate::Expr::Unsafe(_binding_0) => {
- full!(v.visit_expr_unsafe(_binding_0));
- }
- crate::Expr::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- crate::Expr::While(_binding_0) => {
- full!(v.visit_expr_while(_binding_0));
- }
- crate::Expr::Yield(_binding_0) => {
- full!(v.visit_expr_yield(_binding_0));
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_array<'ast, V>(v: &mut V, node: &'ast crate::ExprArray)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_assign<'ast, V>(v: &mut V, node: &'ast crate::ExprAssign)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.left);
- skip!(node.eq_token);
- v.visit_expr(&*node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_async<'ast, V>(v: &mut V, node: &'ast crate::ExprAsync)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.async_token);
- skip!(node.capture);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_await<'ast, V>(v: &mut V, node: &'ast crate::ExprAwait)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.base);
- skip!(node.dot_token);
- skip!(node.await_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_binary<'ast, V>(v: &mut V, node: &'ast crate::ExprBinary)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.left);
- v.visit_bin_op(&node.op);
- v.visit_expr(&*node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_block<'ast, V>(v: &mut V, node: &'ast crate::ExprBlock)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_break<'ast, V>(v: &mut V, node: &'ast crate::ExprBreak)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.break_token);
- if let Some(it) = &node.label {
- v.visit_lifetime(it);
- }
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_call<'ast, V>(v: &mut V, node: &'ast crate::ExprCall)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.func);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_cast<'ast, V>(v: &mut V, node: &'ast crate::ExprCast)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.as_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_closure<'ast, V>(v: &mut V, node: &'ast crate::ExprClosure)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- skip!(node.constness);
- skip!(node.movability);
- skip!(node.asyncness);
- skip!(node.capture);
- skip!(node.or1_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_pat(it);
- }
- skip!(node.or2_token);
- v.visit_return_type(&node.output);
- v.visit_expr(&*node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_const<'ast, V>(v: &mut V, node: &'ast crate::ExprConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_continue<'ast, V>(v: &mut V, node: &'ast crate::ExprContinue)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.continue_token);
- if let Some(it) = &node.label {
- v.visit_lifetime(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_field<'ast, V>(v: &mut V, node: &'ast crate::ExprField)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.base);
- skip!(node.dot_token);
- v.visit_member(&node.member);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_for_loop<'ast, V>(v: &mut V, node: &'ast crate::ExprForLoop)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.for_token);
- v.visit_pat(&*node.pat);
- skip!(node.in_token);
- v.visit_expr(&*node.expr);
- v.visit_block(&node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_group<'ast, V>(v: &mut V, node: &'ast crate::ExprGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.group_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_if<'ast, V>(v: &mut V, node: &'ast crate::ExprIf)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.if_token);
- v.visit_expr(&*node.cond);
- v.visit_block(&node.then_branch);
- if let Some(it) = &node.else_branch {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_index<'ast, V>(v: &mut V, node: &'ast crate::ExprIndex)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.bracket_token);
- v.visit_expr(&*node.index);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_infer<'ast, V>(v: &mut V, node: &'ast crate::ExprInfer)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.underscore_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_let<'ast, V>(v: &mut V, node: &'ast crate::ExprLet)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.let_token);
- v.visit_pat(&*node.pat);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_lit<'ast, V>(v: &mut V, node: &'ast crate::ExprLit)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_lit(&node.lit);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_loop<'ast, V>(v: &mut V, node: &'ast crate::ExprLoop)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.loop_token);
- v.visit_block(&node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_macro<'ast, V>(v: &mut V, node: &'ast crate::ExprMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_match<'ast, V>(v: &mut V, node: &'ast crate::ExprMatch)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.match_token);
- v.visit_expr(&*node.expr);
- skip!(node.brace_token);
- for it in &node.arms {
- v.visit_arm(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_method_call<'ast, V>(v: &mut V, node: &'ast crate::ExprMethodCall)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.receiver);
- skip!(node.dot_token);
- v.visit_ident(&node.method);
- if let Some(it) = &node.turbofish {
- v.visit_angle_bracketed_generic_arguments(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.args) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_paren<'ast, V>(v: &mut V, node: &'ast crate::ExprParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_path<'ast, V>(v: &mut V, node: &'ast crate::ExprPath)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_range<'ast, V>(v: &mut V, node: &'ast crate::ExprRange)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.start {
- v.visit_expr(&**it);
- }
- v.visit_range_limits(&node.limits);
- if let Some(it) = &node.end {
- v.visit_expr(&**it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_raw_addr<'ast, V>(v: &mut V, node: &'ast crate::ExprRawAddr)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.raw);
- v.visit_pointer_mutability(&node.mutability);
- v.visit_expr(&*node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_reference<'ast, V>(v: &mut V, node: &'ast crate::ExprReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_repeat<'ast, V>(v: &mut V, node: &'ast crate::ExprRepeat)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
- v.visit_expr(&*node.len);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_return<'ast, V>(v: &mut V, node: &'ast crate::ExprReturn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.return_token);
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_struct<'ast, V>(v: &mut V, node: &'ast crate::ExprStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.fields) {
- let it = el.value();
- v.visit_field_value(it);
- }
- skip!(node.dot2_token);
- if let Some(it) = &node.rest {
- v.visit_expr(&**it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try<'ast, V>(v: &mut V, node: &'ast crate::ExprTry)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_expr(&*node.expr);
- skip!(node.question_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try_block<'ast, V>(v: &mut V, node: &'ast crate::ExprTryBlock)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.try_token);
- v.visit_block(&node.block);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_tuple<'ast, V>(v: &mut V, node: &'ast crate::ExprTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_expr(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_unary<'ast, V>(v: &mut V, node: &'ast crate::ExprUnary)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_un_op(&node.op);
- v.visit_expr(&*node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_unsafe<'ast, V>(v: &mut V, node: &'ast crate::ExprUnsafe)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.unsafe_token);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_while<'ast, V>(v: &mut V, node: &'ast crate::ExprWhile)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.label {
- v.visit_label(it);
- }
- skip!(node.while_token);
- v.visit_expr(&*node.cond);
- v.visit_block(&node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_yield<'ast, V>(v: &mut V, node: &'ast crate::ExprYield)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.yield_token);
- if let Some(it) = &node.expr {
- v.visit_expr(&**it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field<'ast, V>(v: &mut V, node: &'ast crate::Field)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_field_mutability(&node.mutability);
- if let Some(it) = &node.ident {
- v.visit_ident(it);
- }
- skip!(node.colon_token);
- v.visit_type(&node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_mutability<'ast, V>(v: &mut V, node: &'ast crate::FieldMutability)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::FieldMutability::None => {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_field_pat<'ast, V>(v: &mut V, node: &'ast crate::FieldPat)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_member(&node.member);
- skip!(node.colon_token);
- v.visit_pat(&*node.pat);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_value<'ast, V>(v: &mut V, node: &'ast crate::FieldValue)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_member(&node.member);
- skip!(node.colon_token);
- v.visit_expr(&node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields<'ast, V>(v: &mut V, node: &'ast crate::Fields)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Fields::Named(_binding_0) => {
- v.visit_fields_named(_binding_0);
- }
- crate::Fields::Unnamed(_binding_0) => {
- v.visit_fields_unnamed(_binding_0);
- }
- crate::Fields::Unit => {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_named<'ast, V>(v: &mut V, node: &'ast crate::FieldsNamed)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.named) {
- let it = el.value();
- v.visit_field(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_unnamed<'ast, V>(v: &mut V, node: &'ast crate::FieldsUnnamed)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.unnamed) {
- let it = el.value();
- v.visit_field(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_file<'ast, V>(v: &mut V, node: &'ast crate::File)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.shebang);
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- for it in &node.items {
- v.visit_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_fn_arg<'ast, V>(v: &mut V, node: &'ast crate::FnArg)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- v.visit_receiver(_binding_0);
- }
- crate::FnArg::Typed(_binding_0) => {
- v.visit_pat_type(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item<'ast, V>(v: &mut V, node: &'ast crate::ForeignItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- v.visit_foreign_item_fn(_binding_0);
- }
- crate::ForeignItem::Static(_binding_0) => {
- v.visit_foreign_item_static(_binding_0);
- }
- crate::ForeignItem::Type(_binding_0) => {
- v.visit_foreign_item_type(_binding_0);
- }
- crate::ForeignItem::Macro(_binding_0) => {
- v.visit_foreign_item_macro(_binding_0);
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_signature(&node.sig);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_static<'ast, V>(
- v: &mut V,
- node: &'ast crate::ForeignItemStatic,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.static_token);
- v.visit_static_mutability(&node.mutability);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_type<'ast, V>(v: &mut V, node: &'ast crate::ForeignItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generic_argument<'ast, V>(v: &mut V, node: &'ast crate::GenericArgument)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::GenericArgument::Type(_binding_0) => {
- v.visit_type(_binding_0);
- }
- crate::GenericArgument::Const(_binding_0) => {
- v.visit_expr(_binding_0);
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- v.visit_assoc_type(_binding_0);
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- v.visit_assoc_const(_binding_0);
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- v.visit_constraint(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generic_param<'ast, V>(v: &mut V, node: &'ast crate::GenericParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- v.visit_lifetime_param(_binding_0);
- }
- crate::GenericParam::Type(_binding_0) => {
- v.visit_type_param(_binding_0);
- }
- crate::GenericParam::Const(_binding_0) => {
- v.visit_const_param(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generics<'ast, V>(v: &mut V, node: &'ast crate::Generics)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.params) {
- let it = el.value();
- v.visit_generic_param(it);
- }
- skip!(node.gt_token);
- if let Some(it) = &node.where_clause {
- v.visit_where_clause(it);
- }
-}
-pub fn visit_ident<'ast, V>(v: &mut V, node: &'ast proc_macro2::Ident)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_span(&node.span());
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item<'ast, V>(v: &mut V, node: &'ast crate::ImplItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ImplItem::Const(_binding_0) => {
- v.visit_impl_item_const(_binding_0);
- }
- crate::ImplItem::Fn(_binding_0) => {
- v.visit_impl_item_fn(_binding_0);
- }
- crate::ImplItem::Type(_binding_0) => {
- v.visit_impl_item_type(_binding_0);
- }
- crate::ImplItem::Macro(_binding_0) => {
- v.visit_impl_item_macro(_binding_0);
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_const<'ast, V>(v: &mut V, node: &'ast crate::ImplItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- skip!(node.eq_token);
- v.visit_expr(&node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ImplItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- v.visit_signature(&node.sig);
- v.visit_block(&node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ImplItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_type<'ast, V>(v: &mut V, node: &'ast crate::ImplItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.defaultness);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- v.visit_type(&node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_restriction<'ast, V>(v: &mut V, node: &'ast crate::ImplRestriction)
-where
- V: Visit<'ast> + ?Sized,
-{
- match *node {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_index<'ast, V>(v: &mut V, node: &'ast crate::Index)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.index);
- v.visit_span(&node.span);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item<'ast, V>(v: &mut V, node: &'ast crate::Item)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Item::Const(_binding_0) => {
- v.visit_item_const(_binding_0);
- }
- crate::Item::Enum(_binding_0) => {
- v.visit_item_enum(_binding_0);
- }
- crate::Item::ExternCrate(_binding_0) => {
- v.visit_item_extern_crate(_binding_0);
- }
- crate::Item::Fn(_binding_0) => {
- v.visit_item_fn(_binding_0);
- }
- crate::Item::ForeignMod(_binding_0) => {
- v.visit_item_foreign_mod(_binding_0);
- }
- crate::Item::Impl(_binding_0) => {
- v.visit_item_impl(_binding_0);
- }
- crate::Item::Macro(_binding_0) => {
- v.visit_item_macro(_binding_0);
- }
- crate::Item::Mod(_binding_0) => {
- v.visit_item_mod(_binding_0);
- }
- crate::Item::Static(_binding_0) => {
- v.visit_item_static(_binding_0);
- }
- crate::Item::Struct(_binding_0) => {
- v.visit_item_struct(_binding_0);
- }
- crate::Item::Trait(_binding_0) => {
- v.visit_item_trait(_binding_0);
- }
- crate::Item::TraitAlias(_binding_0) => {
- v.visit_item_trait_alias(_binding_0);
- }
- crate::Item::Type(_binding_0) => {
- v.visit_item_type(_binding_0);
- }
- crate::Item::Union(_binding_0) => {
- v.visit_item_union(_binding_0);
- }
- crate::Item::Use(_binding_0) => {
- v.visit_item_use(_binding_0);
- }
- crate::Item::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_const<'ast, V>(v: &mut V, node: &'ast crate::ItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_enum<'ast, V>(v: &mut V, node: &'ast crate::ItemEnum)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.enum_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.variants) {
- let it = el.value();
- v.visit_variant(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_extern_crate<'ast, V>(v: &mut V, node: &'ast crate::ItemExternCrate)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.extern_token);
- skip!(node.crate_token);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.rename {
- skip!((it).0);
- v.visit_ident(&(it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_fn<'ast, V>(v: &mut V, node: &'ast crate::ItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- v.visit_signature(&node.sig);
- v.visit_block(&*node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_foreign_mod<'ast, V>(v: &mut V, node: &'ast crate::ItemForeignMod)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.unsafety);
- v.visit_abi(&node.abi);
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_foreign_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_impl<'ast, V>(v: &mut V, node: &'ast crate::ItemImpl)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.defaultness);
- skip!(node.unsafety);
- skip!(node.impl_token);
- v.visit_generics(&node.generics);
- if let Some(it) = &node.trait_ {
- skip!((it).0);
- v.visit_path(&(it).1);
- skip!((it).2);
- }
- v.visit_type(&*node.self_ty);
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_impl_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_macro<'ast, V>(v: &mut V, node: &'ast crate::ItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.ident {
- v.visit_ident(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_mod<'ast, V>(v: &mut V, node: &'ast crate::ItemMod)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.unsafety);
- skip!(node.mod_token);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.content {
- skip!((it).0);
- for it in &(it).1 {
- v.visit_item(it);
- }
- }
- skip!(node.semi);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_static<'ast, V>(v: &mut V, node: &'ast crate::ItemStatic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.static_token);
- v.visit_static_mutability(&node.mutability);
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_struct<'ast, V>(v: &mut V, node: &'ast crate::ItemStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.struct_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_fields(&node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait<'ast, V>(v: &mut V, node: &'ast crate::ItemTrait)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.unsafety);
- skip!(node.auto_token);
- if let Some(it) = &node.restriction {
- v.visit_impl_restriction(it);
- }
- skip!(node.trait_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.supertraits) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.brace_token);
- for it in &node.items {
- v.visit_trait_item(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait_alias<'ast, V>(v: &mut V, node: &'ast crate::ItemTraitAlias)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.trait_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_type<'ast, V>(v: &mut V, node: &'ast crate::ItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.eq_token);
- v.visit_type(&*node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_union<'ast, V>(v: &mut V, node: &'ast crate::ItemUnion)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.union_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- v.visit_fields_named(&node.fields);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_use<'ast, V>(v: &mut V, node: &'ast crate::ItemUse)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_visibility(&node.vis);
- skip!(node.use_token);
- skip!(node.leading_colon);
- v.visit_use_tree(&node.tree);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_label<'ast, V>(v: &mut V, node: &'ast crate::Label)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_lifetime(&node.name);
- skip!(node.colon_token);
-}
-pub fn visit_lifetime<'ast, V>(v: &mut V, node: &'ast crate::Lifetime)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_span(&node.apostrophe);
- v.visit_ident(&node.ident);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_lifetime_param<'ast, V>(v: &mut V, node: &'ast crate::LifetimeParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_lifetime(&node.lifetime);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_lifetime(it);
- }
-}
-pub fn visit_lit<'ast, V>(v: &mut V, node: &'ast crate::Lit)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Lit::Str(_binding_0) => {
- v.visit_lit_str(_binding_0);
- }
- crate::Lit::ByteStr(_binding_0) => {
- v.visit_lit_byte_str(_binding_0);
- }
- crate::Lit::CStr(_binding_0) => {
- v.visit_lit_cstr(_binding_0);
- }
- crate::Lit::Byte(_binding_0) => {
- v.visit_lit_byte(_binding_0);
- }
- crate::Lit::Char(_binding_0) => {
- v.visit_lit_char(_binding_0);
- }
- crate::Lit::Int(_binding_0) => {
- v.visit_lit_int(_binding_0);
- }
- crate::Lit::Float(_binding_0) => {
- v.visit_lit_float(_binding_0);
- }
- crate::Lit::Bool(_binding_0) => {
- v.visit_lit_bool(_binding_0);
- }
- crate::Lit::Verbatim(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-pub fn visit_lit_bool<'ast, V>(v: &mut V, node: &'ast crate::LitBool)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.value);
- v.visit_span(&node.span);
-}
-pub fn visit_lit_byte<'ast, V>(v: &mut V, node: &'ast crate::LitByte)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_byte_str<'ast, V>(v: &mut V, node: &'ast crate::LitByteStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_cstr<'ast, V>(v: &mut V, node: &'ast crate::LitCStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_char<'ast, V>(v: &mut V, node: &'ast crate::LitChar)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_float<'ast, V>(v: &mut V, node: &'ast crate::LitFloat)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_int<'ast, V>(v: &mut V, node: &'ast crate::LitInt)
-where
- V: Visit<'ast> + ?Sized,
-{}
-pub fn visit_lit_str<'ast, V>(v: &mut V, node: &'ast crate::LitStr)
-where
- V: Visit<'ast> + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local<'ast, V>(v: &mut V, node: &'ast crate::Local)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.let_token);
- v.visit_pat(&node.pat);
- if let Some(it) = &node.init {
- v.visit_local_init(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local_init<'ast, V>(v: &mut V, node: &'ast crate::LocalInit)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.eq_token);
- v.visit_expr(&*node.expr);
- if let Some(it) = &node.diverge {
- skip!((it).0);
- v.visit_expr(&*(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro<'ast, V>(v: &mut V, node: &'ast crate::Macro)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- skip!(node.bang_token);
- v.visit_macro_delimiter(&node.delimiter);
- v.visit_token_stream(&node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro_delimiter<'ast, V>(v: &mut V, node: &'ast crate::MacroDelimiter)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::MacroDelimiter::Paren(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Brace(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Bracket(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_member<'ast, V>(v: &mut V, node: &'ast crate::Member)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Member::Named(_binding_0) => {
- v.visit_ident(_binding_0);
- }
- crate::Member::Unnamed(_binding_0) => {
- v.visit_index(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta<'ast, V>(v: &mut V, node: &'ast crate::Meta)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Meta::Path(_binding_0) => {
- v.visit_path(_binding_0);
- }
- crate::Meta::List(_binding_0) => {
- v.visit_meta_list(_binding_0);
- }
- crate::Meta::NameValue(_binding_0) => {
- v.visit_meta_name_value(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_list<'ast, V>(v: &mut V, node: &'ast crate::MetaList)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- v.visit_macro_delimiter(&node.delimiter);
- v.visit_token_stream(&node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_name_value<'ast, V>(v: &mut V, node: &'ast crate::MetaNameValue)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_path(&node.path);
- skip!(node.eq_token);
- v.visit_expr(&node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_parenthesized_generic_arguments<'ast, V>(
- v: &mut V,
- node: &'ast crate::ParenthesizedGenericArguments,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_type(it);
- }
- v.visit_return_type(&node.output);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat<'ast, V>(v: &mut V, node: &'ast crate::Pat)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Pat::Const(_binding_0) => {
- v.visit_expr_const(_binding_0);
- }
- crate::Pat::Ident(_binding_0) => {
- v.visit_pat_ident(_binding_0);
- }
- crate::Pat::Lit(_binding_0) => {
- v.visit_expr_lit(_binding_0);
- }
- crate::Pat::Macro(_binding_0) => {
- v.visit_expr_macro(_binding_0);
- }
- crate::Pat::Or(_binding_0) => {
- v.visit_pat_or(_binding_0);
- }
- crate::Pat::Paren(_binding_0) => {
- v.visit_pat_paren(_binding_0);
- }
- crate::Pat::Path(_binding_0) => {
- v.visit_expr_path(_binding_0);
- }
- crate::Pat::Range(_binding_0) => {
- v.visit_expr_range(_binding_0);
- }
- crate::Pat::Reference(_binding_0) => {
- v.visit_pat_reference(_binding_0);
- }
- crate::Pat::Rest(_binding_0) => {
- v.visit_pat_rest(_binding_0);
- }
- crate::Pat::Slice(_binding_0) => {
- v.visit_pat_slice(_binding_0);
- }
- crate::Pat::Struct(_binding_0) => {
- v.visit_pat_struct(_binding_0);
- }
- crate::Pat::Tuple(_binding_0) => {
- v.visit_pat_tuple(_binding_0);
- }
- crate::Pat::TupleStruct(_binding_0) => {
- v.visit_pat_tuple_struct(_binding_0);
- }
- crate::Pat::Type(_binding_0) => {
- v.visit_pat_type(_binding_0);
- }
- crate::Pat::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- crate::Pat::Wild(_binding_0) => {
- v.visit_pat_wild(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_ident<'ast, V>(v: &mut V, node: &'ast crate::PatIdent)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.by_ref);
- skip!(node.mutability);
- v.visit_ident(&node.ident);
- if let Some(it) = &node.subpat {
- skip!((it).0);
- v.visit_pat(&*(it).1);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_or<'ast, V>(v: &mut V, node: &'ast crate::PatOr)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.leading_vert);
- for el in Punctuated::pairs(&node.cases) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_paren<'ast, V>(v: &mut V, node: &'ast crate::PatParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- v.visit_pat(&*node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_reference<'ast, V>(v: &mut V, node: &'ast crate::PatReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_pat(&*node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_rest<'ast, V>(v: &mut V, node: &'ast crate::PatRest)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.dot2_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_slice<'ast, V>(v: &mut V, node: &'ast crate::PatSlice)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.bracket_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_struct<'ast, V>(v: &mut V, node: &'ast crate::PatStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.fields) {
- let it = el.value();
- v.visit_field_pat(it);
- }
- if let Some(it) = &node.rest {
- v.visit_pat_rest(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple<'ast, V>(v: &mut V, node: &'ast crate::PatTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple_struct<'ast, V>(v: &mut V, node: &'ast crate::PatTupleStruct)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_pat(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_type<'ast, V>(v: &mut V, node: &'ast crate::PatType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_pat(&*node.pat);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_wild<'ast, V>(v: &mut V, node: &'ast crate::PatWild)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.underscore_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path<'ast, V>(v: &mut V, node: &'ast crate::Path)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.leading_colon);
- for el in Punctuated::pairs(&node.segments) {
- let it = el.value();
- v.visit_path_segment(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_arguments<'ast, V>(v: &mut V, node: &'ast crate::PathArguments)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::PathArguments::None => {}
- crate::PathArguments::AngleBracketed(_binding_0) => {
- v.visit_angle_bracketed_generic_arguments(_binding_0);
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- v.visit_parenthesized_generic_arguments(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_segment<'ast, V>(v: &mut V, node: &'ast crate::PathSegment)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- v.visit_path_arguments(&node.arguments);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pointer_mutability<'ast, V>(v: &mut V, node: &'ast crate::PointerMutability)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::PointerMutability::Const(_binding_0) => {
- skip!(_binding_0);
- }
- crate::PointerMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_precise_capture<'ast, V>(v: &mut V, node: &'ast crate::PreciseCapture)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.use_token);
- skip!(node.lt_token);
- for el in Punctuated::pairs(&node.params) {
- let it = el.value();
- v.visit_captured_param(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_predicate_lifetime<'ast, V>(v: &mut V, node: &'ast crate::PredicateLifetime)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_lifetime(&node.lifetime);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_lifetime(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_predicate_type<'ast, V>(v: &mut V, node: &'ast crate::PredicateType)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- v.visit_type(&node.bounded_ty);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_qself<'ast, V>(v: &mut V, node: &'ast crate::QSelf)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.lt_token);
- v.visit_type(&*node.ty);
- skip!(node.position);
- skip!(node.as_token);
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_range_limits<'ast, V>(v: &mut V, node: &'ast crate::RangeLimits)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::RangeLimits::HalfOpen(_binding_0) => {
- skip!(_binding_0);
- }
- crate::RangeLimits::Closed(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_receiver<'ast, V>(v: &mut V, node: &'ast crate::Receiver)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.reference {
- skip!((it).0);
- if let Some(it) = &(it).1 {
- v.visit_lifetime(it);
- }
- }
- skip!(node.mutability);
- skip!(node.self_token);
- skip!(node.colon_token);
- v.visit_type(&*node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_return_type<'ast, V>(v: &mut V, node: &'ast crate::ReturnType)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::ReturnType::Default => {}
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- skip!(_binding_0);
- v.visit_type(&**_binding_1);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_signature<'ast, V>(v: &mut V, node: &'ast crate::Signature)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.constness);
- skip!(node.asyncness);
- skip!(node.unsafety);
- if let Some(it) = &node.abi {
- v.visit_abi(it);
- }
- skip!(node.fn_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_fn_arg(it);
- }
- if let Some(it) = &node.variadic {
- v.visit_variadic(it);
- }
- v.visit_return_type(&node.output);
-}
-pub fn visit_span<'ast, V>(v: &mut V, node: &proc_macro2::Span)
-where
- V: Visit<'ast> + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_static_mutability<'ast, V>(v: &mut V, node: &'ast crate::StaticMutability)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::StaticMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- crate::StaticMutability::None => {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_stmt<'ast, V>(v: &mut V, node: &'ast crate::Stmt)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Stmt::Local(_binding_0) => {
- v.visit_local(_binding_0);
- }
- crate::Stmt::Item(_binding_0) => {
- v.visit_item(_binding_0);
- }
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- v.visit_expr(_binding_0);
- skip!(_binding_1);
- }
- crate::Stmt::Macro(_binding_0) => {
- v.visit_stmt_macro(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_stmt_macro<'ast, V>(v: &mut V, node: &'ast crate::StmtMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_trait_bound<'ast, V>(v: &mut V, node: &'ast crate::TraitBound)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_trait_bound_modifier(&node.modifier);
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_trait_bound_modifier<'ast, V>(
- v: &mut V,
- node: &'ast crate::TraitBoundModifier,
-)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::TraitBoundModifier::None => {}
- crate::TraitBoundModifier::Maybe(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item<'ast, V>(v: &mut V, node: &'ast crate::TraitItem)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::TraitItem::Const(_binding_0) => {
- v.visit_trait_item_const(_binding_0);
- }
- crate::TraitItem::Fn(_binding_0) => {
- v.visit_trait_item_fn(_binding_0);
- }
- crate::TraitItem::Type(_binding_0) => {
- v.visit_trait_item_type(_binding_0);
- }
- crate::TraitItem::Macro(_binding_0) => {
- v.visit_trait_item_macro(_binding_0);
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_const<'ast, V>(v: &mut V, node: &'ast crate::TraitItemConst)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.const_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- v.visit_type(&node.ty);
- if let Some(it) = &node.default {
- skip!((it).0);
- v.visit_expr(&(it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_fn<'ast, V>(v: &mut V, node: &'ast crate::TraitItemFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_signature(&node.sig);
- if let Some(it) = &node.default {
- v.visit_block(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_macro<'ast, V>(v: &mut V, node: &'ast crate::TraitItemMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_macro(&node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_type<'ast, V>(v: &mut V, node: &'ast crate::TraitItemType)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- skip!(node.type_token);
- v.visit_ident(&node.ident);
- v.visit_generics(&node.generics);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- if let Some(it) = &node.default {
- skip!((it).0);
- v.visit_type(&(it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type<'ast, V>(v: &mut V, node: &'ast crate::Type)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Type::Array(_binding_0) => {
- v.visit_type_array(_binding_0);
- }
- crate::Type::BareFn(_binding_0) => {
- v.visit_type_bare_fn(_binding_0);
- }
- crate::Type::Group(_binding_0) => {
- v.visit_type_group(_binding_0);
- }
- crate::Type::ImplTrait(_binding_0) => {
- v.visit_type_impl_trait(_binding_0);
- }
- crate::Type::Infer(_binding_0) => {
- v.visit_type_infer(_binding_0);
- }
- crate::Type::Macro(_binding_0) => {
- v.visit_type_macro(_binding_0);
- }
- crate::Type::Never(_binding_0) => {
- v.visit_type_never(_binding_0);
- }
- crate::Type::Paren(_binding_0) => {
- v.visit_type_paren(_binding_0);
- }
- crate::Type::Path(_binding_0) => {
- v.visit_type_path(_binding_0);
- }
- crate::Type::Ptr(_binding_0) => {
- v.visit_type_ptr(_binding_0);
- }
- crate::Type::Reference(_binding_0) => {
- v.visit_type_reference(_binding_0);
- }
- crate::Type::Slice(_binding_0) => {
- v.visit_type_slice(_binding_0);
- }
- crate::Type::TraitObject(_binding_0) => {
- v.visit_type_trait_object(_binding_0);
- }
- crate::Type::Tuple(_binding_0) => {
- v.visit_type_tuple(_binding_0);
- }
- crate::Type::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_array<'ast, V>(v: &mut V, node: &'ast crate::TypeArray)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type(&*node.elem);
- skip!(node.semi_token);
- v.visit_expr(&node.len);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_bare_fn<'ast, V>(v: &mut V, node: &'ast crate::TypeBareFn)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.lifetimes {
- v.visit_bound_lifetimes(it);
- }
- skip!(node.unsafety);
- if let Some(it) = &node.abi {
- v.visit_abi(it);
- }
- skip!(node.fn_token);
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.inputs) {
- let it = el.value();
- v.visit_bare_fn_arg(it);
- }
- if let Some(it) = &node.variadic {
- v.visit_bare_variadic(it);
- }
- v.visit_return_type(&node.output);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_group<'ast, V>(v: &mut V, node: &'ast crate::TypeGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.group_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_impl_trait<'ast, V>(v: &mut V, node: &'ast crate::TypeImplTrait)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.impl_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_infer<'ast, V>(v: &mut V, node: &'ast crate::TypeInfer)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.underscore_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_macro<'ast, V>(v: &mut V, node: &'ast crate::TypeMacro)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_macro(&node.mac);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_never<'ast, V>(v: &mut V, node: &'ast crate::TypeNever)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.bang_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_param<'ast, V>(v: &mut V, node: &'ast crate::TypeParam)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_ident(&node.ident);
- skip!(node.colon_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
- skip!(node.eq_token);
- if let Some(it) = &node.default {
- v.visit_type(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_param_bound<'ast, V>(v: &mut V, node: &'ast crate::TypeParamBound)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- v.visit_trait_bound(_binding_0);
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- v.visit_lifetime(_binding_0);
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- full!(v.visit_precise_capture(_binding_0));
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- v.visit_token_stream(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_paren<'ast, V>(v: &mut V, node: &'ast crate::TypeParen)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_path<'ast, V>(v: &mut V, node: &'ast crate::TypePath)
-where
- V: Visit<'ast> + ?Sized,
-{
- if let Some(it) = &node.qself {
- v.visit_qself(it);
- }
- v.visit_path(&node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_ptr<'ast, V>(v: &mut V, node: &'ast crate::TypePtr)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.star_token);
- skip!(node.const_token);
- skip!(node.mutability);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_reference<'ast, V>(v: &mut V, node: &'ast crate::TypeReference)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.and_token);
- if let Some(it) = &node.lifetime {
- v.visit_lifetime(it);
- }
- skip!(node.mutability);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_slice<'ast, V>(v: &mut V, node: &'ast crate::TypeSlice)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type(&*node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_trait_object<'ast, V>(v: &mut V, node: &'ast crate::TypeTraitObject)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.dyn_token);
- for el in Punctuated::pairs(&node.bounds) {
- let it = el.value();
- v.visit_type_param_bound(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_tuple<'ast, V>(v: &mut V, node: &'ast crate::TypeTuple)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.paren_token);
- for el in Punctuated::pairs(&node.elems) {
- let it = el.value();
- v.visit_type(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_un_op<'ast, V>(v: &mut V, node: &'ast crate::UnOp)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::UnOp::Deref(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Not(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Neg(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_glob<'ast, V>(v: &mut V, node: &'ast crate::UseGlob)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.star_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_group<'ast, V>(v: &mut V, node: &'ast crate::UseGroup)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.brace_token);
- for el in Punctuated::pairs(&node.items) {
- let it = el.value();
- v.visit_use_tree(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_name<'ast, V>(v: &mut V, node: &'ast crate::UseName)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_path<'ast, V>(v: &mut V, node: &'ast crate::UsePath)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- skip!(node.colon2_token);
- v.visit_use_tree(&*node.tree);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_rename<'ast, V>(v: &mut V, node: &'ast crate::UseRename)
-where
- V: Visit<'ast> + ?Sized,
-{
- v.visit_ident(&node.ident);
- skip!(node.as_token);
- v.visit_ident(&node.rename);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_tree<'ast, V>(v: &mut V, node: &'ast crate::UseTree)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::UseTree::Path(_binding_0) => {
- v.visit_use_path(_binding_0);
- }
- crate::UseTree::Name(_binding_0) => {
- v.visit_use_name(_binding_0);
- }
- crate::UseTree::Rename(_binding_0) => {
- v.visit_use_rename(_binding_0);
- }
- crate::UseTree::Glob(_binding_0) => {
- v.visit_use_glob(_binding_0);
- }
- crate::UseTree::Group(_binding_0) => {
- v.visit_use_group(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_variadic<'ast, V>(v: &mut V, node: &'ast crate::Variadic)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- if let Some(it) = &node.pat {
- v.visit_pat(&*(it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_variant<'ast, V>(v: &mut V, node: &'ast crate::Variant)
-where
- V: Visit<'ast> + ?Sized,
-{
- for it in &node.attrs {
- v.visit_attribute(it);
- }
- v.visit_ident(&node.ident);
- v.visit_fields(&node.fields);
- if let Some(it) = &node.discriminant {
- skip!((it).0);
- v.visit_expr(&(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_vis_restricted<'ast, V>(v: &mut V, node: &'ast crate::VisRestricted)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.pub_token);
- skip!(node.paren_token);
- skip!(node.in_token);
- v.visit_path(&*node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_visibility<'ast, V>(v: &mut V, node: &'ast crate::Visibility)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::Visibility::Public(_binding_0) => {
- skip!(_binding_0);
- }
- crate::Visibility::Restricted(_binding_0) => {
- v.visit_vis_restricted(_binding_0);
- }
- crate::Visibility::Inherited => {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_where_clause<'ast, V>(v: &mut V, node: &'ast crate::WhereClause)
-where
- V: Visit<'ast> + ?Sized,
-{
- skip!(node.where_token);
- for el in Punctuated::pairs(&node.predicates) {
- let it = el.value();
- v.visit_where_predicate(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_where_predicate<'ast, V>(v: &mut V, node: &'ast crate::WherePredicate)
-where
- V: Visit<'ast> + ?Sized,
-{
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- v.visit_predicate_lifetime(_binding_0);
- }
- crate::WherePredicate::Type(_binding_0) => {
- v.visit_predicate_type(_binding_0);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/gen/visit_mut.rs b/deps/crates/vendor/syn-v2/src/gen/visit_mut.rs
deleted file mode 100644
index 6588182c4fd..00000000000
--- a/deps/crates/vendor/syn-v2/src/gen/visit_mut.rs
+++ /dev/null
@@ -1,3761 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(unused_variables)]
-#![allow(clippy::needless_pass_by_ref_mut)]
-#[cfg(any(feature = "full", feature = "derive"))]
-use crate::punctuated::Punctuated;
-#[cfg(any(feature = "derive", feature = "full"))]
-use alloc::vec::Vec;
-#[cfg(feature = "full")]
-macro_rules! full {
- ($e:expr) => {
- $e
- };
-}
-#[cfg(all(feature = "derive", not(feature = "full")))]
-macro_rules! full {
- ($e:expr) => {
- unreachable!()
- };
-}
-macro_rules! skip {
- ($($tt:tt)*) => {};
-}
-/// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in
-/// place.
-///
-/// See the [module documentation] for details.
-///
-/// [module documentation]: self
-pub trait VisitMut {
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_abi_mut(&mut self, i: &mut crate::Abi) {
- visit_abi_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_angle_bracketed_generic_arguments_mut(
- &mut self,
- i: &mut crate::AngleBracketedGenericArguments,
- ) {
- visit_angle_bracketed_generic_arguments_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_arm_mut(&mut self, i: &mut crate::Arm) {
- visit_arm_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_const_mut(&mut self, i: &mut crate::AssocConst) {
- visit_assoc_const_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_assoc_type_mut(&mut self, i: &mut crate::AssocType) {
- visit_assoc_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attr_style_mut(&mut self, i: &mut crate::AttrStyle) {
- visit_attr_style_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attribute_mut(&mut self, i: &mut crate::Attribute) {
- visit_attribute_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_attributes_mut(&mut self, i: &mut Vec<crate::Attribute>) {
- for attr in i {
- self.visit_attribute_mut(attr);
- }
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_fn_arg_mut(&mut self, i: &mut crate::BareFnArg) {
- visit_bare_fn_arg_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bare_variadic_mut(&mut self, i: &mut crate::BareVariadic) {
- visit_bare_variadic_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bin_op_mut(&mut self, i: &mut crate::BinOp) {
- visit_bin_op_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_block_mut(&mut self, i: &mut crate::Block) {
- visit_block_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_bound_lifetimes_mut(&mut self, i: &mut crate::BoundLifetimes) {
- visit_bound_lifetimes_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_captured_param_mut(&mut self, i: &mut crate::CapturedParam) {
- visit_captured_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_const_param_mut(&mut self, i: &mut crate::ConstParam) {
- visit_const_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_constraint_mut(&mut self, i: &mut crate::Constraint) {
- visit_constraint_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_mut(&mut self, i: &mut crate::Data) {
- visit_data_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_enum_mut(&mut self, i: &mut crate::DataEnum) {
- visit_data_enum_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_struct_mut(&mut self, i: &mut crate::DataStruct) {
- visit_data_struct_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_data_union_mut(&mut self, i: &mut crate::DataUnion) {
- visit_data_union_mut(self, i);
- }
- #[cfg(feature = "derive")]
- #[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
- fn visit_derive_input_mut(&mut self, i: &mut crate::DeriveInput) {
- visit_derive_input_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_mut(&mut self, i: &mut crate::Expr) {
- visit_expr_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_array_mut(&mut self, i: &mut crate::ExprArray) {
- visit_expr_array_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_assign_mut(&mut self, i: &mut crate::ExprAssign) {
- visit_expr_assign_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_async_mut(&mut self, i: &mut crate::ExprAsync) {
- visit_expr_async_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_await_mut(&mut self, i: &mut crate::ExprAwait) {
- visit_expr_await_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_binary_mut(&mut self, i: &mut crate::ExprBinary) {
- visit_expr_binary_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_block_mut(&mut self, i: &mut crate::ExprBlock) {
- visit_expr_block_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_break_mut(&mut self, i: &mut crate::ExprBreak) {
- visit_expr_break_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_call_mut(&mut self, i: &mut crate::ExprCall) {
- visit_expr_call_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_cast_mut(&mut self, i: &mut crate::ExprCast) {
- visit_expr_cast_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_closure_mut(&mut self, i: &mut crate::ExprClosure) {
- visit_expr_closure_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_const_mut(&mut self, i: &mut crate::ExprConst) {
- visit_expr_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_continue_mut(&mut self, i: &mut crate::ExprContinue) {
- visit_expr_continue_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_field_mut(&mut self, i: &mut crate::ExprField) {
- visit_expr_field_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_for_loop_mut(&mut self, i: &mut crate::ExprForLoop) {
- visit_expr_for_loop_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_group_mut(&mut self, i: &mut crate::ExprGroup) {
- visit_expr_group_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_if_mut(&mut self, i: &mut crate::ExprIf) {
- visit_expr_if_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_index_mut(&mut self, i: &mut crate::ExprIndex) {
- visit_expr_index_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_infer_mut(&mut self, i: &mut crate::ExprInfer) {
- visit_expr_infer_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_let_mut(&mut self, i: &mut crate::ExprLet) {
- visit_expr_let_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_lit_mut(&mut self, i: &mut crate::ExprLit) {
- visit_expr_lit_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_loop_mut(&mut self, i: &mut crate::ExprLoop) {
- visit_expr_loop_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_macro_mut(&mut self, i: &mut crate::ExprMacro) {
- visit_expr_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_match_mut(&mut self, i: &mut crate::ExprMatch) {
- visit_expr_match_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_method_call_mut(&mut self, i: &mut crate::ExprMethodCall) {
- visit_expr_method_call_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_paren_mut(&mut self, i: &mut crate::ExprParen) {
- visit_expr_paren_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_path_mut(&mut self, i: &mut crate::ExprPath) {
- visit_expr_path_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_range_mut(&mut self, i: &mut crate::ExprRange) {
- visit_expr_range_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_raw_addr_mut(&mut self, i: &mut crate::ExprRawAddr) {
- visit_expr_raw_addr_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_reference_mut(&mut self, i: &mut crate::ExprReference) {
- visit_expr_reference_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_repeat_mut(&mut self, i: &mut crate::ExprRepeat) {
- visit_expr_repeat_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_return_mut(&mut self, i: &mut crate::ExprReturn) {
- visit_expr_return_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_struct_mut(&mut self, i: &mut crate::ExprStruct) {
- visit_expr_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_mut(&mut self, i: &mut crate::ExprTry) {
- visit_expr_try_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_try_block_mut(&mut self, i: &mut crate::ExprTryBlock) {
- visit_expr_try_block_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_tuple_mut(&mut self, i: &mut crate::ExprTuple) {
- visit_expr_tuple_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_expr_unary_mut(&mut self, i: &mut crate::ExprUnary) {
- visit_expr_unary_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_unsafe_mut(&mut self, i: &mut crate::ExprUnsafe) {
- visit_expr_unsafe_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_while_mut(&mut self, i: &mut crate::ExprWhile) {
- visit_expr_while_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_expr_yield_mut(&mut self, i: &mut crate::ExprYield) {
- visit_expr_yield_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mut(&mut self, i: &mut crate::Field) {
- visit_field_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_mutability_mut(&mut self, i: &mut crate::FieldMutability) {
- visit_field_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_field_pat_mut(&mut self, i: &mut crate::FieldPat) {
- visit_field_pat_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_field_value_mut(&mut self, i: &mut crate::FieldValue) {
- visit_field_value_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_mut(&mut self, i: &mut crate::Fields) {
- visit_fields_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_named_mut(&mut self, i: &mut crate::FieldsNamed) {
- visit_fields_named_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_fields_unnamed_mut(&mut self, i: &mut crate::FieldsUnnamed) {
- visit_fields_unnamed_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_file_mut(&mut self, i: &mut crate::File) {
- visit_file_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_fn_arg_mut(&mut self, i: &mut crate::FnArg) {
- visit_fn_arg_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_mut(&mut self, i: &mut crate::ForeignItem) {
- visit_foreign_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_fn_mut(&mut self, i: &mut crate::ForeignItemFn) {
- visit_foreign_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_macro_mut(&mut self, i: &mut crate::ForeignItemMacro) {
- visit_foreign_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_static_mut(&mut self, i: &mut crate::ForeignItemStatic) {
- visit_foreign_item_static_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_foreign_item_type_mut(&mut self, i: &mut crate::ForeignItemType) {
- visit_foreign_item_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_argument_mut(&mut self, i: &mut crate::GenericArgument) {
- visit_generic_argument_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generic_param_mut(&mut self, i: &mut crate::GenericParam) {
- visit_generic_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_generics_mut(&mut self, i: &mut crate::Generics) {
- visit_generics_mut(self, i);
- }
- fn visit_ident_mut(&mut self, i: &mut proc_macro2::Ident) {
- visit_ident_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_mut(&mut self, i: &mut crate::ImplItem) {
- visit_impl_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_const_mut(&mut self, i: &mut crate::ImplItemConst) {
- visit_impl_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_fn_mut(&mut self, i: &mut crate::ImplItemFn) {
- visit_impl_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_macro_mut(&mut self, i: &mut crate::ImplItemMacro) {
- visit_impl_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_item_type_mut(&mut self, i: &mut crate::ImplItemType) {
- visit_impl_item_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_impl_restriction_mut(&mut self, i: &mut crate::ImplRestriction) {
- visit_impl_restriction_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_index_mut(&mut self, i: &mut crate::Index) {
- visit_index_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mut(&mut self, i: &mut crate::Item) {
- visit_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_const_mut(&mut self, i: &mut crate::ItemConst) {
- visit_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_enum_mut(&mut self, i: &mut crate::ItemEnum) {
- visit_item_enum_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_extern_crate_mut(&mut self, i: &mut crate::ItemExternCrate) {
- visit_item_extern_crate_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_fn_mut(&mut self, i: &mut crate::ItemFn) {
- visit_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_foreign_mod_mut(&mut self, i: &mut crate::ItemForeignMod) {
- visit_item_foreign_mod_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_impl_mut(&mut self, i: &mut crate::ItemImpl) {
- visit_item_impl_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_macro_mut(&mut self, i: &mut crate::ItemMacro) {
- visit_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_mod_mut(&mut self, i: &mut crate::ItemMod) {
- visit_item_mod_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_static_mut(&mut self, i: &mut crate::ItemStatic) {
- visit_item_static_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_struct_mut(&mut self, i: &mut crate::ItemStruct) {
- visit_item_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_mut(&mut self, i: &mut crate::ItemTrait) {
- visit_item_trait_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_trait_alias_mut(&mut self, i: &mut crate::ItemTraitAlias) {
- visit_item_trait_alias_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_type_mut(&mut self, i: &mut crate::ItemType) {
- visit_item_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_union_mut(&mut self, i: &mut crate::ItemUnion) {
- visit_item_union_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_item_use_mut(&mut self, i: &mut crate::ItemUse) {
- visit_item_use_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_label_mut(&mut self, i: &mut crate::Label) {
- visit_label_mut(self, i);
- }
- fn visit_lifetime_mut(&mut self, i: &mut crate::Lifetime) {
- visit_lifetime_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_lifetime_param_mut(&mut self, i: &mut crate::LifetimeParam) {
- visit_lifetime_param_mut(self, i);
- }
- fn visit_lit_mut(&mut self, i: &mut crate::Lit) {
- visit_lit_mut(self, i);
- }
- fn visit_lit_bool_mut(&mut self, i: &mut crate::LitBool) {
- visit_lit_bool_mut(self, i);
- }
- fn visit_lit_byte_mut(&mut self, i: &mut crate::LitByte) {
- visit_lit_byte_mut(self, i);
- }
- fn visit_lit_byte_str_mut(&mut self, i: &mut crate::LitByteStr) {
- visit_lit_byte_str_mut(self, i);
- }
- fn visit_lit_cstr_mut(&mut self, i: &mut crate::LitCStr) {
- visit_lit_cstr_mut(self, i);
- }
- fn visit_lit_char_mut(&mut self, i: &mut crate::LitChar) {
- visit_lit_char_mut(self, i);
- }
- fn visit_lit_float_mut(&mut self, i: &mut crate::LitFloat) {
- visit_lit_float_mut(self, i);
- }
- fn visit_lit_int_mut(&mut self, i: &mut crate::LitInt) {
- visit_lit_int_mut(self, i);
- }
- fn visit_lit_str_mut(&mut self, i: &mut crate::LitStr) {
- visit_lit_str_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_mut(&mut self, i: &mut crate::Local) {
- visit_local_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_local_init_mut(&mut self, i: &mut crate::LocalInit) {
- visit_local_init_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_mut(&mut self, i: &mut crate::Macro) {
- visit_macro_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_macro_delimiter_mut(&mut self, i: &mut crate::MacroDelimiter) {
- visit_macro_delimiter_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_member_mut(&mut self, i: &mut crate::Member) {
- visit_member_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_mut(&mut self, i: &mut crate::Meta) {
- visit_meta_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_list_mut(&mut self, i: &mut crate::MetaList) {
- visit_meta_list_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_meta_name_value_mut(&mut self, i: &mut crate::MetaNameValue) {
- visit_meta_name_value_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_parenthesized_generic_arguments_mut(
- &mut self,
- i: &mut crate::ParenthesizedGenericArguments,
- ) {
- visit_parenthesized_generic_arguments_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_mut(&mut self, i: &mut crate::Pat) {
- visit_pat_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_ident_mut(&mut self, i: &mut crate::PatIdent) {
- visit_pat_ident_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_or_mut(&mut self, i: &mut crate::PatOr) {
- visit_pat_or_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_paren_mut(&mut self, i: &mut crate::PatParen) {
- visit_pat_paren_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_reference_mut(&mut self, i: &mut crate::PatReference) {
- visit_pat_reference_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_rest_mut(&mut self, i: &mut crate::PatRest) {
- visit_pat_rest_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_slice_mut(&mut self, i: &mut crate::PatSlice) {
- visit_pat_slice_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_struct_mut(&mut self, i: &mut crate::PatStruct) {
- visit_pat_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_mut(&mut self, i: &mut crate::PatTuple) {
- visit_pat_tuple_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_tuple_struct_mut(&mut self, i: &mut crate::PatTupleStruct) {
- visit_pat_tuple_struct_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_type_mut(&mut self, i: &mut crate::PatType) {
- visit_pat_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pat_wild_mut(&mut self, i: &mut crate::PatWild) {
- visit_pat_wild_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_mut(&mut self, i: &mut crate::Path) {
- visit_path_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_arguments_mut(&mut self, i: &mut crate::PathArguments) {
- visit_path_arguments_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_path_segment_mut(&mut self, i: &mut crate::PathSegment) {
- visit_path_segment_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_pointer_mutability_mut(&mut self, i: &mut crate::PointerMutability) {
- visit_pointer_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_precise_capture_mut(&mut self, i: &mut crate::PreciseCapture) {
- visit_precise_capture_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_lifetime_mut(&mut self, i: &mut crate::PredicateLifetime) {
- visit_predicate_lifetime_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_predicate_type_mut(&mut self, i: &mut crate::PredicateType) {
- visit_predicate_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_qself_mut(&mut self, i: &mut crate::QSelf) {
- visit_qself_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_range_limits_mut(&mut self, i: &mut crate::RangeLimits) {
- visit_range_limits_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_receiver_mut(&mut self, i: &mut crate::Receiver) {
- visit_receiver_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_return_type_mut(&mut self, i: &mut crate::ReturnType) {
- visit_return_type_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_signature_mut(&mut self, i: &mut crate::Signature) {
- visit_signature_mut(self, i);
- }
- fn visit_span_mut(&mut self, i: &mut proc_macro2::Span) {}
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_static_mutability_mut(&mut self, i: &mut crate::StaticMutability) {
- visit_static_mutability_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_mut(&mut self, i: &mut crate::Stmt) {
- visit_stmt_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_stmt_macro_mut(&mut self, i: &mut crate::StmtMacro) {
- visit_stmt_macro_mut(self, i);
- }
- fn visit_token_stream_mut(&mut self, i: &mut proc_macro2::TokenStream) {}
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_mut(&mut self, i: &mut crate::TraitBound) {
- visit_trait_bound_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_trait_bound_modifier_mut(&mut self, i: &mut crate::TraitBoundModifier) {
- visit_trait_bound_modifier_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_mut(&mut self, i: &mut crate::TraitItem) {
- visit_trait_item_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_const_mut(&mut self, i: &mut crate::TraitItemConst) {
- visit_trait_item_const_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_fn_mut(&mut self, i: &mut crate::TraitItemFn) {
- visit_trait_item_fn_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_macro_mut(&mut self, i: &mut crate::TraitItemMacro) {
- visit_trait_item_macro_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_trait_item_type_mut(&mut self, i: &mut crate::TraitItemType) {
- visit_trait_item_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_mut(&mut self, i: &mut crate::Type) {
- visit_type_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_array_mut(&mut self, i: &mut crate::TypeArray) {
- visit_type_array_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_bare_fn_mut(&mut self, i: &mut crate::TypeBareFn) {
- visit_type_bare_fn_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_group_mut(&mut self, i: &mut crate::TypeGroup) {
- visit_type_group_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_impl_trait_mut(&mut self, i: &mut crate::TypeImplTrait) {
- visit_type_impl_trait_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_infer_mut(&mut self, i: &mut crate::TypeInfer) {
- visit_type_infer_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_macro_mut(&mut self, i: &mut crate::TypeMacro) {
- visit_type_macro_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_never_mut(&mut self, i: &mut crate::TypeNever) {
- visit_type_never_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_mut(&mut self, i: &mut crate::TypeParam) {
- visit_type_param_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_param_bound_mut(&mut self, i: &mut crate::TypeParamBound) {
- visit_type_param_bound_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_paren_mut(&mut self, i: &mut crate::TypeParen) {
- visit_type_paren_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_path_mut(&mut self, i: &mut crate::TypePath) {
- visit_type_path_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_ptr_mut(&mut self, i: &mut crate::TypePtr) {
- visit_type_ptr_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_reference_mut(&mut self, i: &mut crate::TypeReference) {
- visit_type_reference_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_slice_mut(&mut self, i: &mut crate::TypeSlice) {
- visit_type_slice_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_trait_object_mut(&mut self, i: &mut crate::TypeTraitObject) {
- visit_type_trait_object_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_type_tuple_mut(&mut self, i: &mut crate::TypeTuple) {
- visit_type_tuple_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_un_op_mut(&mut self, i: &mut crate::UnOp) {
- visit_un_op_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_glob_mut(&mut self, i: &mut crate::UseGlob) {
- visit_use_glob_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_group_mut(&mut self, i: &mut crate::UseGroup) {
- visit_use_group_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_name_mut(&mut self, i: &mut crate::UseName) {
- visit_use_name_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_path_mut(&mut self, i: &mut crate::UsePath) {
- visit_use_path_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_rename_mut(&mut self, i: &mut crate::UseRename) {
- visit_use_rename_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_use_tree_mut(&mut self, i: &mut crate::UseTree) {
- visit_use_tree_mut(self, i);
- }
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- fn visit_variadic_mut(&mut self, i: &mut crate::Variadic) {
- visit_variadic_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_variant_mut(&mut self, i: &mut crate::Variant) {
- visit_variant_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_vis_restricted_mut(&mut self, i: &mut crate::VisRestricted) {
- visit_vis_restricted_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_visibility_mut(&mut self, i: &mut crate::Visibility) {
- visit_visibility_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_clause_mut(&mut self, i: &mut crate::WhereClause) {
- visit_where_clause_mut(self, i);
- }
- #[cfg(any(feature = "derive", feature = "full"))]
- #[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
- fn visit_where_predicate_mut(&mut self, i: &mut crate::WherePredicate) {
- visit_where_predicate_mut(self, i);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_abi_mut<V>(v: &mut V, node: &mut crate::Abi)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.extern_token);
- if let Some(it) = &mut node.name {
- v.visit_lit_str_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_angle_bracketed_generic_arguments_mut<V>(
- v: &mut V,
- node: &mut crate::AngleBracketedGenericArguments,
-)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.colon2_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_generic_argument_mut(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_arm_mut<V>(v: &mut V, node: &mut crate::Arm)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_pat_mut(&mut node.pat);
- if let Some(it) = &mut node.guard {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
- skip!(node.fat_arrow_token);
- v.visit_expr_mut(&mut *node.body);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_assoc_const_mut<V>(v: &mut V, node: &mut crate::AssocConst)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_assoc_type_mut<V>(v: &mut V, node: &mut crate::AssocType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.eq_token);
- v.visit_type_mut(&mut node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_attr_style_mut<V>(v: &mut V, node: &mut crate::AttrStyle)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::AttrStyle::Outer => {}
- crate::AttrStyle::Inner(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_attribute_mut<V>(v: &mut V, node: &mut crate::Attribute)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.pound_token);
- v.visit_attr_style_mut(&mut node.style);
- skip!(node.bracket_token);
- v.visit_meta_mut(&mut node.meta);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_fn_arg_mut<V>(v: &mut V, node: &mut crate::BareFnArg)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.name {
- v.visit_ident_mut(&mut (it).0);
- skip!((it).1);
- }
- v.visit_type_mut(&mut node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bare_variadic_mut<V>(v: &mut V, node: &mut crate::BareVariadic)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.name {
- v.visit_ident_mut(&mut (it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bin_op_mut<V>(v: &mut V, node: &mut crate::BinOp)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::BinOp::Add(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Sub(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Mul(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Div(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Rem(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::And(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Or(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXor(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAnd(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shl(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Shr(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Eq(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Lt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Le(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ne(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Ge(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::Gt(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::AddAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::SubAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::MulAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::DivAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::RemAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitXorAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitAndAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::BitOrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShlAssign(_binding_0) => {
- skip!(_binding_0);
- }
- crate::BinOp::ShrAssign(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_block_mut<V>(v: &mut V, node: &mut crate::Block)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.brace_token);
- for it in &mut node.stmts {
- v.visit_stmt_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_bound_lifetimes_mut<V>(v: &mut V, node: &mut crate::BoundLifetimes)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.for_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.lifetimes) {
- let it = el.value_mut();
- v.visit_generic_param_mut(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_captured_param_mut<V>(v: &mut V, node: &mut crate::CapturedParam)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::CapturedParam::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::CapturedParam::Ident(_binding_0) => {
- v.visit_ident_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_const_param_mut<V>(v: &mut V, node: &mut crate::ConstParam)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.eq_token);
- if let Some(it) = &mut node.default {
- v.visit_expr_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_constraint_mut<V>(v: &mut V, node: &mut crate::Constraint)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.generics {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_mut<V>(v: &mut V, node: &mut crate::Data)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Data::Struct(_binding_0) => {
- v.visit_data_struct_mut(_binding_0);
- }
- crate::Data::Enum(_binding_0) => {
- v.visit_data_enum_mut(_binding_0);
- }
- crate::Data::Union(_binding_0) => {
- v.visit_data_union_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_enum_mut<V>(v: &mut V, node: &mut crate::DataEnum)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.enum_token);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.variants) {
- let it = el.value_mut();
- v.visit_variant_mut(it);
- }
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_struct_mut<V>(v: &mut V, node: &mut crate::DataStruct)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.struct_token);
- v.visit_fields_mut(&mut node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_data_union_mut<V>(v: &mut V, node: &mut crate::DataUnion)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.union_token);
- v.visit_fields_named_mut(&mut node.fields);
-}
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub fn visit_derive_input_mut<V>(v: &mut V, node: &mut crate::DeriveInput)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_data_mut(&mut node.data);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_mut<V>(v: &mut V, node: &mut crate::Expr)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Expr::Array(_binding_0) => {
- full!(v.visit_expr_array_mut(_binding_0));
- }
- crate::Expr::Assign(_binding_0) => {
- full!(v.visit_expr_assign_mut(_binding_0));
- }
- crate::Expr::Async(_binding_0) => {
- full!(v.visit_expr_async_mut(_binding_0));
- }
- crate::Expr::Await(_binding_0) => {
- full!(v.visit_expr_await_mut(_binding_0));
- }
- crate::Expr::Binary(_binding_0) => {
- v.visit_expr_binary_mut(_binding_0);
- }
- crate::Expr::Block(_binding_0) => {
- full!(v.visit_expr_block_mut(_binding_0));
- }
- crate::Expr::Break(_binding_0) => {
- full!(v.visit_expr_break_mut(_binding_0));
- }
- crate::Expr::Call(_binding_0) => {
- v.visit_expr_call_mut(_binding_0);
- }
- crate::Expr::Cast(_binding_0) => {
- v.visit_expr_cast_mut(_binding_0);
- }
- crate::Expr::Closure(_binding_0) => {
- full!(v.visit_expr_closure_mut(_binding_0));
- }
- crate::Expr::Const(_binding_0) => {
- full!(v.visit_expr_const_mut(_binding_0));
- }
- crate::Expr::Continue(_binding_0) => {
- full!(v.visit_expr_continue_mut(_binding_0));
- }
- crate::Expr::Field(_binding_0) => {
- v.visit_expr_field_mut(_binding_0);
- }
- crate::Expr::ForLoop(_binding_0) => {
- full!(v.visit_expr_for_loop_mut(_binding_0));
- }
- crate::Expr::Group(_binding_0) => {
- v.visit_expr_group_mut(_binding_0);
- }
- crate::Expr::If(_binding_0) => {
- full!(v.visit_expr_if_mut(_binding_0));
- }
- crate::Expr::Index(_binding_0) => {
- v.visit_expr_index_mut(_binding_0);
- }
- crate::Expr::Infer(_binding_0) => {
- full!(v.visit_expr_infer_mut(_binding_0));
- }
- crate::Expr::Let(_binding_0) => {
- full!(v.visit_expr_let_mut(_binding_0));
- }
- crate::Expr::Lit(_binding_0) => {
- v.visit_expr_lit_mut(_binding_0);
- }
- crate::Expr::Loop(_binding_0) => {
- full!(v.visit_expr_loop_mut(_binding_0));
- }
- crate::Expr::Macro(_binding_0) => {
- v.visit_expr_macro_mut(_binding_0);
- }
- crate::Expr::Match(_binding_0) => {
- full!(v.visit_expr_match_mut(_binding_0));
- }
- crate::Expr::MethodCall(_binding_0) => {
- v.visit_expr_method_call_mut(_binding_0);
- }
- crate::Expr::Paren(_binding_0) => {
- v.visit_expr_paren_mut(_binding_0);
- }
- crate::Expr::Path(_binding_0) => {
- v.visit_expr_path_mut(_binding_0);
- }
- crate::Expr::Range(_binding_0) => {
- full!(v.visit_expr_range_mut(_binding_0));
- }
- crate::Expr::RawAddr(_binding_0) => {
- full!(v.visit_expr_raw_addr_mut(_binding_0));
- }
- crate::Expr::Reference(_binding_0) => {
- v.visit_expr_reference_mut(_binding_0);
- }
- crate::Expr::Repeat(_binding_0) => {
- full!(v.visit_expr_repeat_mut(_binding_0));
- }
- crate::Expr::Return(_binding_0) => {
- full!(v.visit_expr_return_mut(_binding_0));
- }
- crate::Expr::Struct(_binding_0) => {
- v.visit_expr_struct_mut(_binding_0);
- }
- crate::Expr::Try(_binding_0) => {
- full!(v.visit_expr_try_mut(_binding_0));
- }
- crate::Expr::TryBlock(_binding_0) => {
- full!(v.visit_expr_try_block_mut(_binding_0));
- }
- crate::Expr::Tuple(_binding_0) => {
- v.visit_expr_tuple_mut(_binding_0);
- }
- crate::Expr::Unary(_binding_0) => {
- v.visit_expr_unary_mut(_binding_0);
- }
- crate::Expr::Unsafe(_binding_0) => {
- full!(v.visit_expr_unsafe_mut(_binding_0));
- }
- crate::Expr::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- crate::Expr::While(_binding_0) => {
- full!(v.visit_expr_while_mut(_binding_0));
- }
- crate::Expr::Yield(_binding_0) => {
- full!(v.visit_expr_yield_mut(_binding_0));
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_array_mut<V>(v: &mut V, node: &mut crate::ExprArray)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_assign_mut<V>(v: &mut V, node: &mut crate::ExprAssign)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.left);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_async_mut<V>(v: &mut V, node: &mut crate::ExprAsync)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.async_token);
- skip!(node.capture);
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_await_mut<V>(v: &mut V, node: &mut crate::ExprAwait)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.base);
- skip!(node.dot_token);
- skip!(node.await_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_binary_mut<V>(v: &mut V, node: &mut crate::ExprBinary)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.left);
- v.visit_bin_op_mut(&mut node.op);
- v.visit_expr_mut(&mut *node.right);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_block_mut<V>(v: &mut V, node: &mut crate::ExprBlock)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_break_mut<V>(v: &mut V, node: &mut crate::ExprBreak)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.break_token);
- if let Some(it) = &mut node.label {
- v.visit_lifetime_mut(it);
- }
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_call_mut<V>(v: &mut V, node: &mut crate::ExprCall)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.func);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_cast_mut<V>(v: &mut V, node: &mut crate::ExprCast)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.as_token);
- v.visit_type_mut(&mut *node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_closure_mut<V>(v: &mut V, node: &mut crate::ExprClosure)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- skip!(node.constness);
- skip!(node.movability);
- skip!(node.asyncness);
- skip!(node.capture);
- skip!(node.or1_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
- skip!(node.or2_token);
- v.visit_return_type_mut(&mut node.output);
- v.visit_expr_mut(&mut *node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_const_mut<V>(v: &mut V, node: &mut crate::ExprConst)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_continue_mut<V>(v: &mut V, node: &mut crate::ExprContinue)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.continue_token);
- if let Some(it) = &mut node.label {
- v.visit_lifetime_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_field_mut<V>(v: &mut V, node: &mut crate::ExprField)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.base);
- skip!(node.dot_token);
- v.visit_member_mut(&mut node.member);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_for_loop_mut<V>(v: &mut V, node: &mut crate::ExprForLoop)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.for_token);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.in_token);
- v.visit_expr_mut(&mut *node.expr);
- v.visit_block_mut(&mut node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_group_mut<V>(v: &mut V, node: &mut crate::ExprGroup)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.group_token);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_if_mut<V>(v: &mut V, node: &mut crate::ExprIf)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.if_token);
- v.visit_expr_mut(&mut *node.cond);
- v.visit_block_mut(&mut node.then_branch);
- if let Some(it) = &mut node.else_branch {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_index_mut<V>(v: &mut V, node: &mut crate::ExprIndex)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.bracket_token);
- v.visit_expr_mut(&mut *node.index);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_infer_mut<V>(v: &mut V, node: &mut crate::ExprInfer)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.underscore_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_let_mut<V>(v: &mut V, node: &mut crate::ExprLet)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.let_token);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_lit_mut<V>(v: &mut V, node: &mut crate::ExprLit)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_lit_mut(&mut node.lit);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_loop_mut<V>(v: &mut V, node: &mut crate::ExprLoop)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.loop_token);
- v.visit_block_mut(&mut node.body);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_macro_mut<V>(v: &mut V, node: &mut crate::ExprMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_match_mut<V>(v: &mut V, node: &mut crate::ExprMatch)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.match_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.brace_token);
- for it in &mut node.arms {
- v.visit_arm_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_method_call_mut<V>(v: &mut V, node: &mut crate::ExprMethodCall)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.receiver);
- skip!(node.dot_token);
- v.visit_ident_mut(&mut node.method);
- if let Some(it) = &mut node.turbofish {
- v.visit_angle_bracketed_generic_arguments_mut(it);
- }
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.args) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_paren_mut<V>(v: &mut V, node: &mut crate::ExprParen)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_path_mut<V>(v: &mut V, node: &mut crate::ExprPath)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_range_mut<V>(v: &mut V, node: &mut crate::ExprRange)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.start {
- v.visit_expr_mut(&mut **it);
- }
- v.visit_range_limits_mut(&mut node.limits);
- if let Some(it) = &mut node.end {
- v.visit_expr_mut(&mut **it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_raw_addr_mut<V>(v: &mut V, node: &mut crate::ExprRawAddr)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.raw);
- v.visit_pointer_mutability_mut(&mut node.mutability);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_reference_mut<V>(v: &mut V, node: &mut crate::ExprReference)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_repeat_mut<V>(v: &mut V, node: &mut crate::ExprRepeat)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
- v.visit_expr_mut(&mut *node.len);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_return_mut<V>(v: &mut V, node: &mut crate::ExprReturn)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.return_token);
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_struct_mut<V>(v: &mut V, node: &mut crate::ExprStruct)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.fields) {
- let it = el.value_mut();
- v.visit_field_value_mut(it);
- }
- skip!(node.dot2_token);
- if let Some(it) = &mut node.rest {
- v.visit_expr_mut(&mut **it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try_mut<V>(v: &mut V, node: &mut crate::ExprTry)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.question_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_try_block_mut<V>(v: &mut V, node: &mut crate::ExprTryBlock)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.try_token);
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_tuple_mut<V>(v: &mut V, node: &mut crate::ExprTuple)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_expr_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_expr_unary_mut<V>(v: &mut V, node: &mut crate::ExprUnary)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_un_op_mut(&mut node.op);
- v.visit_expr_mut(&mut *node.expr);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_unsafe_mut<V>(v: &mut V, node: &mut crate::ExprUnsafe)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.unsafe_token);
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_while_mut<V>(v: &mut V, node: &mut crate::ExprWhile)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.label {
- v.visit_label_mut(it);
- }
- skip!(node.while_token);
- v.visit_expr_mut(&mut *node.cond);
- v.visit_block_mut(&mut node.body);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_expr_yield_mut<V>(v: &mut V, node: &mut crate::ExprYield)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.yield_token);
- if let Some(it) = &mut node.expr {
- v.visit_expr_mut(&mut **it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_mut<V>(v: &mut V, node: &mut crate::Field)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_field_mutability_mut(&mut node.mutability);
- if let Some(it) = &mut node.ident {
- v.visit_ident_mut(it);
- }
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_mutability_mut<V>(v: &mut V, node: &mut crate::FieldMutability)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::FieldMutability::None => {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_field_pat_mut<V>(v: &mut V, node: &mut crate::FieldPat)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_member_mut(&mut node.member);
- skip!(node.colon_token);
- v.visit_pat_mut(&mut *node.pat);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_field_value_mut<V>(v: &mut V, node: &mut crate::FieldValue)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_member_mut(&mut node.member);
- skip!(node.colon_token);
- v.visit_expr_mut(&mut node.expr);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_mut<V>(v: &mut V, node: &mut crate::Fields)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Fields::Named(_binding_0) => {
- v.visit_fields_named_mut(_binding_0);
- }
- crate::Fields::Unnamed(_binding_0) => {
- v.visit_fields_unnamed_mut(_binding_0);
- }
- crate::Fields::Unit => {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_named_mut<V>(v: &mut V, node: &mut crate::FieldsNamed)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.named) {
- let it = el.value_mut();
- v.visit_field_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_fields_unnamed_mut<V>(v: &mut V, node: &mut crate::FieldsUnnamed)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.unnamed) {
- let it = el.value_mut();
- v.visit_field_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_file_mut<V>(v: &mut V, node: &mut crate::File)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.shebang);
- v.visit_attributes_mut(&mut node.attrs);
- for it in &mut node.items {
- v.visit_item_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_fn_arg_mut<V>(v: &mut V, node: &mut crate::FnArg)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::FnArg::Receiver(_binding_0) => {
- v.visit_receiver_mut(_binding_0);
- }
- crate::FnArg::Typed(_binding_0) => {
- v.visit_pat_type_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_mut<V>(v: &mut V, node: &mut crate::ForeignItem)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::ForeignItem::Fn(_binding_0) => {
- v.visit_foreign_item_fn_mut(_binding_0);
- }
- crate::ForeignItem::Static(_binding_0) => {
- v.visit_foreign_item_static_mut(_binding_0);
- }
- crate::ForeignItem::Type(_binding_0) => {
- v.visit_foreign_item_type_mut(_binding_0);
- }
- crate::ForeignItem::Macro(_binding_0) => {
- v.visit_foreign_item_macro_mut(_binding_0);
- }
- crate::ForeignItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_fn_mut<V>(v: &mut V, node: &mut crate::ForeignItemFn)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_signature_mut(&mut node.sig);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_macro_mut<V>(v: &mut V, node: &mut crate::ForeignItemMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_static_mut<V>(v: &mut V, node: &mut crate::ForeignItemStatic)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.static_token);
- v.visit_static_mutability_mut(&mut node.mutability);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_foreign_item_type_mut<V>(v: &mut V, node: &mut crate::ForeignItemType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generic_argument_mut<V>(v: &mut V, node: &mut crate::GenericArgument)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::GenericArgument::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::GenericArgument::Type(_binding_0) => {
- v.visit_type_mut(_binding_0);
- }
- crate::GenericArgument::Const(_binding_0) => {
- v.visit_expr_mut(_binding_0);
- }
- crate::GenericArgument::AssocType(_binding_0) => {
- v.visit_assoc_type_mut(_binding_0);
- }
- crate::GenericArgument::AssocConst(_binding_0) => {
- v.visit_assoc_const_mut(_binding_0);
- }
- crate::GenericArgument::Constraint(_binding_0) => {
- v.visit_constraint_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generic_param_mut<V>(v: &mut V, node: &mut crate::GenericParam)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::GenericParam::Lifetime(_binding_0) => {
- v.visit_lifetime_param_mut(_binding_0);
- }
- crate::GenericParam::Type(_binding_0) => {
- v.visit_type_param_mut(_binding_0);
- }
- crate::GenericParam::Const(_binding_0) => {
- v.visit_const_param_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_generics_mut<V>(v: &mut V, node: &mut crate::Generics)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.params) {
- let it = el.value_mut();
- v.visit_generic_param_mut(it);
- }
- skip!(node.gt_token);
- if let Some(it) = &mut node.where_clause {
- v.visit_where_clause_mut(it);
- }
-}
-pub fn visit_ident_mut<V>(v: &mut V, node: &mut proc_macro2::Ident)
-where
- V: VisitMut + ?Sized,
-{
- let mut span = node.span();
- v.visit_span_mut(&mut span);
- node.set_span(span);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_mut<V>(v: &mut V, node: &mut crate::ImplItem)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::ImplItem::Const(_binding_0) => {
- v.visit_impl_item_const_mut(_binding_0);
- }
- crate::ImplItem::Fn(_binding_0) => {
- v.visit_impl_item_fn_mut(_binding_0);
- }
- crate::ImplItem::Type(_binding_0) => {
- v.visit_impl_item_type_mut(_binding_0);
- }
- crate::ImplItem::Macro(_binding_0) => {
- v.visit_impl_item_macro_mut(_binding_0);
- }
- crate::ImplItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_const_mut<V>(v: &mut V, node: &mut crate::ImplItemConst)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_fn_mut<V>(v: &mut V, node: &mut crate::ImplItemFn)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- v.visit_signature_mut(&mut node.sig);
- v.visit_block_mut(&mut node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_macro_mut<V>(v: &mut V, node: &mut crate::ImplItemMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_item_type_mut<V>(v: &mut V, node: &mut crate::ImplItemType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.defaultness);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- v.visit_type_mut(&mut node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_impl_restriction_mut<V>(v: &mut V, node: &mut crate::ImplRestriction)
-where
- V: VisitMut + ?Sized,
-{
- match *node {}
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_index_mut<V>(v: &mut V, node: &mut crate::Index)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.index);
- v.visit_span_mut(&mut node.span);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_mut<V>(v: &mut V, node: &mut crate::Item)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Item::Const(_binding_0) => {
- v.visit_item_const_mut(_binding_0);
- }
- crate::Item::Enum(_binding_0) => {
- v.visit_item_enum_mut(_binding_0);
- }
- crate::Item::ExternCrate(_binding_0) => {
- v.visit_item_extern_crate_mut(_binding_0);
- }
- crate::Item::Fn(_binding_0) => {
- v.visit_item_fn_mut(_binding_0);
- }
- crate::Item::ForeignMod(_binding_0) => {
- v.visit_item_foreign_mod_mut(_binding_0);
- }
- crate::Item::Impl(_binding_0) => {
- v.visit_item_impl_mut(_binding_0);
- }
- crate::Item::Macro(_binding_0) => {
- v.visit_item_macro_mut(_binding_0);
- }
- crate::Item::Mod(_binding_0) => {
- v.visit_item_mod_mut(_binding_0);
- }
- crate::Item::Static(_binding_0) => {
- v.visit_item_static_mut(_binding_0);
- }
- crate::Item::Struct(_binding_0) => {
- v.visit_item_struct_mut(_binding_0);
- }
- crate::Item::Trait(_binding_0) => {
- v.visit_item_trait_mut(_binding_0);
- }
- crate::Item::TraitAlias(_binding_0) => {
- v.visit_item_trait_alias_mut(_binding_0);
- }
- crate::Item::Type(_binding_0) => {
- v.visit_item_type_mut(_binding_0);
- }
- crate::Item::Union(_binding_0) => {
- v.visit_item_union_mut(_binding_0);
- }
- crate::Item::Use(_binding_0) => {
- v.visit_item_use_mut(_binding_0);
- }
- crate::Item::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_const_mut<V>(v: &mut V, node: &mut crate::ItemConst)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_enum_mut<V>(v: &mut V, node: &mut crate::ItemEnum)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.enum_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.variants) {
- let it = el.value_mut();
- v.visit_variant_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_extern_crate_mut<V>(v: &mut V, node: &mut crate::ItemExternCrate)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.extern_token);
- skip!(node.crate_token);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.rename {
- skip!((it).0);
- v.visit_ident_mut(&mut (it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_fn_mut<V>(v: &mut V, node: &mut crate::ItemFn)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- v.visit_signature_mut(&mut node.sig);
- v.visit_block_mut(&mut *node.block);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_foreign_mod_mut<V>(v: &mut V, node: &mut crate::ItemForeignMod)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.unsafety);
- v.visit_abi_mut(&mut node.abi);
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_foreign_item_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_impl_mut<V>(v: &mut V, node: &mut crate::ItemImpl)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.defaultness);
- skip!(node.unsafety);
- skip!(node.impl_token);
- v.visit_generics_mut(&mut node.generics);
- if let Some(it) = &mut node.trait_ {
- skip!((it).0);
- v.visit_path_mut(&mut (it).1);
- skip!((it).2);
- }
- v.visit_type_mut(&mut *node.self_ty);
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_impl_item_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_macro_mut<V>(v: &mut V, node: &mut crate::ItemMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.ident {
- v.visit_ident_mut(it);
- }
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_mod_mut<V>(v: &mut V, node: &mut crate::ItemMod)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.unsafety);
- skip!(node.mod_token);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.content {
- skip!((it).0);
- for it in &mut (it).1 {
- v.visit_item_mut(it);
- }
- }
- skip!(node.semi);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_static_mut<V>(v: &mut V, node: &mut crate::ItemStatic)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.static_token);
- v.visit_static_mutability_mut(&mut node.mutability);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_struct_mut<V>(v: &mut V, node: &mut crate::ItemStruct)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.struct_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_fields_mut(&mut node.fields);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait_mut<V>(v: &mut V, node: &mut crate::ItemTrait)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.unsafety);
- skip!(node.auto_token);
- if let Some(it) = &mut node.restriction {
- v.visit_impl_restriction_mut(it);
- }
- skip!(node.trait_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.supertraits) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.brace_token);
- for it in &mut node.items {
- v.visit_trait_item_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_trait_alias_mut<V>(v: &mut V, node: &mut crate::ItemTraitAlias)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.trait_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_type_mut<V>(v: &mut V, node: &mut crate::ItemType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.eq_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_union_mut<V>(v: &mut V, node: &mut crate::ItemUnion)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.union_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- v.visit_fields_named_mut(&mut node.fields);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_item_use_mut<V>(v: &mut V, node: &mut crate::ItemUse)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_visibility_mut(&mut node.vis);
- skip!(node.use_token);
- skip!(node.leading_colon);
- v.visit_use_tree_mut(&mut node.tree);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_label_mut<V>(v: &mut V, node: &mut crate::Label)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_lifetime_mut(&mut node.name);
- skip!(node.colon_token);
-}
-pub fn visit_lifetime_mut<V>(v: &mut V, node: &mut crate::Lifetime)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_span_mut(&mut node.apostrophe);
- v.visit_ident_mut(&mut node.ident);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_lifetime_param_mut<V>(v: &mut V, node: &mut crate::LifetimeParam)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_lifetime_mut(&mut node.lifetime);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_lifetime_mut(it);
- }
-}
-pub fn visit_lit_mut<V>(v: &mut V, node: &mut crate::Lit)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Lit::Str(_binding_0) => {
- v.visit_lit_str_mut(_binding_0);
- }
- crate::Lit::ByteStr(_binding_0) => {
- v.visit_lit_byte_str_mut(_binding_0);
- }
- crate::Lit::CStr(_binding_0) => {
- v.visit_lit_cstr_mut(_binding_0);
- }
- crate::Lit::Byte(_binding_0) => {
- v.visit_lit_byte_mut(_binding_0);
- }
- crate::Lit::Char(_binding_0) => {
- v.visit_lit_char_mut(_binding_0);
- }
- crate::Lit::Int(_binding_0) => {
- v.visit_lit_int_mut(_binding_0);
- }
- crate::Lit::Float(_binding_0) => {
- v.visit_lit_float_mut(_binding_0);
- }
- crate::Lit::Bool(_binding_0) => {
- v.visit_lit_bool_mut(_binding_0);
- }
- crate::Lit::Verbatim(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-pub fn visit_lit_bool_mut<V>(v: &mut V, node: &mut crate::LitBool)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.value);
- v.visit_span_mut(&mut node.span);
-}
-pub fn visit_lit_byte_mut<V>(v: &mut V, node: &mut crate::LitByte)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_byte_str_mut<V>(v: &mut V, node: &mut crate::LitByteStr)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_cstr_mut<V>(v: &mut V, node: &mut crate::LitCStr)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_char_mut<V>(v: &mut V, node: &mut crate::LitChar)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_float_mut<V>(v: &mut V, node: &mut crate::LitFloat)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_int_mut<V>(v: &mut V, node: &mut crate::LitInt)
-where
- V: VisitMut + ?Sized,
-{}
-pub fn visit_lit_str_mut<V>(v: &mut V, node: &mut crate::LitStr)
-where
- V: VisitMut + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local_mut<V>(v: &mut V, node: &mut crate::Local)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.let_token);
- v.visit_pat_mut(&mut node.pat);
- if let Some(it) = &mut node.init {
- v.visit_local_init_mut(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_local_init_mut<V>(v: &mut V, node: &mut crate::LocalInit)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.eq_token);
- v.visit_expr_mut(&mut *node.expr);
- if let Some(it) = &mut node.diverge {
- skip!((it).0);
- v.visit_expr_mut(&mut *(it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro_mut<V>(v: &mut V, node: &mut crate::Macro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_path_mut(&mut node.path);
- skip!(node.bang_token);
- v.visit_macro_delimiter_mut(&mut node.delimiter);
- v.visit_token_stream_mut(&mut node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_macro_delimiter_mut<V>(v: &mut V, node: &mut crate::MacroDelimiter)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::MacroDelimiter::Paren(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Brace(_binding_0) => {
- skip!(_binding_0);
- }
- crate::MacroDelimiter::Bracket(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_member_mut<V>(v: &mut V, node: &mut crate::Member)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Member::Named(_binding_0) => {
- v.visit_ident_mut(_binding_0);
- }
- crate::Member::Unnamed(_binding_0) => {
- v.visit_index_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_mut<V>(v: &mut V, node: &mut crate::Meta)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Meta::Path(_binding_0) => {
- v.visit_path_mut(_binding_0);
- }
- crate::Meta::List(_binding_0) => {
- v.visit_meta_list_mut(_binding_0);
- }
- crate::Meta::NameValue(_binding_0) => {
- v.visit_meta_name_value_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_list_mut<V>(v: &mut V, node: &mut crate::MetaList)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_path_mut(&mut node.path);
- v.visit_macro_delimiter_mut(&mut node.delimiter);
- v.visit_token_stream_mut(&mut node.tokens);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_meta_name_value_mut<V>(v: &mut V, node: &mut crate::MetaNameValue)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_path_mut(&mut node.path);
- skip!(node.eq_token);
- v.visit_expr_mut(&mut node.value);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_parenthesized_generic_arguments_mut<V>(
- v: &mut V,
- node: &mut crate::ParenthesizedGenericArguments,
-)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_type_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_mut<V>(v: &mut V, node: &mut crate::Pat)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Pat::Const(_binding_0) => {
- v.visit_expr_const_mut(_binding_0);
- }
- crate::Pat::Ident(_binding_0) => {
- v.visit_pat_ident_mut(_binding_0);
- }
- crate::Pat::Lit(_binding_0) => {
- v.visit_expr_lit_mut(_binding_0);
- }
- crate::Pat::Macro(_binding_0) => {
- v.visit_expr_macro_mut(_binding_0);
- }
- crate::Pat::Or(_binding_0) => {
- v.visit_pat_or_mut(_binding_0);
- }
- crate::Pat::Paren(_binding_0) => {
- v.visit_pat_paren_mut(_binding_0);
- }
- crate::Pat::Path(_binding_0) => {
- v.visit_expr_path_mut(_binding_0);
- }
- crate::Pat::Range(_binding_0) => {
- v.visit_expr_range_mut(_binding_0);
- }
- crate::Pat::Reference(_binding_0) => {
- v.visit_pat_reference_mut(_binding_0);
- }
- crate::Pat::Rest(_binding_0) => {
- v.visit_pat_rest_mut(_binding_0);
- }
- crate::Pat::Slice(_binding_0) => {
- v.visit_pat_slice_mut(_binding_0);
- }
- crate::Pat::Struct(_binding_0) => {
- v.visit_pat_struct_mut(_binding_0);
- }
- crate::Pat::Tuple(_binding_0) => {
- v.visit_pat_tuple_mut(_binding_0);
- }
- crate::Pat::TupleStruct(_binding_0) => {
- v.visit_pat_tuple_struct_mut(_binding_0);
- }
- crate::Pat::Type(_binding_0) => {
- v.visit_pat_type_mut(_binding_0);
- }
- crate::Pat::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- crate::Pat::Wild(_binding_0) => {
- v.visit_pat_wild_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_ident_mut<V>(v: &mut V, node: &mut crate::PatIdent)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.by_ref);
- skip!(node.mutability);
- v.visit_ident_mut(&mut node.ident);
- if let Some(it) = &mut node.subpat {
- skip!((it).0);
- v.visit_pat_mut(&mut *(it).1);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_or_mut<V>(v: &mut V, node: &mut crate::PatOr)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.leading_vert);
- for mut el in Punctuated::pairs_mut(&mut node.cases) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_paren_mut<V>(v: &mut V, node: &mut crate::PatParen)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- v.visit_pat_mut(&mut *node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_reference_mut<V>(v: &mut V, node: &mut crate::PatReference)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.and_token);
- skip!(node.mutability);
- v.visit_pat_mut(&mut *node.pat);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_rest_mut<V>(v: &mut V, node: &mut crate::PatRest)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.dot2_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_slice_mut<V>(v: &mut V, node: &mut crate::PatSlice)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.bracket_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_struct_mut<V>(v: &mut V, node: &mut crate::PatStruct)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.fields) {
- let it = el.value_mut();
- v.visit_field_pat_mut(it);
- }
- if let Some(it) = &mut node.rest {
- v.visit_pat_rest_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple_mut<V>(v: &mut V, node: &mut crate::PatTuple)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_tuple_struct_mut<V>(v: &mut V, node: &mut crate::PatTupleStruct)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_pat_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_type_mut<V>(v: &mut V, node: &mut crate::PatType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_pat_mut(&mut *node.pat);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pat_wild_mut<V>(v: &mut V, node: &mut crate::PatWild)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.underscore_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_mut<V>(v: &mut V, node: &mut crate::Path)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.leading_colon);
- for mut el in Punctuated::pairs_mut(&mut node.segments) {
- let it = el.value_mut();
- v.visit_path_segment_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_arguments_mut<V>(v: &mut V, node: &mut crate::PathArguments)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::PathArguments::None => {}
- crate::PathArguments::AngleBracketed(_binding_0) => {
- v.visit_angle_bracketed_generic_arguments_mut(_binding_0);
- }
- crate::PathArguments::Parenthesized(_binding_0) => {
- v.visit_parenthesized_generic_arguments_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_path_segment_mut<V>(v: &mut V, node: &mut crate::PathSegment)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- v.visit_path_arguments_mut(&mut node.arguments);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_pointer_mutability_mut<V>(v: &mut V, node: &mut crate::PointerMutability)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::PointerMutability::Const(_binding_0) => {
- skip!(_binding_0);
- }
- crate::PointerMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_precise_capture_mut<V>(v: &mut V, node: &mut crate::PreciseCapture)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.use_token);
- skip!(node.lt_token);
- for mut el in Punctuated::pairs_mut(&mut node.params) {
- let it = el.value_mut();
- v.visit_captured_param_mut(it);
- }
- skip!(node.gt_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_predicate_lifetime_mut<V>(v: &mut V, node: &mut crate::PredicateLifetime)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_lifetime_mut(&mut node.lifetime);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_lifetime_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_predicate_type_mut<V>(v: &mut V, node: &mut crate::PredicateType)
-where
- V: VisitMut + ?Sized,
-{
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- v.visit_type_mut(&mut node.bounded_ty);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_qself_mut<V>(v: &mut V, node: &mut crate::QSelf)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.lt_token);
- v.visit_type_mut(&mut *node.ty);
- skip!(node.position);
- skip!(node.as_token);
- skip!(node.gt_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_range_limits_mut<V>(v: &mut V, node: &mut crate::RangeLimits)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::RangeLimits::HalfOpen(_binding_0) => {
- skip!(_binding_0);
- }
- crate::RangeLimits::Closed(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_receiver_mut<V>(v: &mut V, node: &mut crate::Receiver)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.reference {
- skip!((it).0);
- if let Some(it) = &mut (it).1 {
- v.visit_lifetime_mut(it);
- }
- }
- skip!(node.mutability);
- skip!(node.self_token);
- skip!(node.colon_token);
- v.visit_type_mut(&mut *node.ty);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_return_type_mut<V>(v: &mut V, node: &mut crate::ReturnType)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::ReturnType::Default => {}
- crate::ReturnType::Type(_binding_0, _binding_1) => {
- skip!(_binding_0);
- v.visit_type_mut(&mut **_binding_1);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_signature_mut<V>(v: &mut V, node: &mut crate::Signature)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.constness);
- skip!(node.asyncness);
- skip!(node.unsafety);
- if let Some(it) = &mut node.abi {
- v.visit_abi_mut(it);
- }
- skip!(node.fn_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_fn_arg_mut(it);
- }
- if let Some(it) = &mut node.variadic {
- v.visit_variadic_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
-}
-pub fn visit_span_mut<V>(v: &mut V, node: &mut proc_macro2::Span)
-where
- V: VisitMut + ?Sized,
-{}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_static_mutability_mut<V>(v: &mut V, node: &mut crate::StaticMutability)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::StaticMutability::Mut(_binding_0) => {
- skip!(_binding_0);
- }
- crate::StaticMutability::None => {}
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_stmt_mut<V>(v: &mut V, node: &mut crate::Stmt)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Stmt::Local(_binding_0) => {
- v.visit_local_mut(_binding_0);
- }
- crate::Stmt::Item(_binding_0) => {
- v.visit_item_mut(_binding_0);
- }
- crate::Stmt::Expr(_binding_0, _binding_1) => {
- v.visit_expr_mut(_binding_0);
- skip!(_binding_1);
- }
- crate::Stmt::Macro(_binding_0) => {
- v.visit_stmt_macro_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_stmt_macro_mut<V>(v: &mut V, node: &mut crate::StmtMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_trait_bound_mut<V>(v: &mut V, node: &mut crate::TraitBound)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_trait_bound_modifier_mut(&mut node.modifier);
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- v.visit_path_mut(&mut node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_trait_bound_modifier_mut<V>(v: &mut V, node: &mut crate::TraitBoundModifier)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::TraitBoundModifier::None => {}
- crate::TraitBoundModifier::Maybe(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_mut<V>(v: &mut V, node: &mut crate::TraitItem)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::TraitItem::Const(_binding_0) => {
- v.visit_trait_item_const_mut(_binding_0);
- }
- crate::TraitItem::Fn(_binding_0) => {
- v.visit_trait_item_fn_mut(_binding_0);
- }
- crate::TraitItem::Type(_binding_0) => {
- v.visit_trait_item_type_mut(_binding_0);
- }
- crate::TraitItem::Macro(_binding_0) => {
- v.visit_trait_item_macro_mut(_binding_0);
- }
- crate::TraitItem::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_const_mut<V>(v: &mut V, node: &mut crate::TraitItemConst)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.const_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- v.visit_type_mut(&mut node.ty);
- if let Some(it) = &mut node.default {
- skip!((it).0);
- v.visit_expr_mut(&mut (it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_fn_mut<V>(v: &mut V, node: &mut crate::TraitItemFn)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_signature_mut(&mut node.sig);
- if let Some(it) = &mut node.default {
- v.visit_block_mut(it);
- }
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_macro_mut<V>(v: &mut V, node: &mut crate::TraitItemMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_macro_mut(&mut node.mac);
- skip!(node.semi_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_trait_item_type_mut<V>(v: &mut V, node: &mut crate::TraitItemType)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- skip!(node.type_token);
- v.visit_ident_mut(&mut node.ident);
- v.visit_generics_mut(&mut node.generics);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- if let Some(it) = &mut node.default {
- skip!((it).0);
- v.visit_type_mut(&mut (it).1);
- }
- skip!(node.semi_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_mut<V>(v: &mut V, node: &mut crate::Type)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Type::Array(_binding_0) => {
- v.visit_type_array_mut(_binding_0);
- }
- crate::Type::BareFn(_binding_0) => {
- v.visit_type_bare_fn_mut(_binding_0);
- }
- crate::Type::Group(_binding_0) => {
- v.visit_type_group_mut(_binding_0);
- }
- crate::Type::ImplTrait(_binding_0) => {
- v.visit_type_impl_trait_mut(_binding_0);
- }
- crate::Type::Infer(_binding_0) => {
- v.visit_type_infer_mut(_binding_0);
- }
- crate::Type::Macro(_binding_0) => {
- v.visit_type_macro_mut(_binding_0);
- }
- crate::Type::Never(_binding_0) => {
- v.visit_type_never_mut(_binding_0);
- }
- crate::Type::Paren(_binding_0) => {
- v.visit_type_paren_mut(_binding_0);
- }
- crate::Type::Path(_binding_0) => {
- v.visit_type_path_mut(_binding_0);
- }
- crate::Type::Ptr(_binding_0) => {
- v.visit_type_ptr_mut(_binding_0);
- }
- crate::Type::Reference(_binding_0) => {
- v.visit_type_reference_mut(_binding_0);
- }
- crate::Type::Slice(_binding_0) => {
- v.visit_type_slice_mut(_binding_0);
- }
- crate::Type::TraitObject(_binding_0) => {
- v.visit_type_trait_object_mut(_binding_0);
- }
- crate::Type::Tuple(_binding_0) => {
- v.visit_type_tuple_mut(_binding_0);
- }
- crate::Type::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_array_mut<V>(v: &mut V, node: &mut crate::TypeArray)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type_mut(&mut *node.elem);
- skip!(node.semi_token);
- v.visit_expr_mut(&mut node.len);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_bare_fn_mut<V>(v: &mut V, node: &mut crate::TypeBareFn)
-where
- V: VisitMut + ?Sized,
-{
- if let Some(it) = &mut node.lifetimes {
- v.visit_bound_lifetimes_mut(it);
- }
- skip!(node.unsafety);
- if let Some(it) = &mut node.abi {
- v.visit_abi_mut(it);
- }
- skip!(node.fn_token);
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.inputs) {
- let it = el.value_mut();
- v.visit_bare_fn_arg_mut(it);
- }
- if let Some(it) = &mut node.variadic {
- v.visit_bare_variadic_mut(it);
- }
- v.visit_return_type_mut(&mut node.output);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_group_mut<V>(v: &mut V, node: &mut crate::TypeGroup)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.group_token);
- v.visit_type_mut(&mut *node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_impl_trait_mut<V>(v: &mut V, node: &mut crate::TypeImplTrait)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.impl_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_infer_mut<V>(v: &mut V, node: &mut crate::TypeInfer)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.underscore_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_macro_mut<V>(v: &mut V, node: &mut crate::TypeMacro)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_macro_mut(&mut node.mac);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_never_mut<V>(v: &mut V, node: &mut crate::TypeNever)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.bang_token);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_param_mut<V>(v: &mut V, node: &mut crate::TypeParam)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
- skip!(node.eq_token);
- if let Some(it) = &mut node.default {
- v.visit_type_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_param_bound_mut<V>(v: &mut V, node: &mut crate::TypeParamBound)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::TypeParamBound::Trait(_binding_0) => {
- v.visit_trait_bound_mut(_binding_0);
- }
- crate::TypeParamBound::Lifetime(_binding_0) => {
- v.visit_lifetime_mut(_binding_0);
- }
- crate::TypeParamBound::PreciseCapture(_binding_0) => {
- full!(v.visit_precise_capture_mut(_binding_0));
- }
- crate::TypeParamBound::Verbatim(_binding_0) => {
- v.visit_token_stream_mut(_binding_0);
- }
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_paren_mut<V>(v: &mut V, node: &mut crate::TypeParen)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.paren_token);
- v.visit_type_mut(&mut *node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_path_mut<V>(v: &mut V, node: &mut crate::TypePath)
-where
- V: VisitMut + ?Sized,
-{
- if let Some(it) = &mut node.qself {
- v.visit_qself_mut(it);
- }
- v.visit_path_mut(&mut node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_ptr_mut<V>(v: &mut V, node: &mut crate::TypePtr)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.star_token);
- skip!(node.const_token);
- skip!(node.mutability);
- v.visit_type_mut(&mut *node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_reference_mut<V>(v: &mut V, node: &mut crate::TypeReference)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.and_token);
- if let Some(it) = &mut node.lifetime {
- v.visit_lifetime_mut(it);
- }
- skip!(node.mutability);
- v.visit_type_mut(&mut *node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_slice_mut<V>(v: &mut V, node: &mut crate::TypeSlice)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.bracket_token);
- v.visit_type_mut(&mut *node.elem);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_trait_object_mut<V>(v: &mut V, node: &mut crate::TypeTraitObject)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.dyn_token);
- for mut el in Punctuated::pairs_mut(&mut node.bounds) {
- let it = el.value_mut();
- v.visit_type_param_bound_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_type_tuple_mut<V>(v: &mut V, node: &mut crate::TypeTuple)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.paren_token);
- for mut el in Punctuated::pairs_mut(&mut node.elems) {
- let it = el.value_mut();
- v.visit_type_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_un_op_mut<V>(v: &mut V, node: &mut crate::UnOp)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::UnOp::Deref(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Not(_binding_0) => {
- skip!(_binding_0);
- }
- crate::UnOp::Neg(_binding_0) => {
- skip!(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_glob_mut<V>(v: &mut V, node: &mut crate::UseGlob)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.star_token);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_group_mut<V>(v: &mut V, node: &mut crate::UseGroup)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.brace_token);
- for mut el in Punctuated::pairs_mut(&mut node.items) {
- let it = el.value_mut();
- v.visit_use_tree_mut(it);
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_name_mut<V>(v: &mut V, node: &mut crate::UseName)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_path_mut<V>(v: &mut V, node: &mut crate::UsePath)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- skip!(node.colon2_token);
- v.visit_use_tree_mut(&mut *node.tree);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_rename_mut<V>(v: &mut V, node: &mut crate::UseRename)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_ident_mut(&mut node.ident);
- skip!(node.as_token);
- v.visit_ident_mut(&mut node.rename);
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_use_tree_mut<V>(v: &mut V, node: &mut crate::UseTree)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::UseTree::Path(_binding_0) => {
- v.visit_use_path_mut(_binding_0);
- }
- crate::UseTree::Name(_binding_0) => {
- v.visit_use_name_mut(_binding_0);
- }
- crate::UseTree::Rename(_binding_0) => {
- v.visit_use_rename_mut(_binding_0);
- }
- crate::UseTree::Glob(_binding_0) => {
- v.visit_use_glob_mut(_binding_0);
- }
- crate::UseTree::Group(_binding_0) => {
- v.visit_use_group_mut(_binding_0);
- }
- }
-}
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub fn visit_variadic_mut<V>(v: &mut V, node: &mut crate::Variadic)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- if let Some(it) = &mut node.pat {
- v.visit_pat_mut(&mut *(it).0);
- skip!((it).1);
- }
- skip!(node.dots);
- skip!(node.comma);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_variant_mut<V>(v: &mut V, node: &mut crate::Variant)
-where
- V: VisitMut + ?Sized,
-{
- v.visit_attributes_mut(&mut node.attrs);
- v.visit_ident_mut(&mut node.ident);
- v.visit_fields_mut(&mut node.fields);
- if let Some(it) = &mut node.discriminant {
- skip!((it).0);
- v.visit_expr_mut(&mut (it).1);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_vis_restricted_mut<V>(v: &mut V, node: &mut crate::VisRestricted)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.pub_token);
- skip!(node.paren_token);
- skip!(node.in_token);
- v.visit_path_mut(&mut *node.path);
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_visibility_mut<V>(v: &mut V, node: &mut crate::Visibility)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::Visibility::Public(_binding_0) => {
- skip!(_binding_0);
- }
- crate::Visibility::Restricted(_binding_0) => {
- v.visit_vis_restricted_mut(_binding_0);
- }
- crate::Visibility::Inherited => {}
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_where_clause_mut<V>(v: &mut V, node: &mut crate::WhereClause)
-where
- V: VisitMut + ?Sized,
-{
- skip!(node.where_token);
- for mut el in Punctuated::pairs_mut(&mut node.predicates) {
- let it = el.value_mut();
- v.visit_where_predicate_mut(it);
- }
-}
-#[cfg(any(feature = "derive", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "derive", feature = "full"))))]
-pub fn visit_where_predicate_mut<V>(v: &mut V, node: &mut crate::WherePredicate)
-where
- V: VisitMut + ?Sized,
-{
- match node {
- crate::WherePredicate::Lifetime(_binding_0) => {
- v.visit_predicate_lifetime_mut(_binding_0);
- }
- crate::WherePredicate::Type(_binding_0) => {
- v.visit_predicate_type_mut(_binding_0);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/generics.rs b/deps/crates/vendor/syn-v2/src/generics.rs
deleted file mode 100644
index 627437940f6..00000000000
--- a/deps/crates/vendor/syn-v2/src/generics.rs
+++ /dev/null
@@ -1,1420 +0,0 @@
-use crate::attr::Attribute;
-use crate::expr::Expr;
-use crate::ident::Ident;
-use crate::lifetime::Lifetime;
-use crate::path::Path;
-use crate::punctuated::{Iter, IterMut, Punctuated};
-use crate::token;
-use crate::ty::Type;
-use alloc::vec::Vec;
-#[cfg(all(feature = "printing", feature = "extra-traits"))]
-use core::fmt::{self, Debug};
-#[cfg(all(feature = "printing", feature = "extra-traits"))]
-use core::hash::{Hash, Hasher};
-use proc_macro2::TokenStream;
-
-ast_struct! {
- /// Lifetimes and type parameters attached to a declaration of a function,
- /// enum, trait, etc.
- ///
- /// This struct represents two distinct optional syntactic elements,
- /// [generic parameters] and [where clause]. In some locations of the
- /// grammar, there may be other tokens in between these two things.
- ///
- /// [generic parameters]: https://doc.rust-lang.org/stable/reference/items/generics.html#generic-parameters
- /// [where clause]: https://doc.rust-lang.org/stable/reference/items/generics.html#where-clauses
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Generics {
- pub lt_token: Option<Token![<]>,
- pub params: Punctuated<GenericParam, Token![,]>,
- pub gt_token: Option<Token![>]>,
- pub where_clause: Option<WhereClause>,
- }
-}
-
-ast_enum_of_structs! {
- /// A generic type parameter, lifetime, or const generic: `T: Into<String>`,
- /// `'a: 'b`, `const LEN: usize`.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum GenericParam {
- /// A lifetime parameter: `'a: 'b + 'c + 'd`.
- Lifetime(LifetimeParam),
-
- /// A generic type parameter: `T: Into<String>`.
- Type(TypeParam),
-
- /// A const generic parameter: `const LENGTH: usize`.
- Const(ConstParam),
- }
-}
-
-ast_struct! {
- /// A lifetime definition: `'a: 'b + 'c + 'd`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct LifetimeParam {
- pub attrs: Vec<Attribute>,
- pub lifetime: Lifetime,
- pub colon_token: Option<Token![:]>,
- pub bounds: Punctuated<Lifetime, Token![+]>,
- }
-}
-
-ast_struct! {
- /// A generic type parameter: `T: Into<String>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeParam {
- pub attrs: Vec<Attribute>,
- pub ident: Ident,
- pub colon_token: Option<Token![:]>,
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- pub eq_token: Option<Token![=]>,
- pub default: Option<Type>,
- }
-}
-
-ast_struct! {
- /// A const generic parameter: `const LENGTH: usize`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ConstParam {
- pub attrs: Vec<Attribute>,
- pub const_token: Token![const],
- pub ident: Ident,
- pub colon_token: Token![:],
- pub ty: Type,
- pub eq_token: Option<Token![=]>,
- pub default: Option<Expr>,
- }
-}
-
-impl Default for Generics {
- fn default() -> Self {
- Generics { lt_token: None, params: Punctuated::new(), gt_token: None, where_clause: None }
- }
-}
-
-impl Generics {
- return_impl_trait! {
- /// Iterator over the lifetime parameters in `self.params`.
- pub fn lifetimes(&self) -> impl Iterator<Item = &LifetimeParam> [Lifetimes] {
- Lifetimes(self.params.iter())
- }
- }
-
- return_impl_trait! {
- /// Iterator over the lifetime parameters in `self.params`.
- pub fn lifetimes_mut(&mut self) -> impl Iterator<Item = &mut LifetimeParam> [LifetimesMut] {
- LifetimesMut(self.params.iter_mut())
- }
- }
-
- return_impl_trait! {
- /// Iterator over the type parameters in `self.params`.
- pub fn type_params(&self) -> impl Iterator<Item = &TypeParam> [TypeParams] {
- TypeParams(self.params.iter())
- }
- }
-
- return_impl_trait! {
- /// Iterator over the type parameters in `self.params`.
- pub fn type_params_mut(&mut self) -> impl Iterator<Item = &mut TypeParam> [TypeParamsMut] {
- TypeParamsMut(self.params.iter_mut())
- }
- }
-
- return_impl_trait! {
- /// Iterator over the constant parameters in `self.params`.
- pub fn const_params(&self) -> impl Iterator<Item = &ConstParam> [ConstParams] {
- ConstParams(self.params.iter())
- }
- }
-
- return_impl_trait! {
- /// Iterator over the constant parameters in `self.params`.
- pub fn const_params_mut(&mut self) -> impl Iterator<Item = &mut ConstParam> [ConstParamsMut] {
- ConstParamsMut(self.params.iter_mut())
- }
- }
-
- /// Initializes an empty `where`-clause if there is not one present already.
- pub fn make_where_clause(&mut self) -> &mut WhereClause {
- self.where_clause.get_or_insert_with(|| WhereClause {
- where_token: <Token![where]>::default(),
- predicates: Punctuated::new(),
- })
- }
-
- /// Split a type's generics into the pieces required for impl'ing a trait
- /// for that type.
- ///
- /// ```
- /// # use proc_macro2::{Span, Ident};
- /// # use quote::quote;
- /// #
- /// # let generics: syn::Generics = Default::default();
- /// # let name = Ident::new("MyType", Span::call_site());
- /// #
- /// let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
- /// quote! {
- /// impl #impl_generics MyTrait for #name #ty_generics #where_clause {
- /// // ...
- /// }
- /// }
- /// # ;
- /// ```
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) {
- (ImplGenerics(self), TypeGenerics(self), self.where_clause.as_ref())
- }
-}
-
-pub struct Lifetimes<'a>(Iter<'a, GenericParam>);
-
-impl<'a> Iterator for Lifetimes<'a> {
- type Item = &'a LifetimeParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Lifetime(lifetime) = self.0.next()? {
- Some(lifetime)
- } else {
- self.next()
- }
- }
-}
-
-pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>);
-
-impl<'a> Iterator for LifetimesMut<'a> {
- type Item = &'a mut LifetimeParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Lifetime(lifetime) = self.0.next()? {
- Some(lifetime)
- } else {
- self.next()
- }
- }
-}
-
-pub struct TypeParams<'a>(Iter<'a, GenericParam>);
-
-impl<'a> Iterator for TypeParams<'a> {
- type Item = &'a TypeParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Type(type_param) = self.0.next()? {
- Some(type_param)
- } else {
- self.next()
- }
- }
-}
-
-pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>);
-
-impl<'a> Iterator for TypeParamsMut<'a> {
- type Item = &'a mut TypeParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Type(type_param) = self.0.next()? {
- Some(type_param)
- } else {
- self.next()
- }
- }
-}
-
-pub struct ConstParams<'a>(Iter<'a, GenericParam>);
-
-impl<'a> Iterator for ConstParams<'a> {
- type Item = &'a ConstParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Const(const_param) = self.0.next()? {
- Some(const_param)
- } else {
- self.next()
- }
- }
-}
-
-pub struct ConstParamsMut<'a>(IterMut<'a, GenericParam>);
-
-impl<'a> Iterator for ConstParamsMut<'a> {
- type Item = &'a mut ConstParam;
-
- fn next(&mut self) -> Option<Self::Item> {
- if let GenericParam::Const(const_param) = self.0.next()? {
- Some(const_param)
- } else {
- self.next()
- }
- }
-}
-
-/// Returned by `Generics::split_for_impl`.
-#[cfg(feature = "printing")]
-#[cfg_attr(docsrs, doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))))]
-pub struct ImplGenerics<'a>(&'a Generics);
-
-/// Returned by `Generics::split_for_impl`.
-#[cfg(feature = "printing")]
-#[cfg_attr(docsrs, doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))))]
-pub struct TypeGenerics<'a>(&'a Generics);
-
-/// Returned by `TypeGenerics::as_turbofish`.
-#[cfg(feature = "printing")]
-#[cfg_attr(docsrs, doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))))]
-pub struct Turbofish<'a>(&'a Generics);
-
-#[cfg(feature = "printing")]
-macro_rules! generics_wrapper_impls {
- ($ty:ident) => {
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl<'a> Clone for $ty<'a> {
- fn clone(&self) -> Self {
- $ty(self.0)
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl<'a> Debug for $ty<'a> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.debug_tuple(stringify!($ty)).field(self.0).finish()
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl<'a> Eq for $ty<'a> {}
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl<'a> PartialEq for $ty<'a> {
- fn eq(&self, other: &Self) -> bool {
- self.0 == other.0
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl<'a> Hash for $ty<'a> {
- fn hash<H: Hasher>(&self, state: &mut H) {
- self.0.hash(state);
- }
- }
- };
-}
-
-#[cfg(feature = "printing")]
-generics_wrapper_impls!(ImplGenerics);
-#[cfg(feature = "printing")]
-generics_wrapper_impls!(TypeGenerics);
-#[cfg(feature = "printing")]
-generics_wrapper_impls!(Turbofish);
-
-#[cfg(feature = "printing")]
-impl<'a> TypeGenerics<'a> {
- /// Turn a type's generics like `<X, Y>` into a turbofish like `::<X, Y>`.
- pub fn as_turbofish(&self) -> Turbofish<'a> {
- Turbofish(self.0)
- }
-}
-
-ast_struct! {
- /// A set of bound lifetimes: `for<'a, 'b, 'c>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct BoundLifetimes {
- pub for_token: Token![for],
- pub lt_token: Token![<],
- pub lifetimes: Punctuated<GenericParam, Token![,]>,
- pub gt_token: Token![>],
- }
-}
-
-impl Default for BoundLifetimes {
- fn default() -> Self {
- BoundLifetimes {
- for_token: Default::default(),
- lt_token: Default::default(),
- lifetimes: Punctuated::new(),
- gt_token: Default::default(),
- }
- }
-}
-
-impl LifetimeParam {
- pub fn new(lifetime: Lifetime) -> Self {
- LifetimeParam { attrs: Vec::new(), lifetime, colon_token: None, bounds: Punctuated::new() }
- }
-}
-
-impl From<Ident> for TypeParam {
- fn from(ident: Ident) -> Self {
- TypeParam {
- attrs: Vec::new(),
- ident,
- colon_token: None,
- bounds: Punctuated::new(),
- eq_token: None,
- default: None,
- }
- }
-}
-
-ast_enum_of_structs! {
- /// A trait or lifetime used as a bound on a type parameter.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum TypeParamBound {
- Trait(TraitBound),
- Lifetime(Lifetime),
- PreciseCapture(PreciseCapture),
- Verbatim(TokenStream),
- }
-}
-
-ast_struct! {
- /// A trait used as a bound on a type parameter.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TraitBound {
- pub paren_token: Option<token::Paren>,
- pub modifier: TraitBoundModifier,
- /// The `for<'a>` in `for<'a> Foo<&'a T>`
- pub lifetimes: Option<BoundLifetimes>,
- /// The `Foo<&'a T>` in `for<'a> Foo<&'a T>`
- pub path: Path,
- }
-}
-
-ast_enum! {
- /// A modifier on a trait bound, currently only used for the `?` in
- /// `?Sized`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum TraitBoundModifier {
- None,
- Maybe(Token![?]),
- }
-}
-
-ast_struct! {
- /// Precise capturing bound: the 'use<…>' in `impl Trait +
- /// use<'a, T>`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PreciseCapture #full {
- pub use_token: Token![use],
- pub lt_token: Token![<],
- pub params: Punctuated<CapturedParam, Token![,]>,
- pub gt_token: Token![>],
- }
-}
-
-#[cfg(feature = "full")]
-ast_enum! {
- /// Single parameter in a precise capturing bound.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum CapturedParam {
- /// A lifetime parameter in precise capturing bound: `fn f<'a>() -> impl
- /// Trait + use<'a>`.
- Lifetime(Lifetime),
- /// A type parameter or const generic parameter in precise capturing
- /// bound: `fn f<T>() -> impl Trait + use<T>` or `fn f<const K: T>() ->
- /// impl Trait + use<K>`.
- Ident(Ident),
- }
-}
-
-ast_struct! {
- /// A `where` clause in a definition: `where T: Deserialize<'de>, D:
- /// 'static`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct WhereClause {
- pub where_token: Token![where],
- pub predicates: Punctuated<WherePredicate, Token![,]>,
- }
-}
-
-ast_enum_of_structs! {
- /// A single predicate in a `where` clause: `T: Deserialize<'de>`.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum WherePredicate {
- /// A lifetime predicate in a `where` clause: `'a: 'b + 'c`.
- Lifetime(PredicateLifetime),
-
- /// A type predicate in a `where` clause: `for<'c> Foo<'c>: Trait<'c>`.
- Type(PredicateType),
- }
-}
-
-ast_struct! {
- /// A lifetime predicate in a `where` clause: `'a: 'b + 'c`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct PredicateLifetime {
- pub lifetime: Lifetime,
- pub colon_token: Token![:],
- pub bounds: Punctuated<Lifetime, Token![+]>,
- }
-}
-
-ast_struct! {
- /// A type predicate in a `where` clause: `for<'c> Foo<'c>: Trait<'c>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct PredicateType {
- /// Any lifetimes from a `for` binding
- pub lifetimes: Option<BoundLifetimes>,
- /// The type being bounded
- pub bounded_ty: Type,
- pub colon_token: Token![:],
- /// Trait and lifetime bounds (`Clone+Send+'static`)
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- #[cfg(feature = "full")]
- use crate::error;
- use crate::error::{Error, Result};
- use crate::ext::IdentExt as _;
- use crate::generics::{
- BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeParam, PredicateLifetime,
- PredicateType, TraitBound, TraitBoundModifier, TypeParam, TypeParamBound, WhereClause,
- WherePredicate,
- };
- #[cfg(feature = "full")]
- use crate::generics::{CapturedParam, PreciseCapture};
- use crate::ident::Ident;
- use crate::lifetime::Lifetime;
- use crate::parse::{Parse, ParseStream};
- use crate::path::{self, ParenthesizedGenericArguments, Path, PathArguments};
- use crate::punctuated::Punctuated;
- use crate::token;
- use crate::ty::Type;
- use crate::verbatim;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Generics {
- fn parse(input: ParseStream) -> Result<Self> {
- if !input.peek(Token![<]) {
- return Ok(Generics::default());
- }
-
- let lt_token: Token![<] = input.parse()?;
-
- let mut params = Punctuated::new();
- loop {
- if input.peek(Token![>]) {
- break;
- }
-
- let attrs = input.call(Attribute::parse_outer)?;
- let lookahead = input.lookahead1();
- if lookahead.peek(Lifetime) {
- params.push_value(GenericParam::Lifetime(LifetimeParam {
- attrs,
- ..input.parse()?
- }));
- } else if lookahead.peek(Ident) {
- params.push_value(GenericParam::Type(TypeParam { attrs, ..input.parse()? }));
- } else if lookahead.peek(Token![const]) {
- params.push_value(GenericParam::Const(ConstParam { attrs, ..input.parse()? }));
- } else if input.peek(Token![_]) {
- params.push_value(GenericParam::Type(TypeParam {
- attrs,
- ident: input.call(Ident::parse_any)?,
- colon_token: None,
- bounds: Punctuated::new(),
- eq_token: None,
- default: None,
- }));
- } else {
- return Err(lookahead.error());
- }
-
- if input.peek(Token![>]) {
- break;
- }
- let punct = input.parse()?;
- params.push_punct(punct);
- }
-
- let gt_token: Token![>] = input.parse()?;
-
- Ok(Generics {
- lt_token: Some(lt_token),
- params,
- gt_token: Some(gt_token),
- where_clause: None,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for GenericParam {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
-
- let lookahead = input.lookahead1();
- if lookahead.peek(Ident) {
- Ok(GenericParam::Type(TypeParam { attrs, ..input.parse()? }))
- } else if lookahead.peek(Lifetime) {
- Ok(GenericParam::Lifetime(LifetimeParam { attrs, ..input.parse()? }))
- } else if lookahead.peek(Token![const]) {
- Ok(GenericParam::Const(ConstParam { attrs, ..input.parse()? }))
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LifetimeParam {
- fn parse(input: ParseStream) -> Result<Self> {
- let has_colon;
- Ok(LifetimeParam {
- attrs: input.call(Attribute::parse_outer)?,
- lifetime: input.parse()?,
- colon_token: {
- if input.peek(Token![:]) {
- has_colon = true;
- Some(input.parse()?)
- } else {
- has_colon = false;
- None
- }
- },
- bounds: {
- let mut bounds = Punctuated::new();
- if has_colon {
- loop {
- if input.is_empty() || input.peek(Token![,]) || input.peek(Token![>]) {
- break;
- }
- let value = input.parse()?;
- bounds.push_value(value);
- if !input.peek(Token![+]) {
- break;
- }
- let punct = input.parse()?;
- bounds.push_punct(punct);
- }
- }
- bounds
- },
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for BoundLifetimes {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(BoundLifetimes {
- for_token: input.parse()?,
- lt_token: input.parse()?,
- lifetimes: {
- let mut lifetimes = Punctuated::new();
- while !input.peek(Token![>]) {
- lifetimes.push_value(input.parse()?);
- if input.peek(Token![>]) {
- break;
- }
- lifetimes.push_punct(input.parse()?);
- }
- lifetimes
- },
- gt_token: input.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Option<BoundLifetimes> {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![for]) {
- input.parse().map(Some)
- } else {
- Ok(None)
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeParam {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let ident: Ident = input.parse()?;
- let colon_token: Option<Token![:]> = input.parse()?;
-
- let mut bounds = Punctuated::new();
- if colon_token.is_some() {
- loop {
- if input.is_empty()
- || input.peek(Token![,])
- || input.peek(Token![>])
- || input.peek(Token![=])
- {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = true;
- TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
- });
- if !input.peek(Token![+]) {
- break;
- }
- let punct: Token![+] = input.parse()?;
- bounds.push_punct(punct);
- }
- }
-
- let eq_token: Option<Token![=]> = input.parse()?;
- let default = if eq_token.is_some() { Some(input.parse::<Type>()?) } else { None };
-
- Ok(TypeParam { attrs, ident, colon_token, bounds, eq_token, default })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeParamBound {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_precise_capture = true;
- let allow_const = true;
- Self::parse_single(input, allow_precise_capture, allow_const)
- }
- }
-
- impl TypeParamBound {
- pub(crate) fn parse_single(
- input: ParseStream,
- #[cfg_attr(not(feature = "full"), allow(unused_variables))] allow_precise_capture: bool,
- allow_const: bool,
- ) -> Result<Self> {
- if input.peek(Lifetime) {
- return input.parse().map(TypeParamBound::Lifetime);
- }
-
- #[cfg(feature = "full")]
- {
- if input.peek(Token![use]) {
- let precise_capture: PreciseCapture = input.parse()?;
- return if allow_precise_capture {
- Ok(TypeParamBound::PreciseCapture(precise_capture))
- } else {
- let msg = "`use<...>` precise capturing syntax is not allowed here";
- Err(error::new2(
- precise_capture.use_token.span,
- precise_capture.gt_token.span,
- msg,
- ))
- };
- }
- }
-
- let begin = input.cursor();
-
- let content;
- let (paren_token, content) = if input.peek(token::Paren) {
- (Some(parenthesized!(content in input)), &content)
- } else {
- (None, input)
- };
-
- if let Some(mut bound) = TraitBound::do_parse(content, allow_const)? {
- bound.paren_token = paren_token;
- Ok(TypeParamBound::Trait(bound))
- } else {
- Ok(TypeParamBound::Verbatim(verbatim::between(begin, input.cursor())))
- }
- }
-
- pub(crate) fn parse_multiple(
- input: ParseStream,
- allow_plus: bool,
- allow_precise_capture: bool,
- allow_const: bool,
- ) -> Result<Punctuated<Self, Token![+]>> {
- let mut bounds = Punctuated::new();
- loop {
- let bound = Self::parse_single(input, allow_precise_capture, allow_const)?;
- bounds.push_value(bound);
- if !(allow_plus && input.peek(Token![+])) {
- break;
- }
- bounds.push_punct(input.parse()?);
- if !(input.peek(Ident::peek_any)
- || input.peek(Token![::])
- || input.peek(Token![?])
- || input.peek(Lifetime)
- || input.peek(token::Paren)
- || (allow_const && (input.peek(token::Bracket) || input.peek(Token![const]))))
- {
- break;
- }
- }
- Ok(bounds)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitBound {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_const = false;
- Self::do_parse(input, allow_const).map(Option::unwrap)
- }
- }
-
- impl TraitBound {
- fn do_parse(input: ParseStream, allow_const: bool) -> Result<Option<Self>> {
- let mut lifetimes: Option<BoundLifetimes> = input.parse()?;
-
- let is_conditionally_const = cfg!(feature = "full") && input.peek(token::Bracket);
- let is_unconditionally_const = cfg!(feature = "full") && input.peek(Token![const]);
- if is_conditionally_const {
- let conditionally_const;
- let bracket_token = bracketed!(conditionally_const in input);
- conditionally_const.parse::<Token![const]>()?;
- if !allow_const {
- let msg = "`[const]` is not allowed here";
- return Err(Error::new(bracket_token.span.join(), msg));
- }
- } else if is_unconditionally_const {
- let const_token: Token![const] = input.parse()?;
- if !allow_const {
- let msg = "`const` is not allowed here";
- return Err(Error::new(const_token.span, msg));
- }
- }
-
- let modifier: TraitBoundModifier = input.parse()?;
- if lifetimes.is_none() && matches!(modifier, TraitBoundModifier::Maybe(_)) {
- lifetimes = input.parse()?;
- }
-
- let mut path: Path = input.parse()?;
- if path.segments.last().unwrap().arguments.is_empty()
- && (input.peek(token::Paren) || input.peek(Token![::]) && input.peek3(token::Paren))
- {
- input.parse::<Option<Token![::]>>()?;
- let args: ParenthesizedGenericArguments = input.parse()?;
- let parenthesized = PathArguments::Parenthesized(args);
- path.segments.last_mut().unwrap().arguments = parenthesized;
- }
-
- if lifetimes.is_some() {
- match modifier {
- TraitBoundModifier::None => {}
- TraitBoundModifier::Maybe(maybe) => {
- let msg = "`for<...>` binder not allowed with `?` trait polarity modifier";
- return Err(Error::new(maybe.span, msg));
- }
- }
- }
-
- if is_conditionally_const || is_unconditionally_const {
- Ok(None)
- } else {
- Ok(Some(TraitBound { paren_token: None, modifier, lifetimes, path }))
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitBoundModifier {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![?]) {
- input.parse().map(TraitBoundModifier::Maybe)
- } else {
- Ok(TraitBoundModifier::None)
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ConstParam {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut default = None;
- Ok(ConstParam {
- attrs: input.call(Attribute::parse_outer)?,
- const_token: input.parse()?,
- ident: input.parse()?,
- colon_token: input.parse()?,
- ty: input.parse()?,
- eq_token: {
- if input.peek(Token![=]) {
- let eq_token = input.parse()?;
- default = Some(path::parsing::const_argument(input)?);
- Some(eq_token)
- } else {
- None
- }
- },
- default,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for WhereClause {
- fn parse(input: ParseStream) -> Result<Self> {
- let where_token: Token![where] = input.parse()?;
-
- if choose_generics_over_qpath(input) {
- return Err(input
- .error("generic parameters on `where` clauses are reserved for future use"));
- }
-
- Ok(WhereClause {
- where_token,
- predicates: {
- let mut predicates = Punctuated::new();
- loop {
- if input.is_empty()
- || input.peek(token::Brace)
- || input.peek(Token![,])
- || input.peek(Token![;])
- || input.peek(Token![:]) && !input.peek(Token![::])
- || input.peek(Token![=])
- {
- break;
- }
- let value = input.parse()?;
- predicates.push_value(value);
- if !input.peek(Token![,]) {
- break;
- }
- let punct = input.parse()?;
- predicates.push_punct(punct);
- }
- predicates
- },
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Option<WhereClause> {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![where]) {
- input.parse().map(Some)
- } else {
- Ok(None)
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for WherePredicate {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Lifetime) && input.peek2(Token![:]) {
- Ok(WherePredicate::Lifetime(PredicateLifetime {
- lifetime: input.parse()?,
- colon_token: input.parse()?,
- bounds: {
- let mut bounds = Punctuated::new();
- loop {
- if input.is_empty()
- || input.peek(token::Brace)
- || input.peek(Token![,])
- || input.peek(Token![;])
- || input.peek(Token![:])
- || input.peek(Token![=])
- {
- break;
- }
- let value = input.parse()?;
- bounds.push_value(value);
- if !input.peek(Token![+]) {
- break;
- }
- let punct = input.parse()?;
- bounds.push_punct(punct);
- }
- bounds
- },
- }))
- } else {
- Ok(WherePredicate::Type(PredicateType {
- lifetimes: input.parse()?,
- bounded_ty: input.parse()?,
- colon_token: input.parse()?,
- bounds: {
- let mut bounds = Punctuated::new();
- loop {
- if input.is_empty()
- || input.peek(token::Brace)
- || input.peek(Token![,])
- || input.peek(Token![;])
- || input.peek(Token![:]) && !input.peek(Token![::])
- || input.peek(Token![=])
- {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = true;
- TypeParamBound::parse_single(
- input,
- allow_precise_capture,
- allow_const,
- )?
- });
- if !input.peek(Token![+]) {
- break;
- }
- let punct = input.parse()?;
- bounds.push_punct(punct);
- }
- bounds
- },
- }))
- }
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for PreciseCapture {
- fn parse(input: ParseStream) -> Result<Self> {
- let use_token: Token![use] = input.parse()?;
- let lt_token: Token![<] = input.parse()?;
- let mut params = Punctuated::new();
- loop {
- let lookahead = input.lookahead1();
- params.push_value(
- if lookahead.peek(Lifetime) || lookahead.peek(Ident) || input.peek(Token![Self])
- {
- input.parse::<CapturedParam>()?
- } else if lookahead.peek(Token![>]) {
- break;
- } else {
- return Err(lookahead.error());
- },
- );
- let lookahead = input.lookahead1();
- params.push_punct(if lookahead.peek(Token![,]) {
- input.parse::<Token![,]>()?
- } else if lookahead.peek(Token![>]) {
- break;
- } else {
- return Err(lookahead.error());
- });
- }
- let gt_token: Token![>] = input.parse()?;
- Ok(PreciseCapture { use_token, lt_token, params, gt_token })
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for CapturedParam {
- fn parse(input: ParseStream) -> Result<Self> {
- let lookahead = input.lookahead1();
- if lookahead.peek(Lifetime) {
- input.parse().map(CapturedParam::Lifetime)
- } else if lookahead.peek(Ident) || input.peek(Token![Self]) {
- input.call(Ident::parse_any).map(CapturedParam::Ident)
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- pub(crate) fn choose_generics_over_qpath(input: ParseStream) -> bool {
- // Rust syntax has an ambiguity between generic parameters and qualified
- // paths. In `impl <T> :: Thing<T, U> {}` this may either be a generic
- // inherent impl `impl<T> ::Thing<T, U>` or a non-generic inherent impl
- // for an associated type `impl <T>::Thing<T, U>`.
- //
- // After `<` the following continuations can only begin generics, not a
- // qualified path:
- //
- // `<` `>` - empty generic parameters
- // `<` `#` - generic parameters with attribute
- // `<` LIFETIME `>` - single lifetime parameter
- // `<` (LIFETIME|IDENT) `,` - first generic parameter in a list
- // `<` (LIFETIME|IDENT) `:` - generic parameter with bounds
- // `<` (LIFETIME|IDENT) `=` - generic parameter with a default
- // `<` const - generic const parameter
- //
- // The only truly ambiguous case is:
- //
- // `<` IDENT `>` `::` IDENT ...
- //
- // which we disambiguate in favor of generics because this is almost
- // always the expected one in the context of real-world code.
- input.peek(Token![<])
- && (input.peek2(Token![>])
- || input.peek2(Token![#])
- || (input.peek2(Lifetime) || input.peek2(Ident))
- && (input.peek3(Token![>])
- || input.peek3(Token![,])
- || input.peek3(Token![:]) && !input.peek3(Token![::])
- || input.peek3(Token![=]))
- || input.peek2(Token![const]))
- }
-
- #[cfg(feature = "full")]
- pub(crate) fn choose_generics_over_qpath_after_keyword(input: ParseStream) -> bool {
- let input = input.fork();
- input.call(Ident::parse_any).unwrap(); // `impl` or `for` or `where`
- choose_generics_over_qpath(&input)
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) mod printing {
- use crate::attr::FilterAttrs;
- #[cfg(feature = "full")]
- use crate::expr;
- use crate::expr::Expr;
- #[cfg(feature = "full")]
- use crate::fixup::FixupContext;
- use crate::generics::{
- BoundLifetimes, ConstParam, GenericParam, Generics, ImplGenerics, LifetimeParam,
- PredicateLifetime, PredicateType, TraitBound, TraitBoundModifier, Turbofish, TypeGenerics,
- TypeParam, WhereClause,
- };
- #[cfg(feature = "full")]
- use crate::generics::{CapturedParam, PreciseCapture};
- use crate::print::TokensOrDefault;
- use crate::token;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Generics {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- if self.params.is_empty() {
- return;
- }
-
- TokensOrDefault(&self.lt_token).to_tokens(tokens);
-
- // Print lifetimes before types and consts, regardless of their
- // order in self.params.
- let mut trailing_or_empty = true;
- for param in self.params.pairs() {
- if let GenericParam::Lifetime(_) = **param.value() {
- param.to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- }
- for param in self.params.pairs() {
- match param.value() {
- GenericParam::Type(_) | GenericParam::Const(_) => {
- if !trailing_or_empty {
- <Token![,]>::default().to_tokens(tokens);
- trailing_or_empty = true;
- }
- param.to_tokens(tokens);
- }
- GenericParam::Lifetime(_) => {}
- }
- }
-
- TokensOrDefault(&self.gt_token).to_tokens(tokens);
- }
- }
-
- impl<'a> ToTokens for ImplGenerics<'a> {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- if self.0.params.is_empty() {
- return;
- }
-
- TokensOrDefault(&self.0.lt_token).to_tokens(tokens);
-
- // Print lifetimes before types and consts, regardless of their
- // order in self.params.
- let mut trailing_or_empty = true;
- for param in self.0.params.pairs() {
- if let GenericParam::Lifetime(_) = **param.value() {
- param.to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- }
- for param in self.0.params.pairs() {
- if let GenericParam::Lifetime(_) = **param.value() {
- continue;
- }
- if !trailing_or_empty {
- <Token![,]>::default().to_tokens(tokens);
- trailing_or_empty = true;
- }
- match param.value() {
- GenericParam::Lifetime(_) => unreachable!(),
- GenericParam::Type(param) => {
- // Leave off the type parameter defaults
- tokens.append_all(param.attrs.outer());
- param.ident.to_tokens(tokens);
- if !param.bounds.is_empty() {
- TokensOrDefault(¶m.colon_token).to_tokens(tokens);
- param.bounds.to_tokens(tokens);
- }
- }
- GenericParam::Const(param) => {
- // Leave off the const parameter defaults
- tokens.append_all(param.attrs.outer());
- param.const_token.to_tokens(tokens);
- param.ident.to_tokens(tokens);
- param.colon_token.to_tokens(tokens);
- param.ty.to_tokens(tokens);
- }
- }
- param.punct().to_tokens(tokens);
- }
-
- TokensOrDefault(&self.0.gt_token).to_tokens(tokens);
- }
- }
-
- impl<'a> ToTokens for TypeGenerics<'a> {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- if self.0.params.is_empty() {
- return;
- }
-
- TokensOrDefault(&self.0.lt_token).to_tokens(tokens);
-
- // Print lifetimes before types and consts, regardless of their
- // order in self.params.
- let mut trailing_or_empty = true;
- for param in self.0.params.pairs() {
- if let GenericParam::Lifetime(def) = *param.value() {
- // Leave off the lifetime bounds and attributes
- def.lifetime.to_tokens(tokens);
- param.punct().to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- }
- for param in self.0.params.pairs() {
- if let GenericParam::Lifetime(_) = **param.value() {
- continue;
- }
- if !trailing_or_empty {
- <Token![,]>::default().to_tokens(tokens);
- trailing_or_empty = true;
- }
- match param.value() {
- GenericParam::Lifetime(_) => unreachable!(),
- GenericParam::Type(param) => {
- // Leave off the type parameter defaults
- param.ident.to_tokens(tokens);
- }
- GenericParam::Const(param) => {
- // Leave off the const parameter defaults
- param.ident.to_tokens(tokens);
- }
- }
- param.punct().to_tokens(tokens);
- }
-
- TokensOrDefault(&self.0.gt_token).to_tokens(tokens);
- }
- }
-
- impl<'a> ToTokens for Turbofish<'a> {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- if !self.0.params.is_empty() {
- <Token![::]>::default().to_tokens(tokens);
- TypeGenerics(self.0).to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for BoundLifetimes {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.for_token.to_tokens(tokens);
- self.lt_token.to_tokens(tokens);
- self.lifetimes.to_tokens(tokens);
- self.gt_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LifetimeParam {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.lifetime.to_tokens(tokens);
- if !self.bounds.is_empty() {
- TokensOrDefault(&self.colon_token).to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeParam {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.ident.to_tokens(tokens);
- if !self.bounds.is_empty() {
- TokensOrDefault(&self.colon_token).to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- if let Some(default) = &self.default {
- TokensOrDefault(&self.eq_token).to_tokens(tokens);
- default.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitBound {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- let to_tokens = |tokens: &mut TokenStream| {
- self.modifier.to_tokens(tokens);
- self.lifetimes.to_tokens(tokens);
- self.path.to_tokens(tokens);
- };
- match &self.paren_token {
- Some(paren) => paren.surround(tokens, to_tokens),
- None => to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitBoundModifier {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- TraitBoundModifier::None => {}
- TraitBoundModifier::Maybe(t) => t.to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ConstParam {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.const_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- if let Some(default) = &self.default {
- TokensOrDefault(&self.eq_token).to_tokens(tokens);
- print_const_argument(default, tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for WhereClause {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- if !self.predicates.is_empty() {
- self.where_token.to_tokens(tokens);
- self.predicates.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PredicateLifetime {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.lifetime.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PredicateType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.lifetimes.to_tokens(tokens);
- self.bounded_ty.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PreciseCapture {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.use_token.to_tokens(tokens);
- self.lt_token.to_tokens(tokens);
-
- // Print lifetimes before types and consts, regardless of their
- // order in self.params.
- let mut trailing_or_empty = true;
- for param in self.params.pairs() {
- if let CapturedParam::Lifetime(_) = **param.value() {
- param.to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- }
- for param in self.params.pairs() {
- if let CapturedParam::Ident(_) = **param.value() {
- if !trailing_or_empty {
- <Token![,]>::default().to_tokens(tokens);
- trailing_or_empty = true;
- }
- param.to_tokens(tokens);
- }
- }
-
- self.gt_token.to_tokens(tokens);
- }
- }
-
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for CapturedParam {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- CapturedParam::Lifetime(lifetime) => lifetime.to_tokens(tokens),
- CapturedParam::Ident(ident) => ident.to_tokens(tokens),
- }
- }
- }
-
- pub(crate) fn print_const_argument(expr: &Expr, tokens: &mut TokenStream) {
- match expr {
- Expr::Lit(expr) => expr.to_tokens(tokens),
-
- Expr::Path(expr)
- if expr.attrs.is_empty()
- && expr.qself.is_none()
- && expr.path.get_ident().is_some() =>
- {
- expr.to_tokens(tokens);
- }
-
- #[cfg(feature = "full")]
- Expr::Block(expr) => expr.to_tokens(tokens),
-
- #[cfg(not(feature = "full"))]
- Expr::Verbatim(expr) => expr.to_tokens(tokens),
-
- // ERROR CORRECTION: Add braces to make sure that the
- // generated code is valid.
- _ => token::Brace::default().surround(tokens, |tokens| {
- #[cfg(feature = "full")]
- expr::printing::print_expr(expr, tokens, FixupContext::new_stmt());
-
- #[cfg(not(feature = "full"))]
- expr.to_tokens(tokens);
- }),
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/group.rs b/deps/crates/vendor/syn-v2/src/group.rs
deleted file mode 100644
index 56667b6a241..00000000000
--- a/deps/crates/vendor/syn-v2/src/group.rs
+++ /dev/null
@@ -1,294 +0,0 @@
-use crate::error::Result;
-use crate::parse::ParseBuffer;
-use crate::token;
-use proc_macro2::extra::DelimSpan;
-use proc_macro2::Delimiter;
-
-// Not public API.
-#[doc(hidden)]
-pub struct Parens<'a> {
- #[doc(hidden)]
- pub token: token::Paren,
- #[doc(hidden)]
- pub content: ParseBuffer<'a>,
-}
-
-// Not public API.
-#[doc(hidden)]
-pub struct Braces<'a> {
- #[doc(hidden)]
- pub token: token::Brace,
- #[doc(hidden)]
- pub content: ParseBuffer<'a>,
-}
-
-// Not public API.
-#[doc(hidden)]
-pub struct Brackets<'a> {
- #[doc(hidden)]
- pub token: token::Bracket,
- #[doc(hidden)]
- pub content: ParseBuffer<'a>,
-}
-
-// Not public API.
-#[cfg(any(feature = "full", feature = "derive"))]
-#[doc(hidden)]
-pub struct Group<'a> {
- #[doc(hidden)]
- pub token: token::Group,
- #[doc(hidden)]
- pub content: ParseBuffer<'a>,
-}
-
-// Not public API.
-#[doc(hidden)]
-pub fn parse_parens<'a>(input: &ParseBuffer<'a>) -> Result<Parens<'a>> {
- parse_delimited(input, Delimiter::Parenthesis).map(|(span, content)| Parens {
- token: token::Paren(span),
- content,
- })
-}
-
-// Not public API.
-#[doc(hidden)]
-pub fn parse_braces<'a>(input: &ParseBuffer<'a>) -> Result<Braces<'a>> {
- parse_delimited(input, Delimiter::Brace).map(|(span, content)| Braces {
- token: token::Brace(span),
- content,
- })
-}
-
-// Not public API.
-#[doc(hidden)]
-pub fn parse_brackets<'a>(input: &ParseBuffer<'a>) -> Result<Brackets<'a>> {
- parse_delimited(input, Delimiter::Bracket).map(|(span, content)| Brackets {
- token: token::Bracket(span),
- content,
- })
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-pub(crate) fn parse_group<'a>(input: &ParseBuffer<'a>) -> Result<Group<'a>> {
- parse_delimited(input, Delimiter::None).map(|(span, content)| Group {
- token: token::Group(span.join()),
- content,
- })
-}
-
-fn parse_delimited<'a>(
- input: &ParseBuffer<'a>,
- delimiter: Delimiter,
-) -> Result<(DelimSpan, ParseBuffer<'a>)> {
- input.step(|cursor| {
- if let Some((content, span, rest)) = cursor.group(delimiter) {
- let scope = span.close();
- let nested = crate::parse::advance_step_cursor(cursor, content);
- let unexpected = crate::parse::get_unexpected(input);
- let content = crate::parse::new_parse_buffer(scope, nested, unexpected);
- Ok(((span, content), rest))
- } else {
- let message = match delimiter {
- Delimiter::Parenthesis => "expected parentheses",
- Delimiter::Brace => "expected curly braces",
- Delimiter::Bracket => "expected square brackets",
- Delimiter::None => "expected invisible group",
- };
- Err(cursor.error(message))
- }
- })
-}
-
-/// Parse a set of parentheses and expose their content to subsequent parsers.
-///
-/// # Example
-///
-/// ```
-/// # use quote::quote;
-/// #
-/// use syn::{parenthesized, token, Ident, Result, Token, Type};
-/// use syn::parse::{Parse, ParseStream};
-/// use syn::punctuated::Punctuated;
-///
-/// // Parse a simplified tuple struct syntax like:
-/// //
-/// // struct S(A, B);
-/// struct TupleStruct {
-/// struct_token: Token![struct],
-/// ident: Ident,
-/// paren_token: token::Paren,
-/// fields: Punctuated<Type, Token![,]>,
-/// semi_token: Token![;],
-/// }
-///
-/// impl Parse for TupleStruct {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let content;
-/// Ok(TupleStruct {
-/// struct_token: input.parse()?,
-/// ident: input.parse()?,
-/// paren_token: parenthesized!(content in input),
-/// fields: content.parse_terminated(Type::parse, Token![,])?,
-/// semi_token: input.parse()?,
-/// })
-/// }
-/// }
-/// #
-/// # fn main() {
-/// # let input = quote! {
-/// # struct S(A, B);
-/// # };
-/// # syn::parse2::<TupleStruct>(input).unwrap();
-/// # }
-/// ```
-#[macro_export]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-macro_rules! parenthesized {
- ($content:ident in $cursor:expr) => {
- match $crate::__private::parse_parens(&$cursor) {
- $crate::__private::Ok(parens) => {
- $content = parens.content;
- _ = $content;
- parens.token
- }
- $crate::__private::Err(error) => {
- return $crate::__private::Err(error);
- }
- }
- };
-}
-
-/// Parse a set of curly braces and expose their content to subsequent parsers.
-///
-/// # Example
-///
-/// ```
-/// # use quote::quote;
-/// #
-/// use syn::{braced, token, Ident, Result, Token, Type};
-/// use syn::parse::{Parse, ParseStream};
-/// use syn::punctuated::Punctuated;
-///
-/// // Parse a simplified struct syntax like:
-/// //
-/// // struct S {
-/// // a: A,
-/// // b: B,
-/// // }
-/// struct Struct {
-/// struct_token: Token![struct],
-/// ident: Ident,
-/// brace_token: token::Brace,
-/// fields: Punctuated<Field, Token![,]>,
-/// }
-///
-/// struct Field {
-/// name: Ident,
-/// colon_token: Token![:],
-/// ty: Type,
-/// }
-///
-/// impl Parse for Struct {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let content;
-/// Ok(Struct {
-/// struct_token: input.parse()?,
-/// ident: input.parse()?,
-/// brace_token: braced!(content in input),
-/// fields: content.parse_terminated(Field::parse, Token![,])?,
-/// })
-/// }
-/// }
-///
-/// impl Parse for Field {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// Ok(Field {
-/// name: input.parse()?,
-/// colon_token: input.parse()?,
-/// ty: input.parse()?,
-/// })
-/// }
-/// }
-/// #
-/// # fn main() {
-/// # let input = quote! {
-/// # struct S {
-/// # a: A,
-/// # b: B,
-/// # }
-/// # };
-/// # syn::parse2::<Struct>(input).unwrap();
-/// # }
-/// ```
-#[macro_export]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-macro_rules! braced {
- ($content:ident in $cursor:expr) => {
- match $crate::__private::parse_braces(&$cursor) {
- $crate::__private::Ok(braces) => {
- $content = braces.content;
- _ = $content;
- braces.token
- }
- $crate::__private::Err(error) => {
- return $crate::__private::Err(error);
- }
- }
- };
-}
-
-/// Parse a set of square brackets and expose their content to subsequent
-/// parsers.
-///
-/// # Example
-///
-/// ```
-/// # use quote::quote;
-/// #
-/// use proc_macro2::TokenStream;
-/// use syn::{bracketed, token, Result, Token};
-/// use syn::parse::{Parse, ParseStream};
-///
-/// // Parse an outer attribute like:
-/// //
-/// // #[repr(C, packed)]
-/// struct OuterAttribute {
-/// pound_token: Token![#],
-/// bracket_token: token::Bracket,
-/// content: TokenStream,
-/// }
-///
-/// impl Parse for OuterAttribute {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let content;
-/// Ok(OuterAttribute {
-/// pound_token: input.parse()?,
-/// bracket_token: bracketed!(content in input),
-/// content: content.parse()?,
-/// })
-/// }
-/// }
-/// #
-/// # fn main() {
-/// # let input = quote! {
-/// # #[repr(C, packed)]
-/// # };
-/// # syn::parse2::<OuterAttribute>(input).unwrap();
-/// # }
-/// ```
-#[macro_export]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-macro_rules! bracketed {
- ($content:ident in $cursor:expr) => {
- match $crate::__private::parse_brackets(&$cursor) {
- $crate::__private::Ok(brackets) => {
- $content = brackets.content;
- _ = $content;
- brackets.token
- }
- $crate::__private::Err(error) => {
- return $crate::__private::Err(error);
- }
- }
- };
-}
diff --git a/deps/crates/vendor/syn-v2/src/ident.rs b/deps/crates/vendor/syn-v2/src/ident.rs
deleted file mode 100644
index 923fe19d196..00000000000
--- a/deps/crates/vendor/syn-v2/src/ident.rs
+++ /dev/null
@@ -1,109 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::lookahead;
-
-pub use proc_macro2::Ident;
-
-#[cfg(feature = "parsing")]
-pub_if_not_doc! {
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn Ident(marker: lookahead::TokenMarker) -> Ident {
- match marker {}
- }
-}
-
-macro_rules! ident_from_token {
- ($token:ident) => {
- impl From<Token![$token]> for Ident {
- fn from(token: Token![$token]) -> Ident {
- Ident::new(stringify!($token), token.span)
- }
- }
- };
-}
-
-ident_from_token!(self);
-ident_from_token!(Self);
-ident_from_token!(super);
-ident_from_token!(crate);
-ident_from_token!(extern);
-
-impl From<Token![_]> for Ident {
- fn from(token: Token![_]) -> Ident {
- Ident::new("_", token.span)
- }
-}
-
-pub(crate) fn xid_ok(symbol: &str) -> bool {
- let mut chars = symbol.chars();
- let first = chars.next().unwrap();
- if !(first == '_' || unicode_ident::is_xid_start(first)) {
- return false;
- }
- for ch in chars {
- if !unicode_ident::is_xid_continue(ch) {
- return false;
- }
- }
- true
-}
-
-#[cfg(feature = "parsing")]
-mod parsing {
- use crate::buffer::Cursor;
- use crate::error::Result;
- use crate::parse::{Parse, ParseStream};
- use crate::token::Token;
- use alloc::string::ToString;
- use proc_macro2::Ident;
-
- fn accept_as_ident(ident: &Ident) -> bool {
- match ident.to_string().as_str() {
- "_" |
- // Based on https://doc.rust-lang.org/1.65.0/reference/keywords.html
- "abstract" | "as" | "async" | "await" | "become" | "box" | "break" |
- "const" | "continue" | "crate" | "do" | "dyn" | "else" | "enum" |
- "extern" | "false" | "final" | "fn" | "for" | "if" | "impl" | "in" |
- "let" | "loop" | "macro" | "match" | "mod" | "move" | "mut" |
- "override" | "priv" | "pub" | "ref" | "return" | "Self" | "self" |
- "static" | "struct" | "super" | "trait" | "true" | "try" | "type" |
- "typeof" | "unsafe" | "unsized" | "use" | "virtual" | "where" |
- "while" | "yield" => false,
- _ => true,
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Ident {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| {
- if let Some((ident, rest)) = cursor.ident() {
- if accept_as_ident(&ident) {
- Ok((ident, rest))
- } else {
- Err(cursor.error(format_args!(
- "expected identifier, found keyword `{}`",
- ident,
- )))
- }
- } else {
- Err(cursor.error("expected identifier"))
- }
- })
- }
- }
-
- impl Token for Ident {
- fn peek(cursor: Cursor) -> bool {
- if let Some((ident, _rest)) = cursor.ident() {
- accept_as_ident(&ident)
- } else {
- false
- }
- }
-
- fn display() -> &'static str {
- "identifier"
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/item.rs b/deps/crates/vendor/syn-v2/src/item.rs
deleted file mode 100644
index bdb229a1cdd..00000000000
--- a/deps/crates/vendor/syn-v2/src/item.rs
+++ /dev/null
@@ -1,3413 +0,0 @@
-use crate::attr::Attribute;
-use crate::data::{Fields, FieldsNamed, Variant};
-use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
-use crate::expr::Expr;
-use crate::generics::{Generics, TypeParamBound};
-use crate::ident::Ident;
-use crate::lifetime::Lifetime;
-use crate::mac::Macro;
-use crate::pat::{Pat, PatType};
-use crate::path::Path;
-use crate::punctuated::Punctuated;
-use crate::restriction::Visibility;
-use crate::stmt::Block;
-use crate::token;
-use crate::ty::{Abi, ReturnType, Type};
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-#[cfg(feature = "parsing")]
-use core::mem;
-use proc_macro2::TokenStream;
-
-ast_enum_of_structs! {
- /// Things that can appear directly inside of a module or scope.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum Item {
- /// A constant item: `const MAX: u16 = 65535`.
- Const(ItemConst),
-
- /// An enum definition: `enum Foo<A, B> { A(A), B(B) }`.
- Enum(ItemEnum),
-
- /// An `extern crate` item: `extern crate serde`.
- ExternCrate(ItemExternCrate),
-
- /// A free-standing function: `fn process(n: usize) -> Result<()> { ...
- /// }`.
- Fn(ItemFn),
-
- /// A block of foreign items: `extern "C" { ... }`.
- ForeignMod(ItemForeignMod),
-
- /// An impl block providing trait or associated items: `impl<A> Trait
- /// for Data<A> { ... }`.
- Impl(ItemImpl),
-
- /// A macro invocation, which includes `macro_rules!` definitions.
- Macro(ItemMacro),
-
- /// A module or module declaration: `mod m` or `mod m { ... }`.
- Mod(ItemMod),
-
- /// A static item: `static BIKE: Shed = Shed(42)`.
- Static(ItemStatic),
-
- /// A struct definition: `struct Foo<A> { x: A }`.
- Struct(ItemStruct),
-
- /// A trait definition: `pub trait Iterator { ... }`.
- Trait(ItemTrait),
-
- /// A trait alias: `pub trait SharableIterator = Iterator + Sync`.
- TraitAlias(ItemTraitAlias),
-
- /// A type alias: `type Result<T> = core::result::Result<T, MyError>`.
- Type(ItemType),
-
- /// A union definition: `union Foo<A, B> { x: A, y: B }`.
- Union(ItemUnion),
-
- /// A use declaration: `use alloc::collections::HashMap`.
- Use(ItemUse),
-
- /// Tokens forming an item not interpreted by Syn.
- Verbatim(TokenStream),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match item {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // Item::Const(item) => {...}
- // Item::Enum(item) => {...}
- // ...
- // Item::Verbatim(item) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// A constant item: `const MAX: u16 = 65535`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemConst {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub const_token: Token![const],
- pub ident: Ident,
- pub generics: Generics,
- pub colon_token: Token![:],
- pub ty: Box<Type>,
- pub eq_token: Token![=],
- pub expr: Box<Expr>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// An enum definition: `enum Foo<A, B> { A(A), B(B) }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemEnum {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub enum_token: Token![enum],
- pub ident: Ident,
- pub generics: Generics,
- pub brace_token: token::Brace,
- pub variants: Punctuated<Variant, Token![,]>,
- }
-}
-
-ast_struct! {
- /// An `extern crate` item: `extern crate serde`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemExternCrate {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub extern_token: Token![extern],
- pub crate_token: Token![crate],
- pub ident: Ident,
- pub rename: Option<(Token![as], Ident)>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A free-standing function: `fn process(n: usize) -> Result<()> { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemFn {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub sig: Signature,
- pub block: Box<Block>,
- }
-}
-
-ast_struct! {
- /// A block of foreign items: `extern "C" { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemForeignMod {
- pub attrs: Vec<Attribute>,
- pub unsafety: Option<Token![unsafe]>,
- pub abi: Abi,
- pub brace_token: token::Brace,
- pub items: Vec<ForeignItem>,
- }
-}
-
-ast_struct! {
- /// An impl block providing trait or associated items: `impl<A> Trait
- /// for Data<A> { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemImpl {
- pub attrs: Vec<Attribute>,
- pub defaultness: Option<Token![default]>,
- pub unsafety: Option<Token![unsafe]>,
- pub impl_token: Token![impl],
- pub generics: Generics,
- /// Trait this impl implements.
- pub trait_: Option<(Option<Token![!]>, Path, Token![for])>,
- /// The Self type of the impl.
- pub self_ty: Box<Type>,
- pub brace_token: token::Brace,
- pub items: Vec<ImplItem>,
- }
-}
-
-ast_struct! {
- /// A macro invocation, which includes `macro_rules!` definitions.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemMacro {
- pub attrs: Vec<Attribute>,
- /// The `example` in `macro_rules! example { ... }`.
- pub ident: Option<Ident>,
- pub mac: Macro,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// A module or module declaration: `mod m` or `mod m { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemMod {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub unsafety: Option<Token![unsafe]>,
- pub mod_token: Token![mod],
- pub ident: Ident,
- pub content: Option<(token::Brace, Vec<Item>)>,
- pub semi: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// A static item: `static BIKE: Shed = Shed(42)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemStatic {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub static_token: Token![static],
- pub mutability: StaticMutability,
- pub ident: Ident,
- pub colon_token: Token![:],
- pub ty: Box<Type>,
- pub eq_token: Token![=],
- pub expr: Box<Expr>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A struct definition: `struct Foo<A> { x: A }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemStruct {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub struct_token: Token![struct],
- pub ident: Ident,
- pub generics: Generics,
- pub fields: Fields,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// A trait definition: `pub trait Iterator { ... }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemTrait {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub unsafety: Option<Token![unsafe]>,
- pub auto_token: Option<Token![auto]>,
- pub restriction: Option<ImplRestriction>,
- pub trait_token: Token![trait],
- pub ident: Ident,
- pub generics: Generics,
- pub colon_token: Option<Token![:]>,
- pub supertraits: Punctuated<TypeParamBound, Token![+]>,
- pub brace_token: token::Brace,
- pub items: Vec<TraitItem>,
- }
-}
-
-ast_struct! {
- /// A trait alias: `pub trait SharableIterator = Iterator + Sync`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemTraitAlias {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub trait_token: Token![trait],
- pub ident: Ident,
- pub generics: Generics,
- pub eq_token: Token![=],
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A type alias: `type Result<T> = core::result::Result<T, MyError>`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemType {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub type_token: Token![type],
- pub ident: Ident,
- pub generics: Generics,
- pub eq_token: Token![=],
- pub ty: Box<Type>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A union definition: `union Foo<A, B> { x: A, y: B }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemUnion {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub union_token: Token![union],
- pub ident: Ident,
- pub generics: Generics,
- pub fields: FieldsNamed,
- }
-}
-
-ast_struct! {
- /// A use declaration: `use alloc::collections::HashMap`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ItemUse {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub use_token: Token![use],
- pub leading_colon: Option<Token![::]>,
- pub tree: UseTree,
- pub semi_token: Token![;],
- }
-}
-
-impl Item {
- #[cfg(feature = "parsing")]
- pub(crate) fn replace_attrs(&mut self, new: Vec<Attribute>) -> Vec<Attribute> {
- match self {
- Item::Const(ItemConst { attrs, .. })
- | Item::Enum(ItemEnum { attrs, .. })
- | Item::ExternCrate(ItemExternCrate { attrs, .. })
- | Item::Fn(ItemFn { attrs, .. })
- | Item::ForeignMod(ItemForeignMod { attrs, .. })
- | Item::Impl(ItemImpl { attrs, .. })
- | Item::Macro(ItemMacro { attrs, .. })
- | Item::Mod(ItemMod { attrs, .. })
- | Item::Static(ItemStatic { attrs, .. })
- | Item::Struct(ItemStruct { attrs, .. })
- | Item::Trait(ItemTrait { attrs, .. })
- | Item::TraitAlias(ItemTraitAlias { attrs, .. })
- | Item::Type(ItemType { attrs, .. })
- | Item::Union(ItemUnion { attrs, .. })
- | Item::Use(ItemUse { attrs, .. }) => mem::replace(attrs, new),
- Item::Verbatim(_) => Vec::new(),
- }
- }
-}
-
-impl From<DeriveInput> for Item {
- fn from(input: DeriveInput) -> Item {
- match input.data {
- Data::Struct(data) => Item::Struct(ItemStruct {
- attrs: input.attrs,
- vis: input.vis,
- struct_token: data.struct_token,
- ident: input.ident,
- generics: input.generics,
- fields: data.fields,
- semi_token: data.semi_token,
- }),
- Data::Enum(data) => Item::Enum(ItemEnum {
- attrs: input.attrs,
- vis: input.vis,
- enum_token: data.enum_token,
- ident: input.ident,
- generics: input.generics,
- brace_token: data.brace_token,
- variants: data.variants,
- }),
- Data::Union(data) => Item::Union(ItemUnion {
- attrs: input.attrs,
- vis: input.vis,
- union_token: data.union_token,
- ident: input.ident,
- generics: input.generics,
- fields: data.fields,
- }),
- }
- }
-}
-
-impl From<ItemStruct> for DeriveInput {
- fn from(input: ItemStruct) -> DeriveInput {
- DeriveInput {
- attrs: input.attrs,
- vis: input.vis,
- ident: input.ident,
- generics: input.generics,
- data: Data::Struct(DataStruct {
- struct_token: input.struct_token,
- fields: input.fields,
- semi_token: input.semi_token,
- }),
- }
- }
-}
-
-impl From<ItemEnum> for DeriveInput {
- fn from(input: ItemEnum) -> DeriveInput {
- DeriveInput {
- attrs: input.attrs,
- vis: input.vis,
- ident: input.ident,
- generics: input.generics,
- data: Data::Enum(DataEnum {
- enum_token: input.enum_token,
- brace_token: input.brace_token,
- variants: input.variants,
- }),
- }
- }
-}
-
-impl From<ItemUnion> for DeriveInput {
- fn from(input: ItemUnion) -> DeriveInput {
- DeriveInput {
- attrs: input.attrs,
- vis: input.vis,
- ident: input.ident,
- generics: input.generics,
- data: Data::Union(DataUnion { union_token: input.union_token, fields: input.fields }),
- }
- }
-}
-
-ast_enum_of_structs! {
- /// A suffix of an import tree in a `use` item: `Type as Renamed` or `*`.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub enum UseTree {
- /// A path prefix of imports in a `use` item: `core::...`.
- Path(UsePath),
-
- /// An identifier imported by a `use` item: `HashMap`.
- Name(UseName),
-
- /// An renamed identifier imported by a `use` item: `HashMap as Map`.
- Rename(UseRename),
-
- /// A glob import in a `use` item: `*`.
- Glob(UseGlob),
-
- /// A braced group of imports in a `use` item: `{A, B, C}`.
- Group(UseGroup),
- }
-}
-
-ast_struct! {
- /// A path prefix of imports in a `use` item: `core::...`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct UsePath {
- pub ident: Ident,
- pub colon2_token: Token![::],
- pub tree: Box<UseTree>,
- }
-}
-
-ast_struct! {
- /// An identifier imported by a `use` item: `HashMap`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct UseName {
- pub ident: Ident,
- }
-}
-
-ast_struct! {
- /// An renamed identifier imported by a `use` item: `HashMap as Map`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct UseRename {
- pub ident: Ident,
- pub as_token: Token![as],
- pub rename: Ident,
- }
-}
-
-ast_struct! {
- /// A glob import in a `use` item: `*`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct UseGlob {
- pub star_token: Token![*],
- }
-}
-
-ast_struct! {
- /// A braced group of imports in a `use` item: `{A, B, C}`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct UseGroup {
- pub brace_token: token::Brace,
- pub items: Punctuated<UseTree, Token![,]>,
- }
-}
-
-ast_enum_of_structs! {
- /// An item within an `extern` block.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum ForeignItem {
- /// A foreign function in an `extern` block.
- Fn(ForeignItemFn),
-
- /// A foreign static item in an `extern` block: `static ext: u8`.
- Static(ForeignItemStatic),
-
- /// A foreign type in an `extern` block: `type void`.
- Type(ForeignItemType),
-
- /// A macro invocation within an extern block.
- Macro(ForeignItemMacro),
-
- /// Tokens in an `extern` block not interpreted by Syn.
- Verbatim(TokenStream),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match item {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // ForeignItem::Fn(item) => {...}
- // ForeignItem::Static(item) => {...}
- // ...
- // ForeignItem::Verbatim(item) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// A foreign function in an `extern` block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ForeignItemFn {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub sig: Signature,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A foreign static item in an `extern` block: `static ext: u8`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ForeignItemStatic {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub static_token: Token![static],
- pub mutability: StaticMutability,
- pub ident: Ident,
- pub colon_token: Token![:],
- pub ty: Box<Type>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A foreign type in an `extern` block: `type void`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ForeignItemType {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub type_token: Token![type],
- pub ident: Ident,
- pub generics: Generics,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A macro invocation within an extern block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ForeignItemMacro {
- pub attrs: Vec<Attribute>,
- pub mac: Macro,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_enum_of_structs! {
- /// An item declaration within the definition of a trait.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum TraitItem {
- /// An associated constant within the definition of a trait.
- Const(TraitItemConst),
-
- /// An associated function within the definition of a trait.
- Fn(TraitItemFn),
-
- /// An associated type within the definition of a trait.
- Type(TraitItemType),
-
- /// A macro invocation within the definition of a trait.
- Macro(TraitItemMacro),
-
- /// Tokens within the definition of a trait not interpreted by Syn.
- Verbatim(TokenStream),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match item {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // TraitItem::Const(item) => {...}
- // TraitItem::Fn(item) => {...}
- // ...
- // TraitItem::Verbatim(item) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// An associated constant within the definition of a trait.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct TraitItemConst {
- pub attrs: Vec<Attribute>,
- pub const_token: Token![const],
- pub ident: Ident,
- pub generics: Generics,
- pub colon_token: Token![:],
- pub ty: Type,
- pub default: Option<(Token![=], Expr)>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// An associated function within the definition of a trait.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct TraitItemFn {
- pub attrs: Vec<Attribute>,
- pub sig: Signature,
- pub default: Option<Block>,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// An associated type within the definition of a trait.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct TraitItemType {
- pub attrs: Vec<Attribute>,
- pub type_token: Token![type],
- pub ident: Ident,
- pub generics: Generics,
- pub colon_token: Option<Token![:]>,
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- pub default: Option<(Token![=], Type)>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A macro invocation within the definition of a trait.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct TraitItemMacro {
- pub attrs: Vec<Attribute>,
- pub mac: Macro,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_enum_of_structs! {
- /// An item within an impl block.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum ImplItem {
- /// An associated constant within an impl block.
- Const(ImplItemConst),
-
- /// An associated function within an impl block.
- Fn(ImplItemFn),
-
- /// An associated type within an impl block.
- Type(ImplItemType),
-
- /// A macro invocation within an impl block.
- Macro(ImplItemMacro),
-
- /// Tokens within an impl block not interpreted by Syn.
- Verbatim(TokenStream),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match item {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // ImplItem::Const(item) => {...}
- // ImplItem::Fn(item) => {...}
- // ...
- // ImplItem::Verbatim(item) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// An associated constant within an impl block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ImplItemConst {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub defaultness: Option<Token![default]>,
- pub const_token: Token![const],
- pub ident: Ident,
- pub generics: Generics,
- pub colon_token: Token![:],
- pub ty: Type,
- pub eq_token: Token![=],
- pub expr: Expr,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// An associated function within an impl block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ImplItemFn {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub defaultness: Option<Token![default]>,
- pub sig: Signature,
- pub block: Block,
- }
-}
-
-ast_struct! {
- /// An associated type within an impl block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ImplItemType {
- pub attrs: Vec<Attribute>,
- pub vis: Visibility,
- pub defaultness: Option<Token![default]>,
- pub type_token: Token![type],
- pub ident: Ident,
- pub generics: Generics,
- pub eq_token: Token![=],
- pub ty: Type,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// A macro invocation within an impl block.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct ImplItemMacro {
- pub attrs: Vec<Attribute>,
- pub mac: Macro,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-ast_struct! {
- /// A function signature in a trait or implementation: `unsafe fn
- /// initialize(&self)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Signature {
- pub constness: Option<Token![const]>,
- pub asyncness: Option<Token![async]>,
- pub unsafety: Option<Token![unsafe]>,
- pub abi: Option<Abi>,
- pub fn_token: Token![fn],
- pub ident: Ident,
- pub generics: Generics,
- pub paren_token: token::Paren,
- pub inputs: Punctuated<FnArg, Token![,]>,
- pub variadic: Option<Variadic>,
- pub output: ReturnType,
- }
-}
-
-impl Signature {
- /// A method's `self` receiver, such as `&self` or `self: Box<Self>`.
- pub fn receiver(&self) -> Option<&Receiver> {
- let arg = self.inputs.first()?;
- match arg {
- FnArg::Receiver(receiver) => Some(receiver),
- FnArg::Typed(_) => None,
- }
- }
-}
-
-ast_enum_of_structs! {
- /// An argument in a function signature: the `n: usize` in `fn f(n: usize)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub enum FnArg {
- /// The `self` argument of an associated method.
- Receiver(Receiver),
-
- /// A function argument accepted by pattern and type.
- Typed(PatType),
- }
-}
-
-ast_struct! {
- /// The `self` argument of an associated method.
- ///
- /// If `colon_token` is present, the receiver is written with an explicit
- /// type such as `self: Box<Self>`. If `colon_token` is absent, the receiver
- /// is written in shorthand such as `self` or `&self` or `&mut self`. In the
- /// shorthand case, the type in `ty` is reconstructed as one of `Self`,
- /// `&Self`, or `&mut Self`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Receiver {
- pub attrs: Vec<Attribute>,
- pub reference: Option<(Token![&], Option<Lifetime>)>,
- pub mutability: Option<Token![mut]>,
- pub self_token: Token![self],
- pub colon_token: Option<Token![:]>,
- pub ty: Box<Type>,
- }
-}
-
-impl Receiver {
- pub fn lifetime(&self) -> Option<&Lifetime> {
- self.reference.as_ref()?.1.as_ref()
- }
-}
-
-ast_struct! {
- /// The variadic argument of a foreign function.
- ///
- /// ```rust
- /// # struct c_char;
- /// # struct c_int;
- /// #
- /// extern "C" {
- /// fn printf(format: *const c_char, ...) -> c_int;
- /// // ^^^
- /// }
- /// ```
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Variadic {
- pub attrs: Vec<Attribute>,
- pub pat: Option<(Box<Pat>, Token![:])>,
- pub dots: Token![...],
- pub comma: Option<Token![,]>,
- }
-}
-
-ast_enum! {
- /// The mutability of an `Item::Static` or `ForeignItem::Static`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum StaticMutability {
- Mut(Token![mut]),
- None,
- }
-}
-
-ast_enum! {
- /// Unused, but reserved for RFC 3323 restrictions.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum ImplRestriction {}
-
-
- // TODO: https://rust-lang.github.io/rfcs/3323-restrictions.html
- //
- // pub struct ImplRestriction {
- // pub impl_token: Token![impl],
- // pub paren_token: token::Paren,
- // pub in_token: Option<Token![in]>,
- // pub path: Box<Path>,
- // }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::{self, Attribute};
- use crate::buffer::Cursor;
- use crate::derive;
- use crate::error::{Error, Result};
- use crate::expr::Expr;
- use crate::ext::IdentExt as _;
- use crate::generics::{self, Generics, TypeParamBound};
- use crate::ident::Ident;
- use crate::item::{
- FnArg, ForeignItem, ForeignItemFn, ForeignItemMacro, ForeignItemStatic, ForeignItemType,
- ImplItem, ImplItemConst, ImplItemFn, ImplItemMacro, ImplItemType, Item, ItemConst,
- ItemEnum, ItemExternCrate, ItemFn, ItemForeignMod, ItemImpl, ItemMacro, ItemMod,
- ItemStatic, ItemStruct, ItemTrait, ItemTraitAlias, ItemType, ItemUnion, ItemUse, Receiver,
- Signature, StaticMutability, TraitItem, TraitItemConst, TraitItemFn, TraitItemMacro,
- TraitItemType, UseGlob, UseGroup, UseName, UsePath, UseRename, UseTree, Variadic,
- };
- use crate::lifetime::Lifetime;
- use crate::lit::LitStr;
- use crate::mac::{self, Macro};
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- use crate::pat::{Pat, PatType, PatWild};
- use crate::path::Path;
- use crate::punctuated::Punctuated;
- use crate::restriction::Visibility;
- use crate::stmt::Block;
- use crate::token;
- use crate::ty::{Abi, ReturnType, Type, TypePath, TypeReference};
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::vec::Vec;
- use proc_macro2::TokenStream;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Item {
- fn parse(input: ParseStream) -> Result<Self> {
- let begin = input.cursor();
- let attrs = input.call(Attribute::parse_outer)?;
- parse_rest_of_item(begin, attrs, input)
- }
- }
-
- pub(crate) fn parse_rest_of_item(
- begin: Cursor,
- mut attrs: Vec<Attribute>,
- input: ParseStream,
- ) -> Result<Item> {
- let ahead = input.fork();
- let vis: Visibility = ahead.parse()?;
-
- let lookahead = ahead.lookahead1();
- let allow_safe = false;
- let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) {
- let vis: Visibility = input.parse()?;
- let sig: Signature = input.parse()?;
- if input.peek(Token![;]) {
- input.parse::<Token![;]>()?;
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- parse_rest_of_fn(input, Vec::new(), vis, sig).map(Item::Fn)
- }
- } else if lookahead.peek(Token![extern]) {
- ahead.parse::<Token![extern]>()?;
- let lookahead = ahead.lookahead1();
- if lookahead.peek(Token![crate]) {
- input.parse().map(Item::ExternCrate)
- } else if lookahead.peek(token::Brace) {
- input.parse().map(Item::ForeignMod)
- } else if lookahead.peek(LitStr) {
- ahead.parse::<LitStr>()?;
- let lookahead = ahead.lookahead1();
- if lookahead.peek(token::Brace) {
- input.parse().map(Item::ForeignMod)
- } else {
- Err(lookahead.error())
- }
- } else {
- Err(lookahead.error())
- }
- } else if lookahead.peek(Token![use]) {
- let allow_crate_root_in_path = true;
- match parse_item_use(input, allow_crate_root_in_path)? {
- Some(item_use) => Ok(Item::Use(item_use)),
- None => Ok(Item::Verbatim(verbatim::between(begin, input.cursor()))),
- }
- } else if lookahead.peek(Token![static]) {
- let vis = input.parse()?;
- let static_token = input.parse()?;
- let mutability = input.parse()?;
- let ident = input.parse()?;
- if input.peek(Token![=]) {
- input.parse::<Token![=]>()?;
- input.parse::<Expr>()?;
- input.parse::<Token![;]>()?;
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- let colon_token = input.parse()?;
- let ty = input.parse()?;
- if input.peek(Token![;]) {
- input.parse::<Token![;]>()?;
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- Ok(Item::Static(ItemStatic {
- attrs: Vec::new(),
- vis,
- static_token,
- mutability,
- ident,
- colon_token,
- ty,
- eq_token: input.parse()?,
- expr: input.parse()?,
- semi_token: input.parse()?,
- }))
- }
- }
- } else if lookahead.peek(Token![const]) {
- let vis = input.parse()?;
- let const_token: Token![const] = input.parse()?;
- let lookahead = input.lookahead1();
- let ident = if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.call(Ident::parse_any)?
- } else {
- return Err(lookahead.error());
- };
- let mut generics: Generics = input.parse()?;
- let colon_token = input.parse()?;
- let ty = input.parse()?;
- let value = if let Some(eq_token) = input.parse::<Option<Token![=]>>()? {
- let expr: Expr = input.parse()?;
- Some((eq_token, expr))
- } else {
- None
- };
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- match value {
- Some((eq_token, expr))
- if generics.lt_token.is_none() && generics.where_clause.is_none() =>
- {
- Ok(Item::Const(ItemConst {
- attrs: Vec::new(),
- vis,
- const_token,
- ident,
- generics,
- colon_token,
- ty,
- eq_token,
- expr: Box::new(expr),
- semi_token,
- }))
- }
- _ => Ok(Item::Verbatim(verbatim::between(begin, input.cursor()))),
- }
- } else if lookahead.peek(Token![unsafe]) {
- ahead.parse::<Token![unsafe]>()?;
- let lookahead = ahead.lookahead1();
- if lookahead.peek(Token![trait])
- || lookahead.peek(Token![auto]) && ahead.peek2(Token![trait])
- {
- input.parse().map(Item::Trait)
- } else if lookahead.peek(Token![impl]) {
- let allow_verbatim_impl = true;
- if let Some(item) = parse_impl(input, allow_verbatim_impl)? {
- Ok(Item::Impl(item))
- } else {
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- }
- } else if lookahead.peek(Token![extern]) {
- input.parse().map(Item::ForeignMod)
- } else if lookahead.peek(Token![mod]) {
- input.parse().map(Item::Mod)
- } else {
- Err(lookahead.error())
- }
- } else if lookahead.peek(Token![mod]) {
- input.parse().map(Item::Mod)
- } else if lookahead.peek(Token![type]) {
- parse_item_type(begin, input)
- } else if lookahead.peek(Token![struct]) {
- input.parse().map(Item::Struct)
- } else if lookahead.peek(Token![enum]) {
- input.parse().map(Item::Enum)
- } else if lookahead.peek(Token![union]) && ahead.peek2(Ident) {
- input.parse().map(Item::Union)
- } else if lookahead.peek(Token![trait]) {
- input.call(parse_trait_or_trait_alias)
- } else if lookahead.peek(Token![auto]) && ahead.peek2(Token![trait]) {
- input.parse().map(Item::Trait)
- } else if lookahead.peek(Token![impl])
- || lookahead.peek(Token![default]) && !ahead.peek2(Token![!])
- {
- let allow_verbatim_impl = true;
- if let Some(item) = parse_impl(input, allow_verbatim_impl)? {
- Ok(Item::Impl(item))
- } else {
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- }
- } else if lookahead.peek(Token![macro]) {
- input.advance_to(&ahead);
- parse_macro2(begin, vis, input)
- } else if vis.is_inherited()
- && (lookahead.peek(Ident)
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- || lookahead.peek(Token![::]))
- {
- input.parse().map(Item::Macro)
- } else {
- Err(lookahead.error())
- }?;
-
- attrs.extend(item.replace_attrs(Vec::new()));
- item.replace_attrs(attrs);
- Ok(item)
- }
-
- struct FlexibleItemType {
- vis: Visibility,
- defaultness: Option<Token![default]>,
- type_token: Token![type],
- ident: Ident,
- generics: Generics,
- colon_token: Option<Token![:]>,
- bounds: Punctuated<TypeParamBound, Token![+]>,
- ty: Option<(Token![=], Type)>,
- semi_token: Token![;],
- }
-
- enum TypeDefaultness {
- Optional,
- Disallowed,
- }
-
- enum WhereClauseLocation {
- // type Ty<T> where T: 'static = T;
- BeforeEq,
- // type Ty<T> = T where T: 'static;
- AfterEq,
- // TODO: goes away once the migration period on rust-lang/rust#89122 is over
- Both,
- }
-
- impl FlexibleItemType {
- fn parse(
- input: ParseStream,
- allow_defaultness: TypeDefaultness,
- where_clause_location: WhereClauseLocation,
- ) -> Result<Self> {
- let vis: Visibility = input.parse()?;
- let defaultness: Option<Token![default]> = match allow_defaultness {
- TypeDefaultness::Optional => input.parse()?,
- TypeDefaultness::Disallowed => None,
- };
- let type_token: Token![type] = input.parse()?;
- let ident: Ident = input.parse()?;
- let mut generics: Generics = input.parse()?;
- let (colon_token, bounds) = Self::parse_optional_bounds(input)?;
-
- match where_clause_location {
- WhereClauseLocation::BeforeEq | WhereClauseLocation::Both => {
- generics.where_clause = input.parse()?;
- }
- WhereClauseLocation::AfterEq => {}
- }
-
- let ty = Self::parse_optional_definition(input)?;
-
- match where_clause_location {
- WhereClauseLocation::AfterEq | WhereClauseLocation::Both
- if generics.where_clause.is_none() =>
- {
- generics.where_clause = input.parse()?;
- }
- _ => {}
- }
-
- let semi_token: Token![;] = input.parse()?;
-
- Ok(FlexibleItemType {
- vis,
- defaultness,
- type_token,
- ident,
- generics,
- colon_token,
- bounds,
- ty,
- semi_token,
- })
- }
-
- fn parse_optional_bounds(
- input: ParseStream,
- ) -> Result<(Option<Token![:]>, Punctuated<TypeParamBound, Token![+]>)> {
- let colon_token: Option<Token![:]> = input.parse()?;
-
- let mut bounds = Punctuated::new();
- if colon_token.is_some() {
- loop {
- if input.peek(Token![where]) || input.peek(Token![=]) || input.peek(Token![;]) {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = true;
- TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
- });
- if input.peek(Token![where]) || input.peek(Token![=]) || input.peek(Token![;]) {
- break;
- }
- bounds.push_punct(input.parse::<Token![+]>()?);
- }
- }
-
- Ok((colon_token, bounds))
- }
-
- fn parse_optional_definition(input: ParseStream) -> Result<Option<(Token![=], Type)>> {
- let eq_token: Option<Token![=]> = input.parse()?;
- if let Some(eq_token) = eq_token {
- let definition: Type = input.parse()?;
- Ok(Some((eq_token, definition)))
- } else {
- Ok(None)
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let path = input.call(Path::parse_mod_style)?;
- let bang_token: Token![!] = input.parse()?;
- let ident: Option<Ident> = if input.peek(Token![try]) {
- input.call(Ident::parse_any).map(Some)
- } else {
- input.parse()
- }?;
- let (delimiter, tokens) = input.call(mac::parse_delimiter)?;
- let semi_token: Option<Token![;]> =
- if !delimiter.is_brace() { Some(input.parse()?) } else { None };
- Ok(ItemMacro {
- attrs,
- ident,
- mac: Macro { path, bang_token, delimiter, tokens },
- semi_token,
- })
- }
- }
-
- fn parse_macro2(begin: Cursor, _vis: Visibility, input: ParseStream) -> Result<Item> {
- input.parse::<Token![macro]>()?;
- input.parse::<Ident>()?;
-
- let mut lookahead = input.lookahead1();
- if lookahead.peek(token::Paren) {
- let paren_content;
- parenthesized!(paren_content in input);
- paren_content.parse::<TokenStream>()?;
- lookahead = input.lookahead1();
- }
-
- if lookahead.peek(token::Brace) {
- let brace_content;
- braced!(brace_content in input);
- brace_content.parse::<TokenStream>()?;
- } else {
- return Err(lookahead.error());
- }
-
- Ok(Item::Verbatim(verbatim::between(begin, input.cursor())))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemExternCrate {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ItemExternCrate {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- extern_token: input.parse()?,
- crate_token: input.parse()?,
- ident: {
- if input.peek(Token![self]) {
- input.call(Ident::parse_any)?
- } else {
- input.parse()?
- }
- },
- rename: {
- if input.peek(Token![as]) {
- let as_token: Token![as] = input.parse()?;
- let rename: Ident = if input.peek(Token![_]) {
- Ident::from(input.parse::<Token![_]>()?)
- } else {
- input.parse()?
- };
- Some((as_token, rename))
- } else {
- None
- }
- },
- semi_token: input.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemUse {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_crate_root_in_path = false;
- parse_item_use(input, allow_crate_root_in_path).map(Option::unwrap)
- }
- }
-
- fn parse_item_use(
- input: ParseStream,
- allow_crate_root_in_path: bool,
- ) -> Result<Option<ItemUse>> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let use_token: Token![use] = input.parse()?;
- let leading_colon: Option<Token![::]> = input.parse()?;
- let tree = parse_use_tree(input, allow_crate_root_in_path && leading_colon.is_none())?;
- let semi_token: Token![;] = input.parse()?;
-
- let tree = match tree {
- Some(tree) => tree,
- None => return Ok(None),
- };
-
- Ok(Some(ItemUse { attrs, vis, use_token, leading_colon, tree, semi_token }))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for UseTree {
- fn parse(input: ParseStream) -> Result<UseTree> {
- let allow_crate_root_in_path = false;
- parse_use_tree(input, allow_crate_root_in_path).map(Option::unwrap)
- }
- }
-
- fn parse_use_tree(
- input: ParseStream,
- allow_crate_root_in_path: bool,
- ) -> Result<Option<UseTree>> {
- let lookahead = input.lookahead1();
- if lookahead.peek(Ident)
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- || lookahead.peek(Token![try])
- {
- let ident = input.call(Ident::parse_any)?;
- if input.peek(Token![::]) {
- Ok(Some(UseTree::Path(UsePath {
- ident,
- colon2_token: input.parse()?,
- tree: Box::new(input.parse()?),
- })))
- } else if input.peek(Token![as]) {
- Ok(Some(UseTree::Rename(UseRename {
- ident,
- as_token: input.parse()?,
- rename: {
- if input.peek(Ident) {
- input.parse()?
- } else if input.peek(Token![_]) {
- Ident::from(input.parse::<Token![_]>()?)
- } else {
- return Err(input.error("expected identifier or underscore"));
- }
- },
- })))
- } else {
- Ok(Some(UseTree::Name(UseName { ident })))
- }
- } else if lookahead.peek(Token![*]) {
- Ok(Some(UseTree::Glob(UseGlob { star_token: input.parse()? })))
- } else if lookahead.peek(token::Brace) {
- let content;
- let brace_token = braced!(content in input);
- let mut items = Punctuated::new();
- let mut has_any_crate_root_in_path = false;
- loop {
- if content.is_empty() {
- break;
- }
- let this_tree_starts_with_crate_root =
- allow_crate_root_in_path && content.parse::<Option<Token![::]>>()?.is_some();
- has_any_crate_root_in_path |= this_tree_starts_with_crate_root;
- match parse_use_tree(
- &content,
- allow_crate_root_in_path && !this_tree_starts_with_crate_root,
- )? {
- Some(tree) if !has_any_crate_root_in_path => items.push_value(tree),
- _ => has_any_crate_root_in_path = true,
- }
- if content.is_empty() {
- break;
- }
- let comma: Token![,] = content.parse()?;
- if !has_any_crate_root_in_path {
- items.push_punct(comma);
- }
- }
- if has_any_crate_root_in_path {
- Ok(None)
- } else {
- Ok(Some(UseTree::Group(UseGroup { brace_token, items })))
- }
- } else {
- Err(lookahead.error())
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemStatic {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ItemStatic {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- static_token: input.parse()?,
- mutability: input.parse()?,
- ident: input.parse()?,
- colon_token: input.parse()?,
- ty: input.parse()?,
- eq_token: input.parse()?,
- expr: input.parse()?,
- semi_token: input.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemConst {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let const_token: Token![const] = input.parse()?;
-
- let lookahead = input.lookahead1();
- let ident = if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.call(Ident::parse_any)?
- } else {
- return Err(lookahead.error());
- };
-
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- let eq_token: Token![=] = input.parse()?;
- let expr: Expr = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
-
- Ok(ItemConst {
- attrs,
- vis,
- const_token,
- ident,
- generics: Generics::default(),
- colon_token,
- ty: Box::new(ty),
- eq_token,
- expr: Box::new(expr),
- semi_token,
- })
- }
- }
-
- fn peek_signature(input: ParseStream, allow_safe: bool) -> bool {
- let fork = input.fork();
- fork.parse::<Option<Token![const]>>().is_ok()
- && fork.parse::<Option<Token![async]>>().is_ok()
- && ((allow_safe
- && token::parsing::peek_keyword(fork.cursor(), "safe")
- && token::parsing::keyword(&fork, "safe").is_ok())
- || fork.parse::<Option<Token![unsafe]>>().is_ok())
- && fork.parse::<Option<Abi>>().is_ok()
- && fork.peek(Token![fn])
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Signature {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_safe = false;
- parse_signature(input, allow_safe).map(Option::unwrap)
- }
- }
-
- fn parse_signature(input: ParseStream, allow_safe: bool) -> Result<Option<Signature>> {
- let constness: Option<Token![const]> = input.parse()?;
- let asyncness: Option<Token![async]> = input.parse()?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let safe = allow_safe
- && unsafety.is_none()
- && token::parsing::peek_keyword(input.cursor(), "safe");
- if safe {
- token::parsing::keyword(input, "safe")?;
- }
- let abi: Option<Abi> = input.parse()?;
- let fn_token: Token![fn] = input.parse()?;
- let ident: Ident = input.parse()?;
- let mut generics: Generics = input.parse()?;
-
- let content;
- let paren_token = parenthesized!(content in input);
- let (inputs, variadic) = parse_fn_args(&content)?;
-
- let output: ReturnType = input.parse()?;
- generics.where_clause = input.parse()?;
-
- Ok(if safe {
- None
- } else {
- Some(Signature {
- constness,
- asyncness,
- unsafety,
- abi,
- fn_token,
- ident,
- generics,
- paren_token,
- inputs,
- variadic,
- output,
- })
- })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemFn {
- fn parse(input: ParseStream) -> Result<Self> {
- let outer_attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let sig: Signature = input.parse()?;
- parse_rest_of_fn(input, outer_attrs, vis, sig)
- }
- }
-
- fn parse_rest_of_fn(
- input: ParseStream,
- mut attrs: Vec<Attribute>,
- vis: Visibility,
- sig: Signature,
- ) -> Result<ItemFn> {
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
-
- Ok(ItemFn { attrs, vis, sig, block: Box::new(Block { brace_token, stmts }) })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for FnArg {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_variadic = false;
- let attrs = input.call(Attribute::parse_outer)?;
- match parse_fn_arg_or_variadic(input, attrs, allow_variadic)? {
- FnArgOrVariadic::FnArg(arg) => Ok(arg),
- FnArgOrVariadic::Variadic(_) => unreachable!(),
- }
- }
- }
-
- enum FnArgOrVariadic {
- FnArg(FnArg),
- Variadic(Variadic),
- }
-
- fn parse_fn_arg_or_variadic(
- input: ParseStream,
- attrs: Vec<Attribute>,
- allow_variadic: bool,
- ) -> Result<FnArgOrVariadic> {
- let ahead = input.fork();
- if let Ok((reference, mutability, self_token)) = parse_receiver_begin(&ahead) {
- input.advance_to(&ahead);
- let mut receiver = parse_rest_of_receiver(reference, mutability, self_token, input)?;
- receiver.attrs = attrs;
- return Ok(FnArgOrVariadic::FnArg(FnArg::Receiver(receiver)));
- }
-
- // Hack to parse pre-2018 syntax in
- // test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs
- // because the rest of the test case is valuable.
- if input.peek(Ident) && input.peek2(Token![<]) {
- let span = input.span();
- return Ok(FnArgOrVariadic::FnArg(FnArg::Typed(PatType {
- attrs,
- pat: Box::new(Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- })),
- colon_token: Token,
- ty: input.parse()?,
- })));
- }
-
- let pat = Box::new(Pat::parse_single(input)?);
- let colon_token: Token![:] = input.parse()?;
-
- if allow_variadic {
- if let Some(dots) = input.parse::<Option<Token![...]>>()? {
- return Ok(FnArgOrVariadic::Variadic(Variadic {
- attrs,
- pat: Some((pat, colon_token)),
- dots,
- comma: None,
- }));
- }
- }
-
- Ok(FnArgOrVariadic::FnArg(FnArg::Typed(PatType {
- attrs,
- pat,
- colon_token,
- ty: input.parse()?,
- })))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Receiver {
- fn parse(input: ParseStream) -> Result<Self> {
- let (reference, mutability, self_token) = parse_receiver_begin(input)?;
- parse_rest_of_receiver(reference, mutability, self_token, input)
- }
- }
-
- fn parse_receiver_begin(
- input: ParseStream,
- ) -> Result<(Option<(Token![&], Option<Lifetime>)>, Option<Token![mut]>, Token![self])> {
- let reference = if input.peek(Token![&]) {
- let ampersand: Token![&] = input.parse()?;
- let lifetime: Option<Lifetime> = input.parse()?;
- Some((ampersand, lifetime))
- } else {
- None
- };
- let mutability: Option<Token![mut]> = input.parse()?;
- let self_token: Token![self] = input.parse()?;
- if input.peek(Token![::]) {
- return Err(input.error("expected `:`"));
- }
- Ok((reference, mutability, self_token))
- }
-
- fn parse_rest_of_receiver(
- reference: Option<(Token![&], Option<Lifetime>)>,
- mutability: Option<Token![mut]>,
- self_token: Token![self],
- input: ParseStream,
- ) -> Result<Receiver> {
- let colon_token: Option<Token![:]> =
- if reference.is_some() { None } else { input.parse()? };
- let ty: Type = if colon_token.is_some() {
- input.parse()?
- } else {
- let mut ty = Type::Path(TypePath {
- qself: None,
- path: Path::from(Ident::new("Self", self_token.span)),
- });
- if let Some((ampersand, lifetime)) = reference.as_ref() {
- ty = Type::Reference(TypeReference {
- and_token: Token,
- lifetime: lifetime.clone(),
- mutability: mutability.as_ref().map(|m| Token),
- elem: Box::new(ty),
- });
- }
- ty
- };
- Ok(Receiver {
- attrs: Vec::new(),
- reference,
- mutability,
- self_token,
- colon_token,
- ty: Box::new(ty),
- })
- }
-
- fn parse_fn_args(
- input: ParseStream,
- ) -> Result<(Punctuated<FnArg, Token![,]>, Option<Variadic>)> {
- let mut args = Punctuated::new();
- let mut variadic = None;
- let mut has_receiver = false;
-
- while !input.is_empty() {
- let attrs = input.call(Attribute::parse_outer)?;
-
- if let Some(dots) = input.parse::<Option<Token![...]>>()? {
- variadic = Some(Variadic {
- attrs,
- pat: None,
- dots,
- comma: if input.is_empty() { None } else { Some(input.parse()?) },
- });
- break;
- }
-
- let allow_variadic = true;
- let arg = match parse_fn_arg_or_variadic(input, attrs, allow_variadic)? {
- FnArgOrVariadic::FnArg(arg) => arg,
- FnArgOrVariadic::Variadic(arg) => {
- variadic = Some(Variadic {
- comma: if input.is_empty() { None } else { Some(input.parse()?) },
- ..arg
- });
- break;
- }
- };
-
- match &arg {
- FnArg::Receiver(receiver) if has_receiver => {
- return Err(Error::new(
- receiver.self_token.span,
- "unexpected second method receiver",
- ));
- }
- FnArg::Receiver(receiver) if !args.is_empty() => {
- return Err(Error::new(receiver.self_token.span, "unexpected method receiver"));
- }
- FnArg::Receiver(_) => has_receiver = true,
- FnArg::Typed(_) => {}
- }
- args.push_value(arg);
-
- if input.is_empty() {
- break;
- }
-
- let comma: Token![,] = input.parse()?;
- args.push_punct(comma);
- }
-
- Ok((args, variadic))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemMod {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let mod_token: Token![mod] = input.parse()?;
- let ident: Ident =
- if input.peek(Token![try]) { input.call(Ident::parse_any) } else { input.parse() }?;
-
- let lookahead = input.lookahead1();
- if lookahead.peek(Token![;]) {
- Ok(ItemMod {
- attrs,
- vis,
- unsafety,
- mod_token,
- ident,
- content: None,
- semi: Some(input.parse()?),
- })
- } else if lookahead.peek(token::Brace) {
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
-
- let mut items = Vec::new();
- while !content.is_empty() {
- items.push(content.parse()?);
- }
-
- Ok(ItemMod {
- attrs,
- vis,
- unsafety,
- mod_token,
- ident,
- content: Some((brace_token, items)),
- semi: None,
- })
- } else {
- Err(lookahead.error())
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemForeignMod {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let abi: Abi = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let mut items = Vec::new();
- while !content.is_empty() {
- items.push(content.parse()?);
- }
-
- Ok(ItemForeignMod { attrs, unsafety, abi, brace_token, items })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ForeignItem {
- fn parse(input: ParseStream) -> Result<Self> {
- let begin = input.cursor();
- let mut attrs = input.call(Attribute::parse_outer)?;
- let ahead = input.fork();
- let vis: Visibility = ahead.parse()?;
-
- let lookahead = ahead.lookahead1();
- let allow_safe = true;
- let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) {
- let vis: Visibility = input.parse()?;
- let sig = parse_signature(input, allow_safe)?;
- let has_safe = sig.is_none();
- let has_body = input.peek(token::Brace);
- let semi_token: Option<Token![;]> = if has_body {
- let content;
- braced!(content in input);
- content.call(Attribute::parse_inner)?;
- content.call(Block::parse_within)?;
- None
- } else {
- Some(input.parse()?)
- };
- if has_safe || has_body {
- Ok(ForeignItem::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- Ok(ForeignItem::Fn(ForeignItemFn {
- attrs: Vec::new(),
- vis,
- sig: sig.unwrap(),
- semi_token: semi_token.unwrap(),
- }))
- }
- } else if lookahead.peek(Token![static])
- || ((ahead.peek(Token![unsafe])
- || token::parsing::peek_keyword(ahead.cursor(), "safe"))
- && ahead.peek2(Token![static]))
- {
- let vis = input.parse()?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let safe =
- unsafety.is_none() && token::parsing::peek_keyword(input.cursor(), "safe");
- if safe {
- token::parsing::keyword(input, "safe")?;
- }
- let static_token = input.parse()?;
- let mutability = input.parse()?;
- let ident = input.parse()?;
- let colon_token = input.parse()?;
- let ty = input.parse()?;
- let has_value = input.peek(Token![=]);
- if has_value {
- input.parse::<Token![=]>()?;
- input.parse::<Expr>()?;
- }
- let semi_token: Token![;] = input.parse()?;
- if unsafety.is_some() || safe || has_value {
- Ok(ForeignItem::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- Ok(ForeignItem::Static(ForeignItemStatic {
- attrs: Vec::new(),
- vis,
- static_token,
- mutability,
- ident,
- colon_token,
- ty,
- semi_token,
- }))
- }
- } else if lookahead.peek(Token![type]) {
- parse_foreign_item_type(begin, input)
- } else if vis.is_inherited()
- && (lookahead.peek(Ident)
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- || lookahead.peek(Token![::]))
- {
- input.parse().map(ForeignItem::Macro)
- } else {
- Err(lookahead.error())
- }?;
-
- let item_attrs = match &mut item {
- ForeignItem::Fn(item) => &mut item.attrs,
- ForeignItem::Static(item) => &mut item.attrs,
- ForeignItem::Type(item) => &mut item.attrs,
- ForeignItem::Macro(item) => &mut item.attrs,
- ForeignItem::Verbatim(_) => return Ok(item),
- };
- attrs.append(item_attrs);
- *item_attrs = attrs;
-
- Ok(item)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ForeignItemFn {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let sig: Signature = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- Ok(ForeignItemFn { attrs, vis, sig, semi_token })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ForeignItemStatic {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ForeignItemStatic {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- static_token: input.parse()?,
- mutability: input.parse()?,
- ident: input.parse()?,
- colon_token: input.parse()?,
- ty: input.parse()?,
- semi_token: input.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ForeignItemType {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ForeignItemType {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- type_token: input.parse()?,
- ident: input.parse()?,
- generics: {
- let mut generics: Generics = input.parse()?;
- generics.where_clause = input.parse()?;
- generics
- },
- semi_token: input.parse()?,
- })
- }
- }
-
- fn parse_foreign_item_type(begin: Cursor, input: ParseStream) -> Result<ForeignItem> {
- let FlexibleItemType {
- vis,
- defaultness: _,
- type_token,
- ident,
- generics,
- colon_token,
- bounds: _,
- ty,
- semi_token,
- } = FlexibleItemType::parse(input, TypeDefaultness::Disallowed, WhereClauseLocation::Both)?;
-
- if colon_token.is_some() || ty.is_some() {
- Ok(ForeignItem::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- Ok(ForeignItem::Type(ForeignItemType {
- attrs: Vec::new(),
- vis,
- type_token,
- ident,
- generics,
- semi_token,
- }))
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ForeignItemMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let mac: Macro = input.parse()?;
- let semi_token: Option<Token![;]> =
- if mac.delimiter.is_brace() { None } else { Some(input.parse()?) };
- Ok(ForeignItemMacro { attrs, mac, semi_token })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemType {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(ItemType {
- attrs: input.call(Attribute::parse_outer)?,
- vis: input.parse()?,
- type_token: input.parse()?,
- ident: input.parse()?,
- generics: {
- let mut generics: Generics = input.parse()?;
- generics.where_clause = input.parse()?;
- generics
- },
- eq_token: input.parse()?,
- ty: input.parse()?,
- semi_token: input.parse()?,
- })
- }
- }
-
- fn parse_item_type(begin: Cursor, input: ParseStream) -> Result<Item> {
- let FlexibleItemType {
- vis,
- defaultness: _,
- type_token,
- ident,
- generics,
- colon_token,
- bounds: _,
- ty,
- semi_token,
- } = FlexibleItemType::parse(
- input,
- TypeDefaultness::Disallowed,
- WhereClauseLocation::BeforeEq,
- )?;
-
- let (eq_token, ty) = match ty {
- Some(ty) if colon_token.is_none() => ty,
- _ => return Ok(Item::Verbatim(verbatim::between(begin, input.cursor()))),
- };
-
- Ok(Item::Type(ItemType {
- attrs: Vec::new(),
- vis,
- type_token,
- ident,
- generics,
- eq_token,
- ty: Box::new(ty),
- semi_token,
- }))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemStruct {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis = input.parse::<Visibility>()?;
- let struct_token = input.parse::<Token![struct]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, fields, semi_token) = derive::parsing::data_struct(input)?;
- Ok(ItemStruct {
- attrs,
- vis,
- struct_token,
- ident,
- generics: Generics { where_clause, ..generics },
- fields,
- semi_token,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemEnum {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis = input.parse::<Visibility>()?;
- let enum_token = input.parse::<Token![enum]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, brace_token, variants) = derive::parsing::data_enum(input)?;
- Ok(ItemEnum {
- attrs,
- vis,
- enum_token,
- ident,
- generics: Generics { where_clause, ..generics },
- brace_token,
- variants,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemUnion {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis = input.parse::<Visibility>()?;
- let union_token = input.parse::<Token![union]>()?;
- let ident = input.parse::<Ident>()?;
- let generics = input.parse::<Generics>()?;
- let (where_clause, fields) = derive::parsing::data_union(input)?;
- Ok(ItemUnion {
- attrs,
- vis,
- union_token,
- ident,
- generics: Generics { where_clause, ..generics },
- fields,
- })
- }
- }
-
- fn parse_trait_or_trait_alias(input: ParseStream) -> Result<Item> {
- let (attrs, vis, trait_token, ident, generics) = parse_start_of_trait_alias(input)?;
- let lookahead = input.lookahead1();
- if lookahead.peek(token::Brace)
- || lookahead.peek(Token![:])
- || lookahead.peek(Token![where])
- {
- let unsafety = None;
- let auto_token = None;
- parse_rest_of_trait(
- input,
- attrs,
- vis,
- unsafety,
- auto_token,
- trait_token,
- ident,
- generics,
- )
- .map(Item::Trait)
- } else if lookahead.peek(Token![=]) {
- parse_rest_of_trait_alias(input, attrs, vis, trait_token, ident, generics)
- .map(Item::TraitAlias)
- } else {
- Err(lookahead.error())
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemTrait {
- fn parse(input: ParseStream) -> Result<Self> {
- let outer_attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let auto_token: Option<Token![auto]> = input.parse()?;
- let trait_token: Token![trait] = input.parse()?;
- let ident: Ident = input.parse()?;
- let generics: Generics = input.parse()?;
- parse_rest_of_trait(
- input,
- outer_attrs,
- vis,
- unsafety,
- auto_token,
- trait_token,
- ident,
- generics,
- )
- }
- }
-
- fn parse_rest_of_trait(
- input: ParseStream,
- mut attrs: Vec<Attribute>,
- vis: Visibility,
- unsafety: Option<Token![unsafe]>,
- auto_token: Option<Token![auto]>,
- trait_token: Token![trait],
- ident: Ident,
- mut generics: Generics,
- ) -> Result<ItemTrait> {
- let colon_token: Option<Token![:]> = input.parse()?;
-
- let mut supertraits = Punctuated::new();
- if colon_token.is_some() {
- loop {
- if input.peek(Token![where]) || input.peek(token::Brace) {
- break;
- }
- supertraits.push_value({
- let allow_precise_capture = false;
- let allow_const = true;
- TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
- });
- if input.peek(Token![where]) || input.peek(token::Brace) {
- break;
- }
- supertraits.push_punct(input.parse()?);
- }
- }
-
- generics.where_clause = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let mut items = Vec::new();
- while !content.is_empty() {
- items.push(content.parse()?);
- }
-
- Ok(ItemTrait {
- attrs,
- vis,
- unsafety,
- auto_token,
- restriction: None,
- trait_token,
- ident,
- generics,
- colon_token,
- supertraits,
- brace_token,
- items,
- })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemTraitAlias {
- fn parse(input: ParseStream) -> Result<Self> {
- let (attrs, vis, trait_token, ident, generics) = parse_start_of_trait_alias(input)?;
- parse_rest_of_trait_alias(input, attrs, vis, trait_token, ident, generics)
- }
- }
-
- fn parse_start_of_trait_alias(
- input: ParseStream,
- ) -> Result<(Vec<Attribute>, Visibility, Token![trait], Ident, Generics)> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let trait_token: Token![trait] = input.parse()?;
- let ident: Ident = input.parse()?;
- let generics: Generics = input.parse()?;
- Ok((attrs, vis, trait_token, ident, generics))
- }
-
- fn parse_rest_of_trait_alias(
- input: ParseStream,
- attrs: Vec<Attribute>,
- vis: Visibility,
- trait_token: Token![trait],
- ident: Ident,
- mut generics: Generics,
- ) -> Result<ItemTraitAlias> {
- let eq_token: Token![=] = input.parse()?;
-
- let mut bounds = Punctuated::new();
- loop {
- if input.peek(Token![where]) || input.peek(Token![;]) {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = false;
- TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
- });
- if input.peek(Token![where]) || input.peek(Token![;]) {
- break;
- }
- bounds.push_punct(input.parse()?);
- }
-
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
-
- Ok(ItemTraitAlias {
- attrs,
- vis,
- trait_token,
- ident,
- generics,
- eq_token,
- bounds,
- semi_token,
- })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitItem {
- fn parse(input: ParseStream) -> Result<Self> {
- let begin = input.cursor();
- let mut attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let defaultness: Option<Token![default]> = input.parse()?;
- let ahead = input.fork();
-
- let lookahead = ahead.lookahead1();
- let allow_safe = false;
- let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) {
- input.parse().map(TraitItem::Fn)
- } else if lookahead.peek(Token![const]) {
- let const_token: Token![const] = ahead.parse()?;
- let lookahead = ahead.lookahead1();
- if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.advance_to(&ahead);
- let ident = input.call(Ident::parse_any)?;
- let mut generics: Generics = input.parse()?;
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- let default = if let Some(eq_token) = input.parse::<Option<Token![=]>>()? {
- let expr: Expr = input.parse()?;
- Some((eq_token, expr))
- } else {
- None
- };
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- if generics.lt_token.is_none() && generics.where_clause.is_none() {
- Ok(TraitItem::Const(TraitItemConst {
- attrs: Vec::new(),
- const_token,
- ident,
- generics,
- colon_token,
- ty,
- default,
- semi_token,
- }))
- } else {
- return Ok(TraitItem::Verbatim(verbatim::between(begin, input.cursor())));
- }
- } else if lookahead.peek(Token![async])
- || lookahead.peek(Token![unsafe])
- || lookahead.peek(Token![extern])
- || lookahead.peek(Token![fn])
- {
- input.parse().map(TraitItem::Fn)
- } else {
- Err(lookahead.error())
- }
- } else if lookahead.peek(Token![type]) {
- parse_trait_item_type(begin, input)
- } else if vis.is_inherited()
- && defaultness.is_none()
- && (lookahead.peek(Ident)
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- || lookahead.peek(Token![::]))
- {
- input.parse().map(TraitItem::Macro)
- } else {
- Err(lookahead.error())
- }?;
-
- match (vis, defaultness) {
- (Visibility::Inherited, None) => {}
- _ => return Ok(TraitItem::Verbatim(verbatim::between(begin, input.cursor()))),
- }
-
- let item_attrs = match &mut item {
- TraitItem::Const(item) => &mut item.attrs,
- TraitItem::Fn(item) => &mut item.attrs,
- TraitItem::Type(item) => &mut item.attrs,
- TraitItem::Macro(item) => &mut item.attrs,
- TraitItem::Verbatim(_) => unreachable!(),
- };
- attrs.append(item_attrs);
- *item_attrs = attrs;
- Ok(item)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitItemConst {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let const_token: Token![const] = input.parse()?;
-
- let lookahead = input.lookahead1();
- let ident = if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.call(Ident::parse_any)?
- } else {
- return Err(lookahead.error());
- };
-
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- let default = if input.peek(Token![=]) {
- let eq_token: Token![=] = input.parse()?;
- let default: Expr = input.parse()?;
- Some((eq_token, default))
- } else {
- None
- };
- let semi_token: Token![;] = input.parse()?;
-
- Ok(TraitItemConst {
- attrs,
- const_token,
- ident,
- generics: Generics::default(),
- colon_token,
- ty,
- default,
- semi_token,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitItemFn {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let sig: Signature = input.parse()?;
-
- let lookahead = input.lookahead1();
- let (brace_token, stmts, semi_token) = if lookahead.peek(token::Brace) {
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
- let stmts = content.call(Block::parse_within)?;
- (Some(brace_token), stmts, None)
- } else if lookahead.peek(Token![;]) {
- let semi_token: Token![;] = input.parse()?;
- (None, Vec::new(), Some(semi_token))
- } else {
- return Err(lookahead.error());
- };
-
- Ok(TraitItemFn {
- attrs,
- sig,
- default: brace_token.map(|brace_token| Block { brace_token, stmts }),
- semi_token,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitItemType {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let type_token: Token![type] = input.parse()?;
- let ident: Ident = input.parse()?;
- let mut generics: Generics = input.parse()?;
- let (colon_token, bounds) = FlexibleItemType::parse_optional_bounds(input)?;
- let default = FlexibleItemType::parse_optional_definition(input)?;
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- Ok(TraitItemType {
- attrs,
- type_token,
- ident,
- generics,
- colon_token,
- bounds,
- default,
- semi_token,
- })
- }
- }
-
- fn parse_trait_item_type(begin: Cursor, input: ParseStream) -> Result<TraitItem> {
- let FlexibleItemType {
- vis,
- defaultness: _,
- type_token,
- ident,
- generics,
- colon_token,
- bounds,
- ty,
- semi_token,
- } = FlexibleItemType::parse(
- input,
- TypeDefaultness::Disallowed,
- WhereClauseLocation::AfterEq,
- )?;
-
- if vis.is_some() {
- Ok(TraitItem::Verbatim(verbatim::between(begin, input.cursor())))
- } else {
- Ok(TraitItem::Type(TraitItemType {
- attrs: Vec::new(),
- type_token,
- ident,
- generics,
- colon_token,
- bounds,
- default: ty,
- semi_token,
- }))
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TraitItemMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let mac: Macro = input.parse()?;
- let semi_token: Option<Token![;]> =
- if mac.delimiter.is_brace() { None } else { Some(input.parse()?) };
- Ok(TraitItemMacro { attrs, mac, semi_token })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ItemImpl {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_verbatim_impl = false;
- parse_impl(input, allow_verbatim_impl).map(Option::unwrap)
- }
- }
-
- fn parse_impl(input: ParseStream, allow_verbatim_impl: bool) -> Result<Option<ItemImpl>> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let has_visibility = allow_verbatim_impl && input.parse::<Visibility>()?.is_some();
- let defaultness: Option<Token![default]> = input.parse()?;
- let unsafety: Option<Token![unsafe]> = input.parse()?;
- let impl_token: Token![impl] = input.parse()?;
-
- let has_generics = generics::parsing::choose_generics_over_qpath(input);
- let mut generics: Generics =
- if has_generics { input.parse()? } else { Generics::default() };
-
- let is_const_impl = allow_verbatim_impl
- && (input.peek(Token![const]) || input.peek(Token![?]) && input.peek2(Token![const]));
- if is_const_impl {
- input.parse::<Option<Token![?]>>()?;
- input.parse::<Token![const]>()?;
- }
-
- let polarity = if input.peek(Token![!]) && !input.peek2(token::Brace) {
- Some(input.parse::<Token![!]>()?)
- } else {
- None
- };
-
- #[cfg(not(feature = "printing"))]
- let first_ty_span = input.span();
- let mut first_ty: Type = input.parse()?;
- let self_ty: Type;
- let trait_;
-
- let is_impl_for = input.peek(Token![for]);
- if is_impl_for {
- let for_token: Token![for] = input.parse()?;
- let mut first_ty_ref = &first_ty;
- while let Type::Group(ty) = first_ty_ref {
- first_ty_ref = &ty.elem;
- }
- if let Type::Path(TypePath { qself: None, .. }) = first_ty_ref {
- while let Type::Group(ty) = first_ty {
- first_ty = *ty.elem;
- }
- if let Type::Path(TypePath { qself: None, path }) = first_ty {
- trait_ = Some((polarity, path, for_token));
- } else {
- unreachable!();
- }
- } else if !allow_verbatim_impl {
- #[cfg(feature = "printing")]
- return Err(Error::new_spanned(first_ty_ref, "expected trait path"));
- #[cfg(not(feature = "printing"))]
- return Err(Error::new(first_ty_span, "expected trait path"));
- } else {
- trait_ = None;
- }
- self_ty = input.parse()?;
- } else if let Some(polarity) = polarity {
- return Err(Error::new(polarity.span, "inherent impls cannot be negative"));
- } else {
- trait_ = None;
- self_ty = first_ty;
- }
-
- generics.where_clause = input.parse()?;
-
- let content;
- let brace_token = braced!(content in input);
- attr::parsing::parse_inner(&content, &mut attrs)?;
-
- let mut items = Vec::new();
- while !content.is_empty() {
- items.push(content.parse()?);
- }
-
- if has_visibility || is_const_impl || is_impl_for && trait_.is_none() {
- Ok(None)
- } else {
- Ok(Some(ItemImpl {
- attrs,
- defaultness,
- unsafety,
- impl_token,
- generics,
- trait_,
- self_ty: Box::new(self_ty),
- brace_token,
- items,
- }))
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ImplItem {
- fn parse(input: ParseStream) -> Result<Self> {
- let begin = input.cursor();
- let mut attrs = input.call(Attribute::parse_outer)?;
- let ahead = input.fork();
- let vis: Visibility = ahead.parse()?;
-
- let mut lookahead = ahead.lookahead1();
- let defaultness = if lookahead.peek(Token![default]) && !ahead.peek2(Token![!]) {
- let defaultness: Token![default] = ahead.parse()?;
- lookahead = ahead.lookahead1();
- Some(defaultness)
- } else {
- None
- };
-
- let allow_safe = false;
- let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) {
- let allow_omitted_body = true;
- if let Some(item) = parse_impl_item_fn(input, allow_omitted_body)? {
- Ok(ImplItem::Fn(item))
- } else {
- Ok(ImplItem::Verbatim(verbatim::between(begin, input.cursor())))
- }
- } else if lookahead.peek(Token![const]) {
- input.advance_to(&ahead);
- let const_token: Token![const] = input.parse()?;
- let lookahead = input.lookahead1();
- let ident = if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.call(Ident::parse_any)?
- } else {
- return Err(lookahead.error());
- };
- let mut generics: Generics = input.parse()?;
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- let value = if let Some(eq_token) = input.parse::<Option<Token![=]>>()? {
- let expr: Expr = input.parse()?;
- Some((eq_token, expr))
- } else {
- None
- };
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- return match value {
- Some((eq_token, expr))
- if generics.lt_token.is_none() && generics.where_clause.is_none() =>
- {
- Ok(ImplItem::Const(ImplItemConst {
- attrs,
- vis,
- defaultness,
- const_token,
- ident,
- generics,
- colon_token,
- ty,
- eq_token,
- expr,
- semi_token,
- }))
- }
- _ => Ok(ImplItem::Verbatim(verbatim::between(begin, input.cursor()))),
- };
- } else if lookahead.peek(Token![type]) {
- parse_impl_item_type(begin, input)
- } else if vis.is_inherited()
- && defaultness.is_none()
- && (lookahead.peek(Ident)
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- || lookahead.peek(Token![::]))
- {
- input.parse().map(ImplItem::Macro)
- } else {
- Err(lookahead.error())
- }?;
-
- {
- let item_attrs = match &mut item {
- ImplItem::Const(item) => &mut item.attrs,
- ImplItem::Fn(item) => &mut item.attrs,
- ImplItem::Type(item) => &mut item.attrs,
- ImplItem::Macro(item) => &mut item.attrs,
- ImplItem::Verbatim(_) => return Ok(item),
- };
- attrs.append(item_attrs);
- *item_attrs = attrs;
- }
-
- Ok(item)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ImplItemConst {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let defaultness: Option<Token![default]> = input.parse()?;
- let const_token: Token![const] = input.parse()?;
-
- let lookahead = input.lookahead1();
- let ident = if lookahead.peek(Ident) || lookahead.peek(Token![_]) {
- input.call(Ident::parse_any)?
- } else {
- return Err(lookahead.error());
- };
-
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- let eq_token: Token![=] = input.parse()?;
- let expr: Expr = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
-
- Ok(ImplItemConst {
- attrs,
- vis,
- defaultness,
- const_token,
- ident,
- generics: Generics::default(),
- colon_token,
- ty,
- eq_token,
- expr,
- semi_token,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ImplItemFn {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_omitted_body = false;
- parse_impl_item_fn(input, allow_omitted_body).map(Option::unwrap)
- }
- }
-
- fn parse_impl_item_fn(
- input: ParseStream,
- allow_omitted_body: bool,
- ) -> Result<Option<ImplItemFn>> {
- let mut attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let defaultness: Option<Token![default]> = input.parse()?;
- let sig: Signature = input.parse()?;
-
- // Accept functions without a body in an impl block because rustc's
- // *parser* does not reject them (the compilation error is emitted later
- // than parsing) and it can be useful for macro DSLs.
- if allow_omitted_body && input.parse::<Option<Token![;]>>()?.is_some() {
- return Ok(None);
- }
-
- let content;
- let brace_token = braced!(content in input);
- attrs.extend(content.call(Attribute::parse_inner)?);
- let block = Block { brace_token, stmts: content.call(Block::parse_within)? };
-
- Ok(Some(ImplItemFn { attrs, vis, defaultness, sig, block }))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ImplItemType {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
- let defaultness: Option<Token![default]> = input.parse()?;
- let type_token: Token![type] = input.parse()?;
- let ident: Ident = input.parse()?;
- let mut generics: Generics = input.parse()?;
- let eq_token: Token![=] = input.parse()?;
- let ty: Type = input.parse()?;
- generics.where_clause = input.parse()?;
- let semi_token: Token![;] = input.parse()?;
- Ok(ImplItemType {
- attrs,
- vis,
- defaultness,
- type_token,
- ident,
- generics,
- eq_token,
- ty,
- semi_token,
- })
- }
- }
-
- fn parse_impl_item_type(begin: Cursor, input: ParseStream) -> Result<ImplItem> {
- let FlexibleItemType {
- vis,
- defaultness,
- type_token,
- ident,
- generics,
- colon_token,
- bounds: _,
- ty,
- semi_token,
- } = FlexibleItemType::parse(
- input,
- TypeDefaultness::Optional,
- WhereClauseLocation::AfterEq,
- )?;
-
- let (eq_token, ty) = match ty {
- Some(ty) if colon_token.is_none() => ty,
- _ => return Ok(ImplItem::Verbatim(verbatim::between(begin, input.cursor()))),
- };
-
- Ok(ImplItem::Type(ImplItemType {
- attrs: Vec::new(),
- vis,
- defaultness,
- type_token,
- ident,
- generics,
- eq_token,
- ty,
- semi_token,
- }))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ImplItemMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let mac: Macro = input.parse()?;
- let semi_token: Option<Token![;]> =
- if mac.delimiter.is_brace() { None } else { Some(input.parse()?) };
- Ok(ImplItemMacro { attrs, mac, semi_token })
- }
- }
-
- impl Visibility {
- fn is_inherited(&self) -> bool {
- match self {
- Visibility::Inherited => true,
- _ => false,
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for StaticMutability {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut_token: Option<Token![mut]> = input.parse()?;
- Ok(mut_token.map_or(StaticMutability::None, StaticMutability::Mut))
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::FilterAttrs;
- use crate::data::Fields;
- use crate::item::{
- ForeignItemFn, ForeignItemMacro, ForeignItemStatic, ForeignItemType, ImplItemConst,
- ImplItemFn, ImplItemMacro, ImplItemType, ItemConst, ItemEnum, ItemExternCrate, ItemFn,
- ItemForeignMod, ItemImpl, ItemMacro, ItemMod, ItemStatic, ItemStruct, ItemTrait,
- ItemTraitAlias, ItemType, ItemUnion, ItemUse, Receiver, Signature, StaticMutability,
- TraitItemConst, TraitItemFn, TraitItemMacro, TraitItemType, UseGlob, UseGroup, UseName,
- UsePath, UseRename, Variadic,
- };
- use crate::mac::MacroDelimiter;
- use crate::path;
- use crate::path::printing::PathStyle;
- use crate::print::TokensOrDefault;
- use crate::ty::Type;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemExternCrate {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.extern_token.to_tokens(tokens);
- self.crate_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- if let Some((as_token, rename)) = &self.rename {
- as_token.to_tokens(tokens);
- rename.to_tokens(tokens);
- }
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemUse {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.use_token.to_tokens(tokens);
- self.leading_colon.to_tokens(tokens);
- self.tree.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemStatic {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.static_token.to_tokens(tokens);
- self.mutability.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.expr.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemConst {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.const_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.expr.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemFn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.sig.to_tokens(tokens);
- self.block.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.block.stmts);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemMod {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.unsafety.to_tokens(tokens);
- self.mod_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- if let Some((brace, items)) = &self.content {
- brace.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(items);
- });
- } else {
- TokensOrDefault(&self.semi).to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemForeignMod {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.unsafety.to_tokens(tokens);
- self.abi.to_tokens(tokens);
- self.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.items);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.type_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemEnum {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.enum_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.brace_token.surround(tokens, |tokens| {
- self.variants.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemStruct {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.struct_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- match &self.fields {
- Fields::Named(fields) => {
- self.generics.where_clause.to_tokens(tokens);
- fields.to_tokens(tokens);
- }
- Fields::Unnamed(fields) => {
- fields.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- TokensOrDefault(&self.semi_token).to_tokens(tokens);
- }
- Fields::Unit => {
- self.generics.where_clause.to_tokens(tokens);
- TokensOrDefault(&self.semi_token).to_tokens(tokens);
- }
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemUnion {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.union_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.fields.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemTrait {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.unsafety.to_tokens(tokens);
- self.auto_token.to_tokens(tokens);
- self.trait_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- if !self.supertraits.is_empty() {
- TokensOrDefault(&self.colon_token).to_tokens(tokens);
- self.supertraits.to_tokens(tokens);
- }
- self.generics.where_clause.to_tokens(tokens);
- self.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.items);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemTraitAlias {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.trait_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemImpl {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.defaultness.to_tokens(tokens);
- self.unsafety.to_tokens(tokens);
- self.impl_token.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- if let Some((polarity, path, for_token)) = &self.trait_ {
- polarity.to_tokens(tokens);
- path.to_tokens(tokens);
- for_token.to_tokens(tokens);
- }
- self.self_ty.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.items);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ItemMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- path::printing::print_path(tokens, &self.mac.path, PathStyle::Mod);
- self.mac.bang_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- match &self.mac.delimiter {
- MacroDelimiter::Paren(paren) => {
- paren.surround(tokens, |tokens| self.mac.tokens.to_tokens(tokens));
- }
- MacroDelimiter::Brace(brace) => {
- brace.surround(tokens, |tokens| self.mac.tokens.to_tokens(tokens));
- }
- MacroDelimiter::Bracket(bracket) => {
- bracket.surround(tokens, |tokens| self.mac.tokens.to_tokens(tokens));
- }
- }
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UsePath {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- self.colon2_token.to_tokens(tokens);
- self.tree.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UseName {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UseRename {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- self.as_token.to_tokens(tokens);
- self.rename.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UseGlob {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.star_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UseGroup {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.brace_token.surround(tokens, |tokens| {
- self.items.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitItemConst {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.const_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- if let Some((eq_token, default)) = &self.default {
- eq_token.to_tokens(tokens);
- default.to_tokens(tokens);
- }
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitItemFn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.sig.to_tokens(tokens);
- match &self.default {
- Some(block) => {
- block.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&block.stmts);
- });
- }
- None => {
- TokensOrDefault(&self.semi_token).to_tokens(tokens);
- }
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitItemType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.type_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- if !self.bounds.is_empty() {
- TokensOrDefault(&self.colon_token).to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- if let Some((eq_token, default)) = &self.default {
- eq_token.to_tokens(tokens);
- default.to_tokens(tokens);
- }
- self.generics.where_clause.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TraitItemMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.mac.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ImplItemConst {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.defaultness.to_tokens(tokens);
- self.const_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.expr.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ImplItemFn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.defaultness.to_tokens(tokens);
- self.sig.to_tokens(tokens);
- self.block.brace_token.surround(tokens, |tokens| {
- tokens.append_all(self.attrs.inner());
- tokens.append_all(&self.block.stmts);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ImplItemType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.defaultness.to_tokens(tokens);
- self.type_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ImplItemMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.mac.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ForeignItemFn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.sig.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ForeignItemStatic {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.static_token.to_tokens(tokens);
- self.mutability.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ForeignItemType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.vis.to_tokens(tokens);
- self.type_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ForeignItemMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.mac.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Signature {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.constness.to_tokens(tokens);
- self.asyncness.to_tokens(tokens);
- self.unsafety.to_tokens(tokens);
- self.abi.to_tokens(tokens);
- self.fn_token.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.paren_token.surround(tokens, |tokens| {
- self.inputs.to_tokens(tokens);
- if let Some(variadic) = &self.variadic {
- if !self.inputs.empty_or_trailing() {
- <Token![,]>::default().to_tokens(tokens);
- }
- variadic.to_tokens(tokens);
- }
- });
- self.output.to_tokens(tokens);
- self.generics.where_clause.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Receiver {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- if let Some((ampersand, lifetime)) = &self.reference {
- ampersand.to_tokens(tokens);
- lifetime.to_tokens(tokens);
- }
- self.mutability.to_tokens(tokens);
- self.self_token.to_tokens(tokens);
- if let Some(colon_token) = &self.colon_token {
- colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- } else {
- let consistent = match (&self.reference, &self.mutability, &*self.ty) {
- (Some(_), mutability, Type::Reference(ty)) => {
- mutability.is_some() == ty.mutability.is_some()
- && match &*ty.elem {
- Type::Path(ty) => ty.qself.is_none() && ty.path.is_ident("Self"),
- _ => false,
- }
- }
- (None, _, Type::Path(ty)) => ty.qself.is_none() && ty.path.is_ident("Self"),
- _ => false,
- };
- if !consistent {
- <Token![:]>::default().to_tokens(tokens);
- self.ty.to_tokens(tokens);
- }
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Variadic {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- if let Some((pat, colon)) = &self.pat {
- pat.to_tokens(tokens);
- colon.to_tokens(tokens);
- }
- self.dots.to_tokens(tokens);
- self.comma.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for StaticMutability {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- StaticMutability::None => {}
- StaticMutability::Mut(mut_token) => mut_token.to_tokens(tokens),
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/lib.rs b/deps/crates/vendor/syn-v2/src/lib.rs
deleted file mode 100644
index aeb74a20120..00000000000
--- a/deps/crates/vendor/syn-v2/src/lib.rs
+++ /dev/null
@@ -1,1016 +0,0 @@
-//! [![github]](https://github.com/dtolnay/syn) [![crates-io]](https://crates.io/crates/syn) [![docs-rs]](crate)
-//!
-//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
-//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
-//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
-//!
-//! <br>
-//!
-//! Syn is a parsing library for parsing a stream of Rust tokens into a syntax
-//! tree of Rust source code.
-//!
-//! Currently this library is geared toward use in Rust procedural macros, but
-//! contains some APIs that may be useful more generally.
-//!
-//! - **Data structures** — Syn provides a complete syntax tree that can
-//! represent any valid Rust source code. The syntax tree is rooted at
-//! [`syn::File`] which represents a full source file, but there are other
-//! entry points that may be useful to procedural macros including
-//! [`syn::Item`], [`syn::Expr`] and [`syn::Type`].
-//!
-//! - **Derives** — Of particular interest to derive macros is
-//! [`syn::DeriveInput`] which is any of the three legal input items to a
-//! derive macro. An example below shows using this type in a library that can
-//! derive implementations of a user-defined trait.
-//!
-//! - **Parsing** — Parsing in Syn is built around [parser functions] with the
-//! signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined
-//! by Syn is individually parsable and may be used as a building block for
-//! custom syntaxes, or you may dream up your own brand new syntax without
-//! involving any of our syntax tree types.
-//!
-//! - **Location information** — Every token parsed by Syn is associated with a
-//! `Span` that tracks line and column information back to the source of that
-//! token. These spans allow a procedural macro to display detailed error
-//! messages pointing to all the right places in the user's code. There is an
-//! example of this below.
-//!
-//! - **Feature flags** — Functionality is aggressively feature gated so your
-//! procedural macros enable only what they need, and do not pay in compile
-//! time for all the rest.
-//!
-//! [`syn::File`]: File
-//! [`syn::Item`]: Item
-//! [`syn::Expr`]: Expr
-//! [`syn::Type`]: Type
-//! [`syn::DeriveInput`]: DeriveInput
-//! [parser functions]: mod@parse
-//!
-//! <br>
-//!
-//! # Example of a derive macro
-//!
-//! The canonical derive macro using Syn looks like this. We write an ordinary
-//! Rust function tagged with a `proc_macro_derive` attribute and the name of
-//! the trait we are deriving. Any time that derive appears in the user's code,
-//! the Rust compiler passes their data structure as tokens into our macro. We
-//! get to execute arbitrary Rust code to figure out what to do with those
-//! tokens, then hand some tokens back to the compiler to compile into the
-//! user's crate.
-//!
-//! [`TokenStream`]: proc_macro::TokenStream
-//!
-//! ```toml
-//! [dependencies]
-//! syn = "2.0"
-//! quote = "1.0"
-//!
-//! [lib]
-//! proc-macro = true
-//! ```
-//!
-//! ```
-//! # extern crate proc_macro;
-//! #
-//! use proc_macro::TokenStream;
-//! use quote::quote;
-//! use syn::{parse_macro_input, DeriveInput};
-//!
-//! # const IGNORE_TOKENS: &str = stringify! {
-//! #[proc_macro_derive(MyMacro)]
-//! # };
-//! pub fn my_macro(input: TokenStream) -> TokenStream {
-//! // Parse the input tokens into a syntax tree
-//! let input = parse_macro_input!(input as DeriveInput);
-//!
-//! // Build the output, possibly using quasi-quotation
-//! let expanded = quote! {
-//! // ...
-//! };
-//!
-//! // Hand the output tokens back to the compiler
-//! TokenStream::from(expanded)
-//! }
-//! ```
-//!
-//! The [`heapsize`] example directory shows a complete working implementation
-//! of a derive macro. The example derives a `HeapSize` trait which computes an
-//! estimate of the amount of heap memory owned by a value.
-//!
-//! [`heapsize`]: https://github.com/dtolnay/syn/tree/master/examples/heapsize
-//!
-//! ```
-//! pub trait HeapSize {
-//! /// Total number of bytes of heap memory owned by `self`.
-//! fn heap_size_of_children(&self) -> usize;
-//! }
-//! ```
-//!
-//! The derive macro allows users to write `#[derive(HeapSize)]` on data
-//! structures in their program.
-//!
-//! ```
-//! # const IGNORE_TOKENS: &str = stringify! {
-//! #[derive(HeapSize)]
-//! # };
-//! struct Demo<'a, T: ?Sized> {
-//! a: Box<T>,
-//! b: u8,
-//! c: &'a str,
-//! d: String,
-//! }
-//! ```
-//!
-//! <p><br></p>
-//!
-//! # Spans and error reporting
-//!
-//! The token-based procedural macro API provides great control over where the
-//! compiler's error messages are displayed in user code. Consider the error the
-//! user sees if one of their field types does not implement `HeapSize`.
-//!
-//! ```
-//! # const IGNORE_TOKENS: &str = stringify! {
-//! #[derive(HeapSize)]
-//! # };
-//! struct Broken {
-//! ok: String,
-//! bad: std::thread::Thread,
-//! }
-//! ```
-//!
-//! By tracking span information all the way through the expansion of a
-//! procedural macro as shown in the `heapsize` example, token-based macros in
-//! Syn are able to trigger errors that directly pinpoint the source of the
-//! problem.
-//!
-//! ```text
-//! error[E0277]: the trait bound `std::thread::Thread: HeapSize` is not satisfied
-//! --> src/main.rs:7:5
-//! |
-//! 7 | bad: std::thread::Thread,
-//! | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HeapSize` is not implemented for `Thread`
-//! ```
-//!
-//! <br>
-//!
-//! # Parsing a custom syntax
-//!
-//! The [`lazy-static`] example directory shows the implementation of a
-//! `functionlike!(...)` procedural macro in which the input tokens are parsed
-//! using Syn's parsing API.
-//!
-//! [`lazy-static`]: https://github.com/dtolnay/syn/tree/master/examples/lazy-static
-//!
-//! The example reimplements the popular `lazy_static` crate from crates.io as a
-//! procedural macro.
-//!
-//! ```
-//! # macro_rules! lazy_static {
-//! # ($($tt:tt)*) => {}
-//! # }
-//! #
-//! lazy_static! {
-//! static ref USERNAME: Regex = Regex::new("^[a-z0-9_-]{3,16}$").unwrap();
-//! }
-//! ```
-//!
-//! The implementation shows how to trigger custom warnings and error messages
-//! on the macro input.
-//!
-//! ```text
-//! warning: come on, pick a more creative name
-//! --> src/main.rs:10:16
-//! |
-//! 10 | static ref FOO: String = "lazy_static".to_owned();
-//! | ^^^
-//! ```
-//!
-//! <br>
-//!
-//! # Testing
-//!
-//! When testing macros, we often care not just that the macro can be used
-//! successfully but also that when the macro is provided with invalid input it
-//! produces maximally helpful error messages. Consider using the [`trybuild`]
-//! crate to write tests for errors that are emitted by your macro or errors
-//! detected by the Rust compiler in the expanded code following misuse of the
-//! macro. Such tests help avoid regressions from later refactors that
-//! mistakenly make an error no longer trigger or be less helpful than it used
-//! to be.
-//!
-//! [`trybuild`]: https://github.com/dtolnay/trybuild
-//!
-//! <br>
-//!
-//! # Debugging
-//!
-//! When developing a procedural macro it can be helpful to look at what the
-//! generated code looks like. Use `cargo rustc -- -Zunstable-options
-//! -Zunpretty=expanded` or the [`cargo expand`] subcommand.
-//!
-//! [`cargo expand`]: https://github.com/dtolnay/cargo-expand
-//!
-//! To show the expanded code for some crate that uses your procedural macro,
-//! run `cargo expand` from that crate. To show the expanded code for one of
-//! your own test cases, run `cargo expand --test the_test_case` where the last
-//! argument is the name of the test file without the `.rs` extension.
-//!
-//! This write-up by Brandon W Maister discusses debugging in more detail:
-//! [Debugging Rust's new Custom Derive system][debugging].
-//!
-//! [debugging]: https://quodlibetor.github.io/posts/debugging-rusts-new-custom-derive-system/
-//!
-//! <br>
-//!
-//! # Optional features
-//!
-//! Syn puts a lot of functionality behind optional features in order to
-//! optimize compile time for the most common use cases. The following features
-//! are available.
-//!
-//! - **`derive`** *(enabled by default)* — Data structures for representing the
-//! possible input to a derive macro, including structs and enums and types.
-//! - **`full`** — Data structures for representing the syntax tree of all valid
-//! Rust source code, including items and expressions.
-//! - **`parsing`** *(enabled by default)* — Ability to parse input tokens into
-//! a syntax tree node of a chosen type.
-//! - **`printing`** *(enabled by default)* — Ability to print a syntax tree
-//! node as tokens of Rust source code.
-//! - **`visit`** — Trait for traversing a syntax tree.
-//! - **`visit-mut`** — Trait for traversing and mutating in place a syntax
-//! tree.
-//! - **`fold`** — Trait for transforming an owned syntax tree.
-//! - **`clone-impls`** *(enabled by default)* — Clone impls for all syntax tree
-//! types.
-//! - **`extra-traits`** — Debug, Eq, PartialEq, Hash impls for all syntax tree
-//! types.
-//! - **`proc-macro`** *(enabled by default)* — Runtime dependency on the
-//! dynamic library libproc_macro from rustc toolchain.
-
-#![no_std]
-#![doc(html_root_url = "https://docs.rs/syn/2.0.119")]
-#![cfg_attr(docsrs, feature(doc_cfg), doc(auto_cfg = false))]
-#![deny(unsafe_op_in_unsafe_fn)]
-#![allow(non_camel_case_types)]
-#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
-#![allow(
- clippy::bool_to_int_with_if,
- clippy::cast_lossless,
- clippy::cast_possible_truncation,
- clippy::cast_possible_wrap,
- clippy::cast_ptr_alignment,
- clippy::default_trait_access,
- clippy::derivable_impls,
- clippy::diverging_sub_expression,
- clippy::doc_markdown,
- clippy::elidable_lifetime_names,
- clippy::enum_glob_use,
- clippy::expl_impl_clone_on_copy,
- clippy::explicit_auto_deref,
- clippy::fn_params_excessive_bools,
- clippy::if_not_else,
- clippy::inherent_to_string,
- clippy::into_iter_without_iter,
- clippy::items_after_statements,
- clippy::large_enum_variant,
- clippy::let_underscore_untyped, // https://github.com/rust-lang/rust-clippy/issues/10410
- clippy::manual_assert,
- clippy::manual_let_else,
- clippy::manual_map,
- clippy::match_like_matches_macro,
- clippy::match_same_arms,
- clippy::match_wildcard_for_single_variants, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6984
- clippy::missing_errors_doc,
- clippy::missing_panics_doc,
- clippy::module_name_repetitions,
- clippy::must_use_candidate,
- clippy::needless_doctest_main,
- clippy::needless_lifetimes,
- clippy::needless_pass_by_value,
- clippy::needless_update,
- clippy::never_loop,
- clippy::range_plus_one,
- clippy::redundant_else,
- clippy::ref_option,
- clippy::return_self_not_must_use,
- clippy::similar_names,
- clippy::single_match_else,
- clippy::struct_excessive_bools,
- clippy::too_many_arguments,
- clippy::too_many_lines,
- clippy::trivially_copy_pass_by_ref,
- clippy::type_complexity,
- clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133
- clippy::uninhabited_references,
- clippy::uninlined_format_args,
- clippy::unnecessary_box_returns,
- clippy::unnecessary_unwrap,
- clippy::used_underscore_binding,
- clippy::wildcard_imports,
-)]
-#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
-
-extern crate alloc;
-extern crate std;
-
-extern crate self as syn;
-
-#[cfg(feature = "proc-macro")]
-extern crate proc_macro;
-
-#[macro_use]
-mod macros;
-
-#[cfg(feature = "parsing")]
-#[macro_use]
-mod group;
-
-#[macro_use]
-pub mod token;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod attr;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::attr::{AttrStyle, Attribute, Meta, MetaList, MetaNameValue};
-
-mod bigint;
-
-#[cfg(feature = "parsing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-pub mod buffer;
-
-#[cfg(any(
- all(feature = "parsing", feature = "full"),
- all(feature = "printing", any(feature = "full", feature = "derive")),
-))]
-mod classify;
-
-mod custom_keyword;
-
-mod custom_punctuation;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod data;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::data::{Field, Fields, FieldsNamed, FieldsUnnamed, Variant};
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod derive;
-#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
-pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
-
-mod drops;
-
-mod error;
-pub use crate::error::{Error, Result};
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod expr;
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::expr::{Arm, Label, PointerMutability, RangeLimits};
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::expr::{
- Expr, ExprBinary, ExprCall, ExprCast, ExprField, ExprIndex, ExprLit, ExprMacro, ExprMethodCall,
- ExprParen, ExprPath, ExprReference, ExprStruct, ExprUnary, FieldValue, Index, Member,
-};
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::expr::{
- ExprArray, ExprAssign, ExprAsync, ExprAwait, ExprBlock, ExprBreak, ExprClosure, ExprConst,
- ExprContinue, ExprForLoop, ExprGroup, ExprIf, ExprInfer, ExprLet, ExprLoop, ExprMatch,
- ExprRange, ExprRawAddr, ExprRepeat, ExprReturn, ExprTry, ExprTryBlock, ExprTuple, ExprUnsafe,
- ExprWhile, ExprYield,
-};
-
-pub mod ext;
-
-#[cfg(feature = "full")]
-mod file;
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::file::File;
-
-#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
-mod fixup;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod generics;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::generics::{
- BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeParam, PredicateLifetime,
- PredicateType, TraitBound, TraitBoundModifier, TypeParam, TypeParamBound, WhereClause,
- WherePredicate,
-};
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::generics::{CapturedParam, PreciseCapture};
-#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
-#[cfg_attr(
- docsrs,
- doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing")))
-)]
-pub use crate::generics::{ImplGenerics, Turbofish, TypeGenerics};
-
-mod ident;
-#[doc(inline)]
-pub use crate::ident::Ident;
-
-#[cfg(feature = "full")]
-mod item;
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::item::{
- FnArg, ForeignItem, ForeignItemFn, ForeignItemMacro, ForeignItemStatic, ForeignItemType,
- ImplItem, ImplItemConst, ImplItemFn, ImplItemMacro, ImplItemType, ImplRestriction, Item,
- ItemConst, ItemEnum, ItemExternCrate, ItemFn, ItemForeignMod, ItemImpl, ItemMacro, ItemMod,
- ItemStatic, ItemStruct, ItemTrait, ItemTraitAlias, ItemType, ItemUnion, ItemUse, Receiver,
- Signature, StaticMutability, TraitItem, TraitItemConst, TraitItemFn, TraitItemMacro,
- TraitItemType, UseGlob, UseGroup, UseName, UsePath, UseRename, UseTree, Variadic,
-};
-
-mod lifetime;
-#[doc(inline)]
-pub use crate::lifetime::Lifetime;
-
-mod lit;
-#[doc(hidden)] // https://github.com/dtolnay/syn/issues/1566
-pub use crate::lit::StrStyle;
-#[doc(inline)]
-pub use crate::lit::{
- Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr,
-};
-
-#[cfg(feature = "parsing")]
-mod lookahead;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod mac;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::mac::{Macro, MacroDelimiter};
-
-#[cfg(all(feature = "parsing", any(feature = "full", feature = "derive")))]
-#[cfg_attr(
- docsrs,
- doc(cfg(all(feature = "parsing", any(feature = "full", feature = "derive"))))
-)]
-pub mod meta;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod op;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::op::{BinOp, UnOp};
-
-#[cfg(feature = "parsing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-pub mod parse;
-
-#[cfg(all(feature = "parsing", feature = "proc-macro"))]
-mod parse_macro_input;
-
-#[cfg(all(feature = "parsing", feature = "printing"))]
-mod parse_quote;
-
-#[cfg(feature = "full")]
-mod pat;
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::pat::{
- FieldPat, Pat, PatConst, PatIdent, PatLit, PatMacro, PatOr, PatParen, PatPath, PatRange,
- PatReference, PatRest, PatSlice, PatStruct, PatTuple, PatTupleStruct, PatType, PatWild,
-};
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod path;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::path::{
- AngleBracketedGenericArguments, AssocConst, AssocType, Constraint, GenericArgument,
- ParenthesizedGenericArguments, Path, PathArguments, PathSegment, QSelf,
-};
-
-#[cfg(all(
- any(feature = "full", feature = "derive"),
- any(feature = "parsing", feature = "printing")
-))]
-mod precedence;
-
-#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
-mod print;
-
-pub mod punctuated;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod restriction;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::restriction::{FieldMutability, VisRestricted, Visibility};
-
-mod sealed;
-
-#[cfg(all(feature = "parsing", feature = "derive", not(feature = "full")))]
-mod scan_expr;
-
-mod span;
-
-#[cfg(all(feature = "parsing", feature = "printing"))]
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "printing"))))]
-pub mod spanned;
-
-#[cfg(feature = "full")]
-mod stmt;
-#[cfg(feature = "full")]
-#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
-pub use crate::stmt::{Block, Local, LocalInit, Stmt, StmtMacro};
-
-mod thread;
-
-#[cfg(all(any(feature = "full", feature = "derive"), feature = "extra-traits"))]
-mod tt;
-
-#[cfg(any(feature = "full", feature = "derive"))]
-mod ty;
-#[cfg(any(feature = "full", feature = "derive"))]
-#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
-pub use crate::ty::{
- Abi, BareFnArg, BareVariadic, ReturnType, Type, TypeArray, TypeBareFn, TypeGroup,
- TypeImplTrait, TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr, TypeReference,
- TypeSlice, TypeTraitObject, TypeTuple,
-};
-
-#[cfg(all(any(feature = "full", feature = "derive"), feature = "parsing"))]
-mod verbatim;
-
-#[cfg(all(feature = "parsing", feature = "full"))]
-mod whitespace;
-
-#[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/6176
-mod gen {
- /// Syntax tree traversal to transform the nodes of an owned syntax tree.
- ///
- /// Each method of the [`Fold`] trait is a hook that can be overridden to
- /// customize the behavior when transforming the corresponding type of node.
- /// By default, every method recursively visits the substructure of the
- /// input by invoking the right visitor method of each of its fields.
- ///
- /// [`Fold`]: fold::Fold
- ///
- /// ```
- /// # use syn::{Attribute, BinOp, Expr, ExprBinary};
- /// #
- /// pub trait Fold {
- /// /* ... */
- ///
- /// fn fold_expr_binary(&mut self, node: ExprBinary) -> ExprBinary {
- /// fold_expr_binary(self, node)
- /// }
- ///
- /// /* ... */
- /// # fn fold_attribute(&mut self, node: Attribute) -> Attribute;
- /// # fn fold_expr(&mut self, node: Expr) -> Expr;
- /// # fn fold_bin_op(&mut self, node: BinOp) -> BinOp;
- /// }
- ///
- /// pub fn fold_expr_binary<V>(v: &mut V, node: ExprBinary) -> ExprBinary
- /// where
- /// V: Fold + ?Sized,
- /// {
- /// ExprBinary {
- /// attrs: node
- /// .attrs
- /// .into_iter()
- /// .map(|attr| v.fold_attribute(attr))
- /// .collect(),
- /// left: Box::new(v.fold_expr(*node.left)),
- /// op: v.fold_bin_op(node.op),
- /// right: Box::new(v.fold_expr(*node.right)),
- /// }
- /// }
- ///
- /// /* ... */
- /// ```
- ///
- /// <br>
- ///
- /// # Example
- ///
- /// This fold inserts parentheses to fully parenthesizes any expression.
- ///
- /// ```
- /// // [dependencies]
- /// // quote = "1.0"
- /// // syn = { version = "2.0", features = ["fold", "full"] }
- ///
- /// use quote::quote;
- /// use syn::fold::{fold_expr, Fold};
- /// use syn::{token, Expr, ExprParen};
- ///
- /// struct ParenthesizeEveryExpr;
- ///
- /// impl Fold for ParenthesizeEveryExpr {
- /// fn fold_expr(&mut self, expr: Expr) -> Expr {
- /// Expr::Paren(ExprParen {
- /// attrs: Vec::new(),
- /// expr: Box::new(fold_expr(self, expr)),
- /// paren_token: token::Paren::default(),
- /// })
- /// }
- /// }
- ///
- /// fn main() {
- /// let code = quote! { a() + b(1) * c.d };
- /// let expr: Expr = syn::parse2(code).unwrap();
- /// let parenthesized = ParenthesizeEveryExpr.fold_expr(expr);
- /// println!("{}", quote!(#parenthesized));
- ///
- /// // Output: (((a)()) + (((b)((1))) * ((c).d)))
- /// }
- /// ```
- #[cfg(feature = "fold")]
- #[cfg_attr(docsrs, doc(cfg(feature = "fold")))]
- #[rustfmt::skip]
- pub mod fold;
-
- /// Syntax tree traversal to walk a shared borrow of a syntax tree.
- ///
- /// Each method of the [`Visit`] trait is a hook that can be overridden to
- /// customize the behavior when visiting the corresponding type of node. By
- /// default, every method recursively visits the substructure of the input
- /// by invoking the right visitor method of each of its fields.
- ///
- /// [`Visit`]: visit::Visit
- ///
- /// ```
- /// # use syn::{Attribute, BinOp, Expr, ExprBinary};
- /// #
- /// pub trait Visit<'ast> {
- /// /* ... */
- ///
- /// fn visit_expr_binary(&mut self, node: &'ast ExprBinary) {
- /// visit_expr_binary(self, node);
- /// }
- ///
- /// /* ... */
- /// # fn visit_attribute(&mut self, node: &'ast Attribute);
- /// # fn visit_expr(&mut self, node: &'ast Expr);
- /// # fn visit_bin_op(&mut self, node: &'ast BinOp);
- /// }
- ///
- /// pub fn visit_expr_binary<'ast, V>(v: &mut V, node: &'ast ExprBinary)
- /// where
- /// V: Visit<'ast> + ?Sized,
- /// {
- /// for attr in &node.attrs {
- /// v.visit_attribute(attr);
- /// }
- /// v.visit_expr(&*node.left);
- /// v.visit_bin_op(&node.op);
- /// v.visit_expr(&*node.right);
- /// }
- ///
- /// /* ... */
- /// ```
- ///
- /// <br>
- ///
- /// # Example
- ///
- /// This visitor will print the name of every freestanding function in the
- /// syntax tree, including nested functions.
- ///
- /// ```
- /// // [dependencies]
- /// // quote = "1.0"
- /// // syn = { version = "2.0", features = ["full", "visit"] }
- ///
- /// use quote::quote;
- /// use syn::visit::{self, Visit};
- /// use syn::{File, ItemFn};
- ///
- /// struct FnVisitor;
- ///
- /// impl<'ast> Visit<'ast> for FnVisitor {
- /// fn visit_item_fn(&mut self, node: &'ast ItemFn) {
- /// println!("Function with name={}", node.sig.ident);
- ///
- /// // Delegate to the default impl to visit any nested functions.
- /// visit::visit_item_fn(self, node);
- /// }
- /// }
- ///
- /// fn main() {
- /// let code = quote! {
- /// pub fn f() {
- /// fn g() {}
- /// }
- /// };
- ///
- /// let syntax_tree: File = syn::parse2(code).unwrap();
- /// FnVisitor.visit_file(&syntax_tree);
- /// }
- /// ```
- ///
- /// The `'ast` lifetime on the input references means that the syntax tree
- /// outlives the complete recursive visit call, so the visitor is allowed to
- /// hold on to references into the syntax tree.
- ///
- /// ```
- /// use quote::quote;
- /// use syn::visit::{self, Visit};
- /// use syn::{File, ItemFn};
- ///
- /// struct FnVisitor<'ast> {
- /// functions: Vec<&'ast ItemFn>,
- /// }
- ///
- /// impl<'ast> Visit<'ast> for FnVisitor<'ast> {
- /// fn visit_item_fn(&mut self, node: &'ast ItemFn) {
- /// self.functions.push(node);
- /// visit::visit_item_fn(self, node);
- /// }
- /// }
- ///
- /// fn main() {
- /// let code = quote! {
- /// pub fn f() {
- /// fn g() {}
- /// }
- /// };
- ///
- /// let syntax_tree: File = syn::parse2(code).unwrap();
- /// let mut visitor = FnVisitor { functions: Vec::new() };
- /// visitor.visit_file(&syntax_tree);
- /// for f in visitor.functions {
- /// println!("Function with name={}", f.sig.ident);
- /// }
- /// }
- /// ```
- #[cfg(feature = "visit")]
- #[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
- #[rustfmt::skip]
- pub mod visit;
-
- /// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in
- /// place.
- ///
- /// Each method of the [`VisitMut`] trait is a hook that can be overridden
- /// to customize the behavior when mutating the corresponding type of node.
- /// By default, every method recursively visits the substructure of the
- /// input by invoking the right visitor method of each of its fields.
- ///
- /// [`VisitMut`]: visit_mut::VisitMut
- ///
- /// ```
- /// # use syn::{Attribute, BinOp, Expr, ExprBinary};
- /// #
- /// pub trait VisitMut {
- /// /* ... */
- ///
- /// fn visit_expr_binary_mut(&mut self, node: &mut ExprBinary) {
- /// visit_expr_binary_mut(self, node);
- /// }
- ///
- /// /* ... */
- /// # fn visit_attribute_mut(&mut self, node: &mut Attribute);
- /// # fn visit_expr_mut(&mut self, node: &mut Expr);
- /// # fn visit_bin_op_mut(&mut self, node: &mut BinOp);
- /// }
- ///
- /// pub fn visit_expr_binary_mut<V>(v: &mut V, node: &mut ExprBinary)
- /// where
- /// V: VisitMut + ?Sized,
- /// {
- /// for attr in &mut node.attrs {
- /// v.visit_attribute_mut(attr);
- /// }
- /// v.visit_expr_mut(&mut *node.left);
- /// v.visit_bin_op_mut(&mut node.op);
- /// v.visit_expr_mut(&mut *node.right);
- /// }
- ///
- /// /* ... */
- /// ```
- ///
- /// <br>
- ///
- /// # Example
- ///
- /// This mut visitor replace occurrences of u256 suffixed integer literals
- /// like `999u256` with a macro invocation `bigint::u256!(999)`.
- ///
- /// ```
- /// // [dependencies]
- /// // quote = "1.0"
- /// // syn = { version = "2.0", features = ["full", "visit-mut"] }
- ///
- /// use quote::quote;
- /// use syn::visit_mut::{self, VisitMut};
- /// use syn::{parse_quote, Expr, File, Lit, LitInt};
- ///
- /// struct BigintReplace;
- ///
- /// impl VisitMut for BigintReplace {
- /// fn visit_expr_mut(&mut self, node: &mut Expr) {
- /// if let Expr::Lit(expr) = &node {
- /// if let Lit::Int(int) = &expr.lit {
- /// if int.suffix() == "u256" {
- /// let digits = int.base10_digits();
- /// let unsuffixed: LitInt = syn::parse_str(digits).unwrap();
- /// *node = parse_quote!(bigint::u256!(#unsuffixed));
- /// return;
- /// }
- /// }
- /// }
- ///
- /// // Delegate to the default impl to visit nested expressions.
- /// visit_mut::visit_expr_mut(self, node);
- /// }
- /// }
- ///
- /// fn main() {
- /// let code = quote! {
- /// fn main() {
- /// let _ = 999u256;
- /// }
- /// };
- ///
- /// let mut syntax_tree: File = syn::parse2(code).unwrap();
- /// BigintReplace.visit_file_mut(&mut syntax_tree);
- /// println!("{}", quote!(#syntax_tree));
- /// }
- /// ```
- #[cfg(feature = "visit-mut")]
- #[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]
- #[rustfmt::skip]
- pub mod visit_mut;
-
- #[cfg(feature = "clone-impls")]
- #[rustfmt::skip]
- mod clone;
-
- #[cfg(feature = "extra-traits")]
- #[rustfmt::skip]
- mod debug;
-
- #[cfg(feature = "extra-traits")]
- #[rustfmt::skip]
- mod eq;
-
- #[cfg(feature = "extra-traits")]
- #[rustfmt::skip]
- mod hash;
-}
-
-#[cfg(feature = "fold")]
-#[cfg_attr(docsrs, doc(cfg(feature = "fold")))]
-pub use crate::gen::fold;
-
-#[cfg(feature = "visit")]
-#[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
-pub use crate::gen::visit;
-
-#[cfg(feature = "visit-mut")]
-#[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]
-pub use crate::gen::visit_mut;
-
-// Not public API.
-#[doc(hidden)]
-#[path = "export.rs"]
-pub mod __private;
-
-#[cfg(all(feature = "parsing", feature = "full"))]
-use alloc::string::ToString;
-
-/// Parse tokens of source code into the chosen syntax tree node.
-///
-/// This is preferred over parsing a string because tokens are able to preserve
-/// information about where in the user's code they were originally written (the
-/// "span" of the token), possibly allowing the compiler to produce better error
-/// messages.
-///
-/// This function parses a `proc_macro::TokenStream` which is the type used for
-/// interop with the compiler in a procedural macro. To parse a
-/// `proc_macro2::TokenStream`, use [`syn::parse2`] instead.
-///
-/// [`syn::parse2`]: parse2
-///
-/// This function enforces that the input is fully parsed. If there are any
-/// unparsed tokens at the end of the stream, an error is returned.
-#[cfg(all(feature = "parsing", feature = "proc-macro"))]
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "proc-macro"))))]
-pub fn parse<T: parse::Parse>(tokens: proc_macro::TokenStream) -> Result<T> {
- parse::Parser::parse(T::parse, tokens)
-}
-
-/// Parse a proc-macro2 token stream into the chosen syntax tree node.
-///
-/// This function parses a `proc_macro2::TokenStream` which is commonly useful
-/// when the input comes from a node of the Syn syntax tree, for example the
-/// body tokens of a [`Macro`] node. When in a procedural macro parsing the
-/// `proc_macro::TokenStream` provided by the compiler, use [`syn::parse`]
-/// instead.
-///
-/// [`syn::parse`]: parse()
-///
-/// This function enforces that the input is fully parsed. If there are any
-/// unparsed tokens at the end of the stream, an error is returned.
-#[cfg(feature = "parsing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-pub fn parse2<T: parse::Parse>(tokens: proc_macro2::TokenStream) -> Result<T> {
- parse::Parser::parse2(T::parse, tokens)
-}
-
-/// Parse a string of Rust code into the chosen syntax tree node.
-///
-/// This function enforces that the input is fully parsed. If there are any
-/// unparsed tokens at the end of the stream, an error is returned.
-///
-/// # Hygiene
-///
-/// Every span in the resulting syntax tree will be set to resolve at the macro
-/// call site.
-///
-/// # Examples
-///
-/// ```
-/// use syn::{Expr, Result};
-///
-/// fn run() -> Result<()> {
-/// let code = "assert_eq!(u8::max_value(), 255)";
-/// let expr = syn::parse_str::<Expr>(code)?;
-/// println!("{:#?}", expr);
-/// Ok(())
-/// }
-/// #
-/// # run().unwrap();
-/// ```
-#[cfg(feature = "parsing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-pub fn parse_str<T: parse::Parse>(s: &str) -> Result<T> {
- parse::Parser::parse_str(T::parse, s)
-}
-
-/// Parse the content of a file of Rust code.
-///
-/// This is different from `syn::parse_str::<File>(content)` in two ways:
-///
-/// - It discards a leading byte order mark `\u{FEFF}` if the file has one.
-/// - It preserves the shebang line of the file, such as `#!/usr/bin/env rustx`.
-///
-/// If present, either of these would be an error using `from_str`.
-///
-/// # Examples
-///
-/// ```no_run
-/// use std::error::Error;
-/// use std::fs;
-/// use std::io::Read;
-///
-/// fn run() -> Result<(), Box<dyn Error>> {
-/// let content = fs::read_to_string("path/to/code.rs")?;
-/// let ast = syn::parse_file(&content)?;
-/// if let Some(shebang) = ast.shebang {
-/// println!("{}", shebang);
-/// }
-/// println!("{} items", ast.items.len());
-///
-/// Ok(())
-/// }
-/// #
-/// # run().unwrap();
-/// ```
-#[cfg(all(feature = "parsing", feature = "full"))]
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "full"))))]
-pub fn parse_file(mut content: &str) -> Result<File> {
- // Strip the BOM if it is present
- const BOM: &str = "\u{feff}";
- if content.starts_with(BOM) {
- content = &content[BOM.len()..];
- }
-
- let mut shebang = None;
- if content.starts_with("#!") {
- let rest = whitespace::skip(&content[2..]);
- if !rest.starts_with('[') {
- if let Some(idx) = content.find('\n') {
- shebang = Some(content[..idx].to_string());
- content = &content[idx..];
- } else {
- shebang = Some(content.to_string());
- content = "";
- }
- }
- }
-
- let mut file: File = parse_str(content)?;
- file.shebang = shebang;
- Ok(file)
-}
diff --git a/deps/crates/vendor/syn-v2/src/lifetime.rs b/deps/crates/vendor/syn-v2/src/lifetime.rs
deleted file mode 100644
index eeaa3983540..00000000000
--- a/deps/crates/vendor/syn-v2/src/lifetime.rs
+++ /dev/null
@@ -1,155 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::lookahead;
-use core::cmp::Ordering;
-use core::fmt::{self, Display};
-use core::hash::{Hash, Hasher};
-use proc_macro2::{Ident, Span};
-
-/// A Rust lifetime: `'a`.
-///
-/// Lifetime names must conform to the following rules:
-///
-/// - Must start with an apostrophe.
-/// - Must not consist of just an apostrophe: `'`.
-/// - Character after the apostrophe must be `_` or a Unicode code point with
-/// the XID_Start property.
-/// - All following characters must be Unicode code points with the XID_Continue
-/// property.
-pub struct Lifetime {
- pub apostrophe: Span,
- pub ident: Ident,
-}
-
-impl Lifetime {
- /// # Panics
- ///
- /// Panics if the lifetime does not conform to the bulleted rules above.
- ///
- /// # Invocation
- ///
- /// ```
- /// # use proc_macro2::Span;
- /// # use syn::Lifetime;
- /// #
- /// # fn f() -> Lifetime {
- /// Lifetime::new("'a", Span::call_site())
- /// # }
- /// ```
- pub fn new(symbol: &str, span: Span) -> Self {
- if !symbol.starts_with('\'') {
- panic!(
- "lifetime name must start with apostrophe as in \"'a\", got {:?}",
- symbol
- );
- }
-
- if symbol == "'" {
- panic!("lifetime name must not be empty");
- }
-
- if !crate::ident::xid_ok(&symbol[1..]) {
- panic!("{:?} is not a valid lifetime name", symbol);
- }
-
- Lifetime {
- apostrophe: span,
- ident: Ident::new(&symbol[1..], span),
- }
- }
-
- pub fn span(&self) -> Span {
- self.apostrophe
- .join(self.ident.span())
- .unwrap_or(self.apostrophe)
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.apostrophe = span;
- self.ident.set_span(span);
- }
-}
-
-impl Display for Lifetime {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- "'".fmt(formatter)?;
- self.ident.fmt(formatter)
- }
-}
-
-impl Clone for Lifetime {
- fn clone(&self) -> Self {
- Lifetime {
- apostrophe: self.apostrophe,
- ident: self.ident.clone(),
- }
- }
-}
-
-impl PartialEq for Lifetime {
- fn eq(&self, other: &Lifetime) -> bool {
- self.ident.eq(&other.ident)
- }
-}
-
-impl Eq for Lifetime {}
-
-impl PartialOrd for Lifetime {
- fn partial_cmp(&self, other: &Lifetime) -> Option<Ordering> {
- Some(self.cmp(other))
- }
-}
-
-impl Ord for Lifetime {
- fn cmp(&self, other: &Lifetime) -> Ordering {
- self.ident.cmp(&other.ident)
- }
-}
-
-impl Hash for Lifetime {
- fn hash<H: Hasher>(&self, h: &mut H) {
- self.ident.hash(h);
- }
-}
-
-#[cfg(feature = "parsing")]
-pub_if_not_doc! {
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn Lifetime(marker: lookahead::TokenMarker) -> Lifetime {
- match marker {}
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::error::Result;
- use crate::lifetime::Lifetime;
- use crate::parse::{Parse, ParseStream};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Lifetime {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| {
- cursor
- .lifetime()
- .ok_or_else(|| cursor.error("expected lifetime"))
- })
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::ext::PunctExt as _;
- use crate::lifetime::Lifetime;
- use proc_macro2::{Punct, Spacing, TokenStream};
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Lifetime {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append(Punct::new_spanned('\'', Spacing::Joint, self.apostrophe));
- self.ident.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/lit.rs b/deps/crates/vendor/syn-v2/src/lit.rs
deleted file mode 100644
index 403d8bac3e6..00000000000
--- a/deps/crates/vendor/syn-v2/src/lit.rs
+++ /dev/null
@@ -1,1928 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::ext::TokenStreamExt as _;
-#[cfg(feature = "parsing")]
-use crate::lookahead;
-#[cfg(feature = "parsing")]
-use crate::parse::{Parse, Parser};
-use crate::{Error, Result};
-use alloc::boxed::Box;
-use alloc::ffi::CString;
-#[cfg(feature = "parsing")]
-use alloc::format;
-use alloc::string::{String, ToString};
-use alloc::vec::Vec;
-use core::ffi::CStr;
-use core::fmt::{self, Display};
-#[cfg(feature = "extra-traits")]
-use core::hash::{Hash, Hasher};
-use core::str::{self, FromStr};
-use proc_macro2::{Ident, Literal, Span};
-#[cfg(feature = "parsing")]
-use proc_macro2::{TokenStream, TokenTree};
-
-ast_enum_of_structs! {
- /// A Rust literal such as a string or integer or boolean.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[non_exhaustive]
- pub enum Lit {
- /// A UTF-8 string literal: `"foo"`.
- Str(LitStr),
-
- /// A byte string literal: `b"foo"`.
- ByteStr(LitByteStr),
-
- /// A nul-terminated C-string literal: `c"foo"`.
- CStr(LitCStr),
-
- /// A byte literal: `b'f'`.
- Byte(LitByte),
-
- /// A character literal: `'a'`.
- Char(LitChar),
-
- /// An integer literal: `1` or `1u16`.
- Int(LitInt),
-
- /// A floating point literal: `1f64` or `1.0e10f64`.
- ///
- /// Must be finite. May not be infinite or NaN.
- Float(LitFloat),
-
- /// A boolean literal: `true` or `false`.
- Bool(LitBool),
-
- /// A raw token literal not interpreted by Syn.
- Verbatim(Literal),
- }
-}
-
-ast_struct! {
- /// A UTF-8 string literal: `"foo"`.
- pub struct LitStr {
- repr: Box<LitRepr>,
- }
-}
-
-ast_struct! {
- /// A byte string literal: `b"foo"`.
- pub struct LitByteStr {
- repr: Box<LitRepr>,
- }
-}
-
-ast_struct! {
- /// A nul-terminated C-string literal: `c"foo"`.
- pub struct LitCStr {
- repr: Box<LitRepr>,
- }
-}
-
-ast_struct! {
- /// A byte literal: `b'f'`.
- pub struct LitByte {
- repr: Box<LitRepr>,
- }
-}
-
-ast_struct! {
- /// A character literal: `'a'`.
- pub struct LitChar {
- repr: Box<LitRepr>,
- }
-}
-
-struct LitRepr {
- token: Literal,
- suffix: Box<str>,
-}
-
-ast_struct! {
- /// An integer literal: `1` or `1u16`.
- pub struct LitInt {
- repr: Box<LitIntRepr>,
- }
-}
-
-struct LitIntRepr {
- token: Literal,
- digits: Box<str>,
- suffix: Box<str>,
-}
-
-ast_struct! {
- /// A floating point literal: `1f64` or `1.0e10f64`.
- ///
- /// Must be finite. May not be infinite or NaN.
- pub struct LitFloat {
- repr: Box<LitFloatRepr>,
- }
-}
-
-struct LitFloatRepr {
- token: Literal,
- digits: Box<str>,
- suffix: Box<str>,
-}
-
-ast_struct! {
- /// A boolean literal: `true` or `false`.
- pub struct LitBool {
- pub value: bool,
- pub span: Span,
- }
-}
-
-impl LitStr {
- pub fn new(value: &str, span: Span) -> Self {
- let mut token = Literal::string(value);
- token.set_span(span);
- LitStr {
- repr: Box::new(LitRepr {
- token,
- suffix: Box::<str>::default(),
- }),
- }
- }
-
- pub fn value(&self) -> String {
- let repr = self.repr.token.to_string();
- let (value, _suffix) = value::parse_lit_str(&repr).unwrap();
- String::from(value)
- }
-
- /// Parse a syntax tree node from the content of this string literal.
- ///
- /// All spans in the syntax tree will point to the span of this `LitStr`.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{Attribute, Error, Expr, Lit, Meta, Path, Result};
- ///
- /// // Parses the path from an attribute that looks like:
- /// //
- /// // #[path = "a::b::c"]
- /// //
- /// // or returns `None` if the input is some other attribute.
- /// fn get_path(attr: &Attribute) -> Result<Option<Path>> {
- /// if !attr.path().is_ident("path") {
- /// return Ok(None);
- /// }
- ///
- /// if let Meta::NameValue(meta) = &attr.meta {
- /// if let Expr::Lit(expr) = &meta.value {
- /// if let Lit::Str(lit_str) = &expr.lit {
- /// return lit_str.parse().map(Some);
- /// }
- /// }
- /// }
- ///
- /// let message = "expected #[path = \"...\"]";
- /// Err(Error::new_spanned(attr, message))
- /// }
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse<T: Parse>(&self) -> Result<T> {
- self.parse_with(T::parse)
- }
-
- /// Invoke parser on the content of this string literal.
- ///
- /// All spans in the syntax tree will point to the span of this `LitStr`.
- ///
- /// # Example
- ///
- /// ```
- /// # use proc_macro2::Span;
- /// # use syn::{LitStr, Result};
- /// #
- /// # fn main() -> Result<()> {
- /// # let lit_str = LitStr::new("a::b::c", Span::call_site());
- /// #
- /// # const IGNORE: &str = stringify! {
- /// let lit_str: LitStr = /* ... */;
- /// # };
- ///
- /// // Parse a string literal like "a::b::c" into a Path, not allowing
- /// // generic arguments on any of the path segments.
- /// let basic_path = lit_str.parse_with(syn::Path::parse_mod_style)?;
- /// #
- /// # Ok(())
- /// # }
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_with<F: Parser>(&self, parser: F) -> Result<F::Output> {
- use proc_macro2::Group;
-
- // Token stream with every span replaced by the given one.
- fn respan_token_stream(stream: TokenStream, span: Span) -> TokenStream {
- let mut tokens = TokenStream::new();
- for token in stream {
- tokens.append(respan_token_tree(token, span));
- }
- tokens
- }
-
- // Token tree with every span replaced by the given one.
- fn respan_token_tree(mut token: TokenTree, span: Span) -> TokenTree {
- match &mut token {
- TokenTree::Group(g) => {
- let stream = respan_token_stream(g.stream(), span);
- *g = Group::new(g.delimiter(), stream);
- g.set_span(span);
- }
- other => other.set_span(span),
- }
- token
- }
-
- // Parse string literal into a token stream with every span equal to the
- // original literal's span.
- let span = self.span();
- let mut tokens = TokenStream::from_str(&self.value())?;
- tokens = respan_token_stream(tokens, span);
-
- let result = crate::parse::parse_scoped(parser, span, tokens)?;
-
- let suffix = self.suffix();
- if !suffix.is_empty() {
- return Err(Error::new(
- self.span(),
- format!("unexpected suffix `{}` on string literal", suffix),
- ));
- }
-
- Ok(result)
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl LitByteStr {
- pub fn new(value: &[u8], span: Span) -> Self {
- let mut token = Literal::byte_string(value);
- token.set_span(span);
- LitByteStr {
- repr: Box::new(LitRepr {
- token,
- suffix: Box::<str>::default(),
- }),
- }
- }
-
- pub fn value(&self) -> Vec<u8> {
- let repr = self.repr.token.to_string();
- let (value, _suffix) = value::parse_lit_byte_str(&repr).unwrap();
- value
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl LitCStr {
- pub fn new(value: &CStr, span: Span) -> Self {
- let mut token = Literal::c_string(value);
- token.set_span(span);
- LitCStr {
- repr: Box::new(LitRepr {
- token,
- suffix: Box::<str>::default(),
- }),
- }
- }
-
- pub fn value(&self) -> CString {
- let repr = self.repr.token.to_string();
- let (value, _suffix) = value::parse_lit_c_str(&repr).unwrap();
- value
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl LitByte {
- pub fn new(value: u8, span: Span) -> Self {
- let mut token = Literal::byte_character(value);
- token.set_span(span);
- LitByte {
- repr: Box::new(LitRepr {
- token,
- suffix: Box::<str>::default(),
- }),
- }
- }
-
- pub fn value(&self) -> u8 {
- let repr = self.repr.token.to_string();
- let (value, _suffix) = value::parse_lit_byte(&repr).unwrap();
- value
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl LitChar {
- pub fn new(value: char, span: Span) -> Self {
- let mut token = Literal::character(value);
- token.set_span(span);
- LitChar {
- repr: Box::new(LitRepr {
- token,
- suffix: Box::<str>::default(),
- }),
- }
- }
-
- pub fn value(&self) -> char {
- let repr = self.repr.token.to_string();
- let (value, _suffix) = value::parse_lit_char(&repr).unwrap();
- value
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl LitInt {
- #[track_caller]
- pub fn new(repr: &str, span: Span) -> Self {
- let (digits, suffix) = match value::parse_lit_int(repr) {
- Some(parse) => parse,
- None => panic!("not an integer literal: `{}`", repr),
- };
-
- let mut token: Literal = repr.parse().unwrap();
- token.set_span(span);
- LitInt {
- repr: Box::new(LitIntRepr {
- token,
- digits,
- suffix,
- }),
- }
- }
-
- pub fn base10_digits(&self) -> &str {
- &self.repr.digits
- }
-
- /// Parses the literal into a selected number type.
- ///
- /// This is equivalent to `lit.base10_digits().parse()` except that the
- /// resulting errors will be correctly spanned to point to the literal token
- /// in the macro input.
- ///
- /// ```
- /// use syn::LitInt;
- /// use syn::parse::{Parse, ParseStream, Result};
- ///
- /// struct Port {
- /// value: u16,
- /// }
- ///
- /// impl Parse for Port {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let lit: LitInt = input.parse()?;
- /// let value = lit.base10_parse::<u16>()?;
- /// Ok(Port { value })
- /// }
- /// }
- /// ```
- pub fn base10_parse<N>(&self) -> Result<N>
- where
- N: FromStr,
- N::Err: Display,
- {
- self.base10_digits()
- .parse()
- .map_err(|err| Error::new(self.span(), err))
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl From<Literal> for LitInt {
- #[track_caller]
- fn from(token: Literal) -> Self {
- let repr = token.to_string();
- if let Some((digits, suffix)) = value::parse_lit_int(&repr) {
- LitInt {
- repr: Box::new(LitIntRepr {
- token,
- digits,
- suffix,
- }),
- }
- } else {
- panic!("not an integer literal: `{}`", repr);
- }
- }
-}
-
-impl Display for LitInt {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.repr.token.fmt(formatter)
- }
-}
-
-impl LitFloat {
- #[track_caller]
- pub fn new(repr: &str, span: Span) -> Self {
- let (digits, suffix) = match value::parse_lit_float(repr) {
- Some(parse) => parse,
- None => panic!("not a float literal: `{}`", repr),
- };
-
- let mut token: Literal = repr.parse().unwrap();
- token.set_span(span);
- LitFloat {
- repr: Box::new(LitFloatRepr {
- token,
- digits,
- suffix,
- }),
- }
- }
-
- pub fn base10_digits(&self) -> &str {
- &self.repr.digits
- }
-
- pub fn base10_parse<N>(&self) -> Result<N>
- where
- N: FromStr,
- N::Err: Display,
- {
- self.base10_digits()
- .parse()
- .map_err(|err| Error::new(self.span(), err))
- }
-
- pub fn suffix(&self) -> &str {
- &self.repr.suffix
- }
-
- pub fn span(&self) -> Span {
- self.repr.token.span()
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.repr.token.set_span(span);
- }
-
- pub fn token(&self) -> Literal {
- self.repr.token.clone()
- }
-}
-
-impl From<Literal> for LitFloat {
- #[track_caller]
- fn from(token: Literal) -> Self {
- let repr = token.to_string();
- if let Some((digits, suffix)) = value::parse_lit_float(&repr) {
- LitFloat {
- repr: Box::new(LitFloatRepr {
- token,
- digits,
- suffix,
- }),
- }
- } else {
- panic!("not a float literal: `{}`", repr);
- }
- }
-}
-
-impl Display for LitFloat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.repr.token.fmt(formatter)
- }
-}
-
-impl LitBool {
- pub fn new(value: bool, span: Span) -> Self {
- LitBool { value, span }
- }
-
- pub fn value(&self) -> bool {
- self.value
- }
-
- pub fn span(&self) -> Span {
- self.span
- }
-
- pub fn set_span(&mut self, span: Span) {
- self.span = span;
- }
-
- pub fn token(&self) -> Ident {
- let s = if self.value { "true" } else { "false" };
- Ident::new(s, self.span)
- }
-}
-
-#[cfg(feature = "extra-traits")]
-mod debug_impls {
- use crate::lit::{LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr};
- use core::fmt::{self, Debug};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitStr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitStr")
- }
- }
-
- impl LitStr {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitByteStr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitByteStr")
- }
- }
-
- impl LitByteStr {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitCStr {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitCStr")
- }
- }
-
- impl LitCStr {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitByte {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitByte")
- }
- }
-
- impl LitByte {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitChar {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitChar")
- }
- }
-
- impl LitChar {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitInt {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitInt")
- }
- }
-
- impl LitInt {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitFloat {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitFloat")
- }
- }
-
- impl LitFloat {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("token", &format_args!("{}", self.repr.token))
- .finish()
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for LitBool {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- self.debug(formatter, "LitBool")
- }
- }
-
- impl LitBool {
- pub(crate) fn debug(&self, formatter: &mut fmt::Formatter, name: &str) -> fmt::Result {
- formatter
- .debug_struct(name)
- .field("value", &self.value)
- .finish()
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for LitRepr {
- fn clone(&self) -> Self {
- LitRepr {
- token: self.token.clone(),
- suffix: self.suffix.clone(),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for LitIntRepr {
- fn clone(&self) -> Self {
- LitIntRepr {
- token: self.token.clone(),
- digits: self.digits.clone(),
- suffix: self.suffix.clone(),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for LitFloatRepr {
- fn clone(&self) -> Self {
- LitFloatRepr {
- token: self.token.clone(),
- digits: self.digits.clone(),
- suffix: self.suffix.clone(),
- }
- }
-}
-
-macro_rules! lit_extra_traits {
- ($ty:ident) => {
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Clone for $ty {
- fn clone(&self) -> Self {
- $ty {
- repr: self.repr.clone(),
- }
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl PartialEq for $ty {
- fn eq(&self, other: &Self) -> bool {
- self.repr.token.to_string() == other.repr.token.to_string()
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Hash for $ty {
- fn hash<H>(&self, state: &mut H)
- where
- H: Hasher,
- {
- self.repr.token.to_string().hash(state);
- }
- }
-
- #[cfg(feature = "parsing")]
- pub_if_not_doc! {
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn $ty(marker: lookahead::TokenMarker) -> $ty {
- match marker {}
- }
- }
- };
-}
-
-lit_extra_traits!(LitStr);
-lit_extra_traits!(LitByteStr);
-lit_extra_traits!(LitCStr);
-lit_extra_traits!(LitByte);
-lit_extra_traits!(LitChar);
-lit_extra_traits!(LitInt);
-lit_extra_traits!(LitFloat);
-
-#[cfg(feature = "parsing")]
-pub_if_not_doc! {
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn LitBool(marker: lookahead::TokenMarker) -> LitBool {
- match marker {}
- }
-}
-
-/// The style of a string literal, either plain quoted or a raw string like
-/// `r##"data"##`.
-#[doc(hidden)] // https://github.com/dtolnay/syn/issues/1566
-pub enum StrStyle {
- /// An ordinary string like `"data"`.
- Cooked,
- /// A raw string like `r##"data"##`.
- ///
- /// The unsigned integer is the number of `#` symbols used.
- Raw(usize),
-}
-
-#[cfg(feature = "parsing")]
-pub_if_not_doc! {
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn Lit(marker: lookahead::TokenMarker) -> Lit {
- match marker {}
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::buffer::Cursor;
- use crate::error::Result;
- use crate::lit::{
- value, Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitFloatRepr, LitInt,
- LitIntRepr, LitStr,
- };
- use crate::parse::{Parse, ParseStream, Unexpected};
- use crate::token::{self, Token};
- use alloc::boxed::Box;
- use alloc::rc::Rc;
- use alloc::string::ToString;
- use core::cell::Cell;
- use proc_macro2::{Literal, Punct, Span};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Lit {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| {
- if let Some((lit, rest)) = cursor.literal() {
- return Ok((Lit::new(lit), rest));
- }
-
- if let Some((ident, rest)) = cursor.ident() {
- let value = ident == "true";
- if value || ident == "false" {
- let lit_bool = LitBool {
- value,
- span: ident.span(),
- };
- return Ok((Lit::Bool(lit_bool), rest));
- }
- }
-
- if let Some((punct, rest)) = cursor.punct() {
- if punct.as_char() == '-' {
- if let Some((lit, rest)) = parse_negative_lit(punct, rest) {
- return Ok((lit, rest));
- }
- }
- }
-
- Err(cursor.error("expected literal"))
- })
- }
- }
-
- fn parse_negative_lit(neg: Punct, cursor: Cursor) -> Option<(Lit, Cursor)> {
- let (lit, rest) = cursor.literal()?;
-
- let mut span = neg.span();
- span = span.join(lit.span()).unwrap_or(span);
-
- let mut repr = lit.to_string();
- repr.insert(0, '-');
-
- if let Some((digits, suffix)) = value::parse_lit_int(&repr) {
- let mut token: Literal = repr.parse().unwrap();
- token.set_span(span);
- return Some((
- Lit::Int(LitInt {
- repr: Box::new(LitIntRepr {
- token,
- digits,
- suffix,
- }),
- }),
- rest,
- ));
- }
-
- let (digits, suffix) = value::parse_lit_float(&repr)?;
- let mut token: Literal = repr.parse().unwrap();
- token.set_span(span);
- Some((
- Lit::Float(LitFloat {
- repr: Box::new(LitFloatRepr {
- token,
- digits,
- suffix,
- }),
- }),
- rest,
- ))
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitStr {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Str(lit)) => Ok(lit),
- _ => Err(head.error("expected string literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitByteStr {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::ByteStr(lit)) => Ok(lit),
- _ => Err(head.error("expected byte string literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitCStr {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::CStr(lit)) => Ok(lit),
- _ => Err(head.error("expected C string literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitByte {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Byte(lit)) => Ok(lit),
- _ => Err(head.error("expected byte literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitChar {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Char(lit)) => Ok(lit),
- _ => Err(head.error("expected character literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitInt {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Int(lit)) => Ok(lit),
- _ => Err(head.error("expected integer literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitFloat {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Float(lit)) => Ok(lit),
- _ => Err(head.error("expected floating point literal")),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for LitBool {
- fn parse(input: ParseStream) -> Result<Self> {
- let head = input.fork();
- match input.parse() {
- Ok(Lit::Bool(lit)) => Ok(lit),
- _ => Err(head.error("expected boolean literal")),
- }
- }
- }
-
- fn peek_impl(cursor: Cursor, peek: fn(ParseStream) -> bool) -> bool {
- let scope = Span::call_site();
- let unexpected = Rc::new(Cell::new(Unexpected::None));
- let buffer = crate::parse::new_parse_buffer(scope, cursor, unexpected);
- peek(&buffer)
- }
-
- macro_rules! impl_token {
- ($display:literal $name:ty) => {
- impl Token for $name {
- fn peek(cursor: Cursor) -> bool {
- fn peek(input: ParseStream) -> bool {
- <$name as Parse>::parse(input).is_ok()
- }
- peek_impl(cursor, peek)
- }
-
- fn display() -> &'static str {
- $display
- }
- }
-
- impl token::private::Sealed for $name {}
- };
- }
-
- impl_token!("literal" Lit);
- impl_token!("string literal" LitStr);
- impl_token!("byte string literal" LitByteStr);
- impl_token!("C-string literal" LitCStr);
- impl_token!("byte literal" LitByte);
- impl_token!("character literal" LitChar);
- impl_token!("integer literal" LitInt);
- impl_token!("floating point literal" LitFloat);
- impl_token!("boolean literal" LitBool);
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::lit::{LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr};
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitStr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitByteStr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitCStr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitByte {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitChar {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitInt {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitFloat {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.repr.token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for LitBool {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append(self.token());
- }
- }
-}
-
-mod value {
- use crate::bigint::BigInt;
- use crate::lit::{
- Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitFloatRepr, LitInt,
- LitIntRepr, LitRepr, LitStr,
- };
- use alloc::borrow::ToOwned;
- use alloc::boxed::Box;
- use alloc::ffi::CString;
- use alloc::string::{String, ToString};
- use alloc::vec::Vec;
- use core::char;
- use core::ops::{Index, RangeFrom};
- use proc_macro2::{Literal, Span};
-
- impl Lit {
- /// Interpret a Syn literal from a proc-macro2 literal.
- pub fn new(token: Literal) -> Self {
- let repr = token.to_string();
- Lit::from_str(token, &repr)
- }
-
- #[cfg(fuzzing)]
- #[doc(hidden)]
- pub fn from_str_for_fuzzing(repr: &str) -> Self {
- let token = Literal::u8_unsuffixed(0);
- Lit::from_str(token, repr)
- }
-
- fn from_str(token: Literal, repr: &str) -> Self {
- match byte(repr, 0) {
- // "...", r"...", r#"..."#
- b'"' | b'r' => {
- if let Some((_, suffix)) = parse_lit_str(repr) {
- return Lit::Str(LitStr {
- repr: Box::new(LitRepr { token, suffix }),
- });
- }
- }
- b'b' => match byte(repr, 1) {
- // b"...", br"...", br#"...#"
- b'"' | b'r' => {
- if let Some((_, suffix)) = parse_lit_byte_str(repr) {
- return Lit::ByteStr(LitByteStr {
- repr: Box::new(LitRepr { token, suffix }),
- });
- }
- }
- // b'...'
- b'\'' => {
- if let Some((_, suffix)) = parse_lit_byte(repr) {
- return Lit::Byte(LitByte {
- repr: Box::new(LitRepr { token, suffix }),
- });
- }
- }
- _ => {}
- },
- b'c' => match byte(repr, 1) {
- // c"...", cr"...", cr#"..."#
- b'"' | b'r' => {
- if let Some((_, suffix)) = parse_lit_c_str(repr) {
- return Lit::CStr(LitCStr {
- repr: Box::new(LitRepr { token, suffix }),
- });
- }
- }
- _ => {}
- },
- // '...'
- b'\'' => {
- if let Some((_, suffix)) = parse_lit_char(repr) {
- return Lit::Char(LitChar {
- repr: Box::new(LitRepr { token, suffix }),
- });
- }
- }
- b'0'..=b'9' | b'-' => {
- // 0, 123, 0xFF, 0o77, 0b11
- if let Some((digits, suffix)) = parse_lit_int(repr) {
- return Lit::Int(LitInt {
- repr: Box::new(LitIntRepr {
- token,
- digits,
- suffix,
- }),
- });
- }
- // 1.0, 1e-1, 1e+1
- if let Some((digits, suffix)) = parse_lit_float(repr) {
- return Lit::Float(LitFloat {
- repr: Box::new(LitFloatRepr {
- token,
- digits,
- suffix,
- }),
- });
- }
- }
- // true, false
- b't' | b'f' if repr == "true" || repr == "false" => {
- return Lit::Bool(LitBool {
- value: repr == "true",
- span: token.span(),
- });
- }
- b'(' if repr == "(/*ERROR*/)" => return Lit::Verbatim(token),
- _ => {}
- }
-
- Lit::Verbatim(token)
- }
-
- pub fn suffix(&self) -> &str {
- match self {
- Lit::Str(lit) => lit.suffix(),
- Lit::ByteStr(lit) => lit.suffix(),
- Lit::CStr(lit) => lit.suffix(),
- Lit::Byte(lit) => lit.suffix(),
- Lit::Char(lit) => lit.suffix(),
- Lit::Int(lit) => lit.suffix(),
- Lit::Float(lit) => lit.suffix(),
- Lit::Bool(_) | Lit::Verbatim(_) => "",
- }
- }
-
- pub fn span(&self) -> Span {
- match self {
- Lit::Str(lit) => lit.span(),
- Lit::ByteStr(lit) => lit.span(),
- Lit::CStr(lit) => lit.span(),
- Lit::Byte(lit) => lit.span(),
- Lit::Char(lit) => lit.span(),
- Lit::Int(lit) => lit.span(),
- Lit::Float(lit) => lit.span(),
- Lit::Bool(lit) => lit.span,
- Lit::Verbatim(lit) => lit.span(),
- }
- }
-
- pub fn set_span(&mut self, span: Span) {
- match self {
- Lit::Str(lit) => lit.set_span(span),
- Lit::ByteStr(lit) => lit.set_span(span),
- Lit::CStr(lit) => lit.set_span(span),
- Lit::Byte(lit) => lit.set_span(span),
- Lit::Char(lit) => lit.set_span(span),
- Lit::Int(lit) => lit.set_span(span),
- Lit::Float(lit) => lit.set_span(span),
- Lit::Bool(lit) => lit.span = span,
- Lit::Verbatim(lit) => lit.set_span(span),
- }
- }
- }
-
- /// Get the byte at offset idx, or a default of `b'\0'` if we're looking
- /// past the end of the input buffer.
- pub(crate) fn byte<S: AsRef<[u8]> + ?Sized>(s: &S, idx: usize) -> u8 {
- let s = s.as_ref();
- if idx < s.len() {
- s[idx]
- } else {
- 0
- }
- }
-
- fn next_chr(s: &str) -> char {
- s.chars().next().unwrap_or('\0')
- }
-
- // Returns (content, suffix).
- pub(crate) fn parse_lit_str(s: &str) -> Option<(Box<str>, Box<str>)> {
- match byte(s, 0) {
- b'"' => parse_lit_str_cooked(s),
- b'r' => parse_lit_str_raw(s),
- _ => unreachable!(),
- }
- }
-
- fn parse_lit_str_cooked(mut s: &str) -> Option<(Box<str>, Box<str>)> {
- assert_eq!(byte(s, 0), b'"');
- s = &s[1..];
-
- let mut content = String::new();
- 'outer: loop {
- let ch = match byte(s, 0) {
- b'"' => break,
- b'\\' => {
- let b = byte(s, 1);
- s = s.get(2..)?;
- match b {
- b'x' => {
- let (byte, rest) = backslash_x(s)?;
- s = rest;
- if byte > 0x7F {
- // invalid \x byte in string literal
- return None;
- }
- char::from(byte)
- }
- b'u' => {
- let (ch, rest) = backslash_u(s)?;
- s = rest;
- ch
- }
- b'n' => '\n',
- b'r' => '\r',
- b't' => '\t',
- b'\\' => '\\',
- b'0' => '\0',
- b'\'' => '\'',
- b'"' => '"',
- b'\r' | b'\n' => loop {
- let b = byte(s, 0);
- match b {
- b' ' | b'\t' | b'\n' | b'\r' => s = &s[1..],
- _ => continue 'outer,
- }
- },
- _ => {
- // unexpected byte after backslash
- return None;
- }
- }
- }
- b'\r' => {
- if byte(s, 1) != b'\n' {
- // bare carriage return not allowed in string
- return None;
- }
- s = &s[2..];
- '\n'
- }
- _ => {
- let ch = next_chr(s);
- s = s.get(ch.len_utf8()..)?;
- ch
- }
- };
- content.push(ch);
- }
-
- assert!(s.starts_with('"'));
- let content = content.into_boxed_str();
- let suffix = s[1..].to_owned().into_boxed_str();
- Some((content, suffix))
- }
-
- fn parse_lit_str_raw(mut s: &str) -> Option<(Box<str>, Box<str>)> {
- assert_eq!(byte(s, 0), b'r');
- s = &s[1..];
-
- let mut pounds = 0;
- loop {
- match byte(s, pounds) {
- b'#' => pounds += 1,
- b'"' => break,
- _ => return None,
- }
- }
- let close = s.rfind('"').unwrap();
- for end in s.get(close + 1..close + 1 + pounds)?.bytes() {
- if end != b'#' {
- return None;
- }
- }
-
- let content = s.get(pounds + 1..close)?.to_owned().into_boxed_str();
- let suffix = s[close + 1 + pounds..].to_owned().into_boxed_str();
- Some((content, suffix))
- }
-
- // Returns (content, suffix).
- pub(crate) fn parse_lit_byte_str(s: &str) -> Option<(Vec<u8>, Box<str>)> {
- assert_eq!(byte(s, 0), b'b');
- match byte(s, 1) {
- b'"' => parse_lit_byte_str_cooked(s),
- b'r' => parse_lit_byte_str_raw(s),
- _ => unreachable!(),
- }
- }
-
- fn parse_lit_byte_str_cooked(mut s: &str) -> Option<(Vec<u8>, Box<str>)> {
- assert_eq!(byte(s, 0), b'b');
- assert_eq!(byte(s, 1), b'"');
- s = &s[2..];
-
- // We're going to want to have slices which don't respect codepoint boundaries.
- let mut v = s.as_bytes();
-
- let mut out = Vec::new();
- 'outer: loop {
- let byte = match byte(v, 0) {
- b'"' => break,
- b'\\' => {
- let b = byte(v, 1);
- v = v.get(2..)?;
- match b {
- b'x' => {
- let (b, rest) = backslash_x(v)?;
- v = rest;
- b
- }
- b'n' => b'\n',
- b'r' => b'\r',
- b't' => b'\t',
- b'\\' => b'\\',
- b'0' => b'\0',
- b'\'' => b'\'',
- b'"' => b'"',
- b'\r' | b'\n' => loop {
- let byte = byte(v, 0);
- if matches!(byte, b' ' | b'\t' | b'\n' | b'\r') {
- v = &v[1..];
- } else {
- continue 'outer;
- }
- },
- _ => {
- // unexpected byte after backslash
- return None;
- }
- }
- }
- b'\r' => {
- if byte(v, 1) != b'\n' {
- // bare carriage return not allowed in string
- return None;
- }
- v = &v[2..];
- b'\n'
- }
- b => {
- v = v.get(1..)?;
- b
- }
- };
- out.push(byte);
- }
-
- assert_eq!(byte(v, 0), b'"');
- let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str();
- Some((out, suffix))
- }
-
- fn parse_lit_byte_str_raw(s: &str) -> Option<(Vec<u8>, Box<str>)> {
- assert_eq!(byte(s, 0), b'b');
- let (value, suffix) = parse_lit_str_raw(&s[1..])?;
- Some((String::from(value).into_bytes(), suffix))
- }
-
- // Returns (content, suffix).
- pub(crate) fn parse_lit_c_str(s: &str) -> Option<(CString, Box<str>)> {
- assert_eq!(byte(s, 0), b'c');
- match byte(s, 1) {
- b'"' => parse_lit_c_str_cooked(s),
- b'r' => parse_lit_c_str_raw(s),
- _ => unreachable!(),
- }
- }
-
- fn parse_lit_c_str_cooked(mut s: &str) -> Option<(CString, Box<str>)> {
- assert_eq!(byte(s, 0), b'c');
- assert_eq!(byte(s, 1), b'"');
- s = &s[2..];
-
- // We're going to want to have slices which don't respect codepoint boundaries.
- let mut v = s.as_bytes();
-
- let mut out = Vec::new();
- 'outer: loop {
- let byte = match byte(v, 0) {
- b'"' => break,
- b'\\' => {
- let b = byte(v, 1);
- v = v.get(2..)?;
- match b {
- b'x' => {
- let (b, rest) = backslash_x(v)?;
- if b == 0 {
- // \x00 is not allowed in C-string literal
- return None;
- }
- v = rest;
- b
- }
- b'u' => {
- let (ch, rest) = backslash_u(v)?;
- if ch == '\0' {
- // \u{0} is not allowed in C-string literal
- return None;
- }
- v = rest;
- out.extend_from_slice(ch.encode_utf8(&mut [0u8; 4]).as_bytes());
- continue 'outer;
- }
- b'n' => b'\n',
- b'r' => b'\r',
- b't' => b'\t',
- b'\\' => b'\\',
- b'\'' => b'\'',
- b'"' => b'"',
- b'\r' | b'\n' => loop {
- let byte = byte(v, 0);
- if matches!(byte, b' ' | b'\t' | b'\n' | b'\r') {
- v = &v[1..];
- } else {
- continue 'outer;
- }
- },
- _ => {
- // unexpected byte after backslash
- return None;
- }
- }
- }
- b'\r' => {
- if byte(v, 1) != b'\n' {
- // bare carriage return not allowed in string
- return None;
- }
- v = &v[2..];
- b'\n'
- }
- b => {
- v = v.get(1..)?;
- b
- }
- };
- out.push(byte);
- }
-
- assert_eq!(byte(v, 0), b'"');
- let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str();
- let cstring = CString::new(out).ok()?;
- Some((cstring, suffix))
- }
-
- fn parse_lit_c_str_raw(s: &str) -> Option<(CString, Box<str>)> {
- assert_eq!(byte(s, 0), b'c');
- let (value, suffix) = parse_lit_str_raw(&s[1..])?;
- let cstring = CString::new(String::from(value)).ok()?;
- Some((cstring, suffix))
- }
-
- // Returns (value, suffix).
- pub(crate) fn parse_lit_byte(s: &str) -> Option<(u8, Box<str>)> {
- assert_eq!(byte(s, 0), b'b');
- assert_eq!(byte(s, 1), b'\'');
-
- // We're going to want to have slices which don't respect codepoint boundaries.
- let mut v = &s.as_bytes()[2..];
-
- let b = match byte(v, 0) {
- b'\\' => {
- let b = byte(v, 1);
- v = v.get(2..)?;
- match b {
- b'x' => {
- let (b, rest) = backslash_x(v)?;
- v = rest;
- b
- }
- b'n' => b'\n',
- b'r' => b'\r',
- b't' => b'\t',
- b'\\' => b'\\',
- b'0' => b'\0',
- b'\'' => b'\'',
- b'"' => b'"',
- _ => {
- // unexpected byte after backslash
- return None;
- }
- }
- }
- b => {
- v = v.get(1..)?;
- b
- }
- };
-
- if byte(v, 0) != b'\'' {
- return None;
- }
-
- let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str();
- Some((b, suffix))
- }
-
- // Returns (value, suffix).
- pub(crate) fn parse_lit_char(mut s: &str) -> Option<(char, Box<str>)> {
- assert_eq!(byte(s, 0), b'\'');
- s = &s[1..];
-
- let ch = match byte(s, 0) {
- b'\\' => {
- let b = byte(s, 1);
- s = s.get(2..)?;
- match b {
- b'x' => {
- let (byte, rest) = backslash_x(s)?;
- s = rest;
- if byte > 0x7F {
- // invalid \x byte in character literal
- return None;
- }
- char::from(byte)
- }
- b'u' => {
- let (ch, rest) = backslash_u(s)?;
- s = rest;
- ch
- }
- b'n' => '\n',
- b'r' => '\r',
- b't' => '\t',
- b'\\' => '\\',
- b'0' => '\0',
- b'\'' => '\'',
- b'"' => '"',
- _ => {
- // unexpected byte after backslash
- return None;
- }
- }
- }
- _ => {
- let ch = next_chr(s);
- s = s.get(ch.len_utf8()..)?;
- ch
- }
- };
-
- if byte(s, 0) != b'\'' {
- return None;
- }
-
- let suffix = s[1..].to_owned().into_boxed_str();
- Some((ch, suffix))
- }
-
- fn backslash_x<S>(s: &S) -> Option<(u8, &S)>
- where
- S: Index<RangeFrom<usize>, Output = S> + AsRef<[u8]> + ?Sized,
- {
- let mut ch = 0;
- let b0 = byte(s, 0);
- let b1 = byte(s, 1);
- ch += 0x10
- * match b0 {
- b'0'..=b'9' => b0 - b'0',
- b'a'..=b'f' => 10 + (b0 - b'a'),
- b'A'..=b'F' => 10 + (b0 - b'A'),
- _ => return None,
- };
- ch += match b1 {
- b'0'..=b'9' => b1 - b'0',
- b'a'..=b'f' => 10 + (b1 - b'a'),
- b'A'..=b'F' => 10 + (b1 - b'A'),
- _ => return None,
- };
- Some((ch, &s[2..]))
- }
-
- fn backslash_u<S>(mut s: &S) -> Option<(char, &S)>
- where
- S: Index<RangeFrom<usize>, Output = S> + AsRef<[u8]> + ?Sized,
- {
- if byte(s, 0) != b'{' {
- return None;
- }
- s = &s[1..];
-
- let mut ch = 0;
- let mut digits = 0;
- loop {
- let b = byte(s, 0);
- let digit = match b {
- b'0'..=b'9' => b - b'0',
- b'a'..=b'f' => 10 + b - b'a',
- b'A'..=b'F' => 10 + b - b'A',
- b'_' if digits > 0 => {
- s = &s[1..];
- continue;
- }
- b'}' if digits == 0 => return None,
- b'}' => break,
- _ => return None,
- };
- if digits == 6 {
- return None;
- }
- ch *= 0x10;
- ch += u32::from(digit);
- digits += 1;
- s = &s[1..];
- }
- if byte(s, 0) != b'}' {
- return None;
- }
- s = &s[1..];
-
- let ch = char::from_u32(ch)?;
- Some((ch, s))
- }
-
- // Returns base 10 digits and suffix.
- pub(crate) fn parse_lit_int(mut s: &str) -> Option<(Box<str>, Box<str>)> {
- let negative = byte(s, 0) == b'-';
- if negative {
- s = &s[1..];
- }
-
- let base = match (byte(s, 0), byte(s, 1)) {
- (b'0', b'x') => {
- s = &s[2..];
- 16
- }
- (b'0', b'o') => {
- s = &s[2..];
- 8
- }
- (b'0', b'b') => {
- s = &s[2..];
- 2
- }
- (b'0'..=b'9', _) => 10,
- _ => return None,
- };
-
- let mut value = BigInt::new();
- let mut has_digit = false;
- 'outer: loop {
- let b = byte(s, 0);
- let digit = match b {
- b'0'..=b'9' => b - b'0',
- b'a'..=b'f' if base > 10 => b - b'a' + 10,
- b'A'..=b'F' if base > 10 => b - b'A' + 10,
- b'_' => {
- s = &s[1..];
- continue;
- }
- // If looking at a floating point literal, we don't want to
- // consider it an integer.
- b'.' if base == 10 => return None,
- b'e' | b'E' if base == 10 => {
- let mut has_exp = false;
- for (i, b) in s[1..].bytes().enumerate() {
- match b {
- b'_' => {}
- b'-' | b'+' => return None,
- b'0'..=b'9' => has_exp = true,
- _ => {
- let suffix = &s[1 + i..];
- if has_exp && crate::ident::xid_ok(suffix) {
- return None;
- } else {
- break 'outer;
- }
- }
- }
- }
- if has_exp {
- return None;
- } else {
- break;
- }
- }
- _ => break,
- };
-
- if digit >= base {
- return None;
- }
-
- has_digit = true;
- value *= base;
- value += digit;
- s = &s[1..];
- }
-
- if !has_digit {
- return None;
- }
-
- let suffix = s;
- if suffix.is_empty() || crate::ident::xid_ok(suffix) {
- let mut repr = value.to_string();
- if negative {
- repr.insert(0, '-');
- }
- Some((repr.into_boxed_str(), suffix.to_owned().into_boxed_str()))
- } else {
- None
- }
- }
-
- // Returns base 10 digits and suffix.
- pub(crate) fn parse_lit_float(input: &str) -> Option<(Box<str>, Box<str>)> {
- // Rust's floating point literals are very similar to the ones parsed by
- // the standard library, except that rust's literals can contain
- // ignorable underscores. Let's remove those underscores.
-
- let mut bytes = input.to_owned().into_bytes();
-
- let start = (*bytes.first()? == b'-') as usize;
- match bytes.get(start)? {
- b'0'..=b'9' => {}
- _ => return None,
- }
-
- let mut read = start;
- let mut write = start;
- let mut has_dot = false;
- let mut has_e = false;
- let mut has_sign = false;
- let mut has_exponent = false;
- while read < bytes.len() {
- match bytes[read] {
- b'_' => {
- // Don't increase write
- read += 1;
- continue;
- }
- b'0'..=b'9' => {
- if has_e {
- has_exponent = true;
- }
- bytes[write] = bytes[read];
- }
- b'.' => {
- if has_e || has_dot {
- return None;
- }
- has_dot = true;
- bytes[write] = b'.';
- }
- b'e' | b'E' => {
- match bytes[read + 1..]
- .iter()
- .find(|b| **b != b'_')
- .unwrap_or(&b'\0')
- {
- b'-' | b'+' | b'0'..=b'9' => {}
- _ => break,
- }
- if has_e {
- if has_exponent {
- break;
- } else {
- return None;
- }
- }
- has_e = true;
- bytes[write] = b'e';
- }
- b'-' | b'+' => {
- if has_sign || has_exponent || !has_e {
- return None;
- }
- has_sign = true;
- if bytes[read] == b'-' {
- bytes[write] = bytes[read];
- } else {
- // Omit '+'
- read += 1;
- continue;
- }
- }
- _ => break,
- }
- read += 1;
- write += 1;
- }
-
- if has_e && !has_exponent {
- return None;
- }
-
- let mut digits = String::from_utf8(bytes).unwrap();
- let suffix = digits.split_off(read);
- digits.truncate(write);
- if suffix.is_empty() || crate::ident::xid_ok(&suffix) {
- Some((digits.into_boxed_str(), suffix.into_boxed_str()))
- } else {
- None
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/lookahead.rs b/deps/crates/vendor/syn-v2/src/lookahead.rs
deleted file mode 100644
index 7e7e0315ad5..00000000000
--- a/deps/crates/vendor/syn-v2/src/lookahead.rs
+++ /dev/null
@@ -1,350 +0,0 @@
-use crate::buffer::Cursor;
-use crate::error::{self, Error};
-use crate::sealed::lookahead::Sealed;
-use crate::span::IntoSpans;
-use crate::token::{CustomToken, Token};
-use alloc::format;
-use alloc::vec::Vec;
-use core::cell::RefCell;
-use core::fmt::{self, Display};
-use proc_macro2::{Delimiter, Span};
-
-/// Support for checking the next token in a stream to decide how to parse.
-///
-/// An important advantage over [`ParseStream::peek`] is that here we
-/// automatically construct an appropriate error message based on the token
-/// alternatives that get peeked. If you are producing your own error message,
-/// go ahead and use `ParseStream::peek` instead.
-///
-/// Use [`ParseStream::lookahead1`] to construct this object.
-///
-/// [`ParseStream::peek`]: crate::parse::ParseBuffer::peek
-/// [`ParseStream::lookahead1`]: crate::parse::ParseBuffer::lookahead1
-///
-/// Consuming tokens from the source stream after constructing a lookahead
-/// object does not also advance the lookahead object.
-///
-/// # Example
-///
-/// ```
-/// use syn::{ConstParam, Ident, Lifetime, LifetimeParam, Result, Token, TypeParam};
-/// use syn::parse::{Parse, ParseStream};
-///
-/// // A generic parameter, a single one of the comma-separated elements inside
-/// // angle brackets in:
-/// //
-/// // fn f<T: Clone, 'a, 'b: 'a, const N: usize>() { ... }
-/// //
-/// // On invalid input, lookahead gives us a reasonable error message.
-/// //
-/// // error: expected one of: identifier, lifetime, `const`
-/// // |
-/// // 5 | fn f<!Sized>() {}
-/// // | ^
-/// enum GenericParam {
-/// Type(TypeParam),
-/// Lifetime(LifetimeParam),
-/// Const(ConstParam),
-/// }
-///
-/// impl Parse for GenericParam {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let lookahead = input.lookahead1();
-/// if lookahead.peek(Ident) {
-/// input.parse().map(GenericParam::Type)
-/// } else if lookahead.peek(Lifetime) {
-/// input.parse().map(GenericParam::Lifetime)
-/// } else if lookahead.peek(Token![const]) {
-/// input.parse().map(GenericParam::Const)
-/// } else {
-/// Err(lookahead.error())
-/// }
-/// }
-/// }
-/// ```
-pub struct Lookahead1<'a> {
- scope: Span,
- cursor: Cursor<'a>,
- comparisons: RefCell<Vec<&'static str>>,
-}
-
-pub(crate) fn new(scope: Span, cursor: Cursor) -> Lookahead1 {
- Lookahead1 {
- scope,
- cursor,
- comparisons: RefCell::new(Vec::new()),
- }
-}
-
-fn peek_impl(
- lookahead: &Lookahead1,
- peek: fn(Cursor) -> bool,
- display: fn() -> &'static str,
-) -> bool {
- if peek(lookahead.cursor) {
- return true;
- }
- lookahead.comparisons.borrow_mut().push(display());
- false
-}
-
-impl<'a> Lookahead1<'a> {
- /// Looks at the next token in the parse stream to determine whether it
- /// matches the requested type of token.
- ///
- /// # Syntax
- ///
- /// Note that this method does not use turbofish syntax. Pass the peek type
- /// inside of parentheses.
- ///
- /// - `input.peek(Token![struct])`
- /// - `input.peek(Token![==])`
- /// - `input.peek(Ident)` *(does not accept keywords)*
- /// - `input.peek(Ident::peek_any)`
- /// - `input.peek(Lifetime)`
- /// - `input.peek(token::Brace)`
- pub fn peek<T: Peek>(&self, token: T) -> bool {
- let _ = token;
- peek_impl(self, T::Token::peek, T::Token::display)
- }
-
- /// Triggers an error at the current position of the parse stream.
- ///
- /// The error message will identify all of the expected token types that
- /// have been peeked against this lookahead instance.
- pub fn error(self) -> Error {
- let mut comparisons = self.comparisons.into_inner();
- comparisons.retain_mut(|display| {
- if *display == "`)`" {
- *display = match self.cursor.scope_delimiter() {
- Delimiter::Parenthesis => "`)`",
- Delimiter::Brace => "`}`",
- Delimiter::Bracket => "`]`",
- Delimiter::None => return false,
- }
- }
- true
- });
- match comparisons.len() {
- 0 => {
- if self.cursor.eof() {
- Error::new(self.scope, "unexpected end of input")
- } else {
- Error::new(self.cursor.span(), "unexpected token")
- }
- }
- 1 => {
- let message = format!("expected {}", comparisons[0]);
- error::new_at(self.scope, self.cursor, message)
- }
- 2 => {
- let message = format!("expected {} or {}", comparisons[0], comparisons[1]);
- error::new_at(self.scope, self.cursor, message)
- }
- _ => {
- let message = format!("expected one of: {}", CommaSeparated(&comparisons));
- error::new_at(self.scope, self.cursor, message)
- }
- }
- }
-}
-
-struct CommaSeparated<'a>(&'a [&'a str]);
-
-impl<'a> Display for CommaSeparated<'a> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- let mut first = true;
- for &s in self.0 {
- if !first {
- f.write_str(", ")?;
- }
- f.write_str(s)?;
- first = false;
- }
- Ok(())
- }
-}
-
-/// Types that can be parsed by looking at just one token.
-///
-/// Use [`ParseStream::peek`] to peek one of these types in a parse stream
-/// without consuming it from the stream.
-///
-/// This trait is sealed and cannot be implemented for types outside of Syn.
-///
-/// [`ParseStream::peek`]: crate::parse::ParseBuffer::peek
-pub trait Peek: Sealed {
- // Not public API.
- #[doc(hidden)]
- type Token: Token;
-}
-
-/// Pseudo-token used for peeking the end of a parse stream.
-///
-/// This type is only useful as an argument to one of the following functions:
-///
-/// - [`ParseStream::peek`][crate::parse::ParseBuffer::peek]
-/// - [`ParseStream::peek2`][crate::parse::ParseBuffer::peek2]
-/// - [`ParseStream::peek3`][crate::parse::ParseBuffer::peek3]
-/// - [`Lookahead1::peek`]
-///
-/// The peek will return `true` if there are no remaining tokens after that
-/// point in the parse stream.
-///
-/// # Example
-///
-/// Suppose we are parsing attributes containing core::fmt inspired formatting
-/// arguments:
-///
-/// - `#[fmt("simple example")]`
-/// - `#[fmt("interpolation e{}ample", self.x)]`
-/// - `#[fmt("interpolation e{x}ample")]`
-///
-/// and we want to recognize the cases where no interpolation occurs so that
-/// more efficient code can be generated.
-///
-/// The following implementation uses `input.peek(Token![,]) &&
-/// input.peek2(End)` to recognize the case of a trailing comma without
-/// consuming the comma from the parse stream, because if it isn't a trailing
-/// comma, that same comma needs to be parsed as part of `args`.
-///
-/// ```
-/// use proc_macro2::TokenStream;
-/// use quote::quote;
-/// use syn::parse::{End, Parse, ParseStream, Result};
-/// use syn::{parse_quote, Attribute, LitStr, Token};
-///
-/// struct FormatArgs {
-/// template: LitStr, // "...{}..."
-/// args: TokenStream, // , self.x
-/// }
-///
-/// impl Parse for FormatArgs {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let template: LitStr = input.parse()?;
-///
-/// let args = if input.is_empty()
-/// || input.peek(Token![,]) && input.peek2(End)
-/// {
-/// input.parse::<Option<Token![,]>>()?;
-/// TokenStream::new()
-/// } else {
-/// input.parse()?
-/// };
-///
-/// Ok(FormatArgs {
-/// template,
-/// args,
-/// })
-/// }
-/// }
-///
-/// fn main() -> Result<()> {
-/// let attrs: Vec<Attribute> = parse_quote! {
-/// #[fmt("simple example")]
-/// #[fmt("interpolation e{}ample", self.x)]
-/// #[fmt("interpolation e{x}ample")]
-/// };
-///
-/// for attr in &attrs {
-/// let FormatArgs { template, args } = attr.parse_args()?;
-/// let requires_fmt_machinery =
-/// !args.is_empty() || template.value().contains(['{', '}']);
-/// let out = if requires_fmt_machinery {
-/// quote! {
-/// ::core::write!(__formatter, #template #args)
-/// }
-/// } else {
-/// quote! {
-/// __formatter.write_str(#template)
-/// }
-/// };
-/// println!("{}", out);
-/// }
-/// Ok(())
-/// }
-/// ```
-///
-/// Implementing this parsing logic without `peek2(End)` is more clumsy because
-/// we'd need a parse stream actually advanced past the comma before being able
-/// to find out whether there is anything after it. It would look something
-/// like:
-///
-/// ```
-/// # use proc_macro2::TokenStream;
-/// # use syn::parse::{ParseStream, Result};
-/// # use syn::Token;
-/// #
-/// # fn parse(input: ParseStream) -> Result<()> {
-/// use syn::parse::discouraged::Speculative as _;
-///
-/// let ahead = input.fork();
-/// ahead.parse::<Option<Token![,]>>()?;
-/// let args = if ahead.is_empty() {
-/// input.advance_to(&ahead);
-/// TokenStream::new()
-/// } else {
-/// input.parse()?
-/// };
-/// # Ok(())
-/// # }
-/// ```
-///
-/// or:
-///
-/// ```
-/// # use proc_macro2::TokenStream;
-/// # use syn::parse::{ParseStream, Result};
-/// # use syn::Token;
-/// #
-/// # fn parse(input: ParseStream) -> Result<()> {
-/// use quote::ToTokens as _;
-///
-/// let comma: Option<Token![,]> = input.parse()?;
-/// let mut args = TokenStream::new();
-/// if !input.is_empty() {
-/// comma.to_tokens(&mut args);
-/// input.parse::<TokenStream>()?.to_tokens(&mut args);
-/// }
-/// # Ok(())
-/// # }
-/// ```
-pub struct End;
-
-impl Copy for End {}
-
-impl Clone for End {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-impl Peek for End {
- type Token = Self;
-}
-
-impl CustomToken for End {
- fn peek(cursor: Cursor) -> bool {
- cursor.eof()
- }
-
- fn display() -> &'static str {
- "`)`" // Lookahead1 error message will fill in the expected close delimiter
- }
-}
-
-impl<F: Copy + FnOnce(TokenMarker) -> T, T: Token> Peek for F {
- type Token = T;
-}
-
-pub enum TokenMarker {}
-
-impl<S> IntoSpans<S> for TokenMarker {
- fn into_spans(self) -> S {
- match self {}
- }
-}
-
-impl<F: Copy + FnOnce(TokenMarker) -> T, T: Token> Sealed for F {}
-
-impl Sealed for End {}
diff --git a/deps/crates/vendor/syn-v2/src/mac.rs b/deps/crates/vendor/syn-v2/src/mac.rs
deleted file mode 100644
index 15107801cfe..00000000000
--- a/deps/crates/vendor/syn-v2/src/mac.rs
+++ /dev/null
@@ -1,225 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-#[cfg(feature = "parsing")]
-use crate::parse::{Parse, ParseStream, Parser};
-use crate::path::Path;
-use crate::token::{Brace, Bracket, Paren};
-use proc_macro2::extra::DelimSpan;
-#[cfg(feature = "parsing")]
-use proc_macro2::Delimiter;
-use proc_macro2::TokenStream;
-#[cfg(feature = "parsing")]
-use proc_macro2::TokenTree;
-
-ast_struct! {
- /// A macro invocation: `println!("{}", mac)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Macro {
- pub path: Path,
- pub bang_token: Token![!],
- pub delimiter: MacroDelimiter,
- pub tokens: TokenStream,
- }
-}
-
-ast_enum! {
- /// A grouping token that surrounds a macro body: `m!(...)` or `m!{...}` or `m![...]`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum MacroDelimiter {
- Paren(Paren),
- Brace(Brace),
- Bracket(Bracket),
- }
-}
-
-impl MacroDelimiter {
- pub fn span(&self) -> &DelimSpan {
- match self {
- MacroDelimiter::Paren(token) => &token.span,
- MacroDelimiter::Brace(token) => &token.span,
- MacroDelimiter::Bracket(token) => &token.span,
- }
- }
-
- #[cfg(all(feature = "full", any(feature = "parsing", feature = "printing")))]
- pub(crate) fn is_brace(&self) -> bool {
- match self {
- MacroDelimiter::Brace(_) => true,
- MacroDelimiter::Paren(_) | MacroDelimiter::Bracket(_) => false,
- }
- }
-}
-
-impl Macro {
- /// Parse the tokens within the macro invocation's delimiters into a syntax
- /// tree.
- ///
- /// This is equivalent to `syn::parse2::<T>(mac.tokens)` except that it
- /// produces a more useful span when `tokens` is empty.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{parse_quote, Expr, ExprLit, Ident, Lit, LitStr, Macro, Token};
- /// use syn::ext::IdentExt;
- /// use syn::parse::{Error, Parse, ParseStream, Result};
- /// use syn::punctuated::Punctuated;
- ///
- /// // The arguments expected by libcore's format_args macro, and as a
- /// // result most other formatting and printing macros like println.
- /// //
- /// // println!("{} is {number:.prec$}", "x", prec=5, number=0.01)
- /// struct FormatArgs {
- /// format_string: Expr,
- /// positional_args: Vec<Expr>,
- /// named_args: Vec<(Ident, Expr)>,
- /// }
- ///
- /// impl Parse for FormatArgs {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let format_string: Expr;
- /// let mut positional_args = Vec::new();
- /// let mut named_args = Vec::new();
- ///
- /// format_string = input.parse()?;
- /// while !input.is_empty() {
- /// input.parse::<Token![,]>()?;
- /// if input.is_empty() {
- /// break;
- /// }
- /// if input.peek(Ident::peek_any) && input.peek2(Token![=]) {
- /// while !input.is_empty() {
- /// let name: Ident = input.call(Ident::parse_any)?;
- /// input.parse::<Token![=]>()?;
- /// let value: Expr = input.parse()?;
- /// named_args.push((name, value));
- /// if input.is_empty() {
- /// break;
- /// }
- /// input.parse::<Token![,]>()?;
- /// }
- /// break;
- /// }
- /// positional_args.push(input.parse()?);
- /// }
- ///
- /// Ok(FormatArgs {
- /// format_string,
- /// positional_args,
- /// named_args,
- /// })
- /// }
- /// }
- ///
- /// // Extract the first argument, the format string literal, from an
- /// // invocation of a formatting or printing macro.
- /// fn get_format_string(m: &Macro) -> Result<LitStr> {
- /// let args: FormatArgs = m.parse_body()?;
- /// match args.format_string {
- /// Expr::Lit(ExprLit { lit: Lit::Str(lit), .. }) => Ok(lit),
- /// other => {
- /// // First argument was not a string literal expression.
- /// // Maybe something like: println!(concat!(...), ...)
- /// Err(Error::new_spanned(other, "format string must be a string literal"))
- /// }
- /// }
- /// }
- ///
- /// fn main() {
- /// let invocation = parse_quote! {
- /// println!("{:?}", Instant::now())
- /// };
- /// let lit = get_format_string(&invocation).unwrap();
- /// assert_eq!(lit.value(), "{:?}");
- /// }
- /// ```
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_body<T: Parse>(&self) -> Result<T> {
- self.parse_body_with(T::parse)
- }
-
- /// Parse the tokens within the macro invocation's delimiters using the
- /// given parser.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_body_with<F: Parser>(&self, parser: F) -> Result<F::Output> {
- let scope = self.delimiter.span().close();
- crate::parse::parse_scoped(parser, scope, self.tokens.clone())
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) fn parse_delimiter(input: ParseStream) -> Result<(MacroDelimiter, TokenStream)> {
- input.step(|cursor| {
- if let Some((TokenTree::Group(g), rest)) = cursor.token_tree() {
- let span = g.delim_span();
- let delimiter = match g.delimiter() {
- Delimiter::Parenthesis => MacroDelimiter::Paren(Paren(span)),
- Delimiter::Brace => MacroDelimiter::Brace(Brace(span)),
- Delimiter::Bracket => MacroDelimiter::Bracket(Bracket(span)),
- Delimiter::None => {
- return Err(cursor.error("expected delimiter"));
- }
- };
- Ok(((delimiter, g.stream()), rest))
- } else {
- Err(cursor.error("expected delimiter"))
- }
- })
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::error::Result;
- use crate::mac::{parse_delimiter, Macro};
- use crate::parse::{Parse, ParseStream};
- use crate::path::Path;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Macro {
- fn parse(input: ParseStream) -> Result<Self> {
- let tokens;
- Ok(Macro {
- path: input.call(Path::parse_mod_style)?,
- bang_token: input.parse()?,
- delimiter: {
- let (delimiter, content) = parse_delimiter(input)?;
- tokens = content;
- delimiter
- },
- tokens,
- })
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::mac::{Macro, MacroDelimiter};
- use crate::path;
- use crate::path::printing::PathStyle;
- use crate::token;
- use proc_macro2::{Delimiter, TokenStream};
- use quote::ToTokens;
-
- impl MacroDelimiter {
- pub(crate) fn surround(&self, tokens: &mut TokenStream, inner: TokenStream) {
- let (delim, span) = match self {
- MacroDelimiter::Paren(paren) => (Delimiter::Parenthesis, paren.span),
- MacroDelimiter::Brace(brace) => (Delimiter::Brace, brace.span),
- MacroDelimiter::Bracket(bracket) => (Delimiter::Bracket, bracket.span),
- };
- token::printing::delim(delim, span.join(), tokens, inner);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Macro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- path::printing::print_path(tokens, &self.path, PathStyle::Mod);
- self.bang_token.to_tokens(tokens);
- self.delimiter.surround(tokens, self.tokens.clone());
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/macros.rs b/deps/crates/vendor/syn-v2/src/macros.rs
deleted file mode 100644
index c404ae1ab19..00000000000
--- a/deps/crates/vendor/syn-v2/src/macros.rs
+++ /dev/null
@@ -1,182 +0,0 @@
-#[cfg_attr(
- not(any(feature = "full", feature = "derive")),
- allow(unknown_lints, unused_macro_rules)
-)]
-macro_rules! ast_struct {
- (
- $(#[$attr:meta])*
- $pub:ident $struct:ident $name:ident #full $body:tt
- ) => {
- check_keyword_matches!(pub $pub);
- check_keyword_matches!(struct $struct);
-
- #[cfg(feature = "full")]
- $(#[$attr])* $pub $struct $name $body
-
- #[cfg(not(feature = "full"))]
- $(#[$attr])* $pub $struct $name {
- _noconstruct: ::core::marker::PhantomData<::proc_macro2::Span>,
- }
-
- #[cfg(all(not(feature = "full"), feature = "printing"))]
- impl ::quote::ToTokens for $name {
- fn to_tokens(&self, _: &mut ::proc_macro2::TokenStream) {
- unreachable!()
- }
- }
- };
-
- (
- $(#[$attr:meta])*
- $pub:ident $struct:ident $name:ident $body:tt
- ) => {
- check_keyword_matches!(pub $pub);
- check_keyword_matches!(struct $struct);
-
- $(#[$attr])* $pub $struct $name $body
- };
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-macro_rules! ast_enum {
- (
- $(#[$enum_attr:meta])*
- $pub:ident $enum:ident $name:ident $body:tt
- ) => {
- check_keyword_matches!(pub $pub);
- check_keyword_matches!(enum $enum);
-
- $(#[$enum_attr])* $pub $enum $name $body
- };
-}
-
-macro_rules! ast_enum_of_structs {
- (
- $(#[$enum_attr:meta])*
- $pub:ident $enum:ident $name:ident $body:tt
- ) => {
- check_keyword_matches!(pub $pub);
- check_keyword_matches!(enum $enum);
-
- $(#[$enum_attr])* $pub $enum $name $body
-
- ast_enum_of_structs_impl!($name $body);
-
- #[cfg(feature = "printing")]
- generate_to_tokens!(() tokens $name $body);
- };
-}
-
-macro_rules! ast_enum_of_structs_impl {
- (
- $name:ident {
- $(
- $(#[cfg $cfg_attr:tt])*
- $(#[doc $($doc_attr:tt)*])*
- $variant:ident $( ($member:ident) )*,
- )*
- }
- ) => {
- $($(
- ast_enum_from_struct!($name::$variant, $member);
- )*)*
- };
-}
-
-macro_rules! ast_enum_from_struct {
- // No From<TokenStream> for verbatim variants.
- ($name:ident::Verbatim, $member:ident) => {};
-
- ($name:ident::$variant:ident, $member:ident) => {
- impl From<$member> for $name {
- fn from(e: $member) -> $name {
- $name::$variant(e)
- }
- }
- };
-}
-
-#[cfg(feature = "printing")]
-macro_rules! generate_to_tokens {
- (
- ($($arms:tt)*) $tokens:ident $name:ident {
- $(#[cfg $cfg_attr:tt])*
- $(#[doc $($doc_attr:tt)*])*
- $variant:ident,
- $($next:tt)*
- }
- ) => {
- generate_to_tokens!(
- ($($arms)* $(#[cfg $cfg_attr])* $name::$variant => {})
- $tokens $name { $($next)* }
- );
- };
-
- (
- ($($arms:tt)*) $tokens:ident $name:ident {
- $(#[cfg $cfg_attr:tt])*
- $(#[doc $($doc_attr:tt)*])*
- $variant:ident($member:ident),
- $($next:tt)*
- }
- ) => {
- generate_to_tokens!(
- ($($arms)* $(#[cfg $cfg_attr])* $name::$variant(_e) => _e.to_tokens($tokens),)
- $tokens $name { $($next)* }
- );
- };
-
- (($($arms:tt)*) $tokens:ident $name:ident {}) => {
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ::quote::ToTokens for $name {
- fn to_tokens(&self, $tokens: &mut ::proc_macro2::TokenStream) {
- match self {
- $($arms)*
- }
- }
- }
- };
-}
-
-// Rustdoc bug: does not respect the doc(hidden) on some items.
-#[cfg(all(doc, feature = "parsing"))]
-macro_rules! pub_if_not_doc {
- ($(#[$m:meta])* $pub:ident $($item:tt)*) => {
- check_keyword_matches!(pub $pub);
-
- $(#[$m])*
- $pub(crate) $($item)*
- };
-}
-
-#[cfg(all(not(doc), feature = "parsing"))]
-macro_rules! pub_if_not_doc {
- ($(#[$m:meta])* $pub:ident $($item:tt)*) => {
- check_keyword_matches!(pub $pub);
-
- $(#[$m])*
- $pub $($item)*
- };
-}
-
-macro_rules! check_keyword_matches {
- (enum enum) => {};
- (pub pub) => {};
- (struct struct) => {};
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-macro_rules! return_impl_trait {
- (
- $(#[$attr:meta])*
- $vis:vis fn $name:ident $args:tt -> $impl_trait:ty [$concrete:ty] $body:block
- ) => {
- #[cfg(not(docsrs))]
- $(#[$attr])*
- $vis fn $name $args -> $concrete $body
-
- #[cfg(docsrs)]
- $(#[$attr])*
- $vis fn $name $args -> $impl_trait $body
- };
-}
diff --git a/deps/crates/vendor/syn-v2/src/meta.rs b/deps/crates/vendor/syn-v2/src/meta.rs
deleted file mode 100644
index 3112db7566a..00000000000
--- a/deps/crates/vendor/syn-v2/src/meta.rs
+++ /dev/null
@@ -1,427 +0,0 @@
-//! Facility for interpreting structured content inside of an `Attribute`.
-
-use crate::error::{Error, Result};
-use crate::ext::IdentExt as _;
-use crate::lit::Lit;
-use crate::parse::{ParseStream, Parser};
-use crate::path::{Path, PathSegment};
-use crate::punctuated::Punctuated;
-use core::fmt::Display;
-use proc_macro2::Ident;
-
-/// Make a parser that is usable with `parse_macro_input!` in a
-/// `#[proc_macro_attribute]` macro.
-///
-/// *Warning:* When parsing attribute args **other than** the
-/// `proc_macro::TokenStream` input of a `proc_macro_attribute`, you do **not**
-/// need this function. In several cases your callers will get worse error
-/// messages if you use this function, because the surrounding delimiter's span
-/// is concealed from attribute macros by rustc. Use
-/// [`Attribute::parse_nested_meta`] instead.
-///
-/// [`Attribute::parse_nested_meta`]: crate::Attribute::parse_nested_meta
-///
-/// # Example
-///
-/// This example implements an attribute macro whose invocations look like this:
-///
-/// ```
-/// # const IGNORE: &str = stringify! {
-/// #[tea(kind = "EarlGrey", hot)]
-/// struct Picard {...}
-/// # };
-/// ```
-///
-/// The "parameters" supported by the attribute are:
-///
-/// - `kind = "..."`
-/// - `hot`
-/// - `with(sugar, milk, ...)`, a comma-separated list of ingredients
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// use proc_macro::TokenStream;
-/// use syn::{parse_macro_input, LitStr, Path};
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro_attribute]
-/// # };
-/// pub fn tea(args: TokenStream, input: TokenStream) -> TokenStream {
-/// let mut kind: Option<LitStr> = None;
-/// let mut hot: bool = false;
-/// let mut with: Vec<Path> = Vec::new();
-/// let tea_parser = syn::meta::parser(|meta| {
-/// if meta.path.is_ident("kind") {
-/// kind = Some(meta.value()?.parse()?);
-/// Ok(())
-/// } else if meta.path.is_ident("hot") {
-/// hot = true;
-/// Ok(())
-/// } else if meta.path.is_ident("with") {
-/// meta.parse_nested_meta(|meta| {
-/// with.push(meta.path);
-/// Ok(())
-/// })
-/// } else {
-/// Err(meta.error("unsupported tea property"))
-/// }
-/// });
-///
-/// parse_macro_input!(args with tea_parser);
-/// eprintln!("kind={kind:?} hot={hot} with={with:?}");
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-/// ```
-///
-/// The `syn::meta` library will take care of dealing with the commas including
-/// trailing commas, and producing sensible error messages on unexpected input.
-///
-/// ```console
-/// error: expected `,`
-/// --> src/main.rs:3:37
-/// |
-/// 3 | #[tea(kind = "EarlGrey", with(sugar = "lol", milk))]
-/// | ^
-/// ```
-///
-/// # Example
-///
-/// Same as above but we factor out most of the logic into a separate function.
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// use proc_macro::TokenStream;
-/// use syn::meta::ParseNestedMeta;
-/// use syn::parse::{Parser, Result};
-/// use syn::{parse_macro_input, LitStr, Path};
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro_attribute]
-/// # };
-/// pub fn tea(args: TokenStream, input: TokenStream) -> TokenStream {
-/// let mut attrs = TeaAttributes::default();
-/// let tea_parser = syn::meta::parser(|meta| attrs.parse(meta));
-/// parse_macro_input!(args with tea_parser);
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-///
-/// #[derive(Default)]
-/// struct TeaAttributes {
-/// kind: Option<LitStr>,
-/// hot: bool,
-/// with: Vec<Path>,
-/// }
-///
-/// impl TeaAttributes {
-/// fn parse(&mut self, meta: ParseNestedMeta) -> Result<()> {
-/// if meta.path.is_ident("kind") {
-/// self.kind = Some(meta.value()?.parse()?);
-/// Ok(())
-/// } else /* just like in last example */
-/// # { unimplemented!() }
-///
-/// }
-/// }
-/// ```
-pub fn parser(logic: impl FnMut(ParseNestedMeta) -> Result<()>) -> impl Parser<Output = ()> {
- |input: ParseStream| {
- if input.is_empty() {
- Ok(())
- } else {
- parse_nested_meta(input, logic)
- }
- }
-}
-
-/// Context for parsing a single property in the conventional syntax for
-/// structured attributes.
-///
-/// # Examples
-///
-/// Refer to usage examples on the following two entry-points:
-///
-/// - [`Attribute::parse_nested_meta`] if you have an entire `Attribute` to
-/// parse. Always use this if possible. Generally this is able to produce
-/// better error messages because `Attribute` holds span information for all
-/// of the delimiters therein.
-///
-/// - [`syn::meta::parser`] if you are implementing a `proc_macro_attribute`
-/// macro and parsing the arguments to the attribute macro, i.e. the ones
-/// written in the same attribute that dispatched the macro invocation. Rustc
-/// does not pass span information for the surrounding delimiters into the
-/// attribute macro invocation in this situation, so error messages might be
-/// less precise.
-///
-/// [`Attribute::parse_nested_meta`]: crate::Attribute::parse_nested_meta
-/// [`syn::meta::parser`]: crate::meta::parser
-#[non_exhaustive]
-pub struct ParseNestedMeta<'a> {
- pub path: Path,
- pub input: ParseStream<'a>,
-}
-
-impl<'a> ParseNestedMeta<'a> {
- /// Used when parsing `key = "value"` syntax.
- ///
- /// All it does is advance `meta.input` past the `=` sign in the input. You
- /// could accomplish the same effect by writing
- /// `meta.parse::<Token![=]>()?`, so at most it is a minor convenience to
- /// use `meta.value()?`.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{parse_quote, Attribute, LitStr};
- ///
- /// let attr: Attribute = parse_quote! {
- /// #[tea(kind = "EarlGrey")]
- /// };
- /// // conceptually:
- /// if attr.path().is_ident("tea") { // this parses the `tea`
- /// attr.parse_nested_meta(|meta| { // this parses the `(`
- /// if meta.path.is_ident("kind") { // this parses the `kind`
- /// let value = meta.value()?; // this parses the `=`
- /// let s: LitStr = value.parse()?; // this parses `"EarlGrey"`
- /// if s.value() == "EarlGrey" {
- /// // ...
- /// }
- /// Ok(())
- /// } else {
- /// Err(meta.error("unsupported attribute"))
- /// }
- /// })?;
- /// }
- /// # anyhow::Ok(())
- /// ```
- pub fn value(&self) -> Result<ParseStream<'a>> {
- self.input.parse::<Token![=]>()?;
- Ok(self.input)
- }
-
- /// Used when parsing `list(...)` syntax **if** the content inside the
- /// nested parentheses is also expected to conform to Rust's structured
- /// attribute convention.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{parse_quote, Attribute};
- ///
- /// let attr: Attribute = parse_quote! {
- /// #[tea(with(sugar, milk))]
- /// };
- ///
- /// if attr.path().is_ident("tea") {
- /// attr.parse_nested_meta(|meta| {
- /// if meta.path.is_ident("with") {
- /// meta.parse_nested_meta(|meta| { // <---
- /// if meta.path.is_ident("sugar") {
- /// // Here we can go even deeper if needed.
- /// Ok(())
- /// } else if meta.path.is_ident("milk") {
- /// Ok(())
- /// } else {
- /// Err(meta.error("unsupported ingredient"))
- /// }
- /// })
- /// } else {
- /// Err(meta.error("unsupported tea property"))
- /// }
- /// })?;
- /// }
- /// # anyhow::Ok(())
- /// ```
- ///
- /// # Counterexample
- ///
- /// If you don't need `parse_nested_meta`'s help in parsing the content
- /// written within the nested parentheses, keep in mind that you can always
- /// just parse it yourself from the exposed ParseStream. Rust syntax permits
- /// arbitrary tokens within those parentheses so for the crazier stuff,
- /// `parse_nested_meta` is not what you want.
- ///
- /// ```
- /// use syn::{parenthesized, parse_quote, Attribute, LitInt};
- ///
- /// let attr: Attribute = parse_quote! {
- /// #[repr(align(32))]
- /// };
- ///
- /// let mut align: Option<LitInt> = None;
- /// if attr.path().is_ident("repr") {
- /// attr.parse_nested_meta(|meta| {
- /// if meta.path.is_ident("align") {
- /// let content;
- /// parenthesized!(content in meta.input);
- /// align = Some(content.parse()?);
- /// Ok(())
- /// } else {
- /// Err(meta.error("unsupported repr"))
- /// }
- /// })?;
- /// }
- /// # anyhow::Ok(())
- /// ```
- pub fn parse_nested_meta(
- &self,
- logic: impl FnMut(ParseNestedMeta) -> Result<()>,
- ) -> Result<()> {
- let content;
- parenthesized!(content in self.input);
- parse_nested_meta(&content, logic)
- }
-
- /// Report that the attribute's content did not conform to expectations.
- ///
- /// The span of the resulting error will cover `meta.path` *and* everything
- /// that has been parsed so far since it.
- ///
- /// There are 2 ways you might call this. First, if `meta.path` is not
- /// something you recognize:
- ///
- /// ```
- /// # use syn::Attribute;
- /// #
- /// # fn example(attr: &Attribute) -> syn::Result<()> {
- /// attr.parse_nested_meta(|meta| {
- /// if meta.path.is_ident("kind") {
- /// // ...
- /// Ok(())
- /// } else {
- /// Err(meta.error("unsupported tea property"))
- /// }
- /// })?;
- /// # Ok(())
- /// # }
- /// ```
- ///
- /// In this case, it behaves exactly like
- /// `syn::Error::new_spanned(&meta.path, "message...")`.
- ///
- /// ```console
- /// error: unsupported tea property
- /// --> src/main.rs:3:26
- /// |
- /// 3 | #[tea(kind = "EarlGrey", wat = "foo")]
- /// | ^^^
- /// ```
- ///
- /// More usefully, the second place is if you've already parsed a value but
- /// have decided not to accept the value:
- ///
- /// ```
- /// # use syn::Attribute;
- /// #
- /// # fn example(attr: &Attribute) -> syn::Result<()> {
- /// use syn::Expr;
- ///
- /// attr.parse_nested_meta(|meta| {
- /// if meta.path.is_ident("kind") {
- /// let expr: Expr = meta.value()?.parse()?;
- /// match expr {
- /// Expr::Lit(expr) => /* ... */
- /// # unimplemented!(),
- /// Expr::Path(expr) => /* ... */
- /// # unimplemented!(),
- /// Expr::Macro(expr) => /* ... */
- /// # unimplemented!(),
- /// _ => Err(meta.error("tea kind must be a string literal, path, or macro")),
- /// }
- /// } else /* as above */
- /// # { unimplemented!() }
- ///
- /// })?;
- /// # Ok(())
- /// # }
- /// ```
- ///
- /// ```console
- /// error: tea kind must be a string literal, path, or macro
- /// --> src/main.rs:3:7
- /// |
- /// 3 | #[tea(kind = async { replicator.await })]
- /// | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- /// ```
- ///
- /// Often you may want to use `syn::Error::new_spanned` even in this
- /// situation. In the above code, that would be:
- ///
- /// ```
- /// # use syn::{Error, Expr};
- /// #
- /// # fn example(expr: Expr) -> syn::Result<()> {
- /// match expr {
- /// Expr::Lit(expr) => /* ... */
- /// # unimplemented!(),
- /// Expr::Path(expr) => /* ... */
- /// # unimplemented!(),
- /// Expr::Macro(expr) => /* ... */
- /// # unimplemented!(),
- /// _ => Err(Error::new_spanned(expr, "unsupported expression type for `kind`")),
- /// }
- /// # }
- /// ```
- ///
- /// ```console
- /// error: unsupported expression type for `kind`
- /// --> src/main.rs:3:14
- /// |
- /// 3 | #[tea(kind = async { replicator.await })]
- /// | ^^^^^^^^^^^^^^^^^^^^^^^^^^
- /// ```
- pub fn error(&self, msg: impl Display) -> Error {
- let start_span = self.path.segments[0].ident.span();
- let end_span = self.input.cursor().prev_span();
- crate::error::new2(start_span, end_span, msg)
- }
-}
-
-pub(crate) fn parse_nested_meta(
- input: ParseStream,
- mut logic: impl FnMut(ParseNestedMeta) -> Result<()>,
-) -> Result<()> {
- loop {
- let path = input.call(parse_meta_path)?;
- logic(ParseNestedMeta { path, input })?;
- if input.is_empty() {
- return Ok(());
- }
- input.parse::<Token![,]>()?;
- if input.is_empty() {
- return Ok(());
- }
- }
-}
-
-// Like Path::parse_mod_style, but accepts keywords in the path.
-fn parse_meta_path(input: ParseStream) -> Result<Path> {
- Ok(Path {
- leading_colon: input.parse()?,
- segments: {
- let mut segments = Punctuated::new();
- if input.peek(Ident::peek_any) {
- let ident = Ident::parse_any(input)?;
- segments.push_value(PathSegment::from(ident));
- } else if input.is_empty() {
- return Err(input.error("expected nested attribute"));
- } else if input.peek(Lit) {
- return Err(input.error("unexpected literal in nested attribute, expected ident"));
- } else {
- return Err(input.error("unexpected token in nested attribute, expected ident"));
- }
- while input.peek(Token![::]) {
- let punct = input.parse()?;
- segments.push_punct(punct);
- let ident = Ident::parse_any(input)?;
- segments.push_value(PathSegment::from(ident));
- }
- segments
- },
- })
-}
diff --git a/deps/crates/vendor/syn-v2/src/op.rs b/deps/crates/vendor/syn-v2/src/op.rs
deleted file mode 100644
index 575d9faa127..00000000000
--- a/deps/crates/vendor/syn-v2/src/op.rs
+++ /dev/null
@@ -1,219 +0,0 @@
-ast_enum! {
- /// A binary operator: `+`, `+=`, `&`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum BinOp {
- /// The `+` operator (addition)
- Add(Token![+]),
- /// The `-` operator (subtraction)
- Sub(Token![-]),
- /// The `*` operator (multiplication)
- Mul(Token![*]),
- /// The `/` operator (division)
- Div(Token![/]),
- /// The `%` operator (modulus)
- Rem(Token![%]),
- /// The `&&` operator (logical and)
- And(Token![&&]),
- /// The `||` operator (logical or)
- Or(Token![||]),
- /// The `^` operator (bitwise xor)
- BitXor(Token![^]),
- /// The `&` operator (bitwise and)
- BitAnd(Token![&]),
- /// The `|` operator (bitwise or)
- BitOr(Token![|]),
- /// The `<<` operator (shift left)
- Shl(Token![<<]),
- /// The `>>` operator (shift right)
- Shr(Token![>>]),
- /// The `==` operator (equality)
- Eq(Token![==]),
- /// The `<` operator (less than)
- Lt(Token![<]),
- /// The `<=` operator (less than or equal to)
- Le(Token![<=]),
- /// The `!=` operator (not equal to)
- Ne(Token![!=]),
- /// The `>=` operator (greater than or equal to)
- Ge(Token![>=]),
- /// The `>` operator (greater than)
- Gt(Token![>]),
- /// The `+=` operator
- AddAssign(Token![+=]),
- /// The `-=` operator
- SubAssign(Token![-=]),
- /// The `*=` operator
- MulAssign(Token![*=]),
- /// The `/=` operator
- DivAssign(Token![/=]),
- /// The `%=` operator
- RemAssign(Token![%=]),
- /// The `^=` operator
- BitXorAssign(Token![^=]),
- /// The `&=` operator
- BitAndAssign(Token![&=]),
- /// The `|=` operator
- BitOrAssign(Token![|=]),
- /// The `<<=` operator
- ShlAssign(Token![<<=]),
- /// The `>>=` operator
- ShrAssign(Token![>>=]),
- }
-}
-
-ast_enum! {
- /// A unary operator: `*`, `!`, `-`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum UnOp {
- /// The `*` operator for dereferencing
- Deref(Token![*]),
- /// The `!` operator for logical inversion
- Not(Token![!]),
- /// The `-` operator for negation
- Neg(Token![-]),
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::error::Result;
- use crate::op::{BinOp, UnOp};
- use crate::parse::{Parse, ParseStream};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for BinOp {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![+=]) {
- input.parse().map(BinOp::AddAssign)
- } else if input.peek(Token![-=]) {
- input.parse().map(BinOp::SubAssign)
- } else if input.peek(Token![*=]) {
- input.parse().map(BinOp::MulAssign)
- } else if input.peek(Token![/=]) {
- input.parse().map(BinOp::DivAssign)
- } else if input.peek(Token![%=]) {
- input.parse().map(BinOp::RemAssign)
- } else if input.peek(Token![^=]) {
- input.parse().map(BinOp::BitXorAssign)
- } else if input.peek(Token![&=]) {
- input.parse().map(BinOp::BitAndAssign)
- } else if input.peek(Token![|=]) {
- input.parse().map(BinOp::BitOrAssign)
- } else if input.peek(Token![<<=]) {
- input.parse().map(BinOp::ShlAssign)
- } else if input.peek(Token![>>=]) {
- input.parse().map(BinOp::ShrAssign)
- } else if input.peek(Token![&&]) {
- input.parse().map(BinOp::And)
- } else if input.peek(Token![||]) {
- input.parse().map(BinOp::Or)
- } else if input.peek(Token![<<]) {
- input.parse().map(BinOp::Shl)
- } else if input.peek(Token![>>]) {
- input.parse().map(BinOp::Shr)
- } else if input.peek(Token![==]) {
- input.parse().map(BinOp::Eq)
- } else if input.peek(Token![<=]) {
- input.parse().map(BinOp::Le)
- } else if input.peek(Token![!=]) {
- input.parse().map(BinOp::Ne)
- } else if input.peek(Token![>=]) {
- input.parse().map(BinOp::Ge)
- } else if input.peek(Token![+]) {
- input.parse().map(BinOp::Add)
- } else if input.peek(Token![-]) {
- input.parse().map(BinOp::Sub)
- } else if input.peek(Token![*]) {
- input.parse().map(BinOp::Mul)
- } else if input.peek(Token![/]) {
- input.parse().map(BinOp::Div)
- } else if input.peek(Token![%]) {
- input.parse().map(BinOp::Rem)
- } else if input.peek(Token![^]) {
- input.parse().map(BinOp::BitXor)
- } else if input.peek(Token![&]) {
- input.parse().map(BinOp::BitAnd)
- } else if input.peek(Token![|]) {
- input.parse().map(BinOp::BitOr)
- } else if input.peek(Token![<]) {
- input.parse().map(BinOp::Lt)
- } else if input.peek(Token![>]) {
- input.parse().map(BinOp::Gt)
- } else {
- Err(input.error("expected binary operator"))
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for UnOp {
- fn parse(input: ParseStream) -> Result<Self> {
- let lookahead = input.lookahead1();
- if lookahead.peek(Token![*]) {
- input.parse().map(UnOp::Deref)
- } else if lookahead.peek(Token![!]) {
- input.parse().map(UnOp::Not)
- } else if lookahead.peek(Token![-]) {
- input.parse().map(UnOp::Neg)
- } else {
- Err(lookahead.error())
- }
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::op::{BinOp, UnOp};
- use proc_macro2::TokenStream;
- use quote::ToTokens;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for BinOp {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- BinOp::Add(t) => t.to_tokens(tokens),
- BinOp::Sub(t) => t.to_tokens(tokens),
- BinOp::Mul(t) => t.to_tokens(tokens),
- BinOp::Div(t) => t.to_tokens(tokens),
- BinOp::Rem(t) => t.to_tokens(tokens),
- BinOp::And(t) => t.to_tokens(tokens),
- BinOp::Or(t) => t.to_tokens(tokens),
- BinOp::BitXor(t) => t.to_tokens(tokens),
- BinOp::BitAnd(t) => t.to_tokens(tokens),
- BinOp::BitOr(t) => t.to_tokens(tokens),
- BinOp::Shl(t) => t.to_tokens(tokens),
- BinOp::Shr(t) => t.to_tokens(tokens),
- BinOp::Eq(t) => t.to_tokens(tokens),
- BinOp::Lt(t) => t.to_tokens(tokens),
- BinOp::Le(t) => t.to_tokens(tokens),
- BinOp::Ne(t) => t.to_tokens(tokens),
- BinOp::Ge(t) => t.to_tokens(tokens),
- BinOp::Gt(t) => t.to_tokens(tokens),
- BinOp::AddAssign(t) => t.to_tokens(tokens),
- BinOp::SubAssign(t) => t.to_tokens(tokens),
- BinOp::MulAssign(t) => t.to_tokens(tokens),
- BinOp::DivAssign(t) => t.to_tokens(tokens),
- BinOp::RemAssign(t) => t.to_tokens(tokens),
- BinOp::BitXorAssign(t) => t.to_tokens(tokens),
- BinOp::BitAndAssign(t) => t.to_tokens(tokens),
- BinOp::BitOrAssign(t) => t.to_tokens(tokens),
- BinOp::ShlAssign(t) => t.to_tokens(tokens),
- BinOp::ShrAssign(t) => t.to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for UnOp {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- UnOp::Deref(t) => t.to_tokens(tokens),
- UnOp::Not(t) => t.to_tokens(tokens),
- UnOp::Neg(t) => t.to_tokens(tokens),
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/parse.rs b/deps/crates/vendor/syn-v2/src/parse.rs
deleted file mode 100644
index 9e10b4c9bbd..00000000000
--- a/deps/crates/vendor/syn-v2/src/parse.rs
+++ /dev/null
@@ -1,1420 +0,0 @@
-//! Parsing interface for parsing a token stream into a syntax tree node.
-//!
-//! Parsing in Syn is built on parser functions that take in a [`ParseStream`]
-//! and produce a [`Result<T>`] where `T` is some syntax tree node. Underlying
-//! these parser functions is a lower level mechanism built around the
-//! [`Cursor`] type. `Cursor` is a cheaply copyable cursor over a range of
-//! tokens in a token stream.
-//!
-//! [`Result<T>`]: Result
-//! [`Cursor`]: crate::buffer::Cursor
-//!
-//! # Example
-//!
-//! Here is a snippet of parsing code to get a feel for the style of the
-//! library. We define data structures for a subset of Rust syntax including
-//! enums (not shown) and structs, then provide implementations of the [`Parse`]
-//! trait to parse these syntax tree data structures from a token stream.
-//!
-//! Once `Parse` impls have been defined, they can be called conveniently from a
-//! procedural macro through [`parse_macro_input!`] as shown at the bottom of
-//! the snippet. If the caller provides syntactically invalid input to the
-//! procedural macro, they will receive a helpful compiler error message
-//! pointing out the exact token that triggered the failure to parse.
-//!
-//! [`parse_macro_input!`]: crate::parse_macro_input!
-//!
-//! ```
-//! # extern crate proc_macro;
-//! #
-//! use proc_macro::TokenStream;
-//! use syn::{braced, parse_macro_input, token, Field, Ident, Result, Token};
-//! use syn::parse::{Parse, ParseStream};
-//! use syn::punctuated::Punctuated;
-//!
-//! enum Item {
-//! Struct(ItemStruct),
-//! Enum(ItemEnum),
-//! }
-//!
-//! struct ItemStruct {
-//! struct_token: Token![struct],
-//! ident: Ident,
-//! brace_token: token::Brace,
-//! fields: Punctuated<Field, Token![,]>,
-//! }
-//! #
-//! # enum ItemEnum {}
-//!
-//! impl Parse for Item {
-//! fn parse(input: ParseStream) -> Result<Self> {
-//! let lookahead = input.lookahead1();
-//! if lookahead.peek(Token![struct]) {
-//! input.parse().map(Item::Struct)
-//! } else if lookahead.peek(Token![enum]) {
-//! input.parse().map(Item::Enum)
-//! } else {
-//! Err(lookahead.error())
-//! }
-//! }
-//! }
-//!
-//! impl Parse for ItemStruct {
-//! fn parse(input: ParseStream) -> Result<Self> {
-//! let content;
-//! Ok(ItemStruct {
-//! struct_token: input.parse()?,
-//! ident: input.parse()?,
-//! brace_token: braced!(content in input),
-//! fields: content.parse_terminated(Field::parse_named, Token![,])?,
-//! })
-//! }
-//! }
-//! #
-//! # impl Parse for ItemEnum {
-//! # fn parse(input: ParseStream) -> Result<Self> {
-//! # unimplemented!()
-//! # }
-//! # }
-//!
-//! # const IGNORE: &str = stringify! {
-//! #[proc_macro]
-//! # };
-//! pub fn my_macro(tokens: TokenStream) -> TokenStream {
-//! let input = parse_macro_input!(tokens as Item);
-//!
-//! /* ... */
-//! # TokenStream::new()
-//! }
-//! ```
-//!
-//! # The `syn::parse*` functions
-//!
-//! The [`syn::parse`], [`syn::parse2`], and [`syn::parse_str`] functions serve
-//! as an entry point for parsing syntax tree nodes that can be parsed in an
-//! obvious default way. These functions can return any syntax tree node that
-//! implements the [`Parse`] trait, which includes most types in Syn.
-//!
-//! [`syn::parse`]: crate::parse()
-//! [`syn::parse2`]: crate::parse2()
-//! [`syn::parse_str`]: crate::parse_str()
-//!
-//! ```
-//! use syn::Type;
-//!
-//! # fn run_parser() -> syn::Result<()> {
-//! let t: Type = syn::parse_str("alloc::collections::HashMap<String, Value>")?;
-//! # Ok(())
-//! # }
-//! #
-//! # run_parser().unwrap();
-//! ```
-//!
-//! The [`parse_quote!`] macro also uses this approach.
-//!
-//! [`parse_quote!`]: crate::parse_quote!
-//!
-//! # The `Parser` trait
-//!
-//! Some types can be parsed in several ways depending on context. For example
-//! an [`Attribute`] can be either "outer" like `#[...]` or "inner" like
-//! `#![...]` and parsing the wrong one would be a bug. Similarly [`Punctuated`]
-//! may or may not allow trailing punctuation, and parsing it the wrong way
-//! would either reject valid input or accept invalid input.
-//!
-//! [`Attribute`]: crate::Attribute
-//! [`Punctuated`]: crate::punctuated
-//!
-//! The `Parse` trait is not implemented in these cases because there is no good
-//! behavior to consider the default.
-//!
-//! ```compile_fail
-//! # extern crate proc_macro;
-//! #
-//! # use syn::punctuated::Punctuated;
-//! # use syn::{PathSegment, Result, Token};
-//! #
-//! # fn f(tokens: proc_macro::TokenStream) -> Result<()> {
-//! #
-//! // Can't parse `Punctuated` without knowing whether trailing punctuation
-//! // should be allowed in this context.
-//! let path: Punctuated<PathSegment, Token![::]> = syn::parse(tokens)?;
-//! #
-//! # Ok(())
-//! # }
-//! ```
-//!
-//! In these cases the types provide a choice of parser functions rather than a
-//! single `Parse` implementation, and those parser functions can be invoked
-//! through the [`Parser`] trait.
-//!
-//!
-//! ```
-//! # extern crate proc_macro;
-//! #
-//! use proc_macro::TokenStream;
-//! use syn::parse::Parser;
-//! use syn::punctuated::Punctuated;
-//! use syn::{Attribute, Expr, PathSegment, Result, Token};
-//!
-//! fn call_some_parser_methods(input: TokenStream) -> Result<()> {
-//! // Parse a nonempty sequence of path segments separated by `::` punctuation
-//! // with no trailing punctuation.
-//! let tokens = input.clone();
-//! let parser = Punctuated::<PathSegment, Token![::]>::parse_separated_nonempty;
-//! let _path = parser.parse(tokens)?;
-//!
-//! // Parse a possibly empty sequence of expressions terminated by commas with
-//! // an optional trailing punctuation.
-//! let tokens = input.clone();
-//! let parser = Punctuated::<Expr, Token![,]>::parse_terminated;
-//! let _args = parser.parse(tokens)?;
-//!
-//! // Parse zero or more outer attributes but not inner attributes.
-//! let tokens = input.clone();
-//! let parser = Attribute::parse_outer;
-//! let _attrs = parser.parse(tokens)?;
-//!
-//! Ok(())
-//! }
-//! ```
-
-#[path = "discouraged.rs"]
-pub mod discouraged;
-
-use crate::buffer::{Cursor, TokenBuffer};
-use crate::error;
-use crate::lookahead;
-use crate::punctuated::Punctuated;
-use crate::token::Token;
-use alloc::boxed::Box;
-use alloc::rc::Rc;
-use core::cell::Cell;
-use core::fmt::{self, Debug, Display};
-#[cfg(feature = "extra-traits")]
-use core::hash::{Hash, Hasher};
-use core::marker::PhantomData;
-use core::mem;
-use core::ops::Deref;
-use core::panic::{RefUnwindSafe, UnwindSafe};
-use core::str::FromStr;
-use proc_macro2::{Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree};
-#[cfg(feature = "printing")]
-use quote::ToTokens;
-
-pub use crate::error::{Error, Result};
-pub use crate::lookahead::{End, Lookahead1, Peek};
-
-/// Parsing interface implemented by all types that can be parsed in a default
-/// way from a token stream.
-///
-/// Refer to the [module documentation] for details about implementing and using
-/// the `Parse` trait.
-///
-/// [module documentation]: self
-pub trait Parse: Sized {
- fn parse(input: ParseStream) -> Result<Self>;
-}
-
-/// Input to a Syn parser function.
-///
-/// See the methods of this type under the documentation of [`ParseBuffer`]. For
-/// an overview of parsing in Syn, refer to the [module documentation].
-///
-/// [module documentation]: self
-pub type ParseStream<'a> = &'a ParseBuffer<'a>;
-
-/// Cursor position within a buffered token stream.
-///
-/// This type is more commonly used through the type alias [`ParseStream`] which
-/// is an alias for `&ParseBuffer`.
-///
-/// `ParseStream` is the input type for all parser functions in Syn. They have
-/// the signature `fn(ParseStream) -> Result<T>`.
-///
-/// ## Calling a parser function
-///
-/// There is no public way to construct a `ParseBuffer`. Instead, if you are
-/// looking to invoke a parser function that requires `ParseStream` as input,
-/// you will need to go through one of the public parsing entry points.
-///
-/// - The [`parse_macro_input!`] macro if parsing input of a procedural macro;
-/// - One of [the `syn::parse*` functions][syn-parse]; or
-/// - A method of the [`Parser`] trait.
-///
-/// [`parse_macro_input!`]: crate::parse_macro_input!
-/// [syn-parse]: self#the-synparse-functions
-pub struct ParseBuffer<'a> {
- scope: Span,
- // Instead of Cell<Cursor<'a>> so that ParseBuffer<'a> is covariant in 'a.
- // The rest of the code in this module needs to be careful that only a
- // cursor derived from this `cell` is ever assigned to this `cell`.
- //
- // Cell<Cursor<'a>> cannot be covariant in 'a because then we could take a
- // ParseBuffer<'a>, upcast to ParseBuffer<'short> for some lifetime shorter
- // than 'a, and then assign a Cursor<'short> into the Cell.
- //
- // By extension, it would not be safe to expose an API that accepts a
- // Cursor<'a> and trusts that it lives as long as the cursor currently in
- // the cell.
- cell: Cell<Cursor<'static>>,
- marker: PhantomData<Cursor<'a>>,
- unexpected: Cell<Option<Rc<Cell<Unexpected>>>>,
-}
-
-impl<'a> Drop for ParseBuffer<'a> {
- fn drop(&mut self) {
- if let Some((unexpected_span, delimiter)) = span_of_unexpected_ignoring_nones(self.cursor())
- {
- let (inner, old_span) = inner_unexpected(self);
- if old_span.is_none() {
- inner.set(Unexpected::Some(unexpected_span, delimiter));
- }
- }
- }
-}
-
-impl<'a> Display for ParseBuffer<'a> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- Display::fmt(&self.cursor().token_stream(), f)
- }
-}
-
-impl<'a> Debug for ParseBuffer<'a> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- Debug::fmt(&self.cursor().token_stream(), f)
- }
-}
-
-impl<'a> UnwindSafe for ParseBuffer<'a> {}
-impl<'a> RefUnwindSafe for ParseBuffer<'a> {}
-
-/// Cursor state associated with speculative parsing.
-///
-/// This type is the input of the closure provided to [`ParseStream::step`].
-///
-/// [`ParseStream::step`]: ParseBuffer::step
-///
-/// # Example
-///
-/// ```
-/// use proc_macro2::TokenTree;
-/// use syn::Result;
-/// use syn::parse::ParseStream;
-///
-/// // This function advances the stream past the next occurrence of `@`. If
-/// // no `@` is present in the stream, the stream position is unchanged and
-/// // an error is returned.
-/// fn skip_past_next_at(input: ParseStream) -> Result<()> {
-/// input.step(|cursor| {
-/// let mut rest = *cursor;
-/// while let Some((tt, next)) = rest.token_tree() {
-/// match &tt {
-/// TokenTree::Punct(punct) if punct.as_char() == '@' => {
-/// return Ok(((), next));
-/// }
-/// _ => rest = next,
-/// }
-/// }
-/// Err(cursor.error("no `@` was found after this point"))
-/// })
-/// }
-/// #
-/// # fn remainder_after_skipping_past_next_at(
-/// # input: ParseStream,
-/// # ) -> Result<proc_macro2::TokenStream> {
-/// # skip_past_next_at(input)?;
-/// # input.parse()
-/// # }
-/// #
-/// # use syn::parse::Parser;
-/// # let remainder = remainder_after_skipping_past_next_at
-/// # .parse_str("a @ b c")
-/// # .unwrap();
-/// # assert_eq!(remainder.to_string(), "b c");
-/// ```
-pub struct StepCursor<'c, 'a> {
- scope: Span,
- // This field is covariant in 'c.
- cursor: Cursor<'c>,
- // This field is contravariant in 'c. Together these make StepCursor
- // invariant in 'c. Also covariant in 'a. The user cannot cast 'c to a
- // different lifetime but can upcast into a StepCursor with a shorter
- // lifetime 'a.
- //
- // As long as we only ever construct a StepCursor for which 'c outlives 'a,
- // this means if ever a StepCursor<'c, 'a> exists we are guaranteed that 'c
- // outlives 'a.
- marker: PhantomData<fn(Cursor<'c>) -> Cursor<'a>>,
-}
-
-impl<'c, 'a> Deref for StepCursor<'c, 'a> {
- type Target = Cursor<'c>;
-
- fn deref(&self) -> &Self::Target {
- &self.cursor
- }
-}
-
-impl<'c, 'a> Copy for StepCursor<'c, 'a> {}
-
-impl<'c, 'a> Clone for StepCursor<'c, 'a> {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-impl<'c, 'a> StepCursor<'c, 'a> {
- /// Triggers an error at the current position of the parse stream.
- ///
- /// The `ParseStream::step` invocation will return this same error without
- /// advancing the stream state.
- pub fn error<T: Display>(self, message: T) -> Error {
- error::new_at(self.scope, self.cursor, message)
- }
-}
-
-pub(crate) fn advance_step_cursor<'c, 'a>(proof: StepCursor<'c, 'a>, to: Cursor<'c>) -> Cursor<'a> {
- // Refer to the comments within the StepCursor definition. We use the
- // fact that a StepCursor<'c, 'a> exists as proof that 'c outlives 'a.
- // Cursor is covariant in its lifetime parameter so we can cast a
- // Cursor<'c> to one with the shorter lifetime Cursor<'a>.
- let _ = proof;
- unsafe { mem::transmute::<Cursor<'c>, Cursor<'a>>(to) }
-}
-
-pub(crate) fn new_parse_buffer(
- scope: Span,
- cursor: Cursor,
- unexpected: Rc<Cell<Unexpected>>,
-) -> ParseBuffer {
- ParseBuffer {
- scope,
- // See comment on `cell` in the struct definition.
- cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }),
- marker: PhantomData,
- unexpected: Cell::new(Some(unexpected)),
- }
-}
-
-pub(crate) enum Unexpected {
- None,
- Some(Span, Delimiter),
- Chain(Rc<Cell<Unexpected>>),
-}
-
-impl Default for Unexpected {
- fn default() -> Self {
- Unexpected::None
- }
-}
-
-impl Clone for Unexpected {
- fn clone(&self) -> Self {
- match self {
- Unexpected::None => Unexpected::None,
- Unexpected::Some(span, delimiter) => Unexpected::Some(*span, *delimiter),
- Unexpected::Chain(next) => Unexpected::Chain(next.clone()),
- }
- }
-}
-
-// We call this on Cell<Unexpected> and Cell<Option<T>> where temporarily
-// swapping in a None is cheap.
-fn cell_clone<T: Default + Clone>(cell: &Cell<T>) -> T {
- let prev = cell.take();
- let ret = prev.clone();
- cell.set(prev);
- ret
-}
-
-fn inner_unexpected(buffer: &ParseBuffer) -> (Rc<Cell<Unexpected>>, Option<(Span, Delimiter)>) {
- let mut unexpected = get_unexpected(buffer);
- loop {
- match cell_clone(&unexpected) {
- Unexpected::None => return (unexpected, None),
- Unexpected::Some(span, delimiter) => return (unexpected, Some((span, delimiter))),
- Unexpected::Chain(next) => unexpected = next,
- }
- }
-}
-
-pub(crate) fn get_unexpected(buffer: &ParseBuffer) -> Rc<Cell<Unexpected>> {
- cell_clone(&buffer.unexpected).unwrap()
-}
-
-fn span_of_unexpected_ignoring_nones(mut cursor: Cursor) -> Option<(Span, Delimiter)> {
- if cursor.eof() {
- return None;
- }
- while let Some((inner, _span, rest)) = cursor.group(Delimiter::None) {
- if let Some(unexpected) = span_of_unexpected_ignoring_nones(inner) {
- return Some(unexpected);
- }
- cursor = rest;
- }
- if cursor.eof() {
- None
- } else {
- Some((cursor.span(), cursor.scope_delimiter()))
- }
-}
-
-impl<'a> ParseBuffer<'a> {
- /// Parses a syntax tree node of type `T`, advancing the position of our
- /// parse stream past it.
- pub fn parse<T: Parse>(&self) -> Result<T> {
- T::parse(self)
- }
-
- /// Calls the given parser function to parse a syntax tree node of type `T`
- /// from this stream.
- ///
- /// # Example
- ///
- /// The parser below invokes [`Attribute::parse_outer`] to parse a vector of
- /// zero or more outer attributes.
- ///
- /// [`Attribute::parse_outer`]: crate::Attribute::parse_outer
- ///
- /// ```
- /// use syn::{Attribute, Ident, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Parses a unit struct with attributes.
- /// //
- /// // #[path = "s.tmpl"]
- /// // struct S;
- /// struct UnitStruct {
- /// attrs: Vec<Attribute>,
- /// struct_token: Token![struct],
- /// name: Ident,
- /// semi_token: Token![;],
- /// }
- ///
- /// impl Parse for UnitStruct {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// Ok(UnitStruct {
- /// attrs: input.call(Attribute::parse_outer)?,
- /// struct_token: input.parse()?,
- /// name: input.parse()?,
- /// semi_token: input.parse()?,
- /// })
- /// }
- /// }
- /// ```
- pub fn call<T>(&'a self, function: fn(ParseStream<'a>) -> Result<T>) -> Result<T> {
- function(self)
- }
-
- /// Looks at the next token in the parse stream to determine whether it
- /// matches the requested type of token.
- ///
- /// Does not advance the position of the parse stream.
- ///
- /// # Syntax
- ///
- /// Note that this method does not use turbofish syntax. Pass the peek type
- /// inside of parentheses.
- ///
- /// - `input.peek(Token![struct])`
- /// - `input.peek(Token![==])`
- /// - `input.peek(syn::Ident)` *(does not accept keywords)*
- /// - `input.peek(syn::Ident::peek_any)`
- /// - `input.peek(Lifetime)`
- /// - `input.peek(token::Brace)`
- ///
- /// # Example
- ///
- /// In this example we finish parsing the list of supertraits when the next
- /// token in the input is either `where` or an opening curly brace.
- ///
- /// ```
- /// use syn::{braced, token, Generics, Ident, Result, Token, TypeParamBound};
- /// use syn::parse::{Parse, ParseStream};
- /// use syn::punctuated::Punctuated;
- ///
- /// // Parses a trait definition containing no associated items.
- /// //
- /// // trait Marker<'de, T>: A + B<'de> where Box<T>: Clone {}
- /// struct MarkerTrait {
- /// trait_token: Token![trait],
- /// ident: Ident,
- /// generics: Generics,
- /// colon_token: Option<Token![:]>,
- /// supertraits: Punctuated<TypeParamBound, Token![+]>,
- /// brace_token: token::Brace,
- /// }
- ///
- /// impl Parse for MarkerTrait {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let trait_token: Token![trait] = input.parse()?;
- /// let ident: Ident = input.parse()?;
- /// let mut generics: Generics = input.parse()?;
- /// let colon_token: Option<Token![:]> = input.parse()?;
- ///
- /// let mut supertraits = Punctuated::new();
- /// if colon_token.is_some() {
- /// loop {
- /// supertraits.push_value(input.parse()?);
- /// if input.peek(Token![where]) || input.peek(token::Brace) {
- /// break;
- /// }
- /// supertraits.push_punct(input.parse()?);
- /// }
- /// }
- ///
- /// generics.where_clause = input.parse()?;
- /// let content;
- /// let empty_brace_token = braced!(content in input);
- ///
- /// Ok(MarkerTrait {
- /// trait_token,
- /// ident,
- /// generics,
- /// colon_token,
- /// supertraits,
- /// brace_token: empty_brace_token,
- /// })
- /// }
- /// }
- /// ```
- pub fn peek<T: Peek>(&self, token: T) -> bool {
- let _ = token;
- T::Token::peek(self.cursor())
- }
-
- /// Looks at the second-next token in the parse stream.
- ///
- /// This is commonly useful as a way to implement contextual keywords.
- ///
- /// # Example
- ///
- /// This example needs to use `peek2` because the symbol `union` is not a
- /// keyword in Rust. We can't use just `peek` and decide to parse a union if
- /// the very next token is `union`, because someone is free to write a `mod
- /// union` and a macro invocation that looks like `union::some_macro! { ...
- /// }`. In other words `union` is a contextual keyword.
- ///
- /// ```
- /// use syn::{Ident, ItemUnion, Macro, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Parses either a union or a macro invocation.
- /// enum UnionOrMacro {
- /// // union MaybeUninit<T> { uninit: (), value: T }
- /// Union(ItemUnion),
- /// // lazy_static! { ... }
- /// Macro(Macro),
- /// }
- ///
- /// impl Parse for UnionOrMacro {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// if input.peek(Token![union]) && input.peek2(Ident) {
- /// input.parse().map(UnionOrMacro::Union)
- /// } else {
- /// input.parse().map(UnionOrMacro::Macro)
- /// }
- /// }
- /// }
- /// ```
- pub fn peek2<T: Peek>(&self, token: T) -> bool {
- fn peek2(buffer: &ParseBuffer, peek: fn(Cursor) -> bool) -> bool {
- buffer.cursor().skip().is_some_and(peek)
- }
-
- let _ = token;
- peek2(self, T::Token::peek)
- }
-
- /// Looks at the third-next token in the parse stream.
- pub fn peek3<T: Peek>(&self, token: T) -> bool {
- fn peek3(buffer: &ParseBuffer, peek: fn(Cursor) -> bool) -> bool {
- buffer
- .cursor()
- .skip()
- .and_then(Cursor::skip)
- .is_some_and(peek)
- }
-
- let _ = token;
- peek3(self, T::Token::peek)
- }
-
- /// Parses zero or more occurrences of `T` separated by punctuation of type
- /// `P`, with optional trailing punctuation.
- ///
- /// Parsing continues until the end of this parse stream. The entire content
- /// of this parse stream must consist of `T` and `P`.
- ///
- /// # Example
- ///
- /// ```
- /// # use quote::quote;
- /// #
- /// use syn::{parenthesized, token, Ident, Result, Token, Type};
- /// use syn::parse::{Parse, ParseStream};
- /// use syn::punctuated::Punctuated;
- ///
- /// // Parse a simplified tuple struct syntax like:
- /// //
- /// // struct S(A, B);
- /// struct TupleStruct {
- /// struct_token: Token![struct],
- /// ident: Ident,
- /// paren_token: token::Paren,
- /// fields: Punctuated<Type, Token![,]>,
- /// semi_token: Token![;],
- /// }
- ///
- /// impl Parse for TupleStruct {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let content;
- /// Ok(TupleStruct {
- /// struct_token: input.parse()?,
- /// ident: input.parse()?,
- /// paren_token: parenthesized!(content in input),
- /// fields: content.parse_terminated(Type::parse, Token![,])?,
- /// semi_token: input.parse()?,
- /// })
- /// }
- /// }
- /// #
- /// # let input = quote! {
- /// # struct S(A, B);
- /// # };
- /// # syn::parse2::<TupleStruct>(input).unwrap();
- /// ```
- ///
- /// # See also
- ///
- /// If your separator is anything more complicated than an invocation of the
- /// `Token!` macro, this method won't be applicable and you can instead
- /// directly use `Punctuated`'s parser functions: [`parse_terminated`],
- /// [`parse_separated_nonempty`] etc.
- ///
- /// [`parse_terminated`]: Punctuated::parse_terminated
- /// [`parse_separated_nonempty`]: Punctuated::parse_separated_nonempty
- ///
- /// ```
- /// use syn::{custom_keyword, Expr, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- /// use syn::punctuated::Punctuated;
- ///
- /// mod kw {
- /// syn::custom_keyword!(fin);
- /// }
- ///
- /// struct Fin(kw::fin, Token![;]);
- ///
- /// impl Parse for Fin {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// Ok(Self(input.parse()?, input.parse()?))
- /// }
- /// }
- ///
- /// struct Thing {
- /// steps: Punctuated<Expr, Fin>,
- /// }
- ///
- /// impl Parse for Thing {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// # if true {
- /// Ok(Thing {
- /// steps: Punctuated::parse_terminated(input)?,
- /// })
- /// # } else {
- /// // or equivalently, this means the same thing:
- /// # Ok(Thing {
- /// steps: input.call(Punctuated::parse_terminated)?,
- /// # })
- /// # }
- /// }
- /// }
- /// ```
- pub fn parse_terminated<T, P>(
- &'a self,
- parser: fn(ParseStream<'a>) -> Result<T>,
- separator: P,
- ) -> Result<Punctuated<T, P::Token>>
- where
- P: Peek,
- P::Token: Parse,
- {
- let _ = separator;
- Punctuated::parse_terminated_with(self, parser)
- }
-
- /// Returns whether there are no more tokens remaining to be parsed from
- /// this stream.
- ///
- /// This method returns true upon reaching the end of the content within a
- /// set of delimiters, as well as at the end of the tokens provided to the
- /// outermost parsing entry point.
- ///
- /// This is equivalent to
- /// <code>.<a href="#method.peek">peek</a>(<a href="struct.End.html">syn::parse::End</a>)</code>.
- /// Use `.peek2(End)` or `.peek3(End)` to look for the end of a parse stream
- /// further ahead than the current position.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{braced, token, Ident, Item, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Parses a Rust `mod m { ... }` containing zero or more items.
- /// struct Mod {
- /// mod_token: Token![mod],
- /// name: Ident,
- /// brace_token: token::Brace,
- /// items: Vec<Item>,
- /// }
- ///
- /// impl Parse for Mod {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let content;
- /// Ok(Mod {
- /// mod_token: input.parse()?,
- /// name: input.parse()?,
- /// brace_token: braced!(content in input),
- /// items: {
- /// let mut items = Vec::new();
- /// while !content.is_empty() {
- /// items.push(content.parse()?);
- /// }
- /// items
- /// },
- /// })
- /// }
- /// }
- /// ```
- pub fn is_empty(&self) -> bool {
- self.cursor().eof()
- }
-
- /// Constructs a helper for peeking at the next token in this stream and
- /// building an error message if it is not one of a set of expected tokens.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{ConstParam, Ident, Lifetime, LifetimeParam, Result, Token, TypeParam};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // A generic parameter, a single one of the comma-separated elements inside
- /// // angle brackets in:
- /// //
- /// // fn f<T: Clone, 'a, 'b: 'a, const N: usize>() { ... }
- /// //
- /// // On invalid input, lookahead gives us a reasonable error message.
- /// //
- /// // error: expected one of: identifier, lifetime, `const`
- /// // |
- /// // 5 | fn f<!Sized>() {}
- /// // | ^
- /// enum GenericParam {
- /// Type(TypeParam),
- /// Lifetime(LifetimeParam),
- /// Const(ConstParam),
- /// }
- ///
- /// impl Parse for GenericParam {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let lookahead = input.lookahead1();
- /// if lookahead.peek(Ident) {
- /// input.parse().map(GenericParam::Type)
- /// } else if lookahead.peek(Lifetime) {
- /// input.parse().map(GenericParam::Lifetime)
- /// } else if lookahead.peek(Token![const]) {
- /// input.parse().map(GenericParam::Const)
- /// } else {
- /// Err(lookahead.error())
- /// }
- /// }
- /// }
- /// ```
- pub fn lookahead1(&self) -> Lookahead1<'a> {
- lookahead::new(self.scope, self.cursor())
- }
-
- /// Forks a parse stream so that parsing tokens out of either the original
- /// or the fork does not advance the position of the other.
- ///
- /// # Performance
- ///
- /// Forking a parse stream is a cheap fixed amount of work and does not
- /// involve copying token buffers. Where you might hit performance problems
- /// is if your macro ends up parsing a large amount of content more than
- /// once.
- ///
- /// ```
- /// # use syn::{Expr, Result};
- /// # use syn::parse::ParseStream;
- /// #
- /// # fn bad(input: ParseStream) -> Result<Expr> {
- /// // Do not do this.
- /// if input.fork().parse::<Expr>().is_ok() {
- /// return input.parse::<Expr>();
- /// }
- /// # unimplemented!()
- /// # }
- /// ```
- ///
- /// As a rule, avoid parsing an unbounded amount of tokens out of a forked
- /// parse stream. Only use a fork when the amount of work performed against
- /// the fork is small and bounded.
- ///
- /// When complex speculative parsing against the forked stream is
- /// unavoidable, use [`parse::discouraged::Speculative`] to advance the
- /// original stream once the fork's parse is determined to have been
- /// successful.
- ///
- /// For a lower level way to perform speculative parsing at the token level,
- /// consider using [`ParseStream::step`] instead.
- ///
- /// [`parse::discouraged::Speculative`]: discouraged::Speculative
- /// [`ParseStream::step`]: ParseBuffer::step
- ///
- /// # Example
- ///
- /// The parse implementation shown here parses possibly restricted `pub`
- /// visibilities.
- ///
- /// - `pub`
- /// - `pub(crate)`
- /// - `pub(self)`
- /// - `pub(super)`
- /// - `pub(in some::path)`
- ///
- /// To handle the case of visibilities inside of tuple structs, the parser
- /// needs to distinguish parentheses that specify visibility restrictions
- /// from parentheses that form part of a tuple type.
- ///
- /// ```
- /// # struct A;
- /// # struct B;
- /// # struct C;
- /// #
- /// struct S(pub(crate) A, pub (B, C));
- /// ```
- ///
- /// In this example input the first tuple struct element of `S` has
- /// `pub(crate)` visibility while the second tuple struct element has `pub`
- /// visibility; the parentheses around `(B, C)` are part of the type rather
- /// than part of a visibility restriction.
- ///
- /// The parser uses a forked parse stream to check the first token inside of
- /// parentheses after the `pub` keyword. This is a small bounded amount of
- /// work performed against the forked parse stream.
- ///
- /// ```
- /// use syn::{parenthesized, token, Ident, Path, Result, Token};
- /// use syn::ext::IdentExt;
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// struct PubVisibility {
- /// pub_token: Token![pub],
- /// restricted: Option<Restricted>,
- /// }
- ///
- /// struct Restricted {
- /// paren_token: token::Paren,
- /// in_token: Option<Token![in]>,
- /// path: Path,
- /// }
- ///
- /// impl Parse for PubVisibility {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let pub_token: Token![pub] = input.parse()?;
- ///
- /// if input.peek(token::Paren) {
- /// let ahead = input.fork();
- /// let mut content;
- /// parenthesized!(content in ahead);
- ///
- /// if content.peek(Token![crate])
- /// || content.peek(Token![self])
- /// || content.peek(Token![super])
- /// {
- /// return Ok(PubVisibility {
- /// pub_token,
- /// restricted: Some(Restricted {
- /// paren_token: parenthesized!(content in input),
- /// in_token: None,
- /// path: Path::from(content.call(Ident::parse_any)?),
- /// }),
- /// });
- /// } else if content.peek(Token![in]) {
- /// return Ok(PubVisibility {
- /// pub_token,
- /// restricted: Some(Restricted {
- /// paren_token: parenthesized!(content in input),
- /// in_token: Some(content.parse()?),
- /// path: content.call(Path::parse_mod_style)?,
- /// }),
- /// });
- /// }
- /// }
- ///
- /// Ok(PubVisibility {
- /// pub_token,
- /// restricted: None,
- /// })
- /// }
- /// }
- /// ```
- pub fn fork(&self) -> Self {
- ParseBuffer {
- scope: self.scope,
- cell: self.cell.clone(),
- marker: PhantomData,
- // Not the parent's unexpected. Nothing cares whether the clone
- // parses all the way unless we `advance_to`.
- unexpected: Cell::new(Some(Rc::new(Cell::new(Unexpected::None)))),
- }
- }
-
- /// Triggers an error at the current position of the parse stream.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{Expr, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Some kind of loop: `while` or `for` or `loop`.
- /// struct Loop {
- /// expr: Expr,
- /// }
- ///
- /// impl Parse for Loop {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// if input.peek(Token![while])
- /// || input.peek(Token![for])
- /// || input.peek(Token![loop])
- /// {
- /// Ok(Loop {
- /// expr: input.parse()?,
- /// })
- /// } else {
- /// Err(input.error("expected some kind of loop"))
- /// }
- /// }
- /// }
- /// ```
- pub fn error<T: Display>(&self, message: T) -> Error {
- error::new_at(self.scope, self.cursor(), message)
- }
-
- /// Speculatively parses tokens from this parse stream, advancing the
- /// position of this stream only if parsing succeeds.
- ///
- /// This is a powerful low-level API used for defining the `Parse` impls of
- /// the basic built-in token types. It is not something that will be used
- /// widely outside of the Syn codebase.
- ///
- /// # Example
- ///
- /// ```
- /// use proc_macro2::TokenTree;
- /// use syn::Result;
- /// use syn::parse::ParseStream;
- ///
- /// // This function advances the stream past the next occurrence of `@`. If
- /// // no `@` is present in the stream, the stream position is unchanged and
- /// // an error is returned.
- /// fn skip_past_next_at(input: ParseStream) -> Result<()> {
- /// input.step(|cursor| {
- /// let mut rest = *cursor;
- /// while let Some((tt, next)) = rest.token_tree() {
- /// match &tt {
- /// TokenTree::Punct(punct) if punct.as_char() == '@' => {
- /// return Ok(((), next));
- /// }
- /// _ => rest = next,
- /// }
- /// }
- /// Err(cursor.error("no `@` was found after this point"))
- /// })
- /// }
- /// #
- /// # fn remainder_after_skipping_past_next_at(
- /// # input: ParseStream,
- /// # ) -> Result<proc_macro2::TokenStream> {
- /// # skip_past_next_at(input)?;
- /// # input.parse()
- /// # }
- /// #
- /// # use syn::parse::Parser;
- /// # let remainder = remainder_after_skipping_past_next_at
- /// # .parse_str("a @ b c")
- /// # .unwrap();
- /// # assert_eq!(remainder.to_string(), "b c");
- /// ```
- pub fn step<F, R>(&self, function: F) -> Result<R>
- where
- F: for<'c> FnOnce(StepCursor<'c, 'a>) -> Result<(R, Cursor<'c>)>,
- {
- // Since the user's function is required to work for any 'c, we know
- // that the Cursor<'c> they return is either derived from the input
- // StepCursor<'c, 'a> or from a Cursor<'static>.
- //
- // It would not be legal to write this function without the invariant
- // lifetime 'c in StepCursor<'c, 'a>. If this function were written only
- // in terms of 'a, the user could take our ParseBuffer<'a>, upcast it to
- // a ParseBuffer<'short> which some shorter lifetime than 'a, invoke
- // `step` on their ParseBuffer<'short> with a closure that returns
- // Cursor<'short>, and we would wrongly write that Cursor<'short> into
- // the Cell intended to hold Cursor<'a>.
- //
- // In some cases it may be necessary for R to contain a Cursor<'a>.
- // Within Syn we solve this using `advance_step_cursor` which uses the
- // existence of a StepCursor<'c, 'a> as proof that it is safe to cast
- // from Cursor<'c> to Cursor<'a>. If needed outside of Syn, it would be
- // safe to expose that API as a method on StepCursor.
- let (node, rest) = function(StepCursor {
- scope: self.scope,
- cursor: self.cell.get(),
- marker: PhantomData,
- })?;
- self.cell.set(rest);
- Ok(node)
- }
-
- /// Returns the `Span` of the next token in the parse stream, or
- /// `Span::call_site()` if this parse stream has completely exhausted its
- /// input `TokenStream`.
- pub fn span(&self) -> Span {
- let cursor = self.cursor();
- if cursor.eof() {
- self.scope
- } else {
- crate::buffer::open_span_of_group(cursor)
- }
- }
-
- /// Provides low-level access to the token representation underlying this
- /// parse stream.
- ///
- /// Cursors are immutable so no operations you perform against the cursor
- /// will affect the state of this parse stream.
- ///
- /// # Example
- ///
- /// ```
- /// use proc_macro2::TokenStream;
- /// use syn::buffer::Cursor;
- /// use syn::parse::{ParseStream, Result};
- ///
- /// // Run a parser that returns T, but get its output as TokenStream instead of T.
- /// // This works without T needing to implement ToTokens.
- /// fn recognize_token_stream<T>(
- /// recognizer: fn(ParseStream) -> Result<T>,
- /// ) -> impl Fn(ParseStream) -> Result<TokenStream> {
- /// move |input| {
- /// let begin = input.cursor();
- /// recognizer(input)?;
- /// let end = input.cursor();
- /// Ok(tokens_between(begin, end))
- /// }
- /// }
- ///
- /// // Collect tokens between two cursors as a TokenStream.
- /// fn tokens_between(begin: Cursor, end: Cursor) -> TokenStream {
- /// assert!(begin <= end);
- ///
- /// let mut cursor = begin;
- /// let mut tokens = TokenStream::new();
- /// while cursor < end {
- /// let (token, next) = cursor.token_tree().unwrap();
- /// tokens.extend(core::iter::once(token));
- /// cursor = next;
- /// }
- /// tokens
- /// }
- ///
- /// fn main() {
- /// use quote::quote;
- /// use syn::parse::{Parse, Parser};
- /// use syn::Token;
- ///
- /// // Parse syn::Type as a TokenStream, surrounded by angle brackets.
- /// fn example(input: ParseStream) -> Result<TokenStream> {
- /// let _langle: Token![<] = input.parse()?;
- /// let ty = recognize_token_stream(syn::Type::parse)(input)?;
- /// let _rangle: Token![>] = input.parse()?;
- /// Ok(ty)
- /// }
- ///
- /// let tokens = quote! { <fn() -> u8> };
- /// println!("{}", example.parse2(tokens).unwrap());
- /// }
- /// ```
- pub fn cursor(&self) -> Cursor<'a> {
- self.cell.get()
- }
-
- fn check_unexpected(&self) -> Result<()> {
- match inner_unexpected(self).1 {
- Some((span, delimiter)) => Err(err_unexpected_token(span, delimiter)),
- None => Ok(()),
- }
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl<T: Parse> Parse for Box<T> {
- fn parse(input: ParseStream) -> Result<Self> {
- input.parse().map(Box::new)
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl<T: Parse + Token> Parse for Option<T> {
- fn parse(input: ParseStream) -> Result<Self> {
- if T::peek(input.cursor()) {
- Ok(Some(input.parse()?))
- } else {
- Ok(None)
- }
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for TokenStream {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| Ok((cursor.token_stream(), Cursor::empty())))
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for TokenTree {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| match cursor.token_tree() {
- Some((tt, rest)) => Ok((tt, rest)),
- None => Err(cursor.error("expected token tree")),
- })
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for Group {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| {
- if let Some((group, rest)) = cursor.any_group_token() {
- if group.delimiter() != Delimiter::None {
- return Ok((group, rest));
- }
- }
- Err(cursor.error("expected group token"))
- })
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for Punct {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| match cursor.punct() {
- Some((punct, rest)) => Ok((punct, rest)),
- None => Err(cursor.error("expected punctuation token")),
- })
- }
-}
-
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for Literal {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| match cursor.literal() {
- Some((literal, rest)) => Ok((literal, rest)),
- None => Err(cursor.error("expected literal token")),
- })
- }
-}
-
-/// Parser that can parse Rust tokens into a particular syntax tree node.
-///
-/// Refer to the [module documentation] for details about parsing in Syn.
-///
-/// [module documentation]: self
-pub trait Parser: Sized {
- type Output;
-
- /// Parse a proc-macro2 token stream into the chosen syntax tree node.
- ///
- /// This function enforces that the input is fully parsed. If there are any
- /// unparsed tokens at the end of the stream, an error is returned.
- fn parse2(self, tokens: TokenStream) -> Result<Self::Output>;
-
- /// Parse tokens of source code into the chosen syntax tree node.
- ///
- /// This function enforces that the input is fully parsed. If there are any
- /// unparsed tokens at the end of the stream, an error is returned.
- #[cfg(feature = "proc-macro")]
- #[cfg_attr(docsrs, doc(cfg(feature = "proc-macro")))]
- fn parse(self, tokens: proc_macro::TokenStream) -> Result<Self::Output> {
- self.parse2(proc_macro2::TokenStream::from(tokens))
- }
-
- /// Parse a string of Rust code into the chosen syntax tree node.
- ///
- /// This function enforces that the input is fully parsed. If there are any
- /// unparsed tokens at the end of the string, an error is returned.
- ///
- /// # Hygiene
- ///
- /// Every span in the resulting syntax tree will be set to resolve at the
- /// macro call site.
- fn parse_str(self, s: &str) -> Result<Self::Output> {
- self.parse2(proc_macro2::TokenStream::from_str(s)?)
- }
-
- // Not public API.
- #[doc(hidden)]
- fn __parse_scoped(self, scope: Span, tokens: TokenStream) -> Result<Self::Output> {
- let _ = scope;
- self.parse2(tokens)
- }
-}
-
-fn tokens_to_parse_buffer(tokens: &TokenBuffer) -> ParseBuffer {
- let scope = Span::call_site();
- let cursor = tokens.begin();
- let unexpected = Rc::new(Cell::new(Unexpected::None));
- new_parse_buffer(scope, cursor, unexpected)
-}
-
-impl<F, T> Parser for F
-where
- F: FnOnce(ParseStream) -> Result<T>,
-{
- type Output = T;
-
- fn parse2(self, tokens: TokenStream) -> Result<T> {
- let buf = TokenBuffer::new2(tokens);
- let state = tokens_to_parse_buffer(&buf);
- let node = self(&state)?;
- state.check_unexpected()?;
- if let Some((unexpected_span, delimiter)) =
- span_of_unexpected_ignoring_nones(state.cursor())
- {
- Err(err_unexpected_token(unexpected_span, delimiter))
- } else {
- Ok(node)
- }
- }
-
- fn __parse_scoped(self, scope: Span, tokens: TokenStream) -> Result<Self::Output> {
- let buf = TokenBuffer::new2(tokens);
- let cursor = buf.begin();
- let unexpected = Rc::new(Cell::new(Unexpected::None));
- let state = new_parse_buffer(scope, cursor, unexpected);
- let node = self(&state)?;
- state.check_unexpected()?;
- if let Some((unexpected_span, delimiter)) =
- span_of_unexpected_ignoring_nones(state.cursor())
- {
- Err(err_unexpected_token(unexpected_span, delimiter))
- } else {
- Ok(node)
- }
- }
-}
-
-pub(crate) fn parse_scoped<F: Parser>(f: F, scope: Span, tokens: TokenStream) -> Result<F::Output> {
- f.__parse_scoped(scope, tokens)
-}
-
-fn err_unexpected_token(span: Span, delimiter: Delimiter) -> Error {
- let msg = match delimiter {
- Delimiter::Parenthesis => "unexpected token, expected `)`",
- Delimiter::Brace => "unexpected token, expected `}`",
- Delimiter::Bracket => "unexpected token, expected `]`",
- Delimiter::None => "unexpected token",
- };
- Error::new(span, msg)
-}
-
-/// An empty syntax tree node that consumes no tokens when parsed.
-///
-/// This is useful for attribute macros that want to ensure they are not
-/// provided any attribute args.
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// use proc_macro::TokenStream;
-/// use syn::parse_macro_input;
-/// use syn::parse::Nothing;
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro_attribute]
-/// # };
-/// pub fn my_attr(args: TokenStream, input: TokenStream) -> TokenStream {
-/// parse_macro_input!(args as Nothing);
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-/// ```
-///
-/// ```text
-/// error: unexpected token
-/// --> src/main.rs:3:19
-/// |
-/// 3 | #[my_attr(asdf)]
-/// | ^^^^
-/// ```
-pub struct Nothing;
-
-impl Parse for Nothing {
- fn parse(_input: ParseStream) -> Result<Self> {
- Ok(Nothing)
- }
-}
-
-#[cfg(feature = "printing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
-impl ToTokens for Nothing {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- let _ = tokens;
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for Nothing {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for Nothing {}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for Nothing {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("Nothing")
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Eq for Nothing {}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for Nothing {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for Nothing {
- fn hash<H: Hasher>(&self, _state: &mut H) {}
-}
diff --git a/deps/crates/vendor/syn-v2/src/parse_macro_input.rs b/deps/crates/vendor/syn-v2/src/parse_macro_input.rs
deleted file mode 100644
index f0660aedd7d..00000000000
--- a/deps/crates/vendor/syn-v2/src/parse_macro_input.rs
+++ /dev/null
@@ -1,128 +0,0 @@
-/// Parse the input TokenStream of a macro, triggering a compile error if the
-/// tokens fail to parse.
-///
-/// Refer to the [`parse` module] documentation for more details about parsing
-/// in Syn.
-///
-/// [`parse` module]: mod@crate::parse
-///
-/// <br>
-///
-/// # Intended usage
-///
-/// This macro must be called from a function that returns
-/// `proc_macro::TokenStream`. Usually this will be your proc macro entry point,
-/// the function that has the #\[proc_macro\] / #\[proc_macro_derive\] /
-/// #\[proc_macro_attribute\] attribute.
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// use proc_macro::TokenStream;
-/// use syn::{parse_macro_input, Result};
-/// use syn::parse::{Parse, ParseStream};
-///
-/// struct MyMacroInput {
-/// /* ... */
-/// }
-///
-/// impl Parse for MyMacroInput {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// /* ... */
-/// # Ok(MyMacroInput {})
-/// }
-/// }
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro]
-/// # };
-/// pub fn my_macro(tokens: TokenStream) -> TokenStream {
-/// let input = parse_macro_input!(tokens as MyMacroInput);
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-/// ```
-///
-/// <br>
-///
-/// # Usage with Parser
-///
-/// This macro can also be used with the [`Parser` trait] for types that have
-/// multiple ways that they can be parsed.
-///
-/// [`Parser` trait]: crate::parse::Parser
-///
-/// ```
-/// # extern crate proc_macro;
-/// #
-/// # use proc_macro::TokenStream;
-/// # use syn::{parse_macro_input, Result};
-/// # use syn::parse::ParseStream;
-/// #
-/// # struct MyMacroInput {}
-/// #
-/// impl MyMacroInput {
-/// fn parse_alternate(input: ParseStream) -> Result<Self> {
-/// /* ... */
-/// # Ok(MyMacroInput {})
-/// }
-/// }
-///
-/// # const IGNORE: &str = stringify! {
-/// #[proc_macro]
-/// # };
-/// pub fn my_macro(tokens: TokenStream) -> TokenStream {
-/// let input = parse_macro_input!(tokens with MyMacroInput::parse_alternate);
-///
-/// /* ... */
-/// # TokenStream::new()
-/// }
-/// ```
-///
-/// <br>
-///
-/// # Expansion
-///
-/// `parse_macro_input!($variable as $Type)` expands to something like:
-///
-/// ```no_run
-/// # extern crate proc_macro;
-/// #
-/// # macro_rules! doc_test {
-/// # ($variable:ident as $Type:ty) => {
-/// match syn::parse::<$Type>($variable) {
-/// Ok(syntax_tree) => syntax_tree,
-/// Err(err) => return proc_macro::TokenStream::from(err.to_compile_error()),
-/// }
-/// # };
-/// # }
-/// #
-/// # fn test(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
-/// # let _ = doc_test!(input as syn::Ident);
-/// # proc_macro::TokenStream::new()
-/// # }
-/// ```
-#[macro_export]
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "proc-macro"))))]
-macro_rules! parse_macro_input {
- ($tokenstream:ident as $ty:ty) => {
- match $crate::parse::<$ty>($tokenstream) {
- $crate::__private::Ok(data) => data,
- $crate::__private::Err(err) => {
- return $crate::__private::TokenStream::from(err.to_compile_error());
- }
- }
- };
- ($tokenstream:ident with $parser:path) => {
- match $crate::parse::Parser::parse($parser, $tokenstream) {
- $crate::__private::Ok(data) => data,
- $crate::__private::Err(err) => {
- return $crate::__private::TokenStream::from(err.to_compile_error());
- }
- }
- };
- ($tokenstream:ident) => {
- $crate::parse_macro_input!($tokenstream as _)
- };
-}
diff --git a/deps/crates/vendor/syn-v2/src/parse_quote.rs b/deps/crates/vendor/syn-v2/src/parse_quote.rs
deleted file mode 100644
index 3e96b2ed944..00000000000
--- a/deps/crates/vendor/syn-v2/src/parse_quote.rs
+++ /dev/null
@@ -1,244 +0,0 @@
-/// Quasi-quotation macro that accepts input like the [`quote!`] macro but uses
-/// type inference to figure out a return type for those tokens.
-///
-/// [`quote!`]: https://docs.rs/quote/1.0/quote/index.html
-///
-/// The return type can be any syntax tree node that implements the [`Parse`]
-/// trait.
-///
-/// [`Parse`]: crate::parse::Parse
-///
-/// ```
-/// use quote::quote;
-/// use syn::{parse_quote, Stmt};
-///
-/// fn main() {
-/// let name = quote!(v);
-/// let ty = quote!(u8);
-///
-/// let stmt: Stmt = parse_quote! {
-/// let #name: #ty = Default::default();
-/// };
-///
-/// println!("{:#?}", stmt);
-/// }
-/// ```
-///
-/// *This macro is available only if Syn is built with both the `"parsing"` and
-/// `"printing"` features.*
-///
-/// # Example
-///
-/// The following helper function adds a bound `T: HeapSize` to every type
-/// parameter `T` in the input generics.
-///
-/// ```
-/// use syn::{parse_quote, Generics, GenericParam};
-///
-/// // Add a bound `T: HeapSize` to every type parameter T.
-/// fn add_trait_bounds(mut generics: Generics) -> Generics {
-/// for param in &mut generics.params {
-/// if let GenericParam::Type(type_param) = param {
-/// type_param.bounds.push(parse_quote!(HeapSize));
-/// }
-/// }
-/// generics
-/// }
-/// ```
-///
-/// # Special cases
-///
-/// This macro can parse the following additional types as a special case even
-/// though they do not implement the `Parse` trait.
-///
-/// - [`Attribute`] — parses one attribute, allowing either outer like `#[...]`
-/// or inner like `#![...]`
-/// - [`Vec<Attribute>`] — parses multiple attributes, including mixed kinds in
-/// any order
-/// - [`Punctuated<T, P>`] — parses zero or more `T` separated by punctuation
-/// `P` with optional trailing punctuation
-/// - [`Vec<Arm>`] — parses arms separated by optional commas according to the
-/// same grammar as the inside of a `match` expression
-/// - [`Vec<Stmt>`] — parses the same as `Block::parse_within`
-/// - [`Pat`], [`Box<Pat>`] — parses the same as
-/// `Pat::parse_multi_with_leading_vert`
-/// - [`Field`] — parses a named or unnamed struct field
-///
-/// [`Vec<Attribute>`]: Attribute
-/// [`Vec<Arm>`]: Arm
-/// [`Vec<Stmt>`]: Block::parse_within
-/// [`Pat`]: Pat::parse_multi_with_leading_vert
-/// [`Box<Pat>`]: Pat::parse_multi_with_leading_vert
-///
-/// # Panics
-///
-/// Panics if the tokens fail to parse as the expected syntax tree type. The
-/// caller is responsible for ensuring that the input tokens are syntactically
-/// valid.
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "printing"))))]
-#[macro_export]
-macro_rules! parse_quote {
- ($($tt:tt)*) => {
- $crate::__private::parse_quote($crate::__private::quote::quote!($($tt)*))
- };
-}
-
-/// This macro is [`parse_quote!`] + [`quote_spanned!`][quote::quote_spanned].
-///
-/// Please refer to each of their documentation.
-///
-/// # Example
-///
-/// ```
-/// use quote::{quote, quote_spanned};
-/// use syn::spanned::Spanned;
-/// use syn::{parse_quote_spanned, ReturnType, Signature};
-///
-/// // Changes `fn()` to `fn() -> Pin<Box<dyn Future<Output = ()>>>`,
-/// // and `fn() -> T` to `fn() -> Pin<Box<dyn Future<Output = T>>>`,
-/// // without introducing any call_site() spans.
-/// fn make_ret_pinned_future(sig: &mut Signature) {
-/// let ret = match &sig.output {
-/// ReturnType::Default => quote_spanned!(sig.paren_token.span=> ()),
-/// ReturnType::Type(_, ret) => quote!(#ret),
-/// };
-/// sig.output = parse_quote_spanned! {ret.span()=>
-/// -> ::core::pin::Pin<::alloc::boxed::Box<dyn ::core::future::Future<Output = #ret>>>
-/// };
-/// }
-/// ```
-#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "printing"))))]
-#[macro_export]
-macro_rules! parse_quote_spanned {
- ($span:expr=> $($tt:tt)*) => {
- $crate::__private::parse_quote($crate::__private::quote::quote_spanned!($span=> $($tt)*))
- };
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Can parse any type that implements Parse.
-
-use crate::error::Result;
-use crate::parse::{Parse, ParseStream, Parser};
-#[cfg(feature = "full")]
-use alloc::boxed::Box;
-#[cfg(any(feature = "full", feature = "derive"))]
-use alloc::vec::Vec;
-use proc_macro2::TokenStream;
-
-// Not public API.
-#[doc(hidden)]
-#[track_caller]
-pub fn parse<T: ParseQuote>(token_stream: TokenStream) -> T {
- let parser = T::parse;
- match parser.parse2(token_stream) {
- Ok(t) => t,
- Err(err) => panic!("{}", err),
- }
-}
-
-#[doc(hidden)]
-pub trait ParseQuote: Sized {
- fn parse(input: ParseStream) -> Result<Self>;
-}
-
-impl<T: Parse> ParseQuote for T {
- fn parse(input: ParseStream) -> Result<Self> {
- <T as Parse>::parse(input)
- }
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Any other types that we want `parse_quote!` to be able to parse.
-
-use crate::punctuated::Punctuated;
-#[cfg(any(feature = "full", feature = "derive"))]
-use crate::{attr, Attribute, Field, FieldMutability, Ident, Type, Visibility};
-#[cfg(feature = "full")]
-use crate::{Arm, Block, Pat, Stmt};
-
-#[cfg(any(feature = "full", feature = "derive"))]
-impl ParseQuote for Attribute {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![#]) && input.peek2(Token![!]) {
- attr::parsing::single_parse_inner(input)
- } else {
- attr::parsing::single_parse_outer(input)
- }
- }
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-impl ParseQuote for Vec<Attribute> {
- fn parse(input: ParseStream) -> Result<Self> {
- let mut attrs = Vec::new();
- while !input.is_empty() {
- attrs.push(ParseQuote::parse(input)?);
- }
- Ok(attrs)
- }
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-impl ParseQuote for Field {
- fn parse(input: ParseStream) -> Result<Self> {
- let attrs = input.call(Attribute::parse_outer)?;
- let vis: Visibility = input.parse()?;
-
- let ident: Option<Ident>;
- let colon_token: Option<Token![:]>;
- let is_named = input.peek(Ident) && input.peek2(Token![:]) && !input.peek2(Token![::]);
- if is_named {
- ident = Some(input.parse()?);
- colon_token = Some(input.parse()?);
- } else {
- ident = None;
- colon_token = None;
- }
-
- let ty: Type = input.parse()?;
-
- Ok(Field {
- attrs,
- vis,
- mutability: FieldMutability::None,
- ident,
- colon_token,
- ty,
- })
- }
-}
-
-#[cfg(feature = "full")]
-impl ParseQuote for Pat {
- fn parse(input: ParseStream) -> Result<Self> {
- Pat::parse_multi_with_leading_vert(input)
- }
-}
-
-#[cfg(feature = "full")]
-impl ParseQuote for Box<Pat> {
- fn parse(input: ParseStream) -> Result<Self> {
- <Pat as ParseQuote>::parse(input).map(Box::new)
- }
-}
-
-impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> {
- fn parse(input: ParseStream) -> Result<Self> {
- Self::parse_terminated(input)
- }
-}
-
-#[cfg(feature = "full")]
-impl ParseQuote for Vec<Stmt> {
- fn parse(input: ParseStream) -> Result<Self> {
- Block::parse_within(input)
- }
-}
-
-#[cfg(feature = "full")]
-impl ParseQuote for Vec<Arm> {
- fn parse(input: ParseStream) -> Result<Self> {
- Arm::parse_multiple(input)
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/pat.rs b/deps/crates/vendor/syn-v2/src/pat.rs
deleted file mode 100644
index e0a130913ad..00000000000
--- a/deps/crates/vendor/syn-v2/src/pat.rs
+++ /dev/null
@@ -1,915 +0,0 @@
-use crate::attr::Attribute;
-use crate::expr::Member;
-use crate::ident::Ident;
-use crate::path::{Path, QSelf};
-use crate::punctuated::Punctuated;
-use crate::token;
-use crate::ty::Type;
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-use proc_macro2::TokenStream;
-
-pub use crate::expr::{
- ExprConst as PatConst, ExprLit as PatLit, ExprMacro as PatMacro, ExprPath as PatPath,
- ExprRange as PatRange,
-};
-
-ast_enum_of_structs! {
- /// A pattern in a local binding, function signature, match expression, or
- /// various other places.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- #[non_exhaustive]
- pub enum Pat {
- /// A const block: `const { ... }`.
- Const(PatConst),
-
- /// A pattern that binds a new variable: `ref mut binding @ SUBPATTERN`.
- Ident(PatIdent),
-
- /// A literal pattern: `0`.
- Lit(PatLit),
-
- /// A macro in pattern position.
- Macro(PatMacro),
-
- /// A pattern that matches any one of a set of cases.
- Or(PatOr),
-
- /// A parenthesized pattern: `(A | B)`.
- Paren(PatParen),
-
- /// A path pattern like `Color::Red`, optionally qualified with a
- /// self-type.
- ///
- /// Unqualified path patterns can legally refer to variants, structs,
- /// constants or associated constants. Qualified path patterns like
- /// `<A>::B::C` and `<A as Trait>::B::C` can only legally refer to
- /// associated constants.
- Path(PatPath),
-
- /// A range pattern: `1..=2`.
- Range(PatRange),
-
- /// A reference pattern: `&mut var`.
- Reference(PatReference),
-
- /// The dots in a tuple or slice pattern: `[0, 1, ..]`.
- Rest(PatRest),
-
- /// A dynamically sized slice pattern: `[a, b, ref i @ .., y, z]`.
- Slice(PatSlice),
-
- /// A struct or struct variant pattern: `Variant { x, y, .. }`.
- Struct(PatStruct),
-
- /// A tuple pattern: `(a, b)`.
- Tuple(PatTuple),
-
- /// A tuple struct or tuple variant pattern: `Variant(x, y, .., z)`.
- TupleStruct(PatTupleStruct),
-
- /// A type ascription pattern: `foo: f64`.
- Type(PatType),
-
- /// Tokens in pattern position not interpreted by Syn.
- Verbatim(TokenStream),
-
- /// A pattern that matches any value: `_`.
- Wild(PatWild),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match pat {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // Pat::Box(pat) => {...}
- // Pat::Ident(pat) => {...}
- // ...
- // Pat::Wild(pat) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// A pattern that binds a new variable: `ref mut binding @ SUBPATTERN`.
- ///
- /// It may also be a unit struct or struct variant (e.g. `None`), or a
- /// constant; these cannot be distinguished syntactically.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatIdent {
- pub attrs: Vec<Attribute>,
- pub by_ref: Option<Token![ref]>,
- pub mutability: Option<Token![mut]>,
- pub ident: Ident,
- pub subpat: Option<(Token![@], Box<Pat>)>,
- }
-}
-
-ast_struct! {
- /// A pattern that matches any one of a set of cases.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatOr {
- pub attrs: Vec<Attribute>,
- pub leading_vert: Option<Token![|]>,
- pub cases: Punctuated<Pat, Token![|]>,
- }
-}
-
-ast_struct! {
- /// A parenthesized pattern: `(A | B)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatParen {
- pub attrs: Vec<Attribute>,
- pub paren_token: token::Paren,
- pub pat: Box<Pat>,
- }
-}
-
-ast_struct! {
- /// A reference pattern: `&mut var`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatReference {
- pub attrs: Vec<Attribute>,
- pub and_token: Token![&],
- pub mutability: Option<Token![mut]>,
- pub pat: Box<Pat>,
- }
-}
-
-ast_struct! {
- /// The dots in a tuple or slice pattern: `[0, 1, ..]`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatRest {
- pub attrs: Vec<Attribute>,
- pub dot2_token: Token![..],
- }
-}
-
-ast_struct! {
- /// A dynamically sized slice pattern: `[a, b, ref i @ .., y, z]`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatSlice {
- pub attrs: Vec<Attribute>,
- pub bracket_token: token::Bracket,
- pub elems: Punctuated<Pat, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A struct or struct variant pattern: `Variant { x, y, .. }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatStruct {
- pub attrs: Vec<Attribute>,
- pub qself: Option<QSelf>,
- pub path: Path,
- pub brace_token: token::Brace,
- pub fields: Punctuated<FieldPat, Token![,]>,
- pub rest: Option<PatRest>,
- }
-}
-
-ast_struct! {
- /// A tuple pattern: `(a, b)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatTuple {
- pub attrs: Vec<Attribute>,
- pub paren_token: token::Paren,
- pub elems: Punctuated<Pat, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A tuple struct or tuple variant pattern: `Variant(x, y, .., z)`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatTupleStruct {
- pub attrs: Vec<Attribute>,
- pub qself: Option<QSelf>,
- pub path: Path,
- pub paren_token: token::Paren,
- pub elems: Punctuated<Pat, Token![,]>,
- }
-}
-
-ast_struct! {
- /// A type ascription pattern: `foo: f64`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatType {
- pub attrs: Vec<Attribute>,
- pub pat: Box<Pat>,
- pub colon_token: Token![:],
- pub ty: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A pattern that matches any value: `_`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct PatWild {
- pub attrs: Vec<Attribute>,
- pub underscore_token: Token![_],
- }
-}
-
-ast_struct! {
- /// A single field in a struct pattern.
- ///
- /// Patterns like the fields of Foo `{ x, ref y, ref mut z }` are treated
- /// the same as `x: x, y: ref y, z: ref mut z` but there is no colon token.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct FieldPat {
- pub attrs: Vec<Attribute>,
- pub member: Member,
- pub colon_token: Option<Token![:]>,
- pub pat: Box<Pat>,
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::buffer::Cursor;
- use crate::error::{self, Result};
- use crate::expr::{
- Expr, ExprConst, ExprLit, ExprMacro, ExprPath, ExprRange, Member, RangeLimits,
- };
- use crate::ext::IdentExt as _;
- use crate::ident::Ident;
- use crate::lit::Lit;
- use crate::mac::{self, Macro};
- use crate::parse::{Parse, ParseStream};
- use crate::pat::{
- FieldPat, Pat, PatIdent, PatOr, PatParen, PatReference, PatRest, PatSlice, PatStruct,
- PatTuple, PatTupleStruct, PatType, PatWild,
- };
- use crate::path::{self, Path, QSelf};
- use crate::punctuated::Punctuated;
- use crate::stmt::Block;
- use crate::token;
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::vec::Vec;
- use proc_macro2::TokenStream;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Pat {
- /// Parse a pattern that does _not_ involve `|` at the top level.
- ///
- /// This parser matches the behavior of the `$:pat_param` macro_rules
- /// matcher, and on editions prior to Rust 2021, the behavior of
- /// `$:pat`.
- ///
- /// In Rust syntax, some examples of where this syntax would occur are
- /// in the argument pattern of functions and closures. Patterns using
- /// `|` are not allowed to occur in these positions.
- ///
- /// ```compile_fail
- /// fn f(Some(_) | None: Option<T>) {
- /// let _ = |Some(_) | None: Option<T>| {};
- /// // ^^^^^^^^^^^^^^^^^^^^^^^^^??? :(
- /// }
- /// ```
- ///
- /// ```console
- /// error: top-level or-patterns are not allowed in function parameters
- /// --> src/main.rs:1:6
- /// |
- /// 1 | fn f(Some(_) | None: Option<T>) {
- /// | ^^^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(Some(_) | None)`
- /// ```
- pub fn parse_single(input: ParseStream) -> Result<Self> {
- let begin = input.cursor();
- let lookahead = input.lookahead1();
- if lookahead.peek(Ident)
- && (input.peek2(Token![::])
- || input.peek2(Token![!])
- || input.peek2(token::Brace)
- || input.peek2(token::Paren)
- || input.peek2(Token![..]))
- || input.peek(Token![self]) && input.peek2(Token![::])
- || lookahead.peek(Token![::])
- || lookahead.peek(Token![<])
- || input.peek(Token![Self])
- || input.peek(Token![super])
- || input.peek(Token![crate])
- {
- pat_path_or_macro_or_struct_or_range(input)
- } else if lookahead.peek(Token![_]) {
- input.call(pat_wild).map(Pat::Wild)
- } else if input.peek(Token![box]) {
- pat_box(begin, input)
- } else if input.peek(Token![-]) || lookahead.peek(Lit) || lookahead.peek(Token![const])
- {
- pat_lit_or_range(input)
- } else if lookahead.peek(Token![ref])
- || lookahead.peek(Token![mut])
- || input.peek(Token![self])
- || input.peek(Ident)
- {
- input.call(pat_ident).map(Pat::Ident)
- } else if lookahead.peek(Token![&]) {
- input.call(pat_reference).map(Pat::Reference)
- } else if lookahead.peek(token::Paren) {
- input.call(pat_paren_or_tuple)
- } else if lookahead.peek(token::Bracket) {
- input.call(pat_slice).map(Pat::Slice)
- } else if lookahead.peek(Token![..]) && !input.peek(Token![...]) {
- pat_range_half_open(input)
- } else if lookahead.peek(Token![const]) {
- input.call(pat_const).map(Pat::Verbatim)
- } else {
- Err(lookahead.error())
- }
- }
-
- /// Parse a pattern, possibly involving `|`, but not a leading `|`.
- pub fn parse_multi(input: ParseStream) -> Result<Self> {
- multi_pat_impl(input, None)
- }
-
- /// Parse a pattern, possibly involving `|`, possibly including a
- /// leading `|`.
- ///
- /// This parser matches the behavior of the Rust 2021 edition's `$:pat`
- /// macro_rules matcher.
- ///
- /// In Rust syntax, an example of where this syntax would occur is in
- /// the pattern of a `match` arm, where the language permits an optional
- /// leading `|`, although it is not idiomatic to write one there in
- /// handwritten code.
- ///
- /// ```
- /// # let wat = None;
- /// match wat {
- /// | None | Some(false) => {}
- /// | Some(true) => {}
- /// }
- /// ```
- ///
- /// The compiler accepts it only to facilitate some situations in
- /// macro-generated code where a macro author might need to write:
- ///
- /// ```
- /// # macro_rules! doc {
- /// # ($value:expr, ($($conditions1:pat),*), ($($conditions2:pat),*), $then:expr) => {
- /// match $value {
- /// $(| $conditions1)* $(| $conditions2)* => $then
- /// }
- /// # };
- /// # }
- /// #
- /// # doc!(true, (true), (false), {});
- /// # doc!(true, (), (true, false), {});
- /// # doc!(true, (true, false), (), {});
- /// ```
- ///
- /// Expressing the same thing correctly in the case that either one (but
- /// not both) of `$conditions1` and `$conditions2` might be empty,
- /// without leading `|`, is complex.
- ///
- /// Use [`Pat::parse_multi`] instead if you are not intending to support
- /// macro-generated macro input.
- pub fn parse_multi_with_leading_vert(input: ParseStream) -> Result<Self> {
- let leading_vert: Option<Token![|]> = input.parse()?;
- multi_pat_impl(input, leading_vert)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for PatType {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(PatType {
- attrs: Vec::new(),
- pat: Box::new(Pat::parse_single(input)?),
- colon_token: input.parse()?,
- ty: input.parse()?,
- })
- }
- }
-
- fn multi_pat_impl(input: ParseStream, leading_vert: Option<Token![|]>) -> Result<Pat> {
- let mut pat = Pat::parse_single(input)?;
- if leading_vert.is_some()
- || input.peek(Token![|]) && !input.peek(Token![||]) && !input.peek(Token![|=])
- {
- let mut cases = Punctuated::new();
- cases.push_value(pat);
- while input.peek(Token![|]) && !input.peek(Token![||]) && !input.peek(Token![|=]) {
- let punct = input.parse()?;
- cases.push_punct(punct);
- let pat = Pat::parse_single(input)?;
- cases.push_value(pat);
- }
- pat = Pat::Or(PatOr { attrs: Vec::new(), leading_vert, cases });
- }
- Ok(pat)
- }
-
- fn pat_path_or_macro_or_struct_or_range(input: ParseStream) -> Result<Pat> {
- let expr_style = true;
- let (qself, path) = path::parsing::qpath(input, expr_style)?;
-
- if qself.is_none()
- && input.peek(Token![!])
- && !input.peek(Token![!=])
- && path.is_mod_style()
- {
- let bang_token: Token![!] = input.parse()?;
- let (delimiter, tokens) = mac::parse_delimiter(input)?;
- return Ok(Pat::Macro(ExprMacro {
- attrs: Vec::new(),
- mac: Macro { path, bang_token, delimiter, tokens },
- }));
- }
-
- if input.peek(token::Brace) {
- pat_struct(input, qself, path).map(Pat::Struct)
- } else if input.peek(token::Paren) {
- pat_tuple_struct(input, qself, path).map(Pat::TupleStruct)
- } else if input.peek(Token![..]) {
- pat_range(input, qself, path)
- } else {
- Ok(Pat::Path(ExprPath { attrs: Vec::new(), qself, path }))
- }
- }
-
- fn pat_wild(input: ParseStream) -> Result<PatWild> {
- Ok(PatWild { attrs: Vec::new(), underscore_token: input.parse()? })
- }
-
- fn pat_box(begin: Cursor, input: ParseStream) -> Result<Pat> {
- input.parse::<Token![box]>()?;
- Pat::parse_single(input)?;
- Ok(Pat::Verbatim(verbatim::between(begin, input.cursor())))
- }
-
- fn pat_ident(input: ParseStream) -> Result<PatIdent> {
- Ok(PatIdent {
- attrs: Vec::new(),
- by_ref: input.parse()?,
- mutability: input.parse()?,
- ident: {
- if input.peek(Token![self]) {
- input.call(Ident::parse_any)?
- } else {
- input.parse()?
- }
- },
- subpat: {
- if input.peek(Token![@]) {
- let at_token: Token![@] = input.parse()?;
- let subpat = Pat::parse_single(input)?;
- Some((at_token, Box::new(subpat)))
- } else {
- None
- }
- },
- })
- }
-
- fn pat_tuple_struct(
- input: ParseStream,
- qself: Option<QSelf>,
- path: Path,
- ) -> Result<PatTupleStruct> {
- let content;
- let paren_token = parenthesized!(content in input);
-
- let mut elems = Punctuated::new();
- while !content.is_empty() {
- let value = Pat::parse_multi_with_leading_vert(&content)?;
- elems.push_value(value);
- if content.is_empty() {
- break;
- }
- let punct = content.parse()?;
- elems.push_punct(punct);
- }
-
- Ok(PatTupleStruct { attrs: Vec::new(), qself, path, paren_token, elems })
- }
-
- fn pat_struct(input: ParseStream, qself: Option<QSelf>, path: Path) -> Result<PatStruct> {
- let content;
- let brace_token = braced!(content in input);
-
- let mut fields = Punctuated::new();
- let mut rest = None;
- while !content.is_empty() {
- let attrs = content.call(Attribute::parse_outer)?;
- if content.peek(Token![..]) {
- rest = Some(PatRest { attrs, dot2_token: content.parse()? });
- break;
- }
- let mut value = content.call(field_pat)?;
- value.attrs = attrs;
- fields.push_value(value);
- if content.is_empty() {
- break;
- }
- let punct: Token![,] = content.parse()?;
- fields.push_punct(punct);
- }
-
- Ok(PatStruct { attrs: Vec::new(), qself, path, brace_token, fields, rest })
- }
-
- fn field_pat(input: ParseStream) -> Result<FieldPat> {
- let begin = input.cursor();
- let boxed: Option<Token![box]> = input.parse()?;
- let by_ref: Option<Token![ref]> = input.parse()?;
- let mutability: Option<Token![mut]> = input.parse()?;
-
- let member = if boxed.is_some() || by_ref.is_some() || mutability.is_some() {
- input.parse().map(Member::Named)
- } else {
- input.parse()
- }?;
-
- if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:])
- || !member.is_named()
- {
- return Ok(FieldPat {
- attrs: Vec::new(),
- member,
- colon_token: Some(input.parse()?),
- pat: Box::new(Pat::parse_multi_with_leading_vert(input)?),
- });
- }
-
- let ident = match member {
- Member::Named(ident) => ident,
- Member::Unnamed(_) => unreachable!(),
- };
-
- let pat = if boxed.is_some() {
- Pat::Verbatim(verbatim::between(begin, input.cursor()))
- } else {
- Pat::Ident(PatIdent {
- attrs: Vec::new(),
- by_ref,
- mutability,
- ident: ident.clone(),
- subpat: None,
- })
- };
-
- Ok(FieldPat {
- attrs: Vec::new(),
- member: Member::Named(ident),
- colon_token: None,
- pat: Box::new(pat),
- })
- }
-
- fn pat_range(input: ParseStream, qself: Option<QSelf>, path: Path) -> Result<Pat> {
- let limits = RangeLimits::parse_obsolete(input)?;
- let end = input.call(pat_range_bound)?;
- if let (RangeLimits::Closed(_), None) = (&limits, &end) {
- return Err(input.error("expected range upper bound"));
- }
- Ok(Pat::Range(ExprRange {
- attrs: Vec::new(),
- start: Some(Box::new(Expr::Path(ExprPath { attrs: Vec::new(), qself, path }))),
- limits,
- end: end.map(PatRangeBound::into_expr),
- }))
- }
-
- fn pat_range_half_open(input: ParseStream) -> Result<Pat> {
- let limits: RangeLimits = input.parse()?;
- let end = input.call(pat_range_bound)?;
- if end.is_some() {
- Ok(Pat::Range(ExprRange {
- attrs: Vec::new(),
- start: None,
- limits,
- end: end.map(PatRangeBound::into_expr),
- }))
- } else {
- match limits {
- RangeLimits::HalfOpen(dot2_token) => {
- Ok(Pat::Rest(PatRest { attrs: Vec::new(), dot2_token }))
- }
- RangeLimits::Closed(_) => Err(input.error("expected range upper bound")),
- }
- }
- }
-
- fn pat_paren_or_tuple(input: ParseStream) -> Result<Pat> {
- let content;
- let paren_token = parenthesized!(content in input);
-
- let mut elems = Punctuated::new();
- while !content.is_empty() {
- let value = Pat::parse_multi_with_leading_vert(&content)?;
- if content.is_empty() {
- if elems.is_empty() && !matches!(value, Pat::Rest(_)) {
- return Ok(Pat::Paren(PatParen {
- attrs: Vec::new(),
- paren_token,
- pat: Box::new(value),
- }));
- }
- elems.push_value(value);
- break;
- }
- elems.push_value(value);
- let punct = content.parse()?;
- elems.push_punct(punct);
- }
-
- Ok(Pat::Tuple(PatTuple { attrs: Vec::new(), paren_token, elems }))
- }
-
- fn pat_reference(input: ParseStream) -> Result<PatReference> {
- Ok(PatReference {
- attrs: Vec::new(),
- and_token: input.parse()?,
- mutability: input.parse()?,
- pat: Box::new(Pat::parse_single(input)?),
- })
- }
-
- fn pat_lit_or_range(input: ParseStream) -> Result<Pat> {
- let start = input.call(pat_range_bound)?.unwrap();
- if input.peek(Token![..]) {
- let limits = RangeLimits::parse_obsolete(input)?;
- let end = input.call(pat_range_bound)?;
- if let (RangeLimits::Closed(_), None) = (&limits, &end) {
- return Err(input.error("expected range upper bound"));
- }
- Ok(Pat::Range(ExprRange {
- attrs: Vec::new(),
- start: Some(start.into_expr()),
- limits,
- end: end.map(PatRangeBound::into_expr),
- }))
- } else {
- Ok(start.into_pat())
- }
- }
-
- // Patterns that can appear on either side of a range pattern.
- enum PatRangeBound {
- Const(ExprConst),
- Lit(ExprLit),
- Path(ExprPath),
- }
-
- impl PatRangeBound {
- fn into_expr(self) -> Box<Expr> {
- Box::new(match self {
- PatRangeBound::Const(pat) => Expr::Const(pat),
- PatRangeBound::Lit(pat) => Expr::Lit(pat),
- PatRangeBound::Path(pat) => Expr::Path(pat),
- })
- }
-
- fn into_pat(self) -> Pat {
- match self {
- PatRangeBound::Const(pat) => Pat::Const(pat),
- PatRangeBound::Lit(pat) => Pat::Lit(pat),
- PatRangeBound::Path(pat) => Pat::Path(pat),
- }
- }
- }
-
- fn pat_range_bound(input: ParseStream) -> Result<Option<PatRangeBound>> {
- if input.is_empty()
- || input.peek(Token![|])
- || input.peek(Token![=])
- || input.peek(Token![:]) && !input.peek(Token![::])
- || input.peek(Token![,])
- || input.peek(Token![;])
- || input.peek(Token![if])
- {
- return Ok(None);
- }
-
- let lookahead = input.lookahead1();
- let expr = if lookahead.peek(Lit) {
- PatRangeBound::Lit(input.parse()?)
- } else if lookahead.peek(Ident)
- || lookahead.peek(Token![::])
- || lookahead.peek(Token![<])
- || lookahead.peek(Token![self])
- || lookahead.peek(Token![Self])
- || lookahead.peek(Token![super])
- || lookahead.peek(Token![crate])
- {
- PatRangeBound::Path(input.parse()?)
- } else if lookahead.peek(Token![const]) {
- PatRangeBound::Const(input.parse()?)
- } else {
- return Err(lookahead.error());
- };
-
- Ok(Some(expr))
- }
-
- fn pat_slice(input: ParseStream) -> Result<PatSlice> {
- let content;
- let bracket_token = bracketed!(content in input);
-
- let mut elems = Punctuated::new();
- while !content.is_empty() {
- let value = Pat::parse_multi_with_leading_vert(&content)?;
- match value {
- Pat::Range(pat) if pat.start.is_none() || pat.end.is_none() => {
- let (start, end) = match pat.limits {
- RangeLimits::HalfOpen(dot_dot) => (dot_dot.spans[0], dot_dot.spans[1]),
- RangeLimits::Closed(dot_dot_eq) => {
- (dot_dot_eq.spans[0], dot_dot_eq.spans[2])
- }
- };
- let msg = "range pattern is not allowed unparenthesized inside slice pattern";
- return Err(error::new2(start, end, msg));
- }
- _ => {}
- }
- elems.push_value(value);
- if content.is_empty() {
- break;
- }
- let punct = content.parse()?;
- elems.push_punct(punct);
- }
-
- Ok(PatSlice { attrs: Vec::new(), bracket_token, elems })
- }
-
- fn pat_const(input: ParseStream) -> Result<TokenStream> {
- let begin = input.cursor();
- input.parse::<Token![const]>()?;
-
- let content;
- braced!(content in input);
- content.call(Attribute::parse_inner)?;
- content.call(Block::parse_within)?;
-
- Ok(verbatim::between(begin, input.cursor()))
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::FilterAttrs;
- use crate::pat::{
- FieldPat, Pat, PatIdent, PatOr, PatParen, PatReference, PatRest, PatSlice, PatStruct,
- PatTuple, PatTupleStruct, PatType, PatWild,
- };
- use crate::path;
- use crate::path::printing::PathStyle;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatIdent {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.by_ref.to_tokens(tokens);
- self.mutability.to_tokens(tokens);
- self.ident.to_tokens(tokens);
- if let Some((at_token, subpat)) = &self.subpat {
- at_token.to_tokens(tokens);
- subpat.to_tokens(tokens);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatOr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.leading_vert.to_tokens(tokens);
- self.cases.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatParen {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.paren_token.surround(tokens, |tokens| {
- self.pat.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatReference {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.and_token.to_tokens(tokens);
- self.mutability.to_tokens(tokens);
- self.pat.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatRest {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.dot2_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatSlice {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.bracket_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatStruct {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::Expr);
- self.brace_token.surround(tokens, |tokens| {
- self.fields.to_tokens(tokens);
- // NOTE: We need a comma before the dot2 token if it is present.
- if !self.fields.empty_or_trailing() && self.rest.is_some() {
- <Token![,]>::default().to_tokens(tokens);
- }
- self.rest.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatTuple {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.paren_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- // If there is only one element, a trailing comma is needed to
- // distinguish PatTuple from PatParen, unless this is `(..)`
- // which is a tuple pattern even without comma.
- if self.elems.len() == 1
- && !self.elems.trailing_punct()
- && !matches!(self.elems[0], Pat::Rest { .. })
- {
- <Token![,]>::default().to_tokens(tokens);
- }
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatTupleStruct {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::Expr);
- self.paren_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.pat.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PatWild {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- self.underscore_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for FieldPat {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- if let Some(colon_token) = &self.colon_token {
- self.member.to_tokens(tokens);
- colon_token.to_tokens(tokens);
- }
- self.pat.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/path.rs b/deps/crates/vendor/syn-v2/src/path.rs
deleted file mode 100644
index 20fc484b242..00000000000
--- a/deps/crates/vendor/syn-v2/src/path.rs
+++ /dev/null
@@ -1,945 +0,0 @@
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-use crate::expr::Expr;
-use crate::generics::TypeParamBound;
-use crate::ident::Ident;
-use crate::lifetime::Lifetime;
-use crate::punctuated::Punctuated;
-use crate::token;
-use crate::ty::{ReturnType, Type};
-use alloc::boxed::Box;
-
-ast_struct! {
- /// A path at which a named item is exported (e.g. `alloc::collections::HashMap`).
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Path {
- pub leading_colon: Option<Token![::]>,
- pub segments: Punctuated<PathSegment, Token![::]>,
- }
-}
-
-impl<T> From<T> for Path
-where
- T: Into<PathSegment>,
-{
- fn from(segment: T) -> Self {
- let mut path = Path { leading_colon: None, segments: Punctuated::new() };
- path.segments.push_value(segment.into());
- path
- }
-}
-
-impl Path {
- /// Determines whether this is a path of length 1 equal to the given
- /// ident.
- ///
- /// For them to compare equal, it must be the case that:
- ///
- /// - the path has no leading colon,
- /// - the number of path segments is 1,
- /// - the first path segment has no angle bracketed or parenthesized path
- /// arguments, and
- /// - the ident of the first path segment is equal to the given one.
- ///
- /// # Example
- ///
- /// ```
- /// use proc_macro2::TokenStream;
- /// use syn::{Attribute, Error, Meta, Result};
- ///
- /// fn get_serde_meta_item(attr: &Attribute) -> Result<Option<&TokenStream>> {
- /// if attr.path().is_ident("serde") {
- /// match &attr.meta {
- /// Meta::List(meta) => Ok(Some(&meta.tokens)),
- /// bad => Err(Error::new_spanned(bad, "unrecognized attribute")),
- /// }
- /// } else {
- /// Ok(None)
- /// }
- /// }
- /// ```
- pub fn is_ident<I>(&self, ident: &I) -> bool
- where
- I: ?Sized,
- Ident: PartialEq<I>,
- {
- match self.get_ident() {
- Some(id) => id == ident,
- None => false,
- }
- }
-
- /// If this path consists of a single ident, returns the ident.
- ///
- /// A path is considered an ident if:
- ///
- /// - the path has no leading colon,
- /// - the number of path segments is 1, and
- /// - the first path segment has no angle bracketed or parenthesized path
- /// arguments.
- pub fn get_ident(&self) -> Option<&Ident> {
- if self.leading_colon.is_none()
- && self.segments.len() == 1
- && self.segments[0].arguments.is_none()
- {
- Some(&self.segments[0].ident)
- } else {
- None
- }
- }
-
- /// An error if this path is not a single ident, as defined in `get_ident`.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn require_ident(&self) -> Result<&Ident> {
- self.get_ident().ok_or_else(|| {
- crate::error::new2(
- self.segments.first().unwrap().ident.span(),
- self.segments.last().unwrap().ident.span(),
- "expected this path to be an identifier",
- )
- })
- }
-}
-
-ast_struct! {
- /// A segment of a path together with any path arguments on that segment.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct PathSegment {
- pub ident: Ident,
- pub arguments: PathArguments,
- }
-}
-
-impl<T> From<T> for PathSegment
-where
- T: Into<Ident>,
-{
- fn from(ident: T) -> Self {
- PathSegment { ident: ident.into(), arguments: PathArguments::None }
- }
-}
-
-ast_enum! {
- /// Angle bracketed or parenthesized arguments of a path segment.
- ///
- /// ## Angle bracketed
- ///
- /// The `<'a, T>` in `core::slice::iter<'a, T>`.
- ///
- /// ## Parenthesized
- ///
- /// The `(A, B) -> C` in `Fn(A, B) -> C`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum PathArguments {
- None,
- /// The `<'a, T>` in `core::slice::iter<'a, T>`.
- AngleBracketed(AngleBracketedGenericArguments),
- /// The `(A, B) -> C` in `Fn(A, B) -> C`.
- Parenthesized(ParenthesizedGenericArguments),
- }
-}
-
-impl Default for PathArguments {
- fn default() -> Self {
- PathArguments::None
- }
-}
-
-impl PathArguments {
- pub fn is_empty(&self) -> bool {
- match self {
- PathArguments::None => true,
- PathArguments::AngleBracketed(bracketed) => bracketed.args.is_empty(),
- PathArguments::Parenthesized(_) => false,
- }
- }
-
- pub fn is_none(&self) -> bool {
- match self {
- PathArguments::None => true,
- PathArguments::AngleBracketed(_) | PathArguments::Parenthesized(_) => false,
- }
- }
-}
-
-ast_enum! {
- /// An individual generic argument, like `'a`, `T`, or `Item = T`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum GenericArgument {
- /// A lifetime argument.
- Lifetime(Lifetime),
- /// A type argument.
- Type(Type),
- /// A const expression. Must be inside of a block.
- ///
- /// NOTE: Identity expressions are represented as Type arguments, as
- /// they are indistinguishable syntactically.
- Const(Expr),
- /// A binding (equality constraint) on an associated type: the `Item =
- /// u8` in `Iterator<Item = u8>`.
- AssocType(AssocType),
- /// An equality constraint on an associated constant: the `PANIC =
- /// false` in `Trait<PANIC = false>`.
- AssocConst(AssocConst),
- /// An associated type bound: `Iterator<Item: Display>`.
- Constraint(Constraint),
- }
-}
-
-ast_struct! {
- /// Angle bracketed arguments of a path segment: the `<K, V>` in `HashMap<K,
- /// V>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct AngleBracketedGenericArguments {
- pub colon2_token: Option<Token![::]>,
- pub lt_token: Token![<],
- pub args: Punctuated<GenericArgument, Token![,]>,
- pub gt_token: Token![>],
- }
-}
-
-ast_struct! {
- /// A binding (equality constraint) on an associated type: the `Item = u8`
- /// in `Iterator<Item = u8>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct AssocType {
- pub ident: Ident,
- pub generics: Option<AngleBracketedGenericArguments>,
- pub eq_token: Token![=],
- pub ty: Type,
- }
-}
-
-ast_struct! {
- /// An equality constraint on an associated constant: the `PANIC = false` in
- /// `Trait<PANIC = false>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct AssocConst {
- pub ident: Ident,
- pub generics: Option<AngleBracketedGenericArguments>,
- pub eq_token: Token![=],
- pub value: Expr,
- }
-}
-
-ast_struct! {
- /// An associated type bound: `Iterator<Item: Display>`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Constraint {
- pub ident: Ident,
- pub generics: Option<AngleBracketedGenericArguments>,
- pub colon_token: Token![:],
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- }
-}
-
-ast_struct! {
- /// Arguments of a function path segment: the `(A, B) -> C` in `Fn(A,B) ->
- /// C`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct ParenthesizedGenericArguments {
- pub paren_token: token::Paren,
- /// `(A, B)`
- pub inputs: Punctuated<Type, Token![,]>,
- /// `C`
- pub output: ReturnType,
- }
-}
-
-ast_struct! {
- /// The explicit Self type in a qualified path: the `T` in `<T as
- /// Display>::fmt`.
- ///
- /// The actual path, including the trait and the associated item, is stored
- /// separately. The `position` field represents the index of the associated
- /// item qualified with this Self type.
- ///
- /// ```text
- /// <Vec<T> as a::b::Trait>::AssociatedItem
- /// ^~~~~~ ~~~~~~~~~~~~~~^
- /// ty position = 3
- ///
- /// <Vec<T>>::AssociatedItem
- /// ^~~~~~ ^
- /// ty position = 0
- /// ```
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct QSelf {
- pub lt_token: Token![<],
- pub ty: Box<Type>,
- pub position: usize,
- pub as_token: Option<Token![as]>,
- pub gt_token: Token![>],
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::error::Result;
- #[cfg(feature = "full")]
- use crate::expr::ExprBlock;
- use crate::expr::{Expr, ExprPath};
- use crate::ext::IdentExt as _;
- use crate::generics::TypeParamBound;
- use crate::ident::Ident;
- use crate::lifetime::Lifetime;
- use crate::lit::Lit;
- use crate::parse::{Parse, ParseStream};
- use crate::path::{
- AngleBracketedGenericArguments, AssocConst, AssocType, Constraint, GenericArgument,
- ParenthesizedGenericArguments, Path, PathArguments, PathSegment, QSelf,
- };
- use crate::punctuated::Punctuated;
- use crate::token;
- use crate::ty::{ReturnType, Type};
- #[cfg(not(feature = "full"))]
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::vec::Vec;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Path {
- fn parse(input: ParseStream) -> Result<Self> {
- Self::parse_helper(input, false)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for GenericArgument {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Lifetime) && !input.peek2(Token![+]) {
- return Ok(GenericArgument::Lifetime(input.parse()?));
- }
-
- if input.peek(Lit) || input.peek(token::Brace) {
- return const_argument(input).map(GenericArgument::Const);
- }
-
- let mut argument: Type = input.parse()?;
-
- match argument {
- Type::Path(mut ty)
- if ty.qself.is_none()
- && ty.path.leading_colon.is_none()
- && ty.path.segments.len() == 1
- && match &ty.path.segments[0].arguments {
- PathArguments::None | PathArguments::AngleBracketed(_) => true,
- PathArguments::Parenthesized(_) => false,
- } =>
- {
- if let Some(eq_token) = input.parse::<Option<Token![=]>>()? {
- let segment = ty.path.segments.pop().unwrap().into_value();
- let ident = segment.ident;
- let generics = match segment.arguments {
- PathArguments::None => None,
- PathArguments::AngleBracketed(arguments) => Some(arguments),
- PathArguments::Parenthesized(_) => unreachable!(),
- };
- return if input.peek(Lit) || input.peek(token::Brace) {
- Ok(GenericArgument::AssocConst(AssocConst {
- ident,
- generics,
- eq_token,
- value: const_argument(input)?,
- }))
- } else {
- Ok(GenericArgument::AssocType(AssocType {
- ident,
- generics,
- eq_token,
- ty: input.parse()?,
- }))
- };
- }
-
- if let Some(colon_token) = input.parse::<Option<Token![:]>>()? {
- let segment = ty.path.segments.pop().unwrap().into_value();
- return Ok(GenericArgument::Constraint(Constraint {
- ident: segment.ident,
- generics: match segment.arguments {
- PathArguments::None => None,
- PathArguments::AngleBracketed(arguments) => Some(arguments),
- PathArguments::Parenthesized(_) => unreachable!(),
- },
- colon_token,
- bounds: {
- let mut bounds = Punctuated::new();
- loop {
- if input.peek(Token![,]) || input.peek(Token![>]) {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = true;
- TypeParamBound::parse_single(
- input,
- allow_precise_capture,
- allow_const,
- )?
- });
- if !input.peek(Token![+]) {
- break;
- }
- let punct: Token![+] = input.parse()?;
- bounds.push_punct(punct);
- }
- bounds
- },
- }));
- }
-
- argument = Type::Path(ty);
- }
- _ => {}
- }
-
- Ok(GenericArgument::Type(argument))
- }
- }
-
- pub(crate) fn const_argument(input: ParseStream) -> Result<Expr> {
- let lookahead = input.lookahead1();
-
- if input.peek(Lit) {
- let lit = input.parse()?;
- return Ok(Expr::Lit(lit));
- }
-
- if input.peek(Ident) {
- let ident: Ident = input.parse()?;
- return Ok(Expr::Path(ExprPath {
- attrs: Vec::new(),
- qself: None,
- path: Path::from(ident),
- }));
- }
-
- if input.peek(token::Brace) {
- #[cfg(feature = "full")]
- {
- let block: ExprBlock = input.parse()?;
- return Ok(Expr::Block(block));
- }
-
- #[cfg(not(feature = "full"))]
- {
- let begin = input.cursor();
- let content;
- braced!(content in input);
- content.parse::<Expr>()?;
- let verbatim = verbatim::between(begin, input.cursor());
- return Ok(Expr::Verbatim(verbatim));
- }
- }
-
- Err(lookahead.error())
- }
-
- impl AngleBracketedGenericArguments {
- /// Parse `::<…>` with mandatory leading `::`.
- ///
- /// The ordinary [`Parse`] impl for `AngleBracketedGenericArguments`
- /// parses optional leading `::`.
- #[cfg(feature = "full")]
- #[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "full"))))]
- pub fn parse_turbofish(input: ParseStream) -> Result<Self> {
- let colon2_token: Token![::] = input.parse()?;
- Self::do_parse(Some(colon2_token), input)
- }
-
- pub(crate) fn do_parse(
- colon2_token: Option<Token![::]>,
- input: ParseStream,
- ) -> Result<Self> {
- Ok(AngleBracketedGenericArguments {
- colon2_token,
- lt_token: input.parse()?,
- args: {
- let mut args = Punctuated::new();
- loop {
- if input.peek(Token![>]) {
- break;
- }
- let value: GenericArgument = input.parse()?;
- args.push_value(value);
- if input.peek(Token![>]) {
- break;
- }
- let punct: Token![,] = input.parse()?;
- args.push_punct(punct);
- }
- args
- },
- gt_token: input.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for AngleBracketedGenericArguments {
- fn parse(input: ParseStream) -> Result<Self> {
- let colon2_token: Option<Token![::]> = input.parse()?;
- Self::do_parse(colon2_token, input)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ParenthesizedGenericArguments {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(ParenthesizedGenericArguments {
- paren_token: parenthesized!(content in input),
- inputs: content.parse_terminated(Type::parse, Token![,])?,
- output: input.call(ReturnType::without_plus)?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for PathSegment {
- fn parse(input: ParseStream) -> Result<Self> {
- Self::parse_helper(input, false)
- }
- }
-
- impl PathSegment {
- fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> {
- if input.peek(Token![super])
- || input.peek(Token![self])
- || input.peek(Token![crate])
- || cfg!(feature = "full") && input.peek(Token![try])
- {
- let ident = input.call(Ident::parse_any)?;
- return Ok(PathSegment::from(ident));
- }
-
- let ident = if input.peek(Token![Self]) {
- input.call(Ident::parse_any)?
- } else {
- input.parse()?
- };
-
- if !expr_style
- && input.peek(Token![<])
- && !input.peek(Token![<=])
- && !input.peek(Token![<<=])
- || input.peek(Token![::]) && input.peek3(Token![<])
- {
- Ok(PathSegment { ident, arguments: PathArguments::AngleBracketed(input.parse()?) })
- } else {
- Ok(PathSegment::from(ident))
- }
- }
- }
-
- impl Path {
- /// Parse a `Path` containing no path arguments on any of its segments.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{Path, Result, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // A simplified single `use` statement like:
- /// //
- /// // use alloc::collections::HashMap;
- /// //
- /// // Note that generic parameters are not allowed in a `use` statement
- /// // so the following must not be accepted.
- /// //
- /// // use a::<b>::c;
- /// struct SingleUse {
- /// use_token: Token![use],
- /// path: Path,
- /// }
- ///
- /// impl Parse for SingleUse {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// Ok(SingleUse {
- /// use_token: input.parse()?,
- /// path: input.call(Path::parse_mod_style)?,
- /// })
- /// }
- /// }
- /// ```
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_mod_style(input: ParseStream) -> Result<Self> {
- Ok(Path {
- leading_colon: input.parse()?,
- segments: {
- let mut segments = Punctuated::new();
- loop {
- if !input.peek(Ident)
- && !input.peek(Token![super])
- && !input.peek(Token![self])
- && !input.peek(Token![Self])
- && !input.peek(Token![crate])
- {
- break;
- }
- let ident = Ident::parse_any(input)?;
- segments.push_value(PathSegment::from(ident));
- if !input.peek(Token![::]) {
- break;
- }
- let punct = input.parse()?;
- segments.push_punct(punct);
- }
- if segments.is_empty() {
- return Err(input.parse::<Ident>().unwrap_err());
- } else if segments.trailing_punct() {
- return Err(input.error("expected path segment after `::`"));
- }
- segments
- },
- })
- }
-
- pub(crate) fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> {
- let mut path = Path {
- leading_colon: input.parse()?,
- segments: {
- let mut segments = Punctuated::new();
- let value = PathSegment::parse_helper(input, expr_style)?;
- segments.push_value(value);
- segments
- },
- };
- Path::parse_rest(input, &mut path, expr_style)?;
- Ok(path)
- }
-
- pub(crate) fn parse_rest(
- input: ParseStream,
- path: &mut Self,
- expr_style: bool,
- ) -> Result<()> {
- while input.peek(Token![::]) && !input.peek3(token::Paren) {
- let punct: Token![::] = input.parse()?;
- path.segments.push_punct(punct);
- let value = PathSegment::parse_helper(input, expr_style)?;
- path.segments.push_value(value);
- }
- Ok(())
- }
-
- pub(crate) fn is_mod_style(&self) -> bool {
- self.segments.iter().all(|segment| segment.arguments.is_none())
- }
- }
-
- pub(crate) fn qpath(input: ParseStream, expr_style: bool) -> Result<(Option<QSelf>, Path)> {
- if input.peek(Token![<]) {
- let lt_token: Token![<] = input.parse()?;
- let this: Type = input.parse()?;
- let path = if input.peek(Token![as]) {
- let as_token: Token![as] = input.parse()?;
- let path: Path = input.parse()?;
- Some((as_token, path))
- } else {
- None
- };
- let gt_token: Token![>] = input.parse()?;
- let colon2_token: Token![::] = input.parse()?;
- let mut rest = Punctuated::new();
- loop {
- let path = PathSegment::parse_helper(input, expr_style)?;
- rest.push_value(path);
- if !input.peek(Token![::]) {
- break;
- }
- let punct: Token![::] = input.parse()?;
- rest.push_punct(punct);
- }
- let (position, as_token, path) = match path {
- Some((as_token, mut path)) => {
- let pos = path.segments.len();
- path.segments.push_punct(colon2_token);
- path.segments.extend(rest.into_pairs());
- (pos, Some(as_token), path)
- }
- None => {
- let path = Path { leading_colon: Some(colon2_token), segments: rest };
- (0, None, path)
- }
- };
- let qself = QSelf { lt_token, ty: Box::new(this), position, as_token, gt_token };
- Ok((Some(qself), path))
- } else {
- let path = Path::parse_helper(input, expr_style)?;
- Ok((None, path))
- }
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) mod printing {
- use crate::generics;
- use crate::path::{
- AngleBracketedGenericArguments, AssocConst, AssocType, Constraint, GenericArgument,
- ParenthesizedGenericArguments, Path, PathArguments, PathSegment, QSelf,
- };
- use crate::print::TokensOrDefault;
- #[cfg(feature = "parsing")]
- use crate::spanned::Spanned;
- use core::cmp;
- #[cfg(feature = "parsing")]
- use proc_macro2::Span;
- use proc_macro2::TokenStream;
- use quote::ToTokens;
-
- pub(crate) enum PathStyle {
- Expr,
- Mod,
- AsWritten,
- }
-
- impl Copy for PathStyle {}
-
- impl Clone for PathStyle {
- fn clone(&self) -> Self {
- *self
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Path {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_path(tokens, self, PathStyle::AsWritten);
- }
- }
-
- pub(crate) fn print_path(tokens: &mut TokenStream, path: &Path, style: PathStyle) {
- path.leading_colon.to_tokens(tokens);
- for segment in path.segments.pairs() {
- print_path_segment(tokens, segment.value(), style);
- segment.punct().to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PathSegment {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_path_segment(tokens, self, PathStyle::AsWritten);
- }
- }
-
- fn print_path_segment(tokens: &mut TokenStream, segment: &PathSegment, style: PathStyle) {
- segment.ident.to_tokens(tokens);
- print_path_arguments(tokens, &segment.arguments, style);
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for PathArguments {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_path_arguments(tokens, self, PathStyle::AsWritten);
- }
- }
-
- fn print_path_arguments(tokens: &mut TokenStream, arguments: &PathArguments, style: PathStyle) {
- match arguments {
- PathArguments::None => {}
- PathArguments::AngleBracketed(arguments) => {
- print_angle_bracketed_generic_arguments(tokens, arguments, style);
- }
- PathArguments::Parenthesized(arguments) => {
- print_parenthesized_generic_arguments(tokens, arguments, style);
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for GenericArgument {
- #[allow(clippy::match_same_arms)]
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- GenericArgument::Lifetime(lt) => lt.to_tokens(tokens),
- GenericArgument::Type(ty) => ty.to_tokens(tokens),
- GenericArgument::Const(expr) => {
- generics::printing::print_const_argument(expr, tokens);
- }
- GenericArgument::AssocType(assoc) => assoc.to_tokens(tokens),
- GenericArgument::AssocConst(assoc) => assoc.to_tokens(tokens),
- GenericArgument::Constraint(constraint) => constraint.to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for AngleBracketedGenericArguments {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_angle_bracketed_generic_arguments(tokens, self, PathStyle::AsWritten);
- }
- }
-
- pub(crate) fn print_angle_bracketed_generic_arguments(
- tokens: &mut TokenStream,
- arguments: &AngleBracketedGenericArguments,
- style: PathStyle,
- ) {
- if let PathStyle::Mod = style {
- return;
- }
-
- conditionally_print_turbofish(tokens, &arguments.colon2_token, style);
- arguments.lt_token.to_tokens(tokens);
-
- // Print lifetimes before types/consts/bindings, regardless of their
- // order in args.
- let mut trailing_or_empty = true;
- for param in arguments.args.pairs() {
- match param.value() {
- GenericArgument::Lifetime(_) => {
- param.to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- GenericArgument::Type(_)
- | GenericArgument::Const(_)
- | GenericArgument::AssocType(_)
- | GenericArgument::AssocConst(_)
- | GenericArgument::Constraint(_) => {}
- }
- }
- for param in arguments.args.pairs() {
- match param.value() {
- GenericArgument::Type(_)
- | GenericArgument::Const(_)
- | GenericArgument::AssocType(_)
- | GenericArgument::AssocConst(_)
- | GenericArgument::Constraint(_) => {
- if !trailing_or_empty {
- <Token![,]>::default().to_tokens(tokens);
- }
- param.to_tokens(tokens);
- trailing_or_empty = param.punct().is_some();
- }
- GenericArgument::Lifetime(_) => {}
- }
- }
-
- arguments.gt_token.to_tokens(tokens);
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for AssocType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- self.ty.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for AssocConst {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.eq_token.to_tokens(tokens);
- generics::printing::print_const_argument(&self.value, tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Constraint {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.ident.to_tokens(tokens);
- self.generics.to_tokens(tokens);
- self.colon_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ParenthesizedGenericArguments {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- print_parenthesized_generic_arguments(tokens, self, PathStyle::AsWritten);
- }
- }
-
- fn print_parenthesized_generic_arguments(
- tokens: &mut TokenStream,
- arguments: &ParenthesizedGenericArguments,
- style: PathStyle,
- ) {
- if let PathStyle::Mod = style {
- return;
- }
-
- conditionally_print_turbofish(tokens, &None, style);
- arguments.paren_token.surround(tokens, |tokens| {
- arguments.inputs.to_tokens(tokens);
- });
- arguments.output.to_tokens(tokens);
- }
-
- pub(crate) fn print_qpath(
- tokens: &mut TokenStream,
- qself: &Option<QSelf>,
- path: &Path,
- style: PathStyle,
- ) {
- let qself = match qself {
- Some(qself) => qself,
- None => {
- print_path(tokens, path, style);
- return;
- }
- };
- qself.lt_token.to_tokens(tokens);
- qself.ty.to_tokens(tokens);
-
- let pos = cmp::min(qself.position, path.segments.len());
- let mut segments = path.segments.pairs();
- if pos > 0 {
- TokensOrDefault(&qself.as_token).to_tokens(tokens);
- path.leading_colon.to_tokens(tokens);
- for (i, segment) in segments.by_ref().take(pos).enumerate() {
- print_path_segment(tokens, segment.value(), PathStyle::AsWritten);
- if i + 1 == pos {
- qself.gt_token.to_tokens(tokens);
- }
- segment.punct().to_tokens(tokens);
- }
- } else {
- qself.gt_token.to_tokens(tokens);
- path.leading_colon.to_tokens(tokens);
- }
- for segment in segments {
- print_path_segment(tokens, segment.value(), style);
- segment.punct().to_tokens(tokens);
- }
- }
-
- fn conditionally_print_turbofish(
- tokens: &mut TokenStream,
- colon2_token: &Option<Token![::]>,
- style: PathStyle,
- ) {
- match style {
- PathStyle::Expr => TokensOrDefault(colon2_token).to_tokens(tokens),
- PathStyle::Mod => unreachable!(),
- PathStyle::AsWritten => colon2_token.to_tokens(tokens),
- }
- }
-
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "printing"))))]
- impl Spanned for QSelf {
- fn span(&self) -> Span {
- struct QSelfDelimiters<'a>(&'a QSelf);
-
- impl<'a> ToTokens for QSelfDelimiters<'a> {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.0.lt_token.to_tokens(tokens);
- self.0.gt_token.to_tokens(tokens);
- }
- }
-
- QSelfDelimiters(self).span()
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/precedence.rs b/deps/crates/vendor/syn-v2/src/precedence.rs
deleted file mode 100644
index d225f7f4156..00000000000
--- a/deps/crates/vendor/syn-v2/src/precedence.rs
+++ /dev/null
@@ -1,210 +0,0 @@
-#[cfg(all(feature = "printing", feature = "full"))]
-use crate::attr::{AttrStyle, Attribute};
-#[cfg(feature = "printing")]
-use crate::expr::Expr;
-#[cfg(all(feature = "printing", feature = "full"))]
-use crate::expr::{
- ExprArray, ExprAsync, ExprAwait, ExprBlock, ExprBreak, ExprCall, ExprConst, ExprContinue,
- ExprField, ExprForLoop, ExprGroup, ExprIf, ExprIndex, ExprInfer, ExprLit, ExprLoop, ExprMacro,
- ExprMatch, ExprMethodCall, ExprParen, ExprPath, ExprRepeat, ExprReturn, ExprStruct, ExprTry,
- ExprTryBlock, ExprTuple, ExprUnsafe, ExprWhile, ExprYield,
-};
-use crate::op::BinOp;
-#[cfg(all(feature = "printing", feature = "full"))]
-use crate::ty::ReturnType;
-use core::cmp::Ordering;
-
-// Reference: https://doc.rust-lang.org/reference/expressions.html#expression-precedence
-pub(crate) enum Precedence {
- // return, break, closures
- Jump,
- // = += -= *= /= %= &= |= ^= <<= >>=
- Assign,
- // .. ..=
- Range,
- // ||
- Or,
- // &&
- And,
- // let
- #[cfg(feature = "printing")]
- Let,
- // == != < > <= >=
- Compare,
- // |
- BitOr,
- // ^
- BitXor,
- // &
- BitAnd,
- // << >>
- Shift,
- // + -
- Sum,
- // * / %
- Product,
- // as
- Cast,
- // unary - * ! & &mut
- #[cfg(feature = "printing")]
- Prefix,
- // paths, loops, function calls, array indexing, field expressions, method calls
- #[cfg(feature = "printing")]
- Unambiguous,
-}
-
-impl Precedence {
- pub(crate) const MIN: Self = Precedence::Jump;
-
- pub(crate) fn of_binop(op: &BinOp) -> Self {
- match op {
- BinOp::Add(_) | BinOp::Sub(_) => Precedence::Sum,
- BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Product,
- BinOp::And(_) => Precedence::And,
- BinOp::Or(_) => Precedence::Or,
- BinOp::BitXor(_) => Precedence::BitXor,
- BinOp::BitAnd(_) => Precedence::BitAnd,
- BinOp::BitOr(_) => Precedence::BitOr,
- BinOp::Shl(_) | BinOp::Shr(_) => Precedence::Shift,
-
- BinOp::Eq(_)
- | BinOp::Lt(_)
- | BinOp::Le(_)
- | BinOp::Ne(_)
- | BinOp::Ge(_)
- | BinOp::Gt(_) => Precedence::Compare,
-
- BinOp::AddAssign(_)
- | BinOp::SubAssign(_)
- | BinOp::MulAssign(_)
- | BinOp::DivAssign(_)
- | BinOp::RemAssign(_)
- | BinOp::BitXorAssign(_)
- | BinOp::BitAndAssign(_)
- | BinOp::BitOrAssign(_)
- | BinOp::ShlAssign(_)
- | BinOp::ShrAssign(_) => Precedence::Assign,
- }
- }
-
- #[cfg(feature = "printing")]
- pub(crate) fn of(e: &Expr) -> Self {
- #[cfg(feature = "full")]
- fn prefix_attrs(attrs: &[Attribute]) -> Precedence {
- for attr in attrs {
- if let AttrStyle::Outer = attr.style {
- return Precedence::Prefix;
- }
- }
- Precedence::Unambiguous
- }
-
- match e {
- #[cfg(feature = "full")]
- Expr::Closure(e) => match e.output {
- ReturnType::Default => Precedence::Jump,
- ReturnType::Type(..) => prefix_attrs(&e.attrs),
- },
-
- #[cfg(feature = "full")]
- Expr::Break(ExprBreak { expr, .. })
- | Expr::Return(ExprReturn { expr, .. })
- | Expr::Yield(ExprYield { expr, .. }) => match expr {
- Some(_) => Precedence::Jump,
- None => Precedence::Unambiguous,
- },
-
- Expr::Assign(_) => Precedence::Assign,
- Expr::Range(_) => Precedence::Range,
- Expr::Binary(e) => Precedence::of_binop(&e.op),
- Expr::Let(_) => Precedence::Let,
- Expr::Cast(_) => Precedence::Cast,
- Expr::RawAddr(_) | Expr::Reference(_) | Expr::Unary(_) => Precedence::Prefix,
-
- #[cfg(feature = "full")]
- Expr::Array(ExprArray { attrs, .. })
- | Expr::Async(ExprAsync { attrs, .. })
- | Expr::Await(ExprAwait { attrs, .. })
- | Expr::Block(ExprBlock { attrs, .. })
- | Expr::Call(ExprCall { attrs, .. })
- | Expr::Const(ExprConst { attrs, .. })
- | Expr::Continue(ExprContinue { attrs, .. })
- | Expr::Field(ExprField { attrs, .. })
- | Expr::ForLoop(ExprForLoop { attrs, .. })
- | Expr::Group(ExprGroup { attrs, .. })
- | Expr::If(ExprIf { attrs, .. })
- | Expr::Index(ExprIndex { attrs, .. })
- | Expr::Infer(ExprInfer { attrs, .. })
- | Expr::Lit(ExprLit { attrs, .. })
- | Expr::Loop(ExprLoop { attrs, .. })
- | Expr::Macro(ExprMacro { attrs, .. })
- | Expr::Match(ExprMatch { attrs, .. })
- | Expr::MethodCall(ExprMethodCall { attrs, .. })
- | Expr::Paren(ExprParen { attrs, .. })
- | Expr::Path(ExprPath { attrs, .. })
- | Expr::Repeat(ExprRepeat { attrs, .. })
- | Expr::Struct(ExprStruct { attrs, .. })
- | Expr::Try(ExprTry { attrs, .. })
- | Expr::TryBlock(ExprTryBlock { attrs, .. })
- | Expr::Tuple(ExprTuple { attrs, .. })
- | Expr::Unsafe(ExprUnsafe { attrs, .. })
- | Expr::While(ExprWhile { attrs, .. }) => prefix_attrs(attrs),
-
- #[cfg(not(feature = "full"))]
- Expr::Array(_)
- | Expr::Async(_)
- | Expr::Await(_)
- | Expr::Block(_)
- | Expr::Call(_)
- | Expr::Const(_)
- | Expr::Continue(_)
- | Expr::Field(_)
- | Expr::ForLoop(_)
- | Expr::Group(_)
- | Expr::If(_)
- | Expr::Index(_)
- | Expr::Infer(_)
- | Expr::Lit(_)
- | Expr::Loop(_)
- | Expr::Macro(_)
- | Expr::Match(_)
- | Expr::MethodCall(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::Repeat(_)
- | Expr::Struct(_)
- | Expr::Try(_)
- | Expr::TryBlock(_)
- | Expr::Tuple(_)
- | Expr::Unsafe(_)
- | Expr::While(_) => Precedence::Unambiguous,
-
- Expr::Verbatim(_) => Precedence::Unambiguous,
-
- #[cfg(not(feature = "full"))]
- Expr::Break(_) | Expr::Closure(_) | Expr::Return(_) | Expr::Yield(_) => unreachable!(),
- }
- }
-}
-
-impl Copy for Precedence {}
-
-impl Clone for Precedence {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-impl PartialEq for Precedence {
- fn eq(&self, other: &Self) -> bool {
- *self as u8 == *other as u8
- }
-}
-
-impl PartialOrd for Precedence {
- fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- let this = *self as u8;
- let other = *other as u8;
- Some(this.cmp(&other))
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/print.rs b/deps/crates/vendor/syn-v2/src/print.rs
deleted file mode 100644
index 07409932677..00000000000
--- a/deps/crates/vendor/syn-v2/src/print.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use proc_macro2::TokenStream;
-use quote::ToTokens;
-
-pub(crate) struct TokensOrDefault<'a, T: 'a>(pub &'a Option<T>);
-
-impl<'a, T> ToTokens for TokensOrDefault<'a, T>
-where
- T: ToTokens + Default,
-{
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self.0 {
- Some(t) => t.to_tokens(tokens),
- None => T::default().to_tokens(tokens),
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/punctuated.rs b/deps/crates/vendor/syn-v2/src/punctuated.rs
deleted file mode 100644
index 7545c669261..00000000000
--- a/deps/crates/vendor/syn-v2/src/punctuated.rs
+++ /dev/null
@@ -1,1170 +0,0 @@
-//! A punctuated sequence of syntax tree nodes separated by punctuation.
-//!
-//! Lots of things in Rust are punctuated sequences.
-//!
-//! - The fields of a struct are `Punctuated<Field, Token![,]>`.
-//! - The segments of a path are `Punctuated<PathSegment, Token![::]>`.
-//! - The bounds on a generic parameter are `Punctuated<TypeParamBound,
-//! Token![+]>`.
-//! - The arguments to a function call are `Punctuated<Expr, Token![,]>`.
-//!
-//! This module provides a common representation for these punctuated sequences
-//! in the form of the [`Punctuated<T, P>`] type. We store a vector of pairs of
-//! syntax tree node + punctuation, where every node in the sequence is followed
-//! by punctuation except for possibly the final one.
-//!
-//! [`Punctuated<T, P>`]: Punctuated
-//!
-//! ```text
-//! a_function_call(arg1, arg2, arg3);
-//! ~~~~^ ~~~~^ ~~~~
-//! ```
-
-use crate::drops::{NoDrop, TrivialDrop};
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-#[cfg(feature = "parsing")]
-use crate::parse::{Parse, ParseStream};
-#[cfg(feature = "parsing")]
-use crate::token::Token;
-use alloc::boxed::Box;
-#[cfg(all(feature = "fold", any(feature = "full", feature = "derive")))]
-use alloc::collections::VecDeque;
-use alloc::vec::{self, Vec};
-#[cfg(feature = "extra-traits")]
-use core::fmt::{self, Debug};
-#[cfg(feature = "extra-traits")]
-use core::hash::{Hash, Hasher};
-#[cfg(any(feature = "full", feature = "derive"))]
-use core::iter;
-use core::ops::{Index, IndexMut};
-use core::option;
-use core::slice;
-
-/// **A punctuated sequence of syntax tree nodes of type `T` separated by
-/// punctuation of type `P`.**
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct Punctuated<T, P> {
- inner: Vec<(T, P)>,
- last: Option<Box<T>>,
-}
-
-impl<T, P> Punctuated<T, P> {
- /// Creates an empty punctuated sequence.
- pub const fn new() -> Self {
- Punctuated {
- inner: Vec::new(),
- last: None,
- }
- }
-
- /// Determines whether this punctuated sequence is empty, meaning it
- /// contains no syntax tree nodes or punctuation.
- pub fn is_empty(&self) -> bool {
- self.inner.len() == 0 && self.last.is_none()
- }
-
- /// Returns the number of syntax tree nodes in this punctuated sequence.
- ///
- /// This is the number of nodes of type `T`, not counting the punctuation of
- /// type `P`.
- pub fn len(&self) -> usize {
- self.inner.len() + if self.last.is_some() { 1 } else { 0 }
- }
-
- /// Borrows the first element in this sequence.
- pub fn first(&self) -> Option<&T> {
- self.iter().next()
- }
-
- /// Mutably borrows the first element in this sequence.
- pub fn first_mut(&mut self) -> Option<&mut T> {
- self.iter_mut().next()
- }
-
- /// Borrows the last element in this sequence.
- pub fn last(&self) -> Option<&T> {
- self.iter().next_back()
- }
-
- /// Mutably borrows the last element in this sequence.
- pub fn last_mut(&mut self) -> Option<&mut T> {
- self.iter_mut().next_back()
- }
-
- /// Borrows the element at the given index.
- pub fn get(&self, index: usize) -> Option<&T> {
- if let Some((value, _punct)) = self.inner.get(index) {
- Some(value)
- } else if index == self.inner.len() {
- self.last.as_deref()
- } else {
- None
- }
- }
-
- /// Mutably borrows the element at the given index.
- pub fn get_mut(&mut self, index: usize) -> Option<&mut T> {
- let inner_len = self.inner.len();
- if let Some((value, _punct)) = self.inner.get_mut(index) {
- Some(value)
- } else if index == inner_len {
- self.last.as_deref_mut()
- } else {
- None
- }
- }
-
- /// Returns an iterator over borrowed syntax tree nodes of type `&T`.
- pub fn iter(&self) -> Iter<T> {
- Iter {
- inner: Box::new(NoDrop::new(PrivateIter {
- inner: self.inner.iter(),
- last: self.last.as_ref().map(Box::as_ref).into_iter(),
- })),
- }
- }
-
- /// Returns an iterator over mutably borrowed syntax tree nodes of type
- /// `&mut T`.
- pub fn iter_mut(&mut self) -> IterMut<T> {
- IterMut {
- inner: Box::new(NoDrop::new(PrivateIterMut {
- inner: self.inner.iter_mut(),
- last: self.last.as_mut().map(Box::as_mut).into_iter(),
- })),
- }
- }
-
- /// Returns an iterator over the contents of this sequence as borrowed
- /// punctuated pairs.
- pub fn pairs(&self) -> Pairs<T, P> {
- Pairs {
- inner: self.inner.iter(),
- last: self.last.as_ref().map(Box::as_ref).into_iter(),
- }
- }
-
- /// Returns an iterator over the contents of this sequence as mutably
- /// borrowed punctuated pairs.
- pub fn pairs_mut(&mut self) -> PairsMut<T, P> {
- PairsMut {
- inner: self.inner.iter_mut(),
- last: self.last.as_mut().map(Box::as_mut).into_iter(),
- }
- }
-
- /// Returns an iterator over the contents of this sequence as owned
- /// punctuated pairs.
- pub fn into_pairs(self) -> IntoPairs<T, P> {
- IntoPairs {
- inner: self.inner.into_iter(),
- last: self.last.map(|t| *t).into_iter(),
- }
- }
-
- /// Appends a syntax tree node onto the end of this punctuated sequence. The
- /// sequence must already have a trailing punctuation, or be empty.
- ///
- /// Use [`push`] instead if the punctuated sequence may or may not already
- /// have trailing punctuation.
- ///
- /// [`push`]: Punctuated::push
- ///
- /// # Panics
- ///
- /// Panics if the sequence is nonempty and does not already have a trailing
- /// punctuation.
- pub fn push_value(&mut self, value: T) {
- assert!(
- self.empty_or_trailing(),
- "Punctuated::push_value: cannot push value if Punctuated is missing trailing punctuation",
- );
-
- self.last = Some(Box::new(value));
- }
-
- /// Appends a trailing punctuation onto the end of this punctuated sequence.
- /// The sequence must be non-empty and must not already have trailing
- /// punctuation.
- ///
- /// # Panics
- ///
- /// Panics if the sequence is empty or already has a trailing punctuation.
- pub fn push_punct(&mut self, punctuation: P) {
- assert!(
- self.last.is_some(),
- "Punctuated::push_punct: cannot push punctuation if Punctuated is empty or already has trailing punctuation",
- );
-
- let last = self.last.take().unwrap();
- self.inner.push((*last, punctuation));
- }
-
- /// Removes the last punctuated pair from this sequence, or `None` if the
- /// sequence is empty.
- pub fn pop(&mut self) -> Option<Pair<T, P>> {
- if self.last.is_some() {
- self.last.take().map(|t| Pair::End(*t))
- } else {
- self.inner.pop().map(|(t, p)| Pair::Punctuated(t, p))
- }
- }
-
- /// Removes the trailing punctuation from this punctuated sequence, or
- /// `None` if there isn't any.
- pub fn pop_punct(&mut self) -> Option<P> {
- if self.last.is_some() {
- None
- } else {
- let (t, p) = self.inner.pop()?;
- self.last = Some(Box::new(t));
- Some(p)
- }
- }
-
- /// Determines whether this punctuated sequence ends with a trailing
- /// punctuation.
- pub fn trailing_punct(&self) -> bool {
- self.last.is_none() && !self.is_empty()
- }
-
- /// Returns true if either this `Punctuated` is empty, or it has a trailing
- /// punctuation.
- ///
- /// Equivalent to `punctuated.is_empty() || punctuated.trailing_punct()`.
- pub fn empty_or_trailing(&self) -> bool {
- self.last.is_none()
- }
-
- /// Appends a syntax tree node onto the end of this punctuated sequence.
- ///
- /// If there is not a trailing punctuation in this sequence when this method
- /// is called, the default value of punctuation type `P` is inserted before
- /// the given value of type `T`.
- pub fn push(&mut self, value: T)
- where
- P: Default,
- {
- if !self.empty_or_trailing() {
- self.push_punct(Default::default());
- }
- self.push_value(value);
- }
-
- /// Inserts an element at position `index`.
- ///
- /// # Panics
- ///
- /// Panics if `index` is greater than the number of elements previously in
- /// this punctuated sequence.
- pub fn insert(&mut self, index: usize, value: T)
- where
- P: Default,
- {
- assert!(
- index <= self.len(),
- "Punctuated::insert: index out of range",
- );
-
- if index == self.len() {
- self.push(value);
- } else {
- self.inner.insert(index, (value, Default::default()));
- }
- }
-
- /// Clears the sequence of all values and punctuation, making it empty.
- pub fn clear(&mut self) {
- self.inner.clear();
- self.last = None;
- }
-
- /// Parses zero or more occurrences of `T` separated by punctuation of type
- /// `P`, with optional trailing punctuation.
- ///
- /// Parsing continues until the end of this parse stream. The entire content
- /// of this parse stream must consist of `T` and `P`.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_terminated(input: ParseStream) -> Result<Self>
- where
- T: Parse,
- P: Parse,
- {
- Self::parse_terminated_with(input, T::parse)
- }
-
- /// Parses zero or more occurrences of `T` using the given parse function,
- /// separated by punctuation of type `P`, with optional trailing
- /// punctuation.
- ///
- /// Like [`parse_terminated`], the entire content of this stream is expected
- /// to be parsed.
- ///
- /// [`parse_terminated`]: Punctuated::parse_terminated
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_terminated_with<'a>(
- input: ParseStream<'a>,
- parser: fn(ParseStream<'a>) -> Result<T>,
- ) -> Result<Self>
- where
- P: Parse,
- {
- let mut punctuated = Punctuated::new();
-
- loop {
- if input.is_empty() {
- break;
- }
- let value = parser(input)?;
- punctuated.push_value(value);
- if input.is_empty() {
- break;
- }
- let punct = input.parse()?;
- punctuated.push_punct(punct);
- }
-
- Ok(punctuated)
- }
-
- /// Parses one or more occurrences of `T` separated by punctuation of type
- /// `P`, not accepting trailing punctuation.
- ///
- /// Parsing continues as long as punctuation `P` is present at the head of
- /// the stream. This method returns upon parsing a `T` and observing that it
- /// is not followed by a `P`, even if there are remaining tokens in the
- /// stream.
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_separated_nonempty(input: ParseStream) -> Result<Self>
- where
- T: Parse,
- P: Token + Parse,
- {
- Self::parse_separated_nonempty_with(input, T::parse)
- }
-
- /// Parses one or more occurrences of `T` using the given parse function,
- /// separated by punctuation of type `P`, not accepting trailing
- /// punctuation.
- ///
- /// Like [`parse_separated_nonempty`], may complete early without parsing
- /// the entire content of this stream.
- ///
- /// [`parse_separated_nonempty`]: Punctuated::parse_separated_nonempty
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_separated_nonempty_with<'a>(
- input: ParseStream<'a>,
- parser: fn(ParseStream<'a>) -> Result<T>,
- ) -> Result<Self>
- where
- P: Token + Parse,
- {
- let mut punctuated = Punctuated::new();
-
- loop {
- let value = parser(input)?;
- punctuated.push_value(value);
- if !P::peek(input.cursor()) {
- break;
- }
- let punct = input.parse()?;
- punctuated.push_punct(punct);
- }
-
- Ok(punctuated)
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl<T, P> Clone for Punctuated<T, P>
-where
- T: Clone,
- P: Clone,
-{
- fn clone(&self) -> Self {
- Punctuated {
- inner: self.inner.clone(),
- last: self.last.clone(),
- }
- }
-
- fn clone_from(&mut self, other: &Self) {
- self.inner.clone_from(&other.inner);
- self.last.clone_from(&other.last);
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl<T, P> Eq for Punctuated<T, P>
-where
- T: Eq,
- P: Eq,
-{
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl<T, P> PartialEq for Punctuated<T, P>
-where
- T: PartialEq,
- P: PartialEq,
-{
- fn eq(&self, other: &Self) -> bool {
- let Punctuated { inner, last } = self;
- *inner == other.inner && *last == other.last
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl<T, P> Hash for Punctuated<T, P>
-where
- T: Hash,
- P: Hash,
-{
- fn hash<H: Hasher>(&self, state: &mut H) {
- let Punctuated { inner, last } = self;
- inner.hash(state);
- last.hash(state);
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl<T: Debug, P: Debug> Debug for Punctuated<T, P> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- let mut list = f.debug_list();
- for (t, p) in &self.inner {
- list.entry(t);
- list.entry(p);
- }
- if let Some(last) = &self.last {
- list.entry(last);
- }
- list.finish()
- }
-}
-
-impl<T, P> FromIterator<T> for Punctuated<T, P>
-where
- P: Default,
-{
- fn from_iter<I: IntoIterator<Item = T>>(i: I) -> Self {
- let mut ret = Punctuated::new();
- ret.extend(i);
- ret
- }
-}
-
-impl<T, P> Extend<T> for Punctuated<T, P>
-where
- P: Default,
-{
- fn extend<I: IntoIterator<Item = T>>(&mut self, i: I) {
- for value in i {
- self.push(value);
- }
- }
-}
-
-impl<T, P> FromIterator<Pair<T, P>> for Punctuated<T, P> {
- fn from_iter<I: IntoIterator<Item = Pair<T, P>>>(i: I) -> Self {
- let mut ret = Punctuated::new();
- do_extend(&mut ret, i.into_iter());
- ret
- }
-}
-
-impl<T, P> Extend<Pair<T, P>> for Punctuated<T, P>
-where
- P: Default,
-{
- fn extend<I: IntoIterator<Item = Pair<T, P>>>(&mut self, i: I) {
- if !self.empty_or_trailing() {
- self.push_punct(P::default());
- }
- do_extend(self, i.into_iter());
- }
-}
-
-fn do_extend<T, P, I>(punctuated: &mut Punctuated<T, P>, i: I)
-where
- I: Iterator<Item = Pair<T, P>>,
-{
- let mut nomore = false;
- for pair in i {
- if nomore {
- panic!("punctuated extended with items after a Pair::End");
- }
- match pair {
- Pair::Punctuated(a, b) => punctuated.inner.push((a, b)),
- Pair::End(a) => {
- punctuated.last = Some(Box::new(a));
- nomore = true;
- }
- }
- }
-}
-
-impl<T, P> IntoIterator for Punctuated<T, P> {
- type Item = T;
- type IntoIter = IntoIter<T>;
-
- fn into_iter(self) -> Self::IntoIter {
- let mut elements = Vec::with_capacity(self.len());
-
- for (t, _) in self.inner {
- elements.push(t);
- }
- if let Some(t) = self.last {
- elements.push(*t);
- }
-
- IntoIter {
- inner: elements.into_iter(),
- }
- }
-}
-
-impl<'a, T, P> IntoIterator for &'a Punctuated<T, P> {
- type Item = &'a T;
- type IntoIter = Iter<'a, T>;
-
- fn into_iter(self) -> Self::IntoIter {
- Punctuated::iter(self)
- }
-}
-
-impl<'a, T, P> IntoIterator for &'a mut Punctuated<T, P> {
- type Item = &'a mut T;
- type IntoIter = IterMut<'a, T>;
-
- fn into_iter(self) -> Self::IntoIter {
- Punctuated::iter_mut(self)
- }
-}
-
-impl<T, P> Default for Punctuated<T, P> {
- fn default() -> Self {
- Punctuated::new()
- }
-}
-
-/// An iterator over borrowed pairs of type `Pair<&T, &P>`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct Pairs<'a, T: 'a, P: 'a> {
- inner: slice::Iter<'a, (T, P)>,
- last: option::IntoIter<&'a T>,
-}
-
-impl<'a, T, P> Iterator for Pairs<'a, T, P> {
- type Item = Pair<&'a T, &'a P>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner
- .next()
- .map(|(t, p)| Pair::Punctuated(t, p))
- .or_else(|| self.last.next().map(Pair::End))
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<'a, T, P> DoubleEndedIterator for Pairs<'a, T, P> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.last
- .next()
- .map(Pair::End)
- .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p)))
- }
-}
-
-impl<'a, T, P> ExactSizeIterator for Pairs<'a, T, P> {
- fn len(&self) -> usize {
- self.inner.len() + self.last.len()
- }
-}
-
-// No Clone bound on T or P.
-impl<'a, T, P> Clone for Pairs<'a, T, P> {
- fn clone(&self) -> Self {
- Pairs {
- inner: self.inner.clone(),
- last: self.last.clone(),
- }
- }
-}
-
-/// An iterator over mutably borrowed pairs of type `Pair<&mut T, &mut P>`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct PairsMut<'a, T: 'a, P: 'a> {
- inner: slice::IterMut<'a, (T, P)>,
- last: option::IntoIter<&'a mut T>,
-}
-
-impl<'a, T, P> Iterator for PairsMut<'a, T, P> {
- type Item = Pair<&'a mut T, &'a mut P>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner
- .next()
- .map(|(t, p)| Pair::Punctuated(t, p))
- .or_else(|| self.last.next().map(Pair::End))
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<'a, T, P> DoubleEndedIterator for PairsMut<'a, T, P> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.last
- .next()
- .map(Pair::End)
- .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p)))
- }
-}
-
-impl<'a, T, P> ExactSizeIterator for PairsMut<'a, T, P> {
- fn len(&self) -> usize {
- self.inner.len() + self.last.len()
- }
-}
-
-/// An iterator over owned pairs of type `Pair<T, P>`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct IntoPairs<T, P> {
- inner: vec::IntoIter<(T, P)>,
- last: option::IntoIter<T>,
-}
-
-impl<T, P> Iterator for IntoPairs<T, P> {
- type Item = Pair<T, P>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner
- .next()
- .map(|(t, p)| Pair::Punctuated(t, p))
- .or_else(|| self.last.next().map(Pair::End))
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<T, P> DoubleEndedIterator for IntoPairs<T, P> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.last
- .next()
- .map(Pair::End)
- .or_else(|| self.inner.next_back().map(|(t, p)| Pair::Punctuated(t, p)))
- }
-}
-
-impl<T, P> ExactSizeIterator for IntoPairs<T, P> {
- fn len(&self) -> usize {
- self.inner.len() + self.last.len()
- }
-}
-
-impl<T, P> Clone for IntoPairs<T, P>
-where
- T: Clone,
- P: Clone,
-{
- fn clone(&self) -> Self {
- IntoPairs {
- inner: self.inner.clone(),
- last: self.last.clone(),
- }
- }
-}
-
-/// An iterator over owned values of type `T`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct IntoIter<T> {
- inner: vec::IntoIter<T>,
-}
-
-impl<T> Iterator for IntoIter<T> {
- type Item = T;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner.next()
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<T> DoubleEndedIterator for IntoIter<T> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.inner.next_back()
- }
-}
-
-impl<T> ExactSizeIterator for IntoIter<T> {
- fn len(&self) -> usize {
- self.inner.len()
- }
-}
-
-impl<T> Clone for IntoIter<T>
-where
- T: Clone,
-{
- fn clone(&self) -> Self {
- IntoIter {
- inner: self.inner.clone(),
- }
- }
-}
-
-/// An iterator over borrowed values of type `&T`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct Iter<'a, T: 'a> {
- inner: Box<NoDrop<dyn IterTrait<'a, T> + 'a>>,
-}
-
-trait IterTrait<'a, T: 'a>: Iterator<Item = &'a T> + DoubleEndedIterator + ExactSizeIterator {
- fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>>;
-}
-
-struct PrivateIter<'a, T: 'a, P: 'a> {
- inner: slice::Iter<'a, (T, P)>,
- last: option::IntoIter<&'a T>,
-}
-
-impl<'a, T, P> TrivialDrop for PrivateIter<'a, T, P>
-where
- slice::Iter<'a, (T, P)>: TrivialDrop,
- option::IntoIter<&'a T>: TrivialDrop,
-{
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-pub(crate) fn empty_punctuated_iter<'a, T>() -> Iter<'a, T> {
- Iter {
- inner: Box::new(NoDrop::new(iter::empty())),
- }
-}
-
-// No Clone bound on T.
-impl<'a, T> Clone for Iter<'a, T> {
- fn clone(&self) -> Self {
- Iter {
- inner: self.inner.clone_box(),
- }
- }
-}
-
-impl<'a, T> Iterator for Iter<'a, T> {
- type Item = &'a T;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner.next()
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<'a, T> DoubleEndedIterator for Iter<'a, T> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.inner.next_back()
- }
-}
-
-impl<'a, T> ExactSizeIterator for Iter<'a, T> {
- fn len(&self) -> usize {
- self.inner.len()
- }
-}
-
-impl<'a, T, P> Iterator for PrivateIter<'a, T, P> {
- type Item = &'a T;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner
- .next()
- .map(|pair| &pair.0)
- .or_else(|| self.last.next())
- }
-}
-
-impl<'a, T, P> DoubleEndedIterator for PrivateIter<'a, T, P> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.last
- .next()
- .or_else(|| self.inner.next_back().map(|pair| &pair.0))
- }
-}
-
-impl<'a, T, P> ExactSizeIterator for PrivateIter<'a, T, P> {
- fn len(&self) -> usize {
- self.inner.len() + self.last.len()
- }
-}
-
-// No Clone bound on T or P.
-impl<'a, T, P> Clone for PrivateIter<'a, T, P> {
- fn clone(&self) -> Self {
- PrivateIter {
- inner: self.inner.clone(),
- last: self.last.clone(),
- }
- }
-}
-
-impl<'a, T, I> IterTrait<'a, T> for I
-where
- T: 'a,
- I: DoubleEndedIterator<Item = &'a T>
- + ExactSizeIterator<Item = &'a T>
- + Clone
- + TrivialDrop
- + 'a,
-{
- fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>> {
- Box::new(NoDrop::new(self.clone()))
- }
-}
-
-/// An iterator over mutably borrowed values of type `&mut T`.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub struct IterMut<'a, T: 'a> {
- inner: Box<NoDrop<dyn IterMutTrait<'a, T, Item = &'a mut T> + 'a>>,
-}
-
-trait IterMutTrait<'a, T: 'a>:
- DoubleEndedIterator<Item = &'a mut T> + ExactSizeIterator<Item = &'a mut T>
-{
-}
-
-struct PrivateIterMut<'a, T: 'a, P: 'a> {
- inner: slice::IterMut<'a, (T, P)>,
- last: option::IntoIter<&'a mut T>,
-}
-
-impl<'a, T, P> TrivialDrop for PrivateIterMut<'a, T, P>
-where
- slice::IterMut<'a, (T, P)>: TrivialDrop,
- option::IntoIter<&'a mut T>: TrivialDrop,
-{
-}
-
-#[cfg(any(feature = "full", feature = "derive"))]
-pub(crate) fn empty_punctuated_iter_mut<'a, T>() -> IterMut<'a, T> {
- IterMut {
- inner: Box::new(NoDrop::new(iter::empty())),
- }
-}
-
-impl<'a, T> Iterator for IterMut<'a, T> {
- type Item = &'a mut T;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner.next()
- }
-
- fn size_hint(&self) -> (usize, Option<usize>) {
- (self.len(), Some(self.len()))
- }
-}
-
-impl<'a, T> DoubleEndedIterator for IterMut<'a, T> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.inner.next_back()
- }
-}
-
-impl<'a, T> ExactSizeIterator for IterMut<'a, T> {
- fn len(&self) -> usize {
- self.inner.len()
- }
-}
-
-impl<'a, T, P> Iterator for PrivateIterMut<'a, T, P> {
- type Item = &'a mut T;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.inner
- .next()
- .map(|pair| &mut pair.0)
- .or_else(|| self.last.next())
- }
-}
-
-impl<'a, T, P> DoubleEndedIterator for PrivateIterMut<'a, T, P> {
- fn next_back(&mut self) -> Option<Self::Item> {
- self.last
- .next()
- .or_else(|| self.inner.next_back().map(|pair| &mut pair.0))
- }
-}
-
-impl<'a, T, P> ExactSizeIterator for PrivateIterMut<'a, T, P> {
- fn len(&self) -> usize {
- self.inner.len() + self.last.len()
- }
-}
-
-impl<'a, T, I> IterMutTrait<'a, T> for I
-where
- T: 'a,
- I: DoubleEndedIterator<Item = &'a mut T> + ExactSizeIterator<Item = &'a mut T> + 'a,
-{
-}
-
-/// A single syntax tree node of type `T` followed by its trailing punctuation
-/// of type `P` if any.
-///
-/// Refer to the [module documentation] for details about punctuated sequences.
-///
-/// [module documentation]: self
-pub enum Pair<T, P> {
- Punctuated(T, P),
- End(T),
-}
-
-impl<T, P> Pair<T, P> {
- /// Extracts the syntax tree node from this punctuated pair, discarding the
- /// following punctuation.
- pub fn into_value(self) -> T {
- match self {
- Pair::Punctuated(t, _) | Pair::End(t) => t,
- }
- }
-
- /// Borrows the syntax tree node from this punctuated pair.
- pub fn value(&self) -> &T {
- match self {
- Pair::Punctuated(t, _) | Pair::End(t) => t,
- }
- }
-
- /// Mutably borrows the syntax tree node from this punctuated pair.
- pub fn value_mut(&mut self) -> &mut T {
- match self {
- Pair::Punctuated(t, _) | Pair::End(t) => t,
- }
- }
-
- /// Borrows the punctuation from this punctuated pair, unless this pair is
- /// the final one and there is no trailing punctuation.
- pub fn punct(&self) -> Option<&P> {
- match self {
- Pair::Punctuated(_, p) => Some(p),
- Pair::End(_) => None,
- }
- }
-
- /// Mutably borrows the punctuation from this punctuated pair, unless the
- /// pair is the final one and there is no trailing punctuation.
- ///
- /// # Example
- ///
- /// ```
- /// # use proc_macro2::Span;
- /// # use syn::punctuated::Punctuated;
- /// # use syn::{parse_quote, Token, TypeParamBound};
- /// #
- /// # let mut punctuated = Punctuated::<TypeParamBound, Token![+]>::new();
- /// # let span = Span::call_site();
- /// #
- /// punctuated.insert(0, parse_quote!('lifetime));
- /// if let Some(punct) = punctuated.pairs_mut().next().unwrap().punct_mut() {
- /// punct.span = span;
- /// }
- /// ```
- pub fn punct_mut(&mut self) -> Option<&mut P> {
- match self {
- Pair::Punctuated(_, p) => Some(p),
- Pair::End(_) => None,
- }
- }
-
- /// Creates a punctuated pair out of a syntax tree node and an optional
- /// following punctuation.
- pub fn new(t: T, p: Option<P>) -> Self {
- match p {
- Some(p) => Pair::Punctuated(t, p),
- None => Pair::End(t),
- }
- }
-
- /// Produces this punctuated pair as a tuple of syntax tree node and
- /// optional following punctuation.
- pub fn into_tuple(self) -> (T, Option<P>) {
- match self {
- Pair::Punctuated(t, p) => (t, Some(p)),
- Pair::End(t) => (t, None),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl<T, P> Pair<&T, &P> {
- pub fn cloned(self) -> Pair<T, P>
- where
- T: Clone,
- P: Clone,
- {
- match self {
- Pair::Punctuated(t, p) => Pair::Punctuated(t.clone(), p.clone()),
- Pair::End(t) => Pair::End(t.clone()),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl<T, P> Clone for Pair<T, P>
-where
- T: Clone,
- P: Clone,
-{
- fn clone(&self) -> Self {
- match self {
- Pair::Punctuated(t, p) => Pair::Punctuated(t.clone(), p.clone()),
- Pair::End(t) => Pair::End(t.clone()),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl<T, P> Copy for Pair<T, P>
-where
- T: Copy,
- P: Copy,
-{
-}
-
-impl<T, P> Index<usize> for Punctuated<T, P> {
- type Output = T;
-
- fn index(&self, index: usize) -> &Self::Output {
- if index.checked_add(1) == Some(self.len()) {
- match &self.last {
- Some(t) => t,
- None => &self.inner[index].0,
- }
- } else {
- &self.inner[index].0
- }
- }
-}
-
-impl<T, P> IndexMut<usize> for Punctuated<T, P> {
- fn index_mut(&mut self, index: usize) -> &mut Self::Output {
- if index.checked_add(1) == Some(self.len()) {
- match &mut self.last {
- Some(t) => t,
- None => &mut self.inner[index].0,
- }
- } else {
- &mut self.inner[index].0
- }
- }
-}
-
-#[cfg(all(feature = "fold", any(feature = "full", feature = "derive")))]
-pub(crate) fn fold<T, P, V, F>(
- punctuated: Punctuated<T, P>,
- fold: &mut V,
- mut f: F,
-) -> Punctuated<T, P>
-where
- V: ?Sized,
- F: FnMut(&mut V, T) -> T,
-{
- let Punctuated { inner, last } = punctuated;
-
- // Convert into VecDeque to prevent needing to allocate a new Vec<(T, P)>
- // for the folded elements.
- let mut inner = VecDeque::from(inner);
- for _ in 0..inner.len() {
- if let Some((t, p)) = inner.pop_front() {
- inner.push_back((f(fold, t), p));
- }
- }
-
- Punctuated {
- inner: Vec::from(inner),
- last: match last {
- Some(t) => Some(Box::new(f(fold, *t))),
- None => None,
- },
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::punctuated::{Pair, Punctuated};
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl<T, P> ToTokens for Punctuated<T, P>
- where
- T: ToTokens,
- P: ToTokens,
- {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.pairs());
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl<T, P> ToTokens for Pair<T, P>
- where
- T: ToTokens,
- P: ToTokens,
- {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- Pair::Punctuated(a, b) => {
- a.to_tokens(tokens);
- b.to_tokens(tokens);
- }
- Pair::End(a) => a.to_tokens(tokens),
- }
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/restriction.rs b/deps/crates/vendor/syn-v2/src/restriction.rs
deleted file mode 100644
index d0cdf8eda60..00000000000
--- a/deps/crates/vendor/syn-v2/src/restriction.rs
+++ /dev/null
@@ -1,180 +0,0 @@
-use crate::path::Path;
-use crate::token;
-use alloc::boxed::Box;
-
-ast_enum! {
- /// The visibility level of an item: inherited or `pub` or
- /// `pub(restricted)`.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum Visibility {
- /// A public visibility level: `pub`.
- Public(Token![pub]),
-
- /// A visibility level restricted to some path: `pub(self)` or
- /// `pub(super)` or `pub(crate)` or `pub(in some::module)`.
- Restricted(VisRestricted),
-
- /// An inherited visibility, which usually means private.
- Inherited,
- }
-}
-
-ast_struct! {
- /// A visibility level restricted to some path: `pub(self)` or
- /// `pub(super)` or `pub(crate)` or `pub(in some::module)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct VisRestricted {
- pub pub_token: Token![pub],
- pub paren_token: token::Paren,
- pub in_token: Option<Token![in]>,
- pub path: Box<Path>,
- }
-}
-
-ast_enum! {
- /// Unused, but reserved for RFC 3323 restrictions.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum FieldMutability {
- None,
-
- // TODO: https://rust-lang.github.io/rfcs/3323-restrictions.html
- //
- // FieldMutability::Restricted(MutRestricted)
- //
- // pub struct MutRestricted {
- // pub mut_token: Token![mut],
- // pub paren_token: token::Paren,
- // pub in_token: Option<Token![in]>,
- // pub path: Box<Path>,
- // }
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::error::Result;
- use crate::ext::IdentExt as _;
- use crate::ident::Ident;
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- use crate::path::Path;
- use crate::restriction::{VisRestricted, Visibility};
- use crate::token;
- use alloc::boxed::Box;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Visibility {
- fn parse(input: ParseStream) -> Result<Self> {
- // Recognize an empty None-delimited group, as produced by a $:vis
- // matcher that matched no tokens.
- if input.peek(token::Group) {
- let ahead = input.fork();
- let group = crate::group::parse_group(&ahead)?;
- if group.content.is_empty() {
- input.advance_to(&ahead);
- return Ok(Visibility::Inherited);
- }
- }
-
- if input.peek(Token![pub]) {
- Self::parse_pub(input)
- } else {
- Ok(Visibility::Inherited)
- }
- }
- }
-
- impl Visibility {
- fn parse_pub(input: ParseStream) -> Result<Self> {
- let pub_token = input.parse::<Token![pub]>()?;
-
- if input.peek(token::Paren) {
- let ahead = input.fork();
-
- let content;
- let paren_token = parenthesized!(content in ahead);
- if content.peek(Token![crate])
- || content.peek(Token![self])
- || content.peek(Token![super])
- {
- let path = content.call(Ident::parse_any)?;
-
- // Ensure there are no additional tokens within `content`.
- // Without explicitly checking, we may misinterpret a tuple
- // field as a restricted visibility, causing a parse error.
- // e.g. `pub (crate::A, crate::B)` (Issue #720).
- if content.is_empty() {
- input.advance_to(&ahead);
- return Ok(Visibility::Restricted(VisRestricted {
- pub_token,
- paren_token,
- in_token: None,
- path: Box::new(Path::from(path)),
- }));
- }
- } else if content.peek(Token![in]) {
- let in_token: Token![in] = content.parse()?;
- let path = content.call(Path::parse_mod_style)?;
-
- input.advance_to(&ahead);
- return Ok(Visibility::Restricted(VisRestricted {
- pub_token,
- paren_token,
- in_token: Some(in_token),
- path: Box::new(path),
- }));
- }
- }
-
- Ok(Visibility::Public(pub_token))
- }
-
- #[cfg(feature = "full")]
- pub(crate) fn is_some(&self) -> bool {
- match self {
- Visibility::Inherited => false,
- _ => true,
- }
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::path;
- use crate::path::printing::PathStyle;
- use crate::restriction::{VisRestricted, Visibility};
- use proc_macro2::TokenStream;
- use quote::ToTokens;
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Visibility {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- Visibility::Public(pub_token) => pub_token.to_tokens(tokens),
- Visibility::Restricted(vis_restricted) => vis_restricted.to_tokens(tokens),
- Visibility::Inherited => {}
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for VisRestricted {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.pub_token.to_tokens(tokens);
- self.paren_token.surround(tokens, |tokens| {
- // TODO: If we have a path which is not "self" or "super" or
- // "crate", automatically add the "in" token.
- self.in_token.to_tokens(tokens);
- path::printing::print_path(tokens, &self.path, PathStyle::Mod);
- });
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/scan_expr.rs b/deps/crates/vendor/syn-v2/src/scan_expr.rs
deleted file mode 100644
index 424e4426456..00000000000
--- a/deps/crates/vendor/syn-v2/src/scan_expr.rs
+++ /dev/null
@@ -1,258 +0,0 @@
-use self::{Action::*, Input::*};
-use proc_macro2::{Delimiter, Ident, Spacing, TokenTree};
-use syn::parse::{ParseStream, Result};
-#[allow(unused_imports)]
-//#[cfg_attr(not(test), expect(unused_imports))] // Rust 1.81+
-use syn::Token;
-use syn::{AngleBracketedGenericArguments, BinOp, Expr, ExprPath, Lifetime, Lit, Type};
-
-enum Input {
- Keyword(&'static str),
- Punct(&'static str),
- ConsumeAny,
- ConsumeBinOp,
- ConsumeBrace,
- ConsumeDelimiter,
- ConsumeIdent,
- ConsumeLifetime,
- ConsumeLiteral,
- ConsumeNestedBrace,
- ExpectPath,
- ExpectTurbofish,
- ExpectType,
- CanBeginExpr,
- Otherwise,
- Empty,
-}
-
-enum Action {
- SetState(&'static [(Input, Action)]),
- IncDepth,
- DecDepth,
- Finish,
-}
-
-static INIT: [(Input, Action); 29] = [
- (ConsumeDelimiter, SetState(&POSTFIX)),
- (Keyword("async"), SetState(&ASYNC)),
- (Keyword("break"), SetState(&BREAK_LABEL)),
- (Keyword("const"), SetState(&CONST)),
- (Keyword("continue"), SetState(&CONTINUE)),
- (Keyword("for"), SetState(&FOR)),
- (Keyword("if"), IncDepth),
- (Keyword("let"), SetState(&PATTERN)),
- (Keyword("loop"), SetState(&BLOCK)),
- (Keyword("match"), IncDepth),
- (Keyword("move"), SetState(&CLOSURE)),
- (Keyword("return"), SetState(&RETURN)),
- (Keyword("static"), SetState(&CLOSURE)),
- (Keyword("try"), SetState(&BLOCK)),
- (Keyword("unsafe"), SetState(&BLOCK)),
- (Keyword("while"), IncDepth),
- (Keyword("yield"), SetState(&RETURN)),
- (Keyword("_"), SetState(&POSTFIX)),
- (Punct("!"), SetState(&INIT)),
- (Punct("#"), SetState(&[(ConsumeDelimiter, SetState(&INIT))])),
- (Punct("&"), SetState(&REFERENCE)),
- (Punct("*"), SetState(&INIT)),
- (Punct("-"), SetState(&INIT)),
- (Punct("..="), SetState(&INIT)),
- (Punct(".."), SetState(&RANGE)),
- (Punct("|"), SetState(&CLOSURE_ARGS)),
- (ConsumeLifetime, SetState(&[(Punct(":"), SetState(&INIT))])),
- (ConsumeLiteral, SetState(&POSTFIX)),
- (ExpectPath, SetState(&PATH)),
-];
-
-static POSTFIX: [(Input, Action); 10] = [
- (Keyword("as"), SetState(&[(ExpectType, SetState(&POSTFIX))])),
- (Punct("..="), SetState(&INIT)),
- (Punct(".."), SetState(&RANGE)),
- (Punct("."), SetState(&DOT)),
- (Punct("?"), SetState(&POSTFIX)),
- (ConsumeBinOp, SetState(&INIT)),
- (Punct("="), SetState(&INIT)),
- (ConsumeNestedBrace, SetState(&IF_THEN)),
- (ConsumeDelimiter, SetState(&POSTFIX)),
- (Empty, Finish),
-];
-
-static ASYNC: [(Input, Action); 3] = [
- (Keyword("move"), SetState(&ASYNC)),
- (Punct("|"), SetState(&CLOSURE_ARGS)),
- (ConsumeBrace, SetState(&POSTFIX)),
-];
-
-static BLOCK: [(Input, Action); 1] = [(ConsumeBrace, SetState(&POSTFIX))];
-
-static BREAK_LABEL: [(Input, Action); 2] =
- [(ConsumeLifetime, SetState(&BREAK_VALUE)), (Otherwise, SetState(&BREAK_VALUE))];
-
-static BREAK_VALUE: [(Input, Action); 3] = [
- (ConsumeNestedBrace, SetState(&IF_THEN)),
- (CanBeginExpr, SetState(&INIT)),
- (Otherwise, SetState(&POSTFIX)),
-];
-
-static CLOSURE: [(Input, Action); 7] = [
- (Keyword("async"), SetState(&CLOSURE)),
- (Keyword("move"), SetState(&CLOSURE)),
- (Punct(","), SetState(&CLOSURE)),
- (Punct(">"), SetState(&CLOSURE)),
- (Punct("|"), SetState(&CLOSURE_ARGS)),
- (ConsumeLifetime, SetState(&CLOSURE)),
- (ConsumeIdent, SetState(&CLOSURE)),
-];
-
-static CLOSURE_ARGS: [(Input, Action); 2] =
- [(Punct("|"), SetState(&CLOSURE_RET)), (ConsumeAny, SetState(&CLOSURE_ARGS))];
-
-static CLOSURE_RET: [(Input, Action); 2] =
- [(Punct("->"), SetState(&[(ExpectType, SetState(&BLOCK))])), (Otherwise, SetState(&INIT))];
-
-static CONST: [(Input, Action); 3] = [
- (Keyword("move"), SetState(&CLOSURE)),
- (Punct("|"), SetState(&CLOSURE_ARGS)),
- (ConsumeBrace, SetState(&POSTFIX)),
-];
-
-static CONTINUE: [(Input, Action); 2] =
- [(ConsumeLifetime, SetState(&POSTFIX)), (Otherwise, SetState(&POSTFIX))];
-
-static DOT: [(Input, Action); 3] = [
- (Keyword("await"), SetState(&POSTFIX)),
- (ConsumeIdent, SetState(&METHOD)),
- (ConsumeLiteral, SetState(&POSTFIX)),
-];
-
-static FOR: [(Input, Action); 2] =
- [(Punct("<"), SetState(&CLOSURE)), (Otherwise, SetState(&PATTERN))];
-
-static IF_ELSE: [(Input, Action); 2] = [(Keyword("if"), SetState(&INIT)), (ConsumeBrace, DecDepth)];
-static IF_THEN: [(Input, Action); 2] =
- [(Keyword("else"), SetState(&IF_ELSE)), (Otherwise, DecDepth)];
-
-static METHOD: [(Input, Action); 1] = [(ExpectTurbofish, SetState(&POSTFIX))];
-
-static PATH: [(Input, Action); 4] = [
- (Punct("!="), SetState(&INIT)),
- (Punct("!"), SetState(&INIT)),
- (ConsumeNestedBrace, SetState(&IF_THEN)),
- (Otherwise, SetState(&POSTFIX)),
-];
-
-static PATTERN: [(Input, Action); 15] = [
- (ConsumeDelimiter, SetState(&PATTERN)),
- (Keyword("box"), SetState(&PATTERN)),
- (Keyword("in"), IncDepth),
- (Keyword("mut"), SetState(&PATTERN)),
- (Keyword("ref"), SetState(&PATTERN)),
- (Keyword("_"), SetState(&PATTERN)),
- (Punct("!"), SetState(&PATTERN)),
- (Punct("&"), SetState(&PATTERN)),
- (Punct("..="), SetState(&PATTERN)),
- (Punct(".."), SetState(&PATTERN)),
- (Punct("="), SetState(&INIT)),
- (Punct("@"), SetState(&PATTERN)),
- (Punct("|"), SetState(&PATTERN)),
- (ConsumeLiteral, SetState(&PATTERN)),
- (ExpectPath, SetState(&PATTERN)),
-];
-
-static RANGE: [(Input, Action); 6] = [
- (Punct("..="), SetState(&INIT)),
- (Punct(".."), SetState(&RANGE)),
- (Punct("."), SetState(&DOT)),
- (ConsumeNestedBrace, SetState(&IF_THEN)),
- (Empty, Finish),
- (Otherwise, SetState(&INIT)),
-];
-
-static RAW: [(Input, Action); 3] = [
- (Keyword("const"), SetState(&INIT)),
- (Keyword("mut"), SetState(&INIT)),
- (Otherwise, SetState(&POSTFIX)),
-];
-
-static REFERENCE: [(Input, Action); 3] = [
- (Keyword("mut"), SetState(&INIT)),
- (Keyword("raw"), SetState(&RAW)),
- (Otherwise, SetState(&INIT)),
-];
-
-static RETURN: [(Input, Action); 2] =
- [(CanBeginExpr, SetState(&INIT)), (Otherwise, SetState(&POSTFIX))];
-
-pub(crate) fn scan_expr(input: ParseStream) -> Result<()> {
- let mut state = INIT.as_slice();
- let mut depth = 0usize;
- 'table: loop {
- for rule in state {
- if match rule.0 {
- Input::Keyword(expected) => input.step(|cursor| match cursor.ident() {
- Some((ident, rest)) if ident == expected => Ok((true, rest)),
- _ => Ok((false, *cursor)),
- })?,
- Input::Punct(expected) => input.step(|cursor| {
- let begin = *cursor;
- let mut cursor = begin;
- for (i, ch) in expected.chars().enumerate() {
- match cursor.punct() {
- Some((punct, _)) if punct.as_char() != ch => break,
- Some((_, rest)) if i == expected.len() - 1 => {
- return Ok((true, rest));
- }
- Some((punct, rest)) if punct.spacing() == Spacing::Joint => {
- cursor = rest;
- }
- _ => break,
- }
- }
- Ok((false, begin))
- })?,
- Input::ConsumeAny => input.parse::<Option<TokenTree>>()?.is_some(),
- Input::ConsumeBinOp => input.parse::<BinOp>().is_ok(),
- Input::ConsumeBrace | Input::ConsumeNestedBrace => {
- (matches!(rule.0, Input::ConsumeBrace) || depth > 0)
- && input.step(|cursor| match cursor.group(Delimiter::Brace) {
- Some((_inside, _span, rest)) => Ok((true, rest)),
- None => Ok((false, *cursor)),
- })?
- }
- Input::ConsumeDelimiter => input.step(|cursor| match cursor.any_group() {
- Some((_inside, _delimiter, _span, rest)) => Ok((true, rest)),
- None => Ok((false, *cursor)),
- })?,
- Input::ConsumeIdent => input.parse::<Option<Ident>>()?.is_some(),
- Input::ConsumeLifetime => input.parse::<Option<Lifetime>>()?.is_some(),
- Input::ConsumeLiteral => input.parse::<Option<Lit>>()?.is_some(),
- Input::ExpectPath => {
- input.parse::<ExprPath>()?;
- true
- }
- Input::ExpectTurbofish => {
- if input.peek(Token![::]) {
- input.parse::<AngleBracketedGenericArguments>()?;
- }
- true
- }
- Input::ExpectType => {
- Type::without_plus(input)?;
- true
- }
- Input::CanBeginExpr => Expr::peek(input),
- Input::Otherwise => true,
- Input::Empty => input.is_empty() || input.peek(Token![,]),
- } {
- state = match rule.1 {
- Action::SetState(next) => next,
- Action::IncDepth => (depth += 1, &INIT).1,
- Action::DecDepth => (depth -= 1, &POSTFIX).1,
- Action::Finish => return if depth == 0 { Ok(()) } else { break },
- };
- continue 'table;
- }
- }
- return Err(input.error("unsupported expression"));
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/sealed.rs b/deps/crates/vendor/syn-v2/src/sealed.rs
deleted file mode 100644
index dc804742d12..00000000000
--- a/deps/crates/vendor/syn-v2/src/sealed.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-#[cfg(feature = "parsing")]
-pub(crate) mod lookahead {
- pub trait Sealed: Copy {}
-}
diff --git a/deps/crates/vendor/syn-v2/src/span.rs b/deps/crates/vendor/syn-v2/src/span.rs
deleted file mode 100644
index eb2779479aa..00000000000
--- a/deps/crates/vendor/syn-v2/src/span.rs
+++ /dev/null
@@ -1,63 +0,0 @@
-use proc_macro2::extra::DelimSpan;
-use proc_macro2::{Delimiter, Group, Span, TokenStream};
-
-#[doc(hidden)]
-pub trait IntoSpans<S> {
- fn into_spans(self) -> S;
-}
-
-impl IntoSpans<Span> for Span {
- fn into_spans(self) -> Span {
- self
- }
-}
-
-impl IntoSpans<[Span; 1]> for Span {
- fn into_spans(self) -> [Span; 1] {
- [self]
- }
-}
-
-impl IntoSpans<[Span; 2]> for Span {
- fn into_spans(self) -> [Span; 2] {
- [self, self]
- }
-}
-
-impl IntoSpans<[Span; 3]> for Span {
- fn into_spans(self) -> [Span; 3] {
- [self, self, self]
- }
-}
-
-impl IntoSpans<[Span; 1]> for [Span; 1] {
- fn into_spans(self) -> [Span; 1] {
- self
- }
-}
-
-impl IntoSpans<[Span; 2]> for [Span; 2] {
- fn into_spans(self) -> [Span; 2] {
- self
- }
-}
-
-impl IntoSpans<[Span; 3]> for [Span; 3] {
- fn into_spans(self) -> [Span; 3] {
- self
- }
-}
-
-impl IntoSpans<DelimSpan> for Span {
- fn into_spans(self) -> DelimSpan {
- let mut group = Group::new(Delimiter::None, TokenStream::new());
- group.set_span(self);
- group.delim_span()
- }
-}
-
-impl IntoSpans<DelimSpan> for DelimSpan {
- fn into_spans(self) -> DelimSpan {
- self
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/spanned.rs b/deps/crates/vendor/syn-v2/src/spanned.rs
deleted file mode 100644
index 38551445b26..00000000000
--- a/deps/crates/vendor/syn-v2/src/spanned.rs
+++ /dev/null
@@ -1,118 +0,0 @@
-//! A trait that can provide the `Span` of the complete contents of a syntax
-//! tree node.
-//!
-//! <br>
-//!
-//! # Example
-//!
-//! Suppose in a procedural macro we have a [`Type`] that we want to assert
-//! implements the [`Sync`] trait. Maybe this is the type of one of the fields
-//! of a struct for which we are deriving a trait implementation, and we need to
-//! be able to pass a reference to one of those fields across threads.
-//!
-//! [`Type`]: crate::Type
-//! [`Sync`]: core::marker::Sync
-//!
-//! If the field type does *not* implement `Sync` as required, we want the
-//! compiler to report an error pointing out exactly which type it was.
-//!
-//! The following macro code takes a variable `ty` of type `Type` and produces a
-//! static assertion that `Sync` is implemented for that type.
-//!
-//! ```
-//! # extern crate proc_macro;
-//! #
-//! use proc_macro::TokenStream;
-//! use proc_macro2::Span;
-//! use quote::quote_spanned;
-//! use syn::Type;
-//! use syn::spanned::Spanned;
-//!
-//! # const IGNORE_TOKENS: &str = stringify! {
-//! #[proc_macro_derive(MyMacro)]
-//! # };
-//! pub fn my_macro(input: TokenStream) -> TokenStream {
-//! # let ty = get_a_type();
-//! /* ... */
-//!
-//! let assert_sync = quote_spanned! {ty.span()=>
-//! struct _AssertSync where #ty: Sync;
-//! };
-//!
-//! /* ... */
-//! # input
-//! }
-//! #
-//! # fn get_a_type() -> Type {
-//! # unimplemented!()
-//! # }
-//! ```
-//!
-//! By inserting this `assert_sync` fragment into the output code generated by
-//! our macro, the user's code will fail to compile if `ty` does not implement
-//! `Sync`. The errors they would see look like the following.
-//!
-//! ```text
-//! error[E0277]: the trait bound `*const i32: core::marker::Sync` is not satisfied
-//! --> src/main.rs:10:21
-//! |
-//! 10 | bad_field: *const i32,
-//! | ^^^^^^^^^^ `*const i32` cannot be shared between threads safely
-//! ```
-//!
-//! In this technique, using the `Type`'s span for the error message makes the
-//! error appear in the correct place underlining the right type.
-//!
-//! <br>
-//!
-//! # Limitations
-//!
-//! The underlying [`proc_macro::Span::join`] method is nightly-only. When
-//! called from within a procedural macro in a nightly compiler, `Spanned` will
-//! use `join` to produce the intended span. When not using a nightly compiler,
-//! only the span of the *first token* of the syntax tree node is returned.
-//!
-//! In the common case of wanting to use the joined span as the span of a
-//! `syn::Error`, consider instead using [`syn::Error::new_spanned`] which is
-//! able to span the error correctly under the complete syntax tree node without
-//! needing the unstable `join`.
-//!
-//! [`syn::Error::new_spanned`]: crate::Error::new_spanned
-
-use proc_macro2::Span;
-use quote::spanned::Spanned as ToTokens;
-
-/// A trait that can provide the `Span` of the complete contents of a syntax
-/// tree node.
-///
-/// This trait is automatically implemented for all types that implement
-/// [`ToTokens`] from the `quote` crate, as well as for `Span` itself.
-///
-/// [`ToTokens`]: quote::ToTokens
-///
-/// See the [module documentation] for an example.
-///
-/// [module documentation]: self
-pub trait Spanned: private::Sealed {
- /// Returns a `Span` covering the complete contents of this syntax tree
- /// node, or [`Span::call_site()`] if this node is empty.
- ///
- /// [`Span::call_site()`]: proc_macro2::Span::call_site
- fn span(&self) -> Span;
-}
-
-impl<T: ?Sized + ToTokens> Spanned for T {
- fn span(&self) -> Span {
- self.__span()
- }
-}
-
-mod private {
- use crate::spanned::ToTokens;
-
- pub trait Sealed {}
- impl<T: ?Sized + ToTokens> Sealed for T {}
-
- #[cfg(any(feature = "full", feature = "derive"))]
- impl Sealed for crate::QSelf {}
-}
diff --git a/deps/crates/vendor/syn-v2/src/stmt.rs b/deps/crates/vendor/syn-v2/src/stmt.rs
deleted file mode 100644
index 4fcd9304cb9..00000000000
--- a/deps/crates/vendor/syn-v2/src/stmt.rs
+++ /dev/null
@@ -1,477 +0,0 @@
-use crate::attr::Attribute;
-use crate::expr::Expr;
-use crate::item::Item;
-use crate::mac::Macro;
-use crate::pat::Pat;
-use crate::token;
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-
-ast_struct! {
- /// A braced block containing Rust statements.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Block {
- pub brace_token: token::Brace,
- /// Statements in a block
- pub stmts: Vec<Stmt>,
- }
-}
-
-ast_enum! {
- /// A statement, usually ending in a semicolon.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub enum Stmt {
- /// A local (let) binding.
- Local(Local),
-
- /// An item definition.
- Item(Item),
-
- /// Expression, with or without trailing semicolon.
- Expr(Expr, Option<Token![;]>),
-
- /// A macro invocation in statement position.
- ///
- /// Syntactically it's ambiguous which other kind of statement this
- /// macro would expand to. It can be any of local variable (`let`),
- /// item, or expression.
- Macro(StmtMacro),
- }
-}
-
-ast_struct! {
- /// A local `let` binding: `let x: u64 = s.parse()?;`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct Local {
- pub attrs: Vec<Attribute>,
- pub let_token: Token![let],
- pub pat: Pat,
- pub init: Option<LocalInit>,
- pub semi_token: Token![;],
- }
-}
-
-ast_struct! {
- /// The expression assigned in a local `let` binding, including optional
- /// diverging `else` block.
- ///
- /// `LocalInit` represents `= s.parse()?` in `let x: u64 = s.parse()?` and
- /// `= r else { return }` in `let Ok(x) = r else { return }`.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct LocalInit {
- pub eq_token: Token![=],
- pub expr: Box<Expr>,
- pub diverge: Option<(Token![else], Box<Expr>)>,
- }
-}
-
-ast_struct! {
- /// A macro invocation in statement position.
- ///
- /// Syntactically it's ambiguous which other kind of statement this macro
- /// would expand to. It can be any of local variable (`let`), item, or
- /// expression.
- #[cfg_attr(docsrs, doc(cfg(feature = "full")))]
- pub struct StmtMacro {
- pub attrs: Vec<Attribute>,
- pub mac: Macro,
- pub semi_token: Option<Token![;]>,
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::buffer::Cursor;
- use crate::classify;
- use crate::error::Result;
- use crate::expr::{Expr, ExprBlock, ExprMacro};
- use crate::ident::Ident;
- use crate::item;
- use crate::mac::{self, Macro};
- use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
- use crate::pat::{Pat, PatType};
- use crate::path::Path;
- use crate::stmt::{Block, Local, LocalInit, Stmt, StmtMacro};
- use crate::token;
- use crate::ty::Type;
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::vec::Vec;
- use core::mem;
- use proc_macro2::TokenStream;
-
- struct AllowNoSemi(bool);
-
- impl Block {
- /// Parse the body of a block as zero or more statements, possibly
- /// including one trailing expression.
- ///
- /// # Example
- ///
- /// ```
- /// use syn::{braced, token, Attribute, Block, Ident, Result, Stmt, Token};
- /// use syn::parse::{Parse, ParseStream};
- ///
- /// // Parse a function with no generics or parameter list.
- /// //
- /// // fn playground {
- /// // let mut x = 1;
- /// // x += 1;
- /// // println!("{}", x);
- /// // }
- /// struct MiniFunction {
- /// attrs: Vec<Attribute>,
- /// fn_token: Token![fn],
- /// name: Ident,
- /// brace_token: token::Brace,
- /// stmts: Vec<Stmt>,
- /// }
- ///
- /// impl Parse for MiniFunction {
- /// fn parse(input: ParseStream) -> Result<Self> {
- /// let outer_attrs = input.call(Attribute::parse_outer)?;
- /// let fn_token: Token![fn] = input.parse()?;
- /// let name: Ident = input.parse()?;
- ///
- /// let content;
- /// let brace_token = braced!(content in input);
- /// let inner_attrs = content.call(Attribute::parse_inner)?;
- /// let stmts = content.call(Block::parse_within)?;
- ///
- /// Ok(MiniFunction {
- /// attrs: {
- /// let mut attrs = outer_attrs;
- /// attrs.extend(inner_attrs);
- /// attrs
- /// },
- /// fn_token,
- /// name,
- /// brace_token,
- /// stmts,
- /// })
- /// }
- /// }
- /// ```
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn parse_within(input: ParseStream) -> Result<Vec<Stmt>> {
- let mut stmts = Vec::new();
- loop {
- while let semi @ Some(_) = input.parse()? {
- stmts.push(Stmt::Expr(Expr::Verbatim(TokenStream::new()), semi));
- }
- if input.is_empty() {
- break;
- }
- let stmt = parse_stmt(input, AllowNoSemi(true))?;
- let requires_semicolon = match &stmt {
- Stmt::Expr(stmt, None) => classify::requires_semi_to_be_stmt(stmt),
- Stmt::Macro(stmt) => {
- stmt.semi_token.is_none() && !stmt.mac.delimiter.is_brace()
- }
- Stmt::Local(_) | Stmt::Item(_) | Stmt::Expr(_, Some(_)) => false,
- };
- stmts.push(stmt);
- if input.is_empty() {
- break;
- } else if requires_semicolon {
- return Err(input.error("unexpected token, expected `;`"));
- }
- }
- Ok(stmts)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Block {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(Block {
- brace_token: braced!(content in input),
- stmts: content.call(Block::parse_within)?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Stmt {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_nosemi = AllowNoSemi(false);
- parse_stmt(input, allow_nosemi)
- }
- }
-
- fn parse_stmt(input: ParseStream, allow_nosemi: AllowNoSemi) -> Result<Stmt> {
- let begin = input.cursor();
- let attrs = input.call(Attribute::parse_outer)?;
- let attrs_end = input.cursor();
-
- // brace-style macros; paren and bracket macros get parsed as
- // expression statements.
- let ahead = input.fork();
- let mut is_item_macro = false;
- if let Ok(path) = ahead.call(Path::parse_mod_style) {
- if ahead.peek(Token![!]) {
- if ahead.peek2(Ident) || ahead.peek2(Token![try]) {
- is_item_macro = true;
- } else if ahead.peek2(token::Brace)
- && !(ahead.peek3(Token![.]) && !ahead.peek3(Token![..])
- || ahead.peek3(Token![?]))
- {
- input.advance_to(&ahead);
- return stmt_mac(input, attrs, path).map(Stmt::Macro);
- }
- }
- }
-
- if input.peek(Token![let]) && !input.peek(token::Group) {
- stmt_local(input, attrs).map(Stmt::Local)
- } else if input.peek(Token![pub])
- || input.peek(Token![crate]) && !input.peek2(Token![::])
- || input.peek(Token![extern])
- || input.peek(Token![use])
- || input.peek(Token![static])
- && (input.peek2(Token![mut])
- || input.peek2(Ident)
- && !(input.peek2(Token![async])
- && (input.peek3(Token![move]) || input.peek3(Token![|]))))
- || input.peek(Token![const])
- && !(input.peek2(token::Brace)
- || input.peek2(Token![static])
- || input.peek2(Token![async])
- && !(input.peek3(Token![unsafe])
- || input.peek3(Token![extern])
- || input.peek3(Token![fn]))
- || input.peek2(Token![move])
- || input.peek2(Token![|]))
- || input.peek(Token![unsafe]) && !input.peek2(token::Brace)
- || input.peek(Token![async])
- && (input.peek2(Token![unsafe])
- || input.peek2(Token![extern])
- || input.peek2(Token![fn]))
- || input.peek(Token![fn])
- || input.peek(Token![mod])
- || input.peek(Token![type])
- || input.peek(Token![struct])
- || input.peek(Token![enum])
- || input.peek(Token![union]) && input.peek2(Ident)
- || input.peek(Token![auto]) && input.peek2(Token![trait])
- || input.peek(Token![trait])
- || input.peek(Token![default])
- && (input.peek2(Token![unsafe]) || input.peek2(Token![impl]))
- || input.peek(Token![impl])
- || input.peek(Token![macro])
- || is_item_macro
- {
- let item = item::parsing::parse_rest_of_item(begin, attrs, input)?;
- Ok(Stmt::Item(item))
- } else {
- stmt_expr(begin, input, allow_nosemi, attrs, attrs_end)
- }
- }
-
- fn stmt_mac(input: ParseStream, attrs: Vec<Attribute>, path: Path) -> Result<StmtMacro> {
- let bang_token: Token![!] = input.parse()?;
- let (delimiter, tokens) = mac::parse_delimiter(input)?;
- let semi_token: Option<Token![;]> = input.parse()?;
-
- Ok(StmtMacro { attrs, mac: Macro { path, bang_token, delimiter, tokens }, semi_token })
- }
-
- fn stmt_local(input: ParseStream, attrs: Vec<Attribute>) -> Result<Local> {
- let let_token: Token![let] = input.parse()?;
-
- let mut pat = Pat::parse_single(input)?;
- if input.peek(Token![:]) {
- let colon_token: Token![:] = input.parse()?;
- let ty: Type = input.parse()?;
- pat = Pat::Type(PatType {
- attrs: Vec::new(),
- pat: Box::new(pat),
- colon_token,
- ty: Box::new(ty),
- });
- }
-
- let init = if let Some(eq_token) = input.parse()? {
- let eq_token: Token![=] = eq_token;
- let expr: Expr = input.parse()?;
-
- let diverge = if !classify::expr_trailing_brace(&expr) && input.peek(Token![else]) {
- let else_token: Token![else] = input.parse()?;
- let diverge = ExprBlock { attrs: Vec::new(), label: None, block: input.parse()? };
- Some((else_token, Box::new(Expr::Block(diverge))))
- } else {
- None
- };
-
- Some(LocalInit { eq_token, expr: Box::new(expr), diverge })
- } else {
- None
- };
-
- let semi_token: Token![;] = input.parse()?;
-
- Ok(Local { attrs, let_token, pat, init, semi_token })
- }
-
- fn stmt_expr(
- begin: Cursor,
- input: ParseStream,
- allow_nosemi: AllowNoSemi,
- mut attrs: Vec<Attribute>,
- attrs_end: Cursor,
- ) -> Result<Stmt> {
- let mut e = Expr::parse_with_earlier_boundary_rule(input)?;
-
- let mut attr_target = &mut e;
- loop {
- attr_target = match attr_target {
- Expr::Assign(e) => &mut e.left,
- Expr::Binary(e) => &mut e.left,
- Expr::Cast(e) => &mut e.expr,
- Expr::Array(_)
- | Expr::Async(_)
- | Expr::Await(_)
- | Expr::Block(_)
- | Expr::Break(_)
- | Expr::Call(_)
- | Expr::Closure(_)
- | Expr::Const(_)
- | Expr::Continue(_)
- | Expr::Field(_)
- | Expr::ForLoop(_)
- | Expr::Group(_)
- | Expr::If(_)
- | Expr::Index(_)
- | Expr::Infer(_)
- | Expr::Let(_)
- | Expr::Lit(_)
- | Expr::Loop(_)
- | Expr::Macro(_)
- | Expr::Match(_)
- | Expr::MethodCall(_)
- | Expr::Paren(_)
- | Expr::Path(_)
- | Expr::Range(_)
- | Expr::RawAddr(_)
- | Expr::Reference(_)
- | Expr::Repeat(_)
- | Expr::Return(_)
- | Expr::Struct(_)
- | Expr::Try(_)
- | Expr::TryBlock(_)
- | Expr::Tuple(_)
- | Expr::Unary(_)
- | Expr::Unsafe(_)
- | Expr::While(_)
- | Expr::Yield(_)
- | Expr::Verbatim(_) => break,
- };
- }
-
- if !attrs.is_empty() {
- if let Expr::Verbatim(expr_tokens) = attr_target {
- let mut attr_tokens = verbatim::between(begin, attrs_end);
- attr_tokens.extend(mem::replace(expr_tokens, TokenStream::new()));
- *expr_tokens = attr_tokens;
- } else {
- let inner_attrs = attr_target.replace_attrs(Vec::new());
- attrs.extend(inner_attrs);
- attr_target.replace_attrs(attrs);
- }
- }
-
- let semi_token: Option<Token![;]> = input.parse()?;
-
- match e {
- Expr::Macro(ExprMacro { attrs, mac })
- if semi_token.is_some() || mac.delimiter.is_brace() =>
- {
- return Ok(Stmt::Macro(StmtMacro { attrs, mac, semi_token }));
- }
- _ => {}
- }
-
- if semi_token.is_some() {
- Ok(Stmt::Expr(e, semi_token))
- } else if allow_nosemi.0 || !classify::requires_semi_to_be_stmt(&e) {
- Ok(Stmt::Expr(e, None))
- } else {
- Err(input.error("expected semicolon"))
- }
- }
-}
-
-#[cfg(feature = "printing")]
-pub(crate) mod printing {
- use crate::classify;
- use crate::expr::{self, Expr};
- use crate::fixup::FixupContext;
- use crate::stmt::{Block, Local, Stmt, StmtMacro};
- use crate::token;
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Block {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.brace_token.surround(tokens, |tokens| {
- tokens.append_all(&self.stmts);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Stmt {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- Stmt::Local(local) => local.to_tokens(tokens),
- Stmt::Item(item) => item.to_tokens(tokens),
- Stmt::Expr(expr, semi) => {
- expr::printing::print_expr(expr, tokens, FixupContext::new_stmt());
- semi.to_tokens(tokens);
- }
- Stmt::Macro(mac) => mac.to_tokens(tokens),
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Local {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- expr::printing::outer_attrs_to_tokens(&self.attrs, tokens);
- self.let_token.to_tokens(tokens);
- self.pat.to_tokens(tokens);
- if let Some(init) = &self.init {
- init.eq_token.to_tokens(tokens);
- expr::printing::print_subexpression(
- &init.expr,
- init.diverge.is_some() && classify::expr_trailing_brace(&init.expr),
- tokens,
- FixupContext::NONE,
- );
- if let Some((else_token, diverge)) = &init.diverge {
- else_token.to_tokens(tokens);
- match &**diverge {
- Expr::Block(diverge) => diverge.to_tokens(tokens),
- _ => token::Brace::default().surround(tokens, |tokens| {
- expr::printing::print_expr(diverge, tokens, FixupContext::new_stmt());
- }),
- }
- }
- }
- self.semi_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for StmtMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- expr::printing::outer_attrs_to_tokens(&self.attrs, tokens);
- self.mac.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/thread.rs b/deps/crates/vendor/syn-v2/src/thread.rs
deleted file mode 100644
index 82accac78ec..00000000000
--- a/deps/crates/vendor/syn-v2/src/thread.rs
+++ /dev/null
@@ -1,60 +0,0 @@
-use core::fmt::{self, Debug};
-use std::thread::{self, ThreadId};
-
-/// ThreadBound is a Sync-maker and Send-maker that allows accessing a value
-/// of type T only from the original thread on which the ThreadBound was
-/// constructed.
-pub(crate) struct ThreadBound<T> {
- value: T,
- thread_id: ThreadId,
-}
-
-unsafe impl<T> Sync for ThreadBound<T> {}
-
-// Send bound requires Copy, as otherwise Drop could run in the wrong place.
-//
-// Today Copy and Drop are mutually exclusive so `T: Copy` implies `T: !Drop`.
-// This impl needs to be revisited if that restriction is relaxed in the future.
-unsafe impl<T: Copy> Send for ThreadBound<T> {}
-
-impl<T> ThreadBound<T> {
- pub(crate) fn new(value: T) -> Self {
- ThreadBound {
- value,
- thread_id: thread::current().id(),
- }
- }
-
- pub(crate) fn get(&self) -> Option<&T> {
- if thread::current().id() == self.thread_id {
- Some(&self.value)
- } else {
- None
- }
- }
-}
-
-impl<T: Debug> Debug for ThreadBound<T> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match self.get() {
- Some(value) => Debug::fmt(value, formatter),
- None => formatter.write_str("unknown"),
- }
- }
-}
-
-// Copy the bytes of T, even if the currently running thread is the "wrong"
-// thread. This is fine as long as the original thread is not simultaneously
-// mutating this value via interior mutability, which would be a data race.
-//
-// Currently `T: Copy` is sufficient to guarantee that T contains no interior
-// mutability, because _all_ interior mutability in Rust is built on
-// core::cell::UnsafeCell, which has no Copy impl. This impl needs to be
-// revisited if that restriction is relaxed in the future.
-impl<T: Copy> Copy for ThreadBound<T> {}
-
-impl<T: Copy> Clone for ThreadBound<T> {
- fn clone(&self) -> Self {
- *self
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/token.rs b/deps/crates/vendor/syn-v2/src/token.rs
deleted file mode 100644
index 32c5a013e74..00000000000
--- a/deps/crates/vendor/syn-v2/src/token.rs
+++ /dev/null
@@ -1,1104 +0,0 @@
-//! Tokens representing Rust punctuation, keywords, and delimiters.
-//!
-//! The type names in this module can be difficult to keep straight, so we
-//! prefer to use the [`Token!`] macro instead. This is a type-macro that
-//! expands to the token type of the given token.
-//!
-//! [`Token!`]: crate::Token
-//!
-//! # Example
-//!
-//! The [`ItemStatic`] syntax tree node is defined like this.
-//!
-//! [`ItemStatic`]: crate::ItemStatic
-//!
-//! ```
-//! # use syn::{Attribute, Expr, Ident, Token, Type, Visibility};
-//! #
-//! pub struct ItemStatic {
-//! pub attrs: Vec<Attribute>,
-//! pub vis: Visibility,
-//! pub static_token: Token![static],
-//! pub mutability: Option<Token![mut]>,
-//! pub ident: Ident,
-//! pub colon_token: Token![:],
-//! pub ty: Box<Type>,
-//! pub eq_token: Token![=],
-//! pub expr: Box<Expr>,
-//! pub semi_token: Token![;],
-//! }
-//! ```
-//!
-//! # Parsing
-//!
-//! Keywords and punctuation can be parsed through the [`ParseStream::parse`]
-//! method. Delimiter tokens are parsed using the [`parenthesized!`],
-//! [`bracketed!`] and [`braced!`] macros.
-//!
-//! [`ParseStream::parse`]: crate::parse::ParseBuffer::parse()
-//! [`parenthesized!`]: crate::parenthesized!
-//! [`bracketed!`]: crate::bracketed!
-//! [`braced!`]: crate::braced!
-//!
-//! ```
-//! use syn::{Attribute, Result};
-//! use syn::parse::{Parse, ParseStream};
-//! #
-//! # enum ItemStatic {}
-//!
-//! // Parse the ItemStatic struct shown above.
-//! impl Parse for ItemStatic {
-//! fn parse(input: ParseStream) -> Result<Self> {
-//! # use syn::ItemStatic;
-//! # fn parse(input: ParseStream) -> Result<ItemStatic> {
-//! Ok(ItemStatic {
-//! attrs: input.call(Attribute::parse_outer)?,
-//! vis: input.parse()?,
-//! static_token: input.parse()?,
-//! mutability: input.parse()?,
-//! ident: input.parse()?,
-//! colon_token: input.parse()?,
-//! ty: input.parse()?,
-//! eq_token: input.parse()?,
-//! expr: input.parse()?,
-//! semi_token: input.parse()?,
-//! })
-//! # }
-//! # unimplemented!()
-//! }
-//! }
-//! ```
-//!
-//! # Other operations
-//!
-//! Every keyword and punctuation token supports the following operations.
-//!
-//! - [Peeking] — `input.peek(Token![...])`
-//!
-//! - [Parsing] — `input.parse::<Token![...]>()?`
-//!
-//! - [Printing] — `quote!( ... #the_token ... )`
-//!
-//! - Construction from a [`Span`] — `let the_token = Token`
-//!
-//! - Field access to its span — `let sp = the_token.span`
-//!
-//! [Peeking]: crate::parse::ParseBuffer::peek()
-//! [Parsing]: crate::parse::ParseBuffer::parse()
-//! [Printing]: https://docs.rs/quote/1.0/quote/trait.ToTokens.html
-//! [`Span`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.Span.html
-
-#[cfg(feature = "parsing")]
-pub(crate) use self::private::CustomToken;
-use self::private::WithSpan;
-#[cfg(feature = "parsing")]
-use crate::buffer::Cursor;
-#[cfg(feature = "parsing")]
-use crate::error::Result;
-#[cfg(feature = "parsing")]
-use crate::lifetime::Lifetime;
-#[cfg(feature = "parsing")]
-use crate::parse::{Parse, ParseStream};
-use crate::span::IntoSpans;
-#[cfg(feature = "extra-traits")]
-use core::cmp;
-#[cfg(feature = "extra-traits")]
-use core::fmt::{self, Debug};
-#[cfg(feature = "extra-traits")]
-use core::hash::{Hash, Hasher};
-use core::ops::{Deref, DerefMut};
-use proc_macro2::extra::DelimSpan;
-use proc_macro2::Span;
-#[cfg(feature = "printing")]
-use proc_macro2::TokenStream;
-#[cfg(any(feature = "parsing", feature = "printing"))]
-use proc_macro2::{Delimiter, Ident};
-#[cfg(feature = "parsing")]
-use proc_macro2::{Literal, Punct, TokenTree};
-#[cfg(feature = "printing")]
-use quote::{ToTokens, TokenStreamExt as _};
-
-/// Marker trait for types that represent single tokens.
-///
-/// This trait is sealed and cannot be implemented for types outside of Syn.
-#[cfg(feature = "parsing")]
-pub trait Token: private::Sealed {
- // Not public API.
- #[doc(hidden)]
- fn peek(cursor: Cursor) -> bool;
-
- // Not public API.
- #[doc(hidden)]
- fn display() -> &'static str;
-}
-
-pub(crate) mod private {
- #[cfg(feature = "parsing")]
- use crate::buffer::Cursor;
- use proc_macro2::Span;
-
- #[cfg(feature = "parsing")]
- pub trait Sealed {}
-
- /// Support writing `token.span` rather than `token.spans[0]` on tokens that
- /// hold a single span.
- #[repr(transparent)]
- #[allow(
- unknown_lints,
- renamed_and_removed_lints,
- // False positive: https://github.com/rust-lang/rust/issues/115922
- repr_transparent_non_zst_fields,
- )]
- pub struct WithSpan {
- pub span: Span,
- }
-
- // Not public API.
- #[doc(hidden)]
- #[cfg(feature = "parsing")]
- pub trait CustomToken {
- fn peek(cursor: Cursor) -> bool;
- fn display() -> &'static str;
- }
-}
-
-#[cfg(feature = "parsing")]
-impl private::Sealed for Ident {}
-
-macro_rules! impl_low_level_token {
- ($display:literal $($path:ident)::+ $get:ident) => {
- #[cfg(feature = "parsing")]
- impl Token for $($path)::+ {
- fn peek(cursor: Cursor) -> bool {
- cursor.$get().is_some()
- }
-
- fn display() -> &'static str {
- $display
- }
- }
-
- #[cfg(feature = "parsing")]
- impl private::Sealed for $($path)::+ {}
- };
-}
-
-impl_low_level_token!("punctuation token" Punct punct);
-impl_low_level_token!("literal" Literal literal);
-impl_low_level_token!("token" TokenTree token_tree);
-impl_low_level_token!("group token" proc_macro2::Group any_group);
-impl_low_level_token!("lifetime" Lifetime lifetime);
-
-#[cfg(feature = "parsing")]
-impl<T: CustomToken> private::Sealed for T {}
-
-#[cfg(feature = "parsing")]
-impl<T: CustomToken> Token for T {
- fn peek(cursor: Cursor) -> bool {
- <Self as CustomToken>::peek(cursor)
- }
-
- fn display() -> &'static str {
- <Self as CustomToken>::display()
- }
-}
-
-macro_rules! define_keywords {
- ($($token:literal pub struct $name:ident)*) => {
- $(
- #[doc = concat!('`', $token, '`')]
- ///
- /// Don't try to remember the name of this type — use the
- /// [`Token!`] macro instead.
- ///
- /// [`Token!`]: crate::token
- pub struct $name {
- pub span: Span,
- }
-
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn $name<S: IntoSpans<Span>>(span: S) -> $name {
- $name {
- span: span.into_spans(),
- }
- }
-
- impl core::default::Default for $name {
- fn default() -> Self {
- $name {
- span: Span::call_site(),
- }
- }
- }
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Copy for $name {}
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Clone for $name {
- fn clone(&self) -> Self {
- *self
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for $name {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str(stringify!($name))
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl cmp::Eq for $name {}
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl PartialEq for $name {
- fn eq(&self, _other: &$name) -> bool {
- true
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Hash for $name {
- fn hash<H: Hasher>(&self, _state: &mut H) {}
- }
-
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for $name {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- printing::keyword($token, self.span, tokens);
- }
- }
-
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for $name {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok($name {
- span: parsing::keyword(input, $token)?,
- })
- }
- }
-
- #[cfg(feature = "parsing")]
- impl Token for $name {
- fn peek(cursor: Cursor) -> bool {
- parsing::peek_keyword(cursor, $token)
- }
-
- fn display() -> &'static str {
- concat!("`", $token, "`")
- }
- }
-
- #[cfg(feature = "parsing")]
- impl private::Sealed for $name {}
- )*
- };
-}
-
-macro_rules! impl_deref_if_len_is_1 {
- ($name:ident/1) => {
- impl Deref for $name {
- type Target = WithSpan;
-
- fn deref(&self) -> &Self::Target {
- unsafe { &*(self as *const Self).cast::<WithSpan>() }
- }
- }
-
- impl DerefMut for $name {
- fn deref_mut(&mut self) -> &mut Self::Target {
- unsafe { &mut *(self as *mut Self).cast::<WithSpan>() }
- }
- }
- };
-
- ($name:ident/$len:literal) => {};
-}
-
-macro_rules! define_punctuation_structs {
- ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => {
- $(
- #[cfg_attr(not(doc), repr(transparent))]
- #[allow(
- unknown_lints,
- renamed_and_removed_lints,
- // False positive: https://github.com/rust-lang/rust/issues/115922
- repr_transparent_non_zst_fields,
- )]
- #[doc = concat!('`', $token, '`')]
- ///
- /// Usage:
- #[doc = concat!($usage, '.')]
- ///
- /// Don't try to remember the name of this type — use the
- /// [`Token!`] macro instead.
- ///
- /// [`Token!`]: crate::token
- pub struct $name {
- pub spans: [Span; $len],
- }
-
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn $name<S: IntoSpans<[Span; $len]>>(spans: S) -> $name {
- $name {
- spans: spans.into_spans(),
- }
- }
-
- impl core::default::Default for $name {
- fn default() -> Self {
- $name {
- spans: [Span::call_site(); $len],
- }
- }
- }
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Copy for $name {}
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Clone for $name {
- fn clone(&self) -> Self {
- *self
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for $name {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str(stringify!($name))
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl cmp::Eq for $name {}
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl PartialEq for $name {
- fn eq(&self, _other: &$name) -> bool {
- true
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Hash for $name {
- fn hash<H: Hasher>(&self, _state: &mut H) {}
- }
-
- impl_deref_if_len_is_1!($name/$len);
- )*
- };
-}
-
-macro_rules! define_punctuation {
- ($($token:literal pub struct $name:ident/$len:tt #[doc = $usage:literal])*) => {
- $(
- define_punctuation_structs! {
- $token pub struct $name/$len #[doc = $usage]
- }
-
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for $name {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- printing::punct($token, &self.spans, tokens);
- }
- }
-
- #[cfg(feature = "parsing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for $name {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok($name {
- spans: parsing::punct(input, $token)?,
- })
- }
- }
-
- #[cfg(feature = "parsing")]
- impl Token for $name {
- fn peek(cursor: Cursor) -> bool {
- parsing::peek_punct(cursor, $token)
- }
-
- fn display() -> &'static str {
- concat!("`", $token, "`")
- }
- }
-
- #[cfg(feature = "parsing")]
- impl private::Sealed for $name {}
- )*
- };
-}
-
-macro_rules! define_delimiters {
- ($($delim:ident pub struct $name:ident #[$doc:meta])*) => {
- $(
- #[$doc]
- pub struct $name {
- pub span: DelimSpan,
- }
-
- #[doc(hidden)]
- #[allow(non_snake_case)]
- pub fn $name<S: IntoSpans<DelimSpan>>(span: S) -> $name {
- $name {
- span: span.into_spans(),
- }
- }
-
- impl core::default::Default for $name {
- fn default() -> Self {
- $name(Span::call_site())
- }
- }
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Copy for $name {}
-
- #[cfg(feature = "clone-impls")]
- #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
- impl Clone for $name {
- fn clone(&self) -> Self {
- *self
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Debug for $name {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str(stringify!($name))
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl cmp::Eq for $name {}
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl PartialEq for $name {
- fn eq(&self, _other: &$name) -> bool {
- true
- }
- }
-
- #[cfg(feature = "extra-traits")]
- #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
- impl Hash for $name {
- fn hash<H: Hasher>(&self, _state: &mut H) {}
- }
-
- impl $name {
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- pub fn surround<F>(&self, tokens: &mut TokenStream, f: F)
- where
- F: FnOnce(&mut TokenStream),
- {
- let mut inner = TokenStream::new();
- f(&mut inner);
- printing::delim(Delimiter::$delim, self.span.join(), tokens, inner);
- }
- }
-
- #[cfg(feature = "parsing")]
- impl private::Sealed for $name {}
- )*
- };
-}
-
-define_punctuation_structs! {
- "_" pub struct Underscore/1 /// wildcard patterns, inferred types, unnamed items in constants, extern crates, use declarations, and destructuring assignment
-}
-
-#[cfg(feature = "printing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
-impl ToTokens for Underscore {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append(Ident::new("_", self.span));
- }
-}
-
-#[cfg(feature = "parsing")]
-#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
-impl Parse for Underscore {
- fn parse(input: ParseStream) -> Result<Self> {
- input.step(|cursor| {
- if let Some((ident, rest)) = cursor.ident() {
- if ident == "_" {
- return Ok((Underscore(ident.span()), rest));
- }
- }
- if let Some((punct, rest)) = cursor.punct() {
- if punct.as_char() == '_' {
- return Ok((Underscore(punct.span()), rest));
- }
- }
- Err(cursor.error("expected `_`"))
- })
- }
-}
-
-#[cfg(feature = "parsing")]
-impl Token for Underscore {
- fn peek(cursor: Cursor) -> bool {
- if let Some((ident, _rest)) = cursor.ident() {
- return ident == "_";
- }
- if let Some((punct, _rest)) = cursor.punct() {
- return punct.as_char() == '_';
- }
- false
- }
-
- fn display() -> &'static str {
- "`_`"
- }
-}
-
-#[cfg(feature = "parsing")]
-impl private::Sealed for Underscore {}
-
-/// None-delimited group
-pub struct Group {
- pub span: Span,
-}
-
-#[doc(hidden)]
-#[allow(non_snake_case)]
-pub fn Group<S: IntoSpans<Span>>(span: S) -> Group {
- Group {
- span: span.into_spans(),
- }
-}
-
-impl core::default::Default for Group {
- fn default() -> Self {
- Group {
- span: Span::call_site(),
- }
- }
-}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Copy for Group {}
-
-#[cfg(feature = "clone-impls")]
-#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
-impl Clone for Group {
- fn clone(&self) -> Self {
- *self
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Debug for Group {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("Group")
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl cmp::Eq for Group {}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl PartialEq for Group {
- fn eq(&self, _other: &Group) -> bool {
- true
- }
-}
-
-#[cfg(feature = "extra-traits")]
-#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
-impl Hash for Group {
- fn hash<H: Hasher>(&self, _state: &mut H) {}
-}
-
-impl Group {
- #[cfg(feature = "printing")]
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- pub fn surround<F>(&self, tokens: &mut TokenStream, f: F)
- where
- F: FnOnce(&mut TokenStream),
- {
- let mut inner = TokenStream::new();
- f(&mut inner);
- printing::delim(Delimiter::None, self.span, tokens, inner);
- }
-}
-
-#[cfg(feature = "parsing")]
-impl private::Sealed for Group {}
-
-#[cfg(feature = "parsing")]
-impl Token for Paren {
- fn peek(cursor: Cursor) -> bool {
- cursor.group(Delimiter::Parenthesis).is_some()
- }
-
- fn display() -> &'static str {
- "parentheses"
- }
-}
-
-#[cfg(feature = "parsing")]
-impl Token for Brace {
- fn peek(cursor: Cursor) -> bool {
- cursor.group(Delimiter::Brace).is_some()
- }
-
- fn display() -> &'static str {
- "curly braces"
- }
-}
-
-#[cfg(feature = "parsing")]
-impl Token for Bracket {
- fn peek(cursor: Cursor) -> bool {
- cursor.group(Delimiter::Bracket).is_some()
- }
-
- fn display() -> &'static str {
- "square brackets"
- }
-}
-
-#[cfg(feature = "parsing")]
-impl Token for Group {
- fn peek(cursor: Cursor) -> bool {
- cursor.group(Delimiter::None).is_some()
- }
-
- fn display() -> &'static str {
- "invisible group"
- }
-}
-
-define_keywords! {
- "abstract" pub struct Abstract
- "as" pub struct As
- "async" pub struct Async
- "auto" pub struct Auto
- "await" pub struct Await
- "become" pub struct Become
- "box" pub struct Box
- "break" pub struct Break
- "const" pub struct Const
- "continue" pub struct Continue
- "crate" pub struct Crate
- "default" pub struct Default
- "do" pub struct Do
- "dyn" pub struct Dyn
- "else" pub struct Else
- "enum" pub struct Enum
- "extern" pub struct Extern
- "final" pub struct Final
- "fn" pub struct Fn
- "for" pub struct For
- "if" pub struct If
- "impl" pub struct Impl
- "in" pub struct In
- "let" pub struct Let
- "loop" pub struct Loop
- "macro" pub struct Macro
- "match" pub struct Match
- "mod" pub struct Mod
- "move" pub struct Move
- "mut" pub struct Mut
- "override" pub struct Override
- "priv" pub struct Priv
- "pub" pub struct Pub
- "raw" pub struct Raw
- "ref" pub struct Ref
- "return" pub struct Return
- "Self" pub struct SelfType
- "self" pub struct SelfValue
- "static" pub struct Static
- "struct" pub struct Struct
- "super" pub struct Super
- "trait" pub struct Trait
- "try" pub struct Try
- "type" pub struct Type
- "typeof" pub struct Typeof
- "union" pub struct Union
- "unsafe" pub struct Unsafe
- "unsized" pub struct Unsized
- "use" pub struct Use
- "virtual" pub struct Virtual
- "where" pub struct Where
- "while" pub struct While
- "yield" pub struct Yield
-}
-
-define_punctuation! {
- "&" pub struct And/1 /// bitwise and logical AND, borrow, references, reference patterns
- "&&" pub struct AndAnd/2 /// lazy AND, borrow, references, reference patterns
- "&=" pub struct AndEq/2 /// bitwise AND assignment
- "@" pub struct At/1 /// subpattern binding
- "^" pub struct Caret/1 /// bitwise and logical XOR
- "^=" pub struct CaretEq/2 /// bitwise XOR assignment
- ":" pub struct Colon/1 /// various separators
- "," pub struct Comma/1 /// various separators
- "$" pub struct Dollar/1 /// macros
- "." pub struct Dot/1 /// field access, tuple index
- ".." pub struct DotDot/2 /// range, struct expressions, patterns, range patterns
- "..." pub struct DotDotDot/3 /// variadic functions, range patterns
- "..=" pub struct DotDotEq/3 /// inclusive range, range patterns
- "=" pub struct Eq/1 /// assignment, attributes, various type definitions
- "==" pub struct EqEq/2 /// equal
- "=>" pub struct FatArrow/2 /// match arms, macros
- ">=" pub struct Ge/2 /// greater than or equal to, generics
- ">" pub struct Gt/1 /// greater than, generics, paths
- "<-" pub struct LArrow/2 /// unused
- "<=" pub struct Le/2 /// less than or equal to
- "<" pub struct Lt/1 /// less than, generics, paths
- "-" pub struct Minus/1 /// subtraction, negation
- "-=" pub struct MinusEq/2 /// subtraction assignment
- "!=" pub struct Ne/2 /// not equal
- "!" pub struct Not/1 /// bitwise and logical NOT, macro calls, inner attributes, never type, negative impls
- "|" pub struct Or/1 /// bitwise and logical OR, closures, patterns in match, if let, and while let
- "|=" pub struct OrEq/2 /// bitwise OR assignment
- "||" pub struct OrOr/2 /// lazy OR, closures
- "::" pub struct PathSep/2 /// path separator
- "%" pub struct Percent/1 /// remainder
- "%=" pub struct PercentEq/2 /// remainder assignment
- "+" pub struct Plus/1 /// addition, trait bounds, macro Kleene matcher
- "+=" pub struct PlusEq/2 /// addition assignment
- "#" pub struct Pound/1 /// attributes
- "?" pub struct Question/1 /// question mark operator, questionably sized, macro Kleene matcher
- "->" pub struct RArrow/2 /// function return type, closure return type, function pointer type
- ";" pub struct Semi/1 /// terminator for various items and statements, array types
- "<<" pub struct Shl/2 /// shift left, nested generics
- "<<=" pub struct ShlEq/3 /// shift left assignment
- ">>" pub struct Shr/2 /// shift right, nested generics
- ">>=" pub struct ShrEq/3 /// shift right assignment, nested generics
- "/" pub struct Slash/1 /// division
- "/=" pub struct SlashEq/2 /// division assignment
- "*" pub struct Star/1 /// multiplication, dereference, raw pointers, macro Kleene matcher, use wildcards
- "*=" pub struct StarEq/2 /// multiplication assignment
- "~" pub struct Tilde/1 /// unused since before Rust 1.0
-}
-
-define_delimiters! {
- Brace pub struct Brace /// `{`…`}`
- Bracket pub struct Bracket /// `[`…`]`
- Parenthesis pub struct Paren /// `(`…`)`
-}
-
-/// A type-macro that expands to the name of the Rust type representation of a
-/// given token.
-///
-/// As a type, `Token!` is commonly used in the type of struct fields, the type
-/// of a `let` statement, or in turbofish for a `parse` function.
-///
-/// ```
-/// use syn::{Ident, Token};
-/// use syn::parse::{Parse, ParseStream, Result};
-///
-/// // `struct Foo;`
-/// pub struct UnitStruct {
-/// struct_token: Token![struct],
-/// ident: Ident,
-/// semi_token: Token![;],
-/// }
-///
-/// impl Parse for UnitStruct {
-/// fn parse(input: ParseStream) -> Result<Self> {
-/// let struct_token: Token![struct] = input.parse()?;
-/// let ident: Ident = input.parse()?;
-/// let semi_token = input.parse::<Token![;]>()?;
-/// Ok(UnitStruct { struct_token, ident, semi_token })
-/// }
-/// }
-/// ```
-///
-/// As an expression, `Token!` is used for peeking tokens or instantiating
-/// tokens from a span.
-///
-/// ```
-/// # use syn::{Ident, Token};
-/// # use syn::parse::{Parse, ParseStream, Result};
-/// #
-/// # struct UnitStruct {
-/// # struct_token: Token![struct],
-/// # ident: Ident,
-/// # semi_token: Token![;],
-/// # }
-/// #
-/// # impl Parse for UnitStruct {
-/// # fn parse(input: ParseStream) -> Result<Self> {
-/// # unimplemented!()
-/// # }
-/// # }
-/// #
-/// fn make_unit_struct(name: Ident) -> UnitStruct {
-/// let span = name.span();
-/// UnitStruct {
-/// struct_token: Token,
-/// ident: name,
-/// semi_token: Token,
-/// }
-/// }
-///
-/// # fn parse(input: ParseStream) -> Result<()> {
-/// if input.peek(Token![struct]) {
-/// let unit_struct: UnitStruct = input.parse()?;
-/// /* ... */
-/// }
-/// # Ok(())
-/// # }
-/// ```
-///
-/// See the [token module] documentation for details and examples.
-///
-/// [token module]: crate::token
-#[macro_export]
-macro_rules! Token {
- [abstract] => { $crate::token::Abstract };
- [as] => { $crate::token::As };
- [async] => { $crate::token::Async };
- [auto] => { $crate::token::Auto };
- [await] => { $crate::token::Await };
- [become] => { $crate::token::Become };
- [box] => { $crate::token::Box };
- [break] => { $crate::token::Break };
- [const] => { $crate::token::Const };
- [continue] => { $crate::token::Continue };
- [crate] => { $crate::token::Crate };
- [default] => { $crate::token::Default };
- [do] => { $crate::token::Do };
- [dyn] => { $crate::token::Dyn };
- [else] => { $crate::token::Else };
- [enum] => { $crate::token::Enum };
- [extern] => { $crate::token::Extern };
- [final] => { $crate::token::Final };
- [fn] => { $crate::token::Fn };
- [for] => { $crate::token::For };
- [if] => { $crate::token::If };
- [impl] => { $crate::token::Impl };
- [in] => { $crate::token::In };
- [let] => { $crate::token::Let };
- [loop] => { $crate::token::Loop };
- [macro] => { $crate::token::Macro };
- [match] => { $crate::token::Match };
- [mod] => { $crate::token::Mod };
- [move] => { $crate::token::Move };
- [mut] => { $crate::token::Mut };
- [override] => { $crate::token::Override };
- [priv] => { $crate::token::Priv };
- [pub] => { $crate::token::Pub };
- [raw] => { $crate::token::Raw };
- [ref] => { $crate::token::Ref };
- [return] => { $crate::token::Return };
- [Self] => { $crate::token::SelfType };
- [self] => { $crate::token::SelfValue };
- [static] => { $crate::token::Static };
- [struct] => { $crate::token::Struct };
- [super] => { $crate::token::Super };
- [trait] => { $crate::token::Trait };
- [try] => { $crate::token::Try };
- [type] => { $crate::token::Type };
- [typeof] => { $crate::token::Typeof };
- [union] => { $crate::token::Union };
- [unsafe] => { $crate::token::Unsafe };
- [unsized] => { $crate::token::Unsized };
- [use] => { $crate::token::Use };
- [virtual] => { $crate::token::Virtual };
- [where] => { $crate::token::Where };
- [while] => { $crate::token::While };
- [yield] => { $crate::token::Yield };
- [&] => { $crate::token::And };
- [&&] => { $crate::token::AndAnd };
- [&=] => { $crate::token::AndEq };
- [@] => { $crate::token::At };
- [^] => { $crate::token::Caret };
- [^=] => { $crate::token::CaretEq };
- [:] => { $crate::token::Colon };
- [,] => { $crate::token::Comma };
- [$] => { $crate::token::Dollar };
- [.] => { $crate::token::Dot };
- [..] => { $crate::token::DotDot };
- [...] => { $crate::token::DotDotDot };
- [..=] => { $crate::token::DotDotEq };
- [=] => { $crate::token::Eq };
- [==] => { $crate::token::EqEq };
- [=>] => { $crate::token::FatArrow };
- [>=] => { $crate::token::Ge };
- [>] => { $crate::token::Gt };
- [<-] => { $crate::token::LArrow };
- [<=] => { $crate::token::Le };
- [<] => { $crate::token::Lt };
- [-] => { $crate::token::Minus };
- [-=] => { $crate::token::MinusEq };
- [!=] => { $crate::token::Ne };
- [!] => { $crate::token::Not };
- [|] => { $crate::token::Or };
- [|=] => { $crate::token::OrEq };
- [||] => { $crate::token::OrOr };
- [::] => { $crate::token::PathSep };
- [%] => { $crate::token::Percent };
- [%=] => { $crate::token::PercentEq };
- [+] => { $crate::token::Plus };
- [+=] => { $crate::token::PlusEq };
- [#] => { $crate::token::Pound };
- [?] => { $crate::token::Question };
- [->] => { $crate::token::RArrow };
- [;] => { $crate::token::Semi };
- [<<] => { $crate::token::Shl };
- [<<=] => { $crate::token::ShlEq };
- [>>] => { $crate::token::Shr };
- [>>=] => { $crate::token::ShrEq };
- [/] => { $crate::token::Slash };
- [/=] => { $crate::token::SlashEq };
- [*] => { $crate::token::Star };
- [*=] => { $crate::token::StarEq };
- [~] => { $crate::token::Tilde };
- [_] => { $crate::token::Underscore };
-}
-
-// Not public API.
-#[doc(hidden)]
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::buffer::Cursor;
- use crate::error::{Error, Result};
- use crate::parse::ParseStream;
- use alloc::format;
- use proc_macro2::{Spacing, Span};
-
- pub(crate) fn keyword(input: ParseStream, token: &str) -> Result<Span> {
- input.step(|cursor| {
- if let Some((ident, rest)) = cursor.ident() {
- if ident == token {
- return Ok((ident.span(), rest));
- }
- }
- Err(cursor.error(format!("expected `{}`", token)))
- })
- }
-
- pub(crate) fn peek_keyword(cursor: Cursor, token: &str) -> bool {
- if let Some((ident, _rest)) = cursor.ident() {
- ident == token
- } else {
- false
- }
- }
-
- #[doc(hidden)]
- pub fn punct<const N: usize>(input: ParseStream, token: &str) -> Result<[Span; N]> {
- let mut spans = [input.span(); N];
- punct_helper(input, token, &mut spans)?;
- Ok(spans)
- }
-
- fn punct_helper(input: ParseStream, token: &str, spans: &mut [Span]) -> Result<()> {
- input.step(|cursor| {
- let mut cursor = *cursor;
- assert_eq!(token.len(), spans.len());
-
- for (i, ch) in token.chars().enumerate() {
- match cursor.punct() {
- Some((punct, rest)) => {
- spans[i] = punct.span();
- if punct.as_char() != ch {
- break;
- } else if i == token.len() - 1 {
- return Ok(((), rest));
- } else if punct.spacing() != Spacing::Joint {
- break;
- }
- cursor = rest;
- }
- None => break,
- }
- }
-
- Err(Error::new(spans[0], format!("expected `{}`", token)))
- })
- }
-
- #[doc(hidden)]
- pub fn peek_punct(mut cursor: Cursor, token: &str) -> bool {
- for (i, ch) in token.chars().enumerate() {
- match cursor.punct() {
- Some((punct, rest)) => {
- if punct.as_char() != ch {
- break;
- } else if i == token.len() - 1 {
- return true;
- } else if punct.spacing() != Spacing::Joint {
- break;
- }
- cursor = rest;
- }
- None => break,
- }
- }
- false
- }
-}
-
-// Not public API.
-#[doc(hidden)]
-#[cfg(feature = "printing")]
-pub(crate) mod printing {
- use crate::ext::PunctExt as _;
- use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream};
- use quote::TokenStreamExt as _;
-
- #[doc(hidden)]
- pub fn punct(s: &str, spans: &[Span], tokens: &mut TokenStream) {
- assert_eq!(s.len(), spans.len());
-
- let mut chars = s.chars();
- let mut spans = spans.iter();
- let ch = chars.next_back().unwrap();
- let span = spans.next_back().unwrap();
- for (ch, span) in chars.zip(spans) {
- tokens.append(Punct::new_spanned(ch, Spacing::Joint, *span));
- }
-
- tokens.append(Punct::new_spanned(ch, Spacing::Alone, *span));
- }
-
- pub(crate) fn keyword(s: &str, span: Span, tokens: &mut TokenStream) {
- tokens.append(Ident::new(s, span));
- }
-
- pub(crate) fn delim(
- delim: Delimiter,
- span: Span,
- tokens: &mut TokenStream,
- inner: TokenStream,
- ) {
- let mut g = Group::new(delim, inner);
- g.set_span(span);
- tokens.append(g);
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/tt.rs b/deps/crates/vendor/syn-v2/src/tt.rs
deleted file mode 100644
index 63a89acc317..00000000000
--- a/deps/crates/vendor/syn-v2/src/tt.rs
+++ /dev/null
@@ -1,97 +0,0 @@
-use alloc::string::ToString;
-use core::hash::{Hash, Hasher};
-use proc_macro2::{Delimiter, Spacing, TokenStream, TokenTree};
-
-pub(crate) struct TokenTreeHelper<'a>(pub &'a TokenTree);
-
-impl<'a> PartialEq for TokenTreeHelper<'a> {
- fn eq(&self, other: &Self) -> bool {
- match (self.0, other.0) {
- (TokenTree::Group(g1), TokenTree::Group(g2)) => {
- match (g1.delimiter(), g2.delimiter()) {
- (Delimiter::Parenthesis, Delimiter::Parenthesis)
- | (Delimiter::Brace, Delimiter::Brace)
- | (Delimiter::Bracket, Delimiter::Bracket)
- | (Delimiter::None, Delimiter::None) => {}
- _ => return false,
- }
-
- TokenStreamHelper(&g1.stream()) == TokenStreamHelper(&g2.stream())
- }
- (TokenTree::Punct(o1), TokenTree::Punct(o2)) => {
- o1.as_char() == o2.as_char()
- && match (o1.spacing(), o2.spacing()) {
- (Spacing::Alone, Spacing::Alone) | (Spacing::Joint, Spacing::Joint) => true,
- _ => false,
- }
- }
- (TokenTree::Literal(l1), TokenTree::Literal(l2)) => l1.to_string() == l2.to_string(),
- (TokenTree::Ident(s1), TokenTree::Ident(s2)) => s1 == s2,
- _ => false,
- }
- }
-}
-
-impl<'a> Hash for TokenTreeHelper<'a> {
- fn hash<H: Hasher>(&self, h: &mut H) {
- match self.0 {
- TokenTree::Group(g) => {
- 0u8.hash(h);
- match g.delimiter() {
- Delimiter::Parenthesis => 0u8.hash(h),
- Delimiter::Brace => 1u8.hash(h),
- Delimiter::Bracket => 2u8.hash(h),
- Delimiter::None => 3u8.hash(h),
- }
-
- for item in g.stream() {
- TokenTreeHelper(&item).hash(h);
- }
- 0xFFu8.hash(h); // terminator w/ a variant we don't normally hash
- }
- TokenTree::Punct(op) => {
- 1u8.hash(h);
- op.as_char().hash(h);
- match op.spacing() {
- Spacing::Alone => 0u8.hash(h),
- Spacing::Joint => 1u8.hash(h),
- }
- }
- TokenTree::Literal(lit) => (2u8, lit.to_string()).hash(h),
- TokenTree::Ident(word) => (3u8, word).hash(h),
- }
- }
-}
-
-pub(crate) struct TokenStreamHelper<'a>(pub &'a TokenStream);
-
-impl<'a> PartialEq for TokenStreamHelper<'a> {
- fn eq(&self, other: &Self) -> bool {
- let left = self.0.clone().into_iter();
- let mut right = other.0.clone().into_iter();
-
- for item1 in left {
- let item2 = match right.next() {
- Some(item) => item,
- None => return false,
- };
- if TokenTreeHelper(&item1) != TokenTreeHelper(&item2) {
- return false;
- }
- }
-
- right.next().is_none()
- }
-}
-
-impl<'a> Hash for TokenStreamHelper<'a> {
- fn hash<H: Hasher>(&self, state: &mut H) {
- let tokens = self.0.clone().into_iter();
-
- tokens.clone().count().hash(state);
-
- for tt in tokens {
- TokenTreeHelper(&tt).hash(state);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/ty.rs b/deps/crates/vendor/syn-v2/src/ty.rs
deleted file mode 100644
index ef2f2716270..00000000000
--- a/deps/crates/vendor/syn-v2/src/ty.rs
+++ /dev/null
@@ -1,1239 +0,0 @@
-use crate::attr::Attribute;
-use crate::expr::Expr;
-use crate::generics::{BoundLifetimes, TypeParamBound};
-use crate::ident::Ident;
-use crate::lifetime::Lifetime;
-use crate::lit::LitStr;
-use crate::mac::Macro;
-use crate::path::{Path, QSelf};
-use crate::punctuated::Punctuated;
-use crate::token;
-use alloc::boxed::Box;
-use alloc::vec::Vec;
-use proc_macro2::TokenStream;
-
-ast_enum_of_structs! {
- /// The possible types that a Rust value could have.
- ///
- /// # Syntax tree enum
- ///
- /// This type is a [syntax tree enum].
- ///
- /// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- #[non_exhaustive]
- pub enum Type {
- /// A fixed size array type: `[T; n]`.
- Array(TypeArray),
-
- /// A bare function type: `fn(usize) -> bool`.
- BareFn(TypeBareFn),
-
- /// A type contained within invisible delimiters.
- Group(TypeGroup),
-
- /// An `impl Bound1 + Bound2 + Bound3` type where `Bound` is a trait or
- /// a lifetime.
- ImplTrait(TypeImplTrait),
-
- /// Indication that a type should be inferred by the compiler: `_`.
- Infer(TypeInfer),
-
- /// A macro in the type position.
- Macro(TypeMacro),
-
- /// The never type: `!`.
- Never(TypeNever),
-
- /// A parenthesized type equivalent to the inner type.
- Paren(TypeParen),
-
- /// A path like `core::slice::Iter`, optionally qualified with a
- /// self-type as in `<Vec<T> as SomeTrait>::Associated`.
- Path(TypePath),
-
- /// A raw pointer type: `*const T` or `*mut T`.
- Ptr(TypePtr),
-
- /// A reference type: `&'a T` or `&'a mut T`.
- Reference(TypeReference),
-
- /// A dynamically sized slice type: `[T]`.
- Slice(TypeSlice),
-
- /// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a
- /// trait or a lifetime.
- TraitObject(TypeTraitObject),
-
- /// A tuple type: `(A, B, C, String)`.
- Tuple(TypeTuple),
-
- /// Tokens in type position not interpreted by Syn.
- Verbatim(TokenStream),
-
- // For testing exhaustiveness in downstream code, use the following idiom:
- //
- // match ty {
- // #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
- //
- // Type::Array(ty) => {...}
- // Type::BareFn(ty) => {...}
- // ...
- // Type::Verbatim(ty) => {...}
- //
- // _ => { /* some sane fallback */ }
- // }
- //
- // This way we fail your tests but don't break your library when adding
- // a variant. You will be notified by a test failure when a variant is
- // added, so that you can add code to handle it, but your library will
- // continue to compile and work for downstream users in the interim.
- }
-}
-
-ast_struct! {
- /// A fixed size array type: `[T; n]`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeArray {
- pub bracket_token: token::Bracket,
- pub elem: Box<Type>,
- pub semi_token: Token![;],
- pub len: Expr,
- }
-}
-
-ast_struct! {
- /// A bare function type: `fn(usize) -> bool`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeBareFn {
- pub lifetimes: Option<BoundLifetimes>,
- pub unsafety: Option<Token![unsafe]>,
- pub abi: Option<Abi>,
- pub fn_token: Token![fn],
- pub paren_token: token::Paren,
- pub inputs: Punctuated<BareFnArg, Token![,]>,
- pub variadic: Option<BareVariadic>,
- pub output: ReturnType,
- }
-}
-
-ast_struct! {
- /// A type contained within invisible delimiters.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeGroup {
- pub group_token: token::Group,
- pub elem: Box<Type>,
- }
-}
-
-ast_struct! {
- /// An `impl Bound1 + Bound2 + Bound3` type where `Bound` is a trait or
- /// a lifetime.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeImplTrait {
- pub impl_token: Token![impl],
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- }
-}
-
-ast_struct! {
- /// Indication that a type should be inferred by the compiler: `_`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeInfer {
- pub underscore_token: Token![_],
- }
-}
-
-ast_struct! {
- /// A macro in the type position.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeMacro {
- pub mac: Macro,
- }
-}
-
-ast_struct! {
- /// The never type: `!`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeNever {
- pub bang_token: Token![!],
- }
-}
-
-ast_struct! {
- /// A parenthesized type equivalent to the inner type.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeParen {
- pub paren_token: token::Paren,
- pub elem: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A path like `core::slice::Iter`, optionally qualified with a
- /// self-type as in `<Vec<T> as SomeTrait>::Associated`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypePath {
- pub qself: Option<QSelf>,
- pub path: Path,
- }
-}
-
-ast_struct! {
- /// A raw pointer type: `*const T` or `*mut T`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypePtr {
- pub star_token: Token![*],
- pub const_token: Option<Token![const]>,
- pub mutability: Option<Token![mut]>,
- pub elem: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A reference type: `&'a T` or `&'a mut T`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeReference {
- pub and_token: Token![&],
- pub lifetime: Option<Lifetime>,
- pub mutability: Option<Token![mut]>,
- pub elem: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A dynamically sized slice type: `[T]`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeSlice {
- pub bracket_token: token::Bracket,
- pub elem: Box<Type>,
- }
-}
-
-ast_struct! {
- /// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a
- /// trait or a lifetime.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeTraitObject {
- pub dyn_token: Option<Token![dyn]>,
- pub bounds: Punctuated<TypeParamBound, Token![+]>,
- }
-}
-
-ast_struct! {
- /// A tuple type: `(A, B, C, String)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct TypeTuple {
- pub paren_token: token::Paren,
- pub elems: Punctuated<Type, Token![,]>,
- }
-}
-
-ast_struct! {
- /// The binary interface of a function: `extern "C"`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct Abi {
- pub extern_token: Token![extern],
- pub name: Option<LitStr>,
- }
-}
-
-ast_struct! {
- /// An argument in a function type: the `usize` in `fn(usize) -> bool`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct BareFnArg {
- pub attrs: Vec<Attribute>,
- pub name: Option<(Ident, Token![:])>,
- pub ty: Type,
- }
-}
-
-ast_struct! {
- /// The variadic argument of a function pointer like `fn(usize, ...)`.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub struct BareVariadic {
- pub attrs: Vec<Attribute>,
- pub name: Option<(Ident, Token![:])>,
- pub dots: Token![...],
- pub comma: Option<Token![,]>,
- }
-}
-
-ast_enum! {
- /// Return type of a function signature.
- #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
- pub enum ReturnType {
- /// Return type is not specified.
- ///
- /// Functions default to `()` and closures default to type inference.
- Default,
- /// A particular type is returned.
- Type(Token![->], Box<Type>),
- }
-}
-
-#[cfg(feature = "parsing")]
-pub(crate) mod parsing {
- use crate::attr::Attribute;
- use crate::error::{self, Result};
- use crate::ext::IdentExt as _;
- use crate::generics::{BoundLifetimes, TraitBound, TraitBoundModifier, TypeParamBound};
- use crate::ident::Ident;
- use crate::lifetime::Lifetime;
- use crate::mac::{self, Macro};
- use crate::parse::{Parse, ParseStream};
- use crate::path;
- use crate::path::{Path, PathArguments, QSelf};
- use crate::punctuated::Punctuated;
- use crate::token;
- use crate::ty::{
- Abi, BareFnArg, BareVariadic, ReturnType, Type, TypeArray, TypeBareFn, TypeGroup,
- TypeImplTrait, TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr,
- TypeReference, TypeSlice, TypeTraitObject, TypeTuple,
- };
- use crate::verbatim;
- use alloc::boxed::Box;
- use alloc::vec::Vec;
- use proc_macro2::{Span, TokenStream};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Type {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_plus = true;
- let allow_group_generic = true;
- ambig_ty(input, allow_plus, allow_group_generic)
- }
- }
-
- impl Type {
- /// In some positions, types may not contain the `+` character, to
- /// disambiguate them. For example in the expression `1 as T`, T may not
- /// contain a `+` character.
- ///
- /// This parser does not allow a `+`, while the default parser does.
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn without_plus(input: ParseStream) -> Result<Self> {
- let allow_plus = false;
- let allow_group_generic = true;
- ambig_ty(input, allow_plus, allow_group_generic)
- }
- }
-
- pub(crate) fn ambig_ty(
- input: ParseStream,
- allow_plus: bool,
- allow_group_generic: bool,
- ) -> Result<Type> {
- let begin = input.cursor();
-
- if input.peek(token::Group) {
- let mut group: TypeGroup = input.parse()?;
- if input.peek(Token![::]) && input.peek3(Ident::peek_any) {
- if let Type::Path(mut ty) = *group.elem {
- Path::parse_rest(input, &mut ty.path, false)?;
- return Ok(Type::Path(ty));
- } else {
- return Ok(Type::Path(TypePath {
- qself: Some(QSelf {
- lt_token: Token,
- position: 0,
- as_token: None,
- gt_token: Token,
- ty: group.elem,
- }),
- path: Path::parse_helper(input, false)?,
- }));
- }
- } else if input.peek(Token![<]) && allow_group_generic
- || input.peek(Token![::]) && input.peek3(Token![<])
- {
- if let Type::Path(mut ty) = *group.elem {
- let arguments = &mut ty.path.segments.last_mut().unwrap().arguments;
- if arguments.is_none() {
- *arguments = PathArguments::AngleBracketed(input.parse()?);
- Path::parse_rest(input, &mut ty.path, false)?;
- return Ok(Type::Path(ty));
- } else {
- *group.elem = Type::Path(ty);
- }
- }
- }
- return Ok(Type::Group(group));
- }
-
- let mut lifetimes = None::<BoundLifetimes>;
- let mut lookahead = input.lookahead1();
- if lookahead.peek(Token![for]) {
- lifetimes = input.parse()?;
- lookahead = input.lookahead1();
- if !lookahead.peek(Ident)
- && !lookahead.peek(Token![fn])
- && !lookahead.peek(Token![unsafe])
- && !lookahead.peek(Token![extern])
- && !lookahead.peek(Token![super])
- && !lookahead.peek(Token![self])
- && !lookahead.peek(Token![Self])
- && !lookahead.peek(Token![crate])
- || input.peek(Token![dyn])
- {
- return Err(lookahead.error());
- }
- }
-
- if lookahead.peek(token::Paren) {
- let content;
- let paren_token = parenthesized!(content in input);
- if content.is_empty() {
- return Ok(Type::Tuple(TypeTuple { paren_token, elems: Punctuated::new() }));
- }
- if content.peek(Lifetime) {
- return Ok(Type::Paren(TypeParen {
- paren_token,
- elem: Box::new(Type::TraitObject(content.parse()?)),
- }));
- }
- if content.peek(Token![?]) {
- return Ok(Type::TraitObject(TypeTraitObject {
- dyn_token: None,
- bounds: {
- let mut bounds = Punctuated::new();
- bounds.push_value(TypeParamBound::Trait(TraitBound {
- paren_token: Some(paren_token),
- ..content.parse()?
- }));
- while let Some(plus) = input.parse()? {
- bounds.push_punct(plus);
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = false;
- TypeParamBound::parse_single(
- input,
- allow_precise_capture,
- allow_const,
- )?
- });
- }
- bounds
- },
- }));
- }
- let mut first: Type = content.parse()?;
- if content.peek(Token![,]) {
- return Ok(Type::Tuple(TypeTuple {
- paren_token,
- elems: {
- let mut elems = Punctuated::new();
- elems.push_value(first);
- elems.push_punct(content.parse()?);
- while !content.is_empty() {
- elems.push_value(content.parse()?);
- if content.is_empty() {
- break;
- }
- elems.push_punct(content.parse()?);
- }
- elems
- },
- }));
- }
- if allow_plus && input.peek(Token![+]) {
- loop {
- let first = match first {
- Type::Path(TypePath { qself: None, path }) => {
- TypeParamBound::Trait(TraitBound {
- paren_token: Some(paren_token),
- modifier: TraitBoundModifier::None,
- lifetimes: None,
- path,
- })
- }
- Type::TraitObject(TypeTraitObject { dyn_token: None, bounds }) => {
- if bounds.len() > 1 || bounds.trailing_punct() {
- first =
- Type::TraitObject(TypeTraitObject { dyn_token: None, bounds });
- break;
- }
- match bounds.into_iter().next().unwrap() {
- TypeParamBound::Trait(trait_bound) => {
- TypeParamBound::Trait(TraitBound {
- paren_token: Some(paren_token),
- ..trait_bound
- })
- }
- other @ (TypeParamBound::Lifetime(_)
- | TypeParamBound::PreciseCapture(_)
- | TypeParamBound::Verbatim(_)) => other,
- }
- }
- _ => break,
- };
- return Ok(Type::TraitObject(TypeTraitObject {
- dyn_token: None,
- bounds: {
- let mut bounds = Punctuated::new();
- bounds.push_value(first);
- while let Some(plus) = input.parse()? {
- bounds.push_punct(plus);
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = false;
- TypeParamBound::parse_single(
- input,
- allow_precise_capture,
- allow_const,
- )?
- });
- }
- bounds
- },
- }));
- }
- }
- Ok(Type::Paren(TypeParen { paren_token, elem: Box::new(first) }))
- } else if lookahead.peek(Token![fn])
- || lookahead.peek(Token![unsafe])
- || lookahead.peek(Token![extern])
- {
- let mut bare_fn: TypeBareFn = input.parse()?;
- bare_fn.lifetimes = lifetimes;
- Ok(Type::BareFn(bare_fn))
- } else if cfg!(feature = "full")
- && token::parsing::peek_keyword(input.cursor(), "builtin")
- && input.peek2(Token![#])
- {
- token::parsing::keyword(input, "builtin")?;
- input.parse::<Token![#]>()?;
- input.parse::<Ident>()?;
- let args;
- parenthesized!(args in input);
- args.parse::<TokenStream>()?;
- Ok(Type::Verbatim(verbatim::between(begin, input.cursor())))
- } else if lookahead.peek(Ident)
- || input.peek(Token![super])
- || input.peek(Token![self])
- || input.peek(Token![Self])
- || input.peek(Token![crate])
- || lookahead.peek(Token![::])
- || lookahead.peek(Token![<])
- {
- let ty: TypePath = input.parse()?;
- if ty.qself.is_some() {
- return Ok(Type::Path(ty));
- }
-
- if input.peek(Token![!]) && !input.peek(Token![!=]) && ty.path.is_mod_style() {
- let bang_token: Token![!] = input.parse()?;
- let (delimiter, tokens) = mac::parse_delimiter(input)?;
- return Ok(Type::Macro(TypeMacro {
- mac: Macro { path: ty.path, bang_token, delimiter, tokens },
- }));
- }
-
- if lifetimes.is_some() || allow_plus && input.peek(Token![+]) {
- let mut bounds = Punctuated::new();
- bounds.push_value(TypeParamBound::Trait(TraitBound {
- paren_token: None,
- modifier: TraitBoundModifier::None,
- lifetimes,
- path: ty.path,
- }));
- if allow_plus {
- while input.peek(Token![+]) {
- bounds.push_punct(input.parse()?);
- if !(input.peek(Ident::peek_any)
- || input.peek(Token![::])
- || input.peek(Token![?])
- || input.peek(Lifetime)
- || input.peek(token::Paren))
- {
- break;
- }
- bounds.push_value({
- let allow_precise_capture = false;
- let allow_const = false;
- TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
- });
- }
- }
- return Ok(Type::TraitObject(TypeTraitObject { dyn_token: None, bounds }));
- }
-
- Ok(Type::Path(ty))
- } else if lookahead.peek(Token![dyn]) {
- let dyn_token: Token![dyn] = input.parse()?;
- let dyn_span = dyn_token.span;
- let star_token: Option<Token![*]> = input.parse()?;
- let bounds = TypeTraitObject::parse_bounds(dyn_span, input, allow_plus)?;
- Ok(if star_token.is_some() {
- Type::Verbatim(verbatim::between(begin, input.cursor()))
- } else {
- Type::TraitObject(TypeTraitObject { dyn_token: Some(dyn_token), bounds })
- })
- } else if lookahead.peek(token::Bracket) {
- let content;
- let bracket_token = bracketed!(content in input);
- let elem: Type = content.parse()?;
- if content.peek(Token![;]) {
- Ok(Type::Array(TypeArray {
- bracket_token,
- elem: Box::new(elem),
- semi_token: content.parse()?,
- len: content.parse()?,
- }))
- } else {
- Ok(Type::Slice(TypeSlice { bracket_token, elem: Box::new(elem) }))
- }
- } else if lookahead.peek(Token![*]) {
- input.parse().map(Type::Ptr)
- } else if lookahead.peek(Token![&]) {
- input.parse().map(Type::Reference)
- } else if lookahead.peek(Token![!]) && !input.peek(Token![=]) {
- input.parse().map(Type::Never)
- } else if lookahead.peek(Token![impl]) {
- TypeImplTrait::parse(input, allow_plus).map(Type::ImplTrait)
- } else if lookahead.peek(Token![_]) {
- input.parse().map(Type::Infer)
- } else if lookahead.peek(Lifetime) {
- input.parse().map(Type::TraitObject)
- } else {
- Err(lookahead.error())
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeSlice {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(TypeSlice { bracket_token: bracketed!(content in input), elem: content.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeArray {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- Ok(TypeArray {
- bracket_token: bracketed!(content in input),
- elem: content.parse()?,
- semi_token: content.parse()?,
- len: content.parse()?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypePtr {
- fn parse(input: ParseStream) -> Result<Self> {
- let star_token: Token![*] = input.parse()?;
-
- let lookahead = input.lookahead1();
- let (const_token, mutability) = if lookahead.peek(Token![const]) {
- (Some(input.parse()?), None)
- } else if lookahead.peek(Token![mut]) {
- (None, Some(input.parse()?))
- } else {
- return Err(lookahead.error());
- };
-
- Ok(TypePtr {
- star_token,
- const_token,
- mutability,
- elem: Box::new(input.call(Type::without_plus)?),
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeReference {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(TypeReference {
- and_token: input.parse()?,
- lifetime: input.parse()?,
- mutability: input.parse()?,
- // & binds tighter than +, so we don't allow + here.
- elem: Box::new(input.call(Type::without_plus)?),
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeBareFn {
- fn parse(input: ParseStream) -> Result<Self> {
- let args;
- let mut variadic = None;
-
- Ok(TypeBareFn {
- lifetimes: input.parse()?,
- unsafety: input.parse()?,
- abi: input.parse()?,
- fn_token: input.parse()?,
- paren_token: parenthesized!(args in input),
- inputs: {
- let mut inputs = Punctuated::new();
-
- while !args.is_empty() {
- let attrs = args.call(Attribute::parse_outer)?;
-
- if inputs.empty_or_trailing()
- && (args.peek(Token![...])
- || (args.peek(Ident) || args.peek(Token![_]))
- && args.peek2(Token![:])
- && args.peek3(Token![...]))
- {
- variadic = Some(parse_bare_variadic(&args, attrs)?);
- break;
- }
-
- let allow_self = inputs.is_empty();
- let arg = parse_bare_fn_arg(&args, allow_self)?;
- inputs.push_value(BareFnArg { attrs, ..arg });
- if args.is_empty() {
- break;
- }
-
- let comma = args.parse()?;
- inputs.push_punct(comma);
- }
-
- inputs
- },
- variadic,
- output: input.call(ReturnType::without_plus)?,
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeNever {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(TypeNever { bang_token: input.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeInfer {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(TypeInfer { underscore_token: input.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeTuple {
- fn parse(input: ParseStream) -> Result<Self> {
- let content;
- let paren_token = parenthesized!(content in input);
-
- if content.is_empty() {
- return Ok(TypeTuple { paren_token, elems: Punctuated::new() });
- }
-
- let first: Type = content.parse()?;
- Ok(TypeTuple {
- paren_token,
- elems: {
- let mut elems = Punctuated::new();
- elems.push_value(first);
- elems.push_punct(content.parse()?);
- while !content.is_empty() {
- elems.push_value(content.parse()?);
- if content.is_empty() {
- break;
- }
- elems.push_punct(content.parse()?);
- }
- elems
- },
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeMacro {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(TypeMacro { mac: input.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypePath {
- fn parse(input: ParseStream) -> Result<Self> {
- let expr_style = false;
- let (qself, path) = path::parsing::qpath(input, expr_style)?;
- Ok(TypePath { qself, path })
- }
- }
-
- impl ReturnType {
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn without_plus(input: ParseStream) -> Result<Self> {
- let allow_plus = false;
- Self::parse(input, allow_plus)
- }
-
- pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result<Self> {
- if input.peek(Token![->]) {
- let arrow = input.parse()?;
- let allow_group_generic = true;
- let ty = ambig_ty(input, allow_plus, allow_group_generic)?;
- Ok(ReturnType::Type(arrow, Box::new(ty)))
- } else {
- Ok(ReturnType::Default)
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for ReturnType {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_plus = true;
- Self::parse(input, allow_plus)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeTraitObject {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_plus = true;
- Self::parse(input, allow_plus)
- }
- }
-
- impl TypeTraitObject {
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn without_plus(input: ParseStream) -> Result<Self> {
- let allow_plus = false;
- Self::parse(input, allow_plus)
- }
-
- // Only allow multiple trait references if allow_plus is true.
- pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result<Self> {
- let dyn_token: Option<Token![dyn]> = input.parse()?;
- let dyn_span = match &dyn_token {
- Some(token) => token.span,
- None => input.span(),
- };
- let bounds = Self::parse_bounds(dyn_span, input, allow_plus)?;
- Ok(TypeTraitObject { dyn_token, bounds })
- }
-
- fn parse_bounds(
- dyn_span: Span,
- input: ParseStream,
- allow_plus: bool,
- ) -> Result<Punctuated<TypeParamBound, Token![+]>> {
- let allow_precise_capture = false;
- let allow_const = false;
- let bounds = TypeParamBound::parse_multiple(
- input,
- allow_plus,
- allow_precise_capture,
- allow_const,
- )?;
- let mut last_lifetime_span = None;
- let mut at_least_one_trait = false;
- for bound in &bounds {
- match bound {
- TypeParamBound::Trait(_) => {
- at_least_one_trait = true;
- break;
- }
- TypeParamBound::Lifetime(lifetime) => {
- last_lifetime_span = Some(lifetime.ident.span());
- }
- TypeParamBound::PreciseCapture(_) | TypeParamBound::Verbatim(_) => {
- unreachable!()
- }
- }
- }
- // Just lifetimes like `'a + 'b` is not a TraitObject.
- if !at_least_one_trait {
- let msg = "at least one trait is required for an object type";
- return Err(error::new2(dyn_span, last_lifetime_span.unwrap(), msg));
- }
- Ok(bounds)
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeImplTrait {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_plus = true;
- Self::parse(input, allow_plus)
- }
- }
-
- impl TypeImplTrait {
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- pub fn without_plus(input: ParseStream) -> Result<Self> {
- let allow_plus = false;
- Self::parse(input, allow_plus)
- }
-
- pub(crate) fn parse(input: ParseStream, allow_plus: bool) -> Result<Self> {
- let impl_token: Token![impl] = input.parse()?;
- let allow_precise_capture = true;
- let allow_const = true;
- let bounds = TypeParamBound::parse_multiple(
- input,
- allow_plus,
- allow_precise_capture,
- allow_const,
- )?;
- let mut last_nontrait_span = None;
- let mut at_least_one_trait = false;
- for bound in &bounds {
- match bound {
- TypeParamBound::Trait(_) => {
- at_least_one_trait = true;
- break;
- }
- TypeParamBound::Lifetime(lifetime) => {
- last_nontrait_span = Some(lifetime.ident.span());
- }
- TypeParamBound::PreciseCapture(precise_capture) => {
- #[cfg(feature = "full")]
- {
- last_nontrait_span = Some(precise_capture.gt_token.span);
- }
- #[cfg(not(feature = "full"))]
- {
- _ = precise_capture;
- unreachable!();
- }
- }
- TypeParamBound::Verbatim(_) => {
- // `[const] Trait`
- at_least_one_trait = true;
- break;
- }
- }
- }
- if !at_least_one_trait {
- let msg = "at least one trait must be specified";
- return Err(error::new2(impl_token.span, last_nontrait_span.unwrap(), msg));
- }
- Ok(TypeImplTrait { impl_token, bounds })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeGroup {
- fn parse(input: ParseStream) -> Result<Self> {
- let group = crate::group::parse_group(input)?;
- Ok(TypeGroup { group_token: group.token, elem: group.content.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for TypeParen {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_plus = false;
- Self::parse(input, allow_plus)
- }
- }
-
- impl TypeParen {
- fn parse(input: ParseStream, allow_plus: bool) -> Result<Self> {
- let content;
- Ok(TypeParen {
- paren_token: parenthesized!(content in input),
- elem: Box::new({
- let allow_group_generic = true;
- ambig_ty(&content, allow_plus, allow_group_generic)?
- }),
- })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for BareFnArg {
- fn parse(input: ParseStream) -> Result<Self> {
- let allow_self = false;
- parse_bare_fn_arg(input, allow_self)
- }
- }
-
- fn parse_bare_fn_arg(input: ParseStream, allow_self: bool) -> Result<BareFnArg> {
- let attrs = input.call(Attribute::parse_outer)?;
-
- let begin = input.cursor();
-
- let has_mut_self = allow_self && input.peek(Token![mut]) && input.peek2(Token![self]);
- if has_mut_self {
- input.parse::<Token![mut]>()?;
- }
-
- let mut has_self = false;
- let mut name = if (input.peek(Ident) || input.peek(Token![_]) || {
- has_self = allow_self && input.peek(Token![self]);
- has_self
- }) && input.peek2(Token![:])
- && !input.peek2(Token![::])
- {
- let name = input.call(Ident::parse_any)?;
- let colon: Token![:] = input.parse()?;
- Some((name, colon))
- } else {
- has_self = false;
- None
- };
-
- let ty = if allow_self && !has_self && input.peek(Token![mut]) && input.peek2(Token![self])
- {
- input.parse::<Token![mut]>()?;
- input.parse::<Token![self]>()?;
- None
- } else if has_mut_self && name.is_none() {
- input.parse::<Token![self]>()?;
- None
- } else {
- Some(input.parse()?)
- };
-
- let ty = match ty {
- Some(ty) if !has_mut_self => ty,
- _ => {
- name = None;
- Type::Verbatim(verbatim::between(begin, input.cursor()))
- }
- };
-
- Ok(BareFnArg { attrs, name, ty })
- }
-
- fn parse_bare_variadic(input: ParseStream, attrs: Vec<Attribute>) -> Result<BareVariadic> {
- Ok(BareVariadic {
- attrs,
- name: if input.peek(Ident) || input.peek(Token![_]) {
- let name = input.call(Ident::parse_any)?;
- let colon: Token![:] = input.parse()?;
- Some((name, colon))
- } else {
- None
- },
- dots: input.parse()?,
- comma: input.parse()?,
- })
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Abi {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(Abi { extern_token: input.parse()?, name: input.parse()? })
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
- impl Parse for Option<Abi> {
- fn parse(input: ParseStream) -> Result<Self> {
- if input.peek(Token![extern]) {
- input.parse().map(Some)
- } else {
- Ok(None)
- }
- }
- }
-}
-
-#[cfg(feature = "printing")]
-mod printing {
- use crate::attr::FilterAttrs;
- use crate::path;
- use crate::path::printing::PathStyle;
- use crate::print::TokensOrDefault;
- use crate::ty::{
- Abi, BareFnArg, BareVariadic, ReturnType, TypeArray, TypeBareFn, TypeGroup, TypeImplTrait,
- TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr, TypeReference, TypeSlice,
- TypeTraitObject, TypeTuple,
- };
- use proc_macro2::TokenStream;
- use quote::{ToTokens, TokenStreamExt as _};
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeSlice {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.bracket_token.surround(tokens, |tokens| {
- self.elem.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeArray {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.bracket_token.surround(tokens, |tokens| {
- self.elem.to_tokens(tokens);
- self.semi_token.to_tokens(tokens);
- self.len.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypePtr {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.star_token.to_tokens(tokens);
- match &self.mutability {
- Some(tok) => tok.to_tokens(tokens),
- None => {
- TokensOrDefault(&self.const_token).to_tokens(tokens);
- }
- }
- self.elem.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeReference {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.and_token.to_tokens(tokens);
- self.lifetime.to_tokens(tokens);
- self.mutability.to_tokens(tokens);
- self.elem.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeBareFn {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.lifetimes.to_tokens(tokens);
- self.unsafety.to_tokens(tokens);
- self.abi.to_tokens(tokens);
- self.fn_token.to_tokens(tokens);
- self.paren_token.surround(tokens, |tokens| {
- self.inputs.to_tokens(tokens);
- if let Some(variadic) = &self.variadic {
- if !self.inputs.empty_or_trailing() {
- let span = variadic.dots.spans[0];
- Token.to_tokens(tokens);
- }
- variadic.to_tokens(tokens);
- }
- });
- self.output.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeNever {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.bang_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeTuple {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.paren_token.surround(tokens, |tokens| {
- self.elems.to_tokens(tokens);
- // If we only have one argument, we need a trailing comma to
- // distinguish TypeTuple from TypeParen.
- if self.elems.len() == 1 && !self.elems.trailing_punct() {
- <Token![,]>::default().to_tokens(tokens);
- }
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypePath {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- path::printing::print_qpath(tokens, &self.qself, &self.path, PathStyle::AsWritten);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeTraitObject {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.dyn_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeImplTrait {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.impl_token.to_tokens(tokens);
- self.bounds.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeGroup {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.group_token.surround(tokens, |tokens| {
- self.elem.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeParen {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.paren_token.surround(tokens, |tokens| {
- self.elem.to_tokens(tokens);
- });
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeInfer {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.underscore_token.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for TypeMacro {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.mac.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for ReturnType {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- match self {
- ReturnType::Default => {}
- ReturnType::Type(arrow, ty) => {
- arrow.to_tokens(tokens);
- ty.to_tokens(tokens);
- }
- }
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for BareFnArg {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- if let Some((name, colon)) = &self.name {
- name.to_tokens(tokens);
- colon.to_tokens(tokens);
- }
- self.ty.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for BareVariadic {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- tokens.append_all(self.attrs.outer());
- if let Some((name, colon)) = &self.name {
- name.to_tokens(tokens);
- colon.to_tokens(tokens);
- }
- self.dots.to_tokens(tokens);
- self.comma.to_tokens(tokens);
- }
- }
-
- #[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
- impl ToTokens for Abi {
- fn to_tokens(&self, tokens: &mut TokenStream) {
- self.extern_token.to_tokens(tokens);
- self.name.to_tokens(tokens);
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/src/verbatim.rs b/deps/crates/vendor/syn-v2/src/verbatim.rs
deleted file mode 100644
index 7e16db39613..00000000000
--- a/deps/crates/vendor/syn-v2/src/verbatim.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-use crate::buffer::Cursor;
-use crate::ext::TokenStreamExt as _;
-use core::cmp::Ordering;
-use proc_macro2::{Delimiter, TokenStream};
-
-pub(crate) fn between(begin: Cursor, end: Cursor) -> TokenStream {
- let mut cursor = begin;
- assert!(crate::buffer::same_buffer(end, cursor));
-
- let mut tokens = TokenStream::new();
- while cursor != end {
- let (tt, next) = cursor.token_tree().unwrap();
-
- if crate::buffer::cmp_assuming_same_buffer(end, next) == Ordering::Less {
- // A syntax node can cross the boundary of a None-delimited group
- // due to such groups being transparent to the parser in most cases.
- // Any time this occurs the group is known to be semantically
- // irrelevant. https://github.com/dtolnay/syn/issues/1235
- if let Some((inside, _span, after)) = cursor.group(Delimiter::None) {
- assert!(next == after);
- cursor = inside;
- continue;
- } else {
- panic!("verbatim end must not be inside a delimited group");
- }
- }
-
- tokens.append(tt);
- cursor = next;
- }
- tokens
-}
diff --git a/deps/crates/vendor/syn-v2/src/whitespace.rs b/deps/crates/vendor/syn-v2/src/whitespace.rs
deleted file mode 100644
index a50b5069a68..00000000000
--- a/deps/crates/vendor/syn-v2/src/whitespace.rs
+++ /dev/null
@@ -1,65 +0,0 @@
-pub(crate) fn skip(mut s: &str) -> &str {
- 'skip: while !s.is_empty() {
- let byte = s.as_bytes()[0];
- if byte == b'/' {
- if s.starts_with("//")
- && (!s.starts_with("///") || s.starts_with("////"))
- && !s.starts_with("//!")
- {
- if let Some(i) = s.find('\n') {
- s = &s[i + 1..];
- continue;
- } else {
- return "";
- }
- } else if s.starts_with("/**/") {
- s = &s[4..];
- continue;
- } else if s.starts_with("/*")
- && (!s.starts_with("/**") || s.starts_with("/***"))
- && !s.starts_with("/*!")
- {
- let mut depth = 0;
- let bytes = s.as_bytes();
- let mut i = 0;
- let upper = bytes.len() - 1;
- while i < upper {
- if bytes[i] == b'/' && bytes[i + 1] == b'*' {
- depth += 1;
- i += 1; // eat '*'
- } else if bytes[i] == b'*' && bytes[i + 1] == b'/' {
- depth -= 1;
- if depth == 0 {
- s = &s[i + 2..];
- continue 'skip;
- }
- i += 1; // eat '/'
- }
- i += 1;
- }
- return s;
- }
- }
- match byte {
- b' ' | 0x09..=0x0D => {
- s = &s[1..];
- continue;
- }
- b if b <= 0x7F => {}
- _ => {
- let ch = s.chars().next().unwrap();
- if is_whitespace(ch) {
- s = &s[ch.len_utf8()..];
- continue;
- }
- }
- }
- return s;
- }
- s
-}
-
-fn is_whitespace(ch: char) -> bool {
- // Rust treats left-to-right mark and right-to-left mark as whitespace
- ch.is_whitespace() || ch == '\u{200e}' || ch == '\u{200f}'
-}
diff --git a/deps/crates/vendor/syn-v2/tests/common/eq.rs b/deps/crates/vendor/syn-v2/tests/common/eq.rs
deleted file mode 100644
index cd4b951beae..00000000000
--- a/deps/crates/vendor/syn-v2/tests/common/eq.rs
+++ /dev/null
@@ -1,893 +0,0 @@
-#![allow(unused_macro_rules)]
-
-extern crate rustc_ast;
-extern crate rustc_data_structures;
-extern crate rustc_driver;
-extern crate rustc_span;
-extern crate thin_vec;
-
-use rustc_ast::ast::AngleBracketedArg;
-use rustc_ast::ast::AngleBracketedArgs;
-use rustc_ast::ast::AnonConst;
-use rustc_ast::ast::Arm;
-use rustc_ast::ast::AsmMacro;
-use rustc_ast::ast::AssignOpKind;
-use rustc_ast::ast::AssocItemConstraint;
-use rustc_ast::ast::AssocItemConstraintKind;
-use rustc_ast::ast::AssocItemKind;
-use rustc_ast::ast::AttrArgs;
-use rustc_ast::ast::AttrId;
-use rustc_ast::ast::AttrItem;
-use rustc_ast::ast::AttrItemKind;
-use rustc_ast::ast::AttrKind;
-use rustc_ast::ast::AttrStyle;
-use rustc_ast::ast::Attribute;
-use rustc_ast::ast::BinOpKind;
-use rustc_ast::ast::BindingMode;
-use rustc_ast::ast::Block;
-use rustc_ast::ast::BlockCheckMode;
-use rustc_ast::ast::BorrowKind;
-use rustc_ast::ast::BoundAsyncness;
-use rustc_ast::ast::BoundConstness;
-use rustc_ast::ast::BoundPolarity;
-use rustc_ast::ast::ByRef;
-use rustc_ast::ast::CaptureBy;
-use rustc_ast::ast::Closure;
-use rustc_ast::ast::ClosureBinder;
-use rustc_ast::ast::Const;
-use rustc_ast::ast::ConstBlockItem;
-use rustc_ast::ast::ConstItem;
-use rustc_ast::ast::ConstItemRhsKind;
-use rustc_ast::ast::CoroutineKind;
-use rustc_ast::ast::Crate;
-use rustc_ast::ast::Defaultness;
-use rustc_ast::ast::Delegation;
-use rustc_ast::ast::DelegationMac;
-use rustc_ast::ast::DelegationSource;
-use rustc_ast::ast::DelegationSuffixes;
-use rustc_ast::ast::DelimArgs;
-use rustc_ast::ast::EarlyParsedAttribute;
-use rustc_ast::ast::EiiDecl;
-use rustc_ast::ast::EiiImpl;
-use rustc_ast::ast::EnumDef;
-use rustc_ast::ast::Expr;
-use rustc_ast::ast::ExprField;
-use rustc_ast::ast::ExprKind;
-use rustc_ast::ast::Extern;
-use rustc_ast::ast::FieldDef;
-use rustc_ast::ast::FloatTy;
-use rustc_ast::ast::Fn;
-use rustc_ast::ast::FnContract;
-use rustc_ast::ast::FnDecl;
-use rustc_ast::ast::FnHeader;
-use rustc_ast::ast::FnPtrTy;
-use rustc_ast::ast::FnRetTy;
-use rustc_ast::ast::FnSig;
-use rustc_ast::ast::ForLoopKind;
-use rustc_ast::ast::ForeignItemKind;
-use rustc_ast::ast::ForeignMod;
-use rustc_ast::ast::FormatAlignment;
-use rustc_ast::ast::FormatArgPosition;
-use rustc_ast::ast::FormatArgPositionKind;
-use rustc_ast::ast::FormatArgs;
-use rustc_ast::ast::FormatArgsPiece;
-use rustc_ast::ast::FormatArgument;
-use rustc_ast::ast::FormatArgumentKind;
-use rustc_ast::ast::FormatArguments;
-use rustc_ast::ast::FormatCount;
-use rustc_ast::ast::FormatDebugHex;
-use rustc_ast::ast::FormatOptions;
-use rustc_ast::ast::FormatPlaceholder;
-use rustc_ast::ast::FormatSign;
-use rustc_ast::ast::FormatTrait;
-use rustc_ast::ast::GenBlockKind;
-use rustc_ast::ast::GenericArg;
-use rustc_ast::ast::GenericArgs;
-use rustc_ast::ast::GenericBound;
-use rustc_ast::ast::GenericParam;
-use rustc_ast::ast::GenericParamKind;
-use rustc_ast::ast::Generics;
-use rustc_ast::ast::Guard;
-use rustc_ast::ast::Impl;
-use rustc_ast::ast::ImplPolarity;
-use rustc_ast::ast::ImplRestriction;
-use rustc_ast::ast::Inline;
-use rustc_ast::ast::InlineAsm;
-use rustc_ast::ast::InlineAsmOperand;
-use rustc_ast::ast::InlineAsmOptions;
-use rustc_ast::ast::InlineAsmRegOrRegClass;
-use rustc_ast::ast::InlineAsmSym;
-use rustc_ast::ast::InlineAsmTemplatePiece;
-use rustc_ast::ast::IntTy;
-use rustc_ast::ast::IsAuto;
-use rustc_ast::ast::Item;
-use rustc_ast::ast::ItemKind;
-use rustc_ast::ast::Label;
-use rustc_ast::ast::Lifetime;
-use rustc_ast::ast::LitFloatType;
-use rustc_ast::ast::LitIntType;
-use rustc_ast::ast::LitKind;
-use rustc_ast::ast::Local;
-use rustc_ast::ast::LocalKind;
-use rustc_ast::ast::MacCall;
-use rustc_ast::ast::MacCallStmt;
-use rustc_ast::ast::MacStmtStyle;
-use rustc_ast::ast::MacroDef;
-use rustc_ast::ast::MatchKind;
-use rustc_ast::ast::MetaItem;
-use rustc_ast::ast::MetaItemInner;
-use rustc_ast::ast::MetaItemKind;
-use rustc_ast::ast::MetaItemLit;
-use rustc_ast::ast::MethodCall;
-use rustc_ast::ast::ModKind;
-use rustc_ast::ast::ModSpans;
-use rustc_ast::ast::Movability;
-use rustc_ast::ast::MutRestriction;
-use rustc_ast::ast::MutTy;
-use rustc_ast::ast::Mutability;
-use rustc_ast::ast::NodeId;
-use rustc_ast::ast::NormalAttr;
-use rustc_ast::ast::Param;
-use rustc_ast::ast::Parens;
-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;
-use rustc_ast::ast::Pinnedness;
-use rustc_ast::ast::PolyTraitRef;
-use rustc_ast::ast::PreciseCapturingArg;
-use rustc_ast::ast::QSelf;
-use rustc_ast::ast::RangeEnd;
-use rustc_ast::ast::RangeLimits;
-use rustc_ast::ast::RangeSyntax;
-use rustc_ast::ast::Recovered;
-use rustc_ast::ast::RestrictionKind;
-use rustc_ast::ast::Safety;
-use rustc_ast::ast::StaticItem;
-use rustc_ast::ast::Stmt;
-use rustc_ast::ast::StmtKind;
-use rustc_ast::ast::StrLit;
-use rustc_ast::ast::StrStyle;
-use rustc_ast::ast::StructExpr;
-use rustc_ast::ast::StructRest;
-use rustc_ast::ast::Term;
-use rustc_ast::ast::Trait;
-use rustc_ast::ast::TraitAlias;
-use rustc_ast::ast::TraitBoundModifiers;
-use rustc_ast::ast::TraitImplHeader;
-use rustc_ast::ast::TraitObjectSyntax;
-use rustc_ast::ast::TraitRef;
-use rustc_ast::ast::Ty;
-use rustc_ast::ast::TyAlias;
-use rustc_ast::ast::TyKind;
-use rustc_ast::ast::TyPat;
-use rustc_ast::ast::TyPatKind;
-use rustc_ast::ast::UintTy;
-use rustc_ast::ast::UnOp;
-use rustc_ast::ast::UnsafeBinderCastKind;
-use rustc_ast::ast::UnsafeBinderTy;
-use rustc_ast::ast::UnsafeSource;
-use rustc_ast::ast::UseTree;
-use rustc_ast::ast::UseTreeKind;
-use rustc_ast::ast::Variant;
-use rustc_ast::ast::VariantData;
-use rustc_ast::ast::Visibility;
-use rustc_ast::ast::VisibilityKind;
-use rustc_ast::ast::WhereBoundPredicate;
-use rustc_ast::ast::WhereClause;
-use rustc_ast::ast::WhereEqPredicate;
-use rustc_ast::ast::WherePredicate;
-use rustc_ast::ast::WherePredicateKind;
-use rustc_ast::ast::WhereRegionPredicate;
-use rustc_ast::ast::YieldKind;
-use rustc_ast::attr::data_structures::CfgEntry;
-use rustc_ast::token::{self, CommentKind, Delimiter, IdentIsRaw, Lit, Token, TokenKind};
-use rustc_ast::tokenstream::{
- AttrTokenStream, AttrTokenTree, AttrsTarget, DelimSpacing, DelimSpan, LazyAttrTokenStream,
- Spacing, TokenStream, TokenTree,
-};
-use rustc_data_structures::packed::Pu128;
-use rustc_span::symbol::{sym, ByteSymbol, Ident, Symbol};
-use rustc_span::{ErrorGuaranteed, LocalExpnId, Span, Spanned, SyntaxContext, DUMMY_SP};
-use std::borrow::Cow;
-use std::collections::HashMap;
-use std::hash::{BuildHasher, Hash};
-use std::sync::Arc;
-use thin_vec::ThinVec;
-
-pub trait SpanlessEq {
- fn eq(&self, other: &Self) -> bool;
-}
-
-impl<T: ?Sized + SpanlessEq> SpanlessEq for Box<T> {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(&**self, &**other)
- }
-}
-
-impl<T: ?Sized + SpanlessEq> SpanlessEq for Arc<T> {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(&**self, &**other)
- }
-}
-
-impl<T: SpanlessEq> SpanlessEq for Option<T> {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (None, None) => true,
- (Some(this), Some(other)) => SpanlessEq::eq(this, other),
- _ => false,
- }
- }
-}
-
-impl<T: SpanlessEq, E: SpanlessEq> SpanlessEq for Result<T, E> {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (Ok(this), Ok(other)) => SpanlessEq::eq(this, other),
- (Err(this), Err(other)) => SpanlessEq::eq(this, other),
- _ => false,
- }
- }
-}
-
-impl<T: SpanlessEq> SpanlessEq for [T] {
- fn eq(&self, other: &Self) -> bool {
- self.len() == other.len() && self.iter().zip(other).all(|(a, b)| SpanlessEq::eq(a, b))
- }
-}
-
-impl<T: SpanlessEq> SpanlessEq for Vec<T> {
- fn eq(&self, other: &Self) -> bool {
- <[T] as SpanlessEq>::eq(self, other)
- }
-}
-
-impl<T: SpanlessEq> SpanlessEq for ThinVec<T> {
- fn eq(&self, other: &Self) -> bool {
- self.len() == other.len()
- && self.iter().zip(other.iter()).all(|(a, b)| SpanlessEq::eq(a, b))
- }
-}
-
-impl<K: Eq + Hash, V: SpanlessEq, S: BuildHasher> SpanlessEq for HashMap<K, V, S> {
- fn eq(&self, other: &Self) -> bool {
- self.len() == other.len()
- && self.iter().all(|(key, this_v)| {
- other.get(key).is_some_and(|other_v| SpanlessEq::eq(this_v, other_v))
- })
- }
-}
-
-impl<'a, T: ?Sized + ToOwned + SpanlessEq> SpanlessEq for Cow<'a, T> {
- fn eq(&self, other: &Self) -> bool {
- <T as SpanlessEq>::eq(self, other)
- }
-}
-
-impl<T: SpanlessEq> SpanlessEq for Spanned<T> {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(&self.node, &other.node)
- }
-}
-
-impl<A: SpanlessEq, B: SpanlessEq> SpanlessEq for (A, B) {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(&self.0, &other.0) && SpanlessEq::eq(&self.1, &other.1)
- }
-}
-
-impl<A: SpanlessEq, B: SpanlessEq, C: SpanlessEq> SpanlessEq for (A, B, C) {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(&self.0, &other.0)
- && SpanlessEq::eq(&self.1, &other.1)
- && SpanlessEq::eq(&self.2, &other.2)
- }
-}
-
-macro_rules! spanless_eq_true {
- ($name:ty) => {
- impl SpanlessEq for $name {
- fn eq(&self, _other: &Self) -> bool {
- true
- }
- }
- };
-}
-
-spanless_eq_true!(Span);
-spanless_eq_true!(DelimSpan);
-spanless_eq_true!(AttrId);
-spanless_eq_true!(NodeId);
-spanless_eq_true!(SyntaxContext);
-spanless_eq_true!(Spacing);
-spanless_eq_true!(LocalExpnId);
-
-macro_rules! spanless_eq_partial_eq {
- ($name:ty) => {
- impl SpanlessEq for $name {
- fn eq(&self, other: &Self) -> bool {
- PartialEq::eq(self, other)
- }
- }
- };
-}
-
-spanless_eq_partial_eq!(());
-spanless_eq_partial_eq!(bool);
-spanless_eq_partial_eq!(u8);
-spanless_eq_partial_eq!(u16);
-spanless_eq_partial_eq!(u32);
-spanless_eq_partial_eq!(u128);
-spanless_eq_partial_eq!(usize);
-spanless_eq_partial_eq!(char);
-spanless_eq_partial_eq!(str);
-spanless_eq_partial_eq!(String);
-spanless_eq_partial_eq!(Pu128);
-spanless_eq_partial_eq!(Symbol);
-spanless_eq_partial_eq!(ByteSymbol);
-spanless_eq_partial_eq!(CommentKind);
-spanless_eq_partial_eq!(Delimiter);
-spanless_eq_partial_eq!(InlineAsmOptions);
-spanless_eq_partial_eq!(token::LitKind);
-spanless_eq_partial_eq!(ErrorGuaranteed);
-spanless_eq_partial_eq!(CfgEntry);
-
-macro_rules! spanless_eq_struct {
- {
- $($name:ident)::+ $(<$param:ident>)?
- $([$field:tt $this:ident $other:ident])*
- $(![$ignore:tt])*;
- } => {
- impl $(<$param: SpanlessEq>)* SpanlessEq for $($name)::+ $(<$param>)* {
- fn eq(&self, other: &Self) -> bool {
- let $($name)::+ { $($field: $this,)* $($ignore: _,)* } = self;
- let $($name)::+ { $($field: $other,)* $($ignore: _,)* } = other;
- true $(&& SpanlessEq::eq($this, $other))*
- }
- }
- };
-
- {
- $($name:ident)::+ $(<$param:ident>)?
- $([$field:tt $this:ident $other:ident])*
- $(![$ignore:tt])*;
- !$next:tt
- $($rest:tt)*
- } => {
- spanless_eq_struct! {
- $($name)::+ $(<$param>)*
- $([$field $this $other])*
- $(![$ignore])*
- ![$next];
- $($rest)*
- }
- };
-
- {
- $($name:ident)::+ $(<$param:ident>)?
- $([$field:tt $this:ident $other:ident])*
- $(![$ignore:tt])*;
- $next:tt
- $($rest:tt)*
- } => {
- spanless_eq_struct! {
- $($name)::+ $(<$param>)*
- $([$field $this $other])*
- [$next this other]
- $(![$ignore])*;
- $($rest)*
- }
- };
-}
-
-macro_rules! spanless_eq_enum {
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $([$field:tt $this:ident $other:ident])* $(![$ignore:tt])*])*
- } => {
- impl SpanlessEq for $($name)::+ {
- fn eq(&self, other: &Self) -> bool {
- match self {
- $(
- $($variant)::+ { .. } => {}
- )*
- }
- #[allow(unreachable_patterns)]
- match (self, other) {
- $(
- (
- $($variant)::+ { $($field: $this,)* $($ignore: _,)* },
- $($variant)::+ { $($field: $other,)* $($ignore: _,)* },
- ) => {
- true $(&& SpanlessEq::eq($this, $other))*
- }
- )*
- _ => false,
- }
- }
- }
- };
-
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $($fields:tt)*])*
- $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] (!$i:tt $($field:tt)*)
- $($rest:tt)*
- } => {
- spanless_eq_enum! {
- $($name)::+;
- $([$($variant)::+; $($fields)*])*
- $next [$([$($named)*])* $(![$ignore])* ![$i]] ($($field)*)
- $($rest)*
- }
- };
-
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $($fields:tt)*])*
- $next:ident [$([$($named:tt)*])* $(![$ignore:tt])*] ($i:tt $($field:tt)*)
- $($rest:tt)*
- } => {
- spanless_eq_enum! {
- $($name)::+;
- $([$($variant)::+; $($fields)*])*
- $next [$([$($named)*])* [$i this other] $(![$ignore])*] ($($field)*)
- $($rest)*
- }
- };
-
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $($fields:tt)*])*
- $next:ident [$($named:tt)*] ()
- $($rest:tt)*
- } => {
- spanless_eq_enum! {
- $($name)::+;
- $([$($variant)::+; $($fields)*])*
- [$($name)::+::$next; $($named)*]
- $($rest)*
- }
- };
-
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $($fields:tt)*])*
- $next:ident ($($field:tt)*)
- $($rest:tt)*
- } => {
- spanless_eq_enum! {
- $($name)::+;
- $([$($variant)::+; $($fields)*])*
- $next [] ($($field)*)
- $($rest)*
- }
- };
-
- {
- $($name:ident)::+;
- $([$($variant:ident)::+; $($fields:tt)*])*
- $next:ident
- $($rest:tt)*
- } => {
- spanless_eq_enum! {
- $($name)::+;
- $([$($variant)::+; $($fields)*])*
- [$($name)::+::$next;]
- $($rest)*
- }
- };
-}
-
-spanless_eq_struct!(AngleBracketedArgs; span args);
-spanless_eq_struct!(AnonConst; id value);
-spanless_eq_struct!(Arm; attrs pat guard body span id is_placeholder);
-spanless_eq_struct!(AssocItemConstraint; id ident gen_args kind span);
-spanless_eq_struct!(AttrItem; unsafety path args);
-spanless_eq_struct!(AttrTokenStream; 0);
-spanless_eq_struct!(Attribute; kind id style span);
-spanless_eq_struct!(AttrsTarget; attrs tokens);
-spanless_eq_struct!(BindingMode; 0 1);
-spanless_eq_struct!(Block; stmts id rules span);
-spanless_eq_struct!(Closure; binder capture_clause constness coroutine_kind movability fn_decl body !fn_decl_span !fn_arg_span);
-spanless_eq_struct!(ConstBlockItem; id span block);
-spanless_eq_struct!(ConstItem; defaultness ident generics ty rhs_kind define_opaque);
-spanless_eq_struct!(Crate; attrs items spans id is_placeholder);
-spanless_eq_struct!(Delegation; id qself path ident rename body source);
-spanless_eq_struct!(DelegationMac; qself prefix suffixes body);
-spanless_eq_struct!(DelimArgs; dspan delim tokens);
-spanless_eq_struct!(DelimSpacing; open close);
-spanless_eq_struct!(EiiDecl; foreign_item impl_unsafe);
-spanless_eq_struct!(EiiImpl; node_id eii_macro_path known_eii_macro_resolution impl_safety span inner_span is_default);
-spanless_eq_struct!(EnumDef; variants);
-spanless_eq_struct!(Expr; id kind span attrs !tokens);
-spanless_eq_struct!(ExprField; attrs id span ident expr is_shorthand is_placeholder);
-spanless_eq_struct!(FieldDef; attrs id span vis mut_restriction safety ident ty default is_placeholder);
-spanless_eq_struct!(Fn; defaultness ident generics sig contract define_opaque body eii_impls);
-spanless_eq_struct!(FnContract; declarations requires ensures);
-spanless_eq_struct!(FnDecl; inputs output);
-spanless_eq_struct!(FnHeader; constness coroutine_kind safety ext);
-spanless_eq_struct!(FnPtrTy; safety ext generic_params decl decl_span);
-spanless_eq_struct!(FnSig; header decl span);
-spanless_eq_struct!(ForeignMod; extern_span safety abi items);
-spanless_eq_struct!(FormatArgPosition; index kind span);
-spanless_eq_struct!(FormatArgs; span template arguments uncooked_fmt_str is_source_literal);
-spanless_eq_struct!(FormatArgument; kind expr);
-spanless_eq_struct!(FormatOptions; width precision alignment fill sign alternate zero_pad debug_hex);
-spanless_eq_struct!(FormatPlaceholder; argument span format_trait format_options);
-spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind !colon_span);
-spanless_eq_struct!(Generics; params where_clause span);
-spanless_eq_struct!(Guard; cond span_with_leading_if);
-spanless_eq_struct!(Impl; generics constness of_trait self_ty items);
-spanless_eq_struct!(ImplRestriction; kind span);
-spanless_eq_struct!(InlineAsm; asm_macro template template_strs operands clobber_abis options line_spans);
-spanless_eq_struct!(InlineAsmSym; id qself path);
-spanless_eq_struct!(Item<K>; attrs id span vis kind !tokens);
-spanless_eq_struct!(Label; ident);
-spanless_eq_struct!(Lifetime; id ident);
-spanless_eq_struct!(Lit; kind symbol suffix);
-spanless_eq_struct!(Local; id super_ pat ty kind span colon_sp attrs !tokens);
-spanless_eq_struct!(MacCall; path args);
-spanless_eq_struct!(MacCallStmt; mac style attrs tokens);
-spanless_eq_struct!(MacroDef; body macro_rules eii_declaration);
-spanless_eq_struct!(MetaItem; unsafety path kind span);
-spanless_eq_struct!(MetaItemLit; symbol suffix kind span);
-spanless_eq_struct!(MethodCall; seg receiver args !span);
-spanless_eq_struct!(ModSpans; !inner_span !inject_use_span);
-spanless_eq_struct!(MutRestriction; kind span);
-spanless_eq_struct!(MutTy; ty mutbl);
-spanless_eq_struct!(NormalAttr; item tokens);
-spanless_eq_struct!(ParenthesizedArgs; span inputs inputs_span output);
-spanless_eq_struct!(Pat; id kind span);
-spanless_eq_struct!(PatField; ident pat is_shorthand attrs id span is_placeholder);
-spanless_eq_struct!(Path; span segments);
-spanless_eq_struct!(PathSegment; ident id args);
-spanless_eq_struct!(PolyTraitRef; bound_generic_params modifiers trait_ref span parens);
-spanless_eq_struct!(QSelf; ty path_span position);
-spanless_eq_struct!(StaticItem; ident ty safety mutability expr define_opaque eii_impls);
-spanless_eq_struct!(Stmt; id kind span);
-spanless_eq_struct!(StrLit; symbol suffix symbol_unescaped style span);
-spanless_eq_struct!(StructExpr; qself path fields rest);
-spanless_eq_struct!(Token; kind span);
-spanless_eq_struct!(Trait; constness safety is_auto impl_restriction ident generics bounds items);
-spanless_eq_struct!(TraitAlias; constness ident generics bounds);
-spanless_eq_struct!(TraitBoundModifiers; constness asyncness polarity);
-spanless_eq_struct!(TraitImplHeader; defaultness safety polarity trait_ref);
-spanless_eq_struct!(TraitRef; path ref_id);
-spanless_eq_struct!(Ty; id kind span);
-spanless_eq_struct!(TyAlias; defaultness ident generics after_where_clause bounds ty);
-spanless_eq_struct!(TyPat; id kind span);
-spanless_eq_struct!(UnsafeBinderTy; generic_params inner_ty);
-spanless_eq_struct!(UseTree; prefix kind);
-spanless_eq_struct!(Variant; attrs id span !vis ident data disr_expr is_placeholder);
-spanless_eq_struct!(Visibility; kind span);
-spanless_eq_struct!(WhereBoundPredicate; bound_generic_params bounded_ty bounds);
-spanless_eq_struct!(WhereClause; has_where_token predicates span);
-spanless_eq_struct!(WhereEqPredicate; lhs_ty rhs_ty);
-spanless_eq_struct!(WherePredicate; attrs kind id span is_placeholder);
-spanless_eq_struct!(WhereRegionPredicate; lifetime bounds);
-spanless_eq_enum!(AngleBracketedArg; Arg(0) Constraint(0));
-spanless_eq_enum!(AsmMacro; Asm GlobalAsm NakedAsm);
-spanless_eq_enum!(AssocItemConstraintKind; Equality(term) Bound(bounds));
-spanless_eq_enum!(AssocItemKind; Const(0) Fn(0) Type(0) MacCall(0) Delegation(0) DelegationMac(0));
-spanless_eq_enum!(AttrArgs; Empty Delimited(0) Eq(eq_span expr));
-spanless_eq_enum!(AttrItemKind; Parsed(0) Unparsed(0));
-spanless_eq_enum!(AttrStyle; Outer Inner);
-spanless_eq_enum!(AttrTokenTree; Token(0 1) Delimited(0 1 2 3) AttrsTarget(0));
-spanless_eq_enum!(BinOpKind; Add Sub Mul Div Rem And Or BitXor BitAnd BitOr Shl Shr Eq Lt Le Ne Ge Gt);
-spanless_eq_enum!(BlockCheckMode; Default Unsafe(0));
-spanless_eq_enum!(BorrowKind; Ref Raw Pin);
-spanless_eq_enum!(BoundAsyncness; Normal Async(0));
-spanless_eq_enum!(BoundConstness; Never Always(0) Maybe(0));
-spanless_eq_enum!(BoundPolarity; Positive Negative(0) Maybe(0));
-spanless_eq_enum!(ByRef; Yes(0 1) No);
-spanless_eq_enum!(CaptureBy; Value(move_kw) Ref Use(use_kw));
-spanless_eq_enum!(ClosureBinder; NotPresent For(span generic_params));
-spanless_eq_enum!(Const; Yes(0) No);
-spanless_eq_enum!(ConstItemRhsKind; Body(rhs) TypeConst(rhs));
-spanless_eq_enum!(Defaultness; Implicit Default(0) Final(0));
-spanless_eq_enum!(DelegationSource; Single List(0) Glob);
-spanless_eq_enum!(DelegationSuffixes; List(0) Glob(0));
-spanless_eq_enum!(EarlyParsedAttribute; CfgTrace(0) CfgAttrTrace);
-spanless_eq_enum!(Extern; None Implicit(0) Explicit(0 1));
-spanless_eq_enum!(FloatTy; F16 F32 F64 F128);
-spanless_eq_enum!(FnRetTy; Default(0) Ty(0));
-spanless_eq_enum!(ForLoopKind; For ForAwait);
-spanless_eq_enum!(ForeignItemKind; Static(0) Fn(0) TyAlias(0) MacCall(0));
-spanless_eq_enum!(FormatAlignment; Left Right Center);
-spanless_eq_enum!(FormatArgPositionKind; Implicit Number Named);
-spanless_eq_enum!(FormatArgsPiece; Literal(0) Placeholder(0));
-spanless_eq_enum!(FormatArgumentKind; Normal Named(0) Captured(0));
-spanless_eq_enum!(FormatCount; Literal(0) Argument(0));
-spanless_eq_enum!(FormatDebugHex; Lower Upper);
-spanless_eq_enum!(FormatSign; Plus Minus);
-spanless_eq_enum!(FormatTrait; Display Debug LowerExp UpperExp Octal Pointer Binary LowerHex UpperHex);
-spanless_eq_enum!(GenBlockKind; Async Gen AsyncGen);
-spanless_eq_enum!(GenericArg; Lifetime(0) Type(0) Const(0));
-spanless_eq_enum!(GenericArgs; AngleBracketed(0) Parenthesized(0) ParenthesizedElided(0));
-spanless_eq_enum!(GenericBound; Trait(0) Outlives(0) Use(0 1));
-spanless_eq_enum!(GenericParamKind; Lifetime Type(default) Const(ty span default));
-spanless_eq_enum!(ImplPolarity; Positive Negative(0));
-spanless_eq_enum!(Inline; Yes No(had_parse_error));
-spanless_eq_enum!(InlineAsmRegOrRegClass; Reg(0) RegClass(0));
-spanless_eq_enum!(InlineAsmTemplatePiece; String(0) Placeholder(operand_idx modifier span));
-spanless_eq_enum!(IntTy; Isize I8 I16 I32 I64 I128);
-spanless_eq_enum!(IsAuto; Yes No);
-spanless_eq_enum!(LitFloatType; Suffixed(0) Unsuffixed);
-spanless_eq_enum!(LitIntType; Signed(0) Unsigned(0) Unsuffixed);
-spanless_eq_enum!(LocalKind; Decl Init(0) InitElse(0 1));
-spanless_eq_enum!(MacStmtStyle; Semicolon Braces NoBraces);
-spanless_eq_enum!(MatchKind; Prefix Postfix);
-spanless_eq_enum!(MetaItemInner; MetaItem(0) Lit(0));
-spanless_eq_enum!(MetaItemKind; Word List(0) NameValue(0));
-spanless_eq_enum!(ModKind; Loaded(0 1 2) Unloaded);
-spanless_eq_enum!(Movability; Static Movable);
-spanless_eq_enum!(Mutability; Mut Not);
-spanless_eq_enum!(Parens; Yes No);
-spanless_eq_enum!(PatFieldsRest; Rest(0) Recovered(0) None);
-spanless_eq_enum!(Pinnedness; Not Pinned);
-spanless_eq_enum!(PreciseCapturingArg; Lifetime(0) Arg(0 1));
-spanless_eq_enum!(RangeEnd; Included(0) Excluded);
-spanless_eq_enum!(RangeLimits; HalfOpen Closed);
-spanless_eq_enum!(Recovered; No Yes(0));
-spanless_eq_enum!(RestrictionKind; Unrestricted Restricted(path id shorthand));
-spanless_eq_enum!(Safety; Unsafe(0) Safe(0) Default);
-spanless_eq_enum!(StmtKind; Let(0) Item(0) Expr(0) Semi(0) Empty MacCall(0));
-spanless_eq_enum!(StrStyle; Cooked Raw(0));
-spanless_eq_enum!(StructRest; Base(0) Rest(0) None NoneWithError(0));
-spanless_eq_enum!(Term; Ty(0) Const(0));
-spanless_eq_enum!(TokenTree; Token(0 1) Delimited(0 1 2 3));
-spanless_eq_enum!(TraitObjectSyntax; Dyn None);
-spanless_eq_enum!(TyPatKind; Range(0 1 2) NotNull Or(0) Err(0));
-spanless_eq_enum!(UintTy; Usize U8 U16 U32 U64 U128);
-spanless_eq_enum!(UnOp; Deref Not Neg);
-spanless_eq_enum!(UnsafeBinderCastKind; Wrap Unwrap);
-spanless_eq_enum!(UnsafeSource; CompilerGenerated UserProvided);
-spanless_eq_enum!(UseTreeKind; Simple(0) Nested(items span) Glob(0));
-spanless_eq_enum!(VariantData; Struct(fields recovered) Tuple(0 1) Unit(0));
-spanless_eq_enum!(VisibilityKind; Public Restricted(path id shorthand) Inherited);
-spanless_eq_enum!(WherePredicateKind; BoundPredicate(0) RegionPredicate(0));
-spanless_eq_enum!(YieldKind; Prefix(0) Postfix(0));
-spanless_eq_enum!(AssignOpKind; AddAssign SubAssign MulAssign DivAssign
- RemAssign BitXorAssign BitAndAssign BitOrAssign ShlAssign ShrAssign);
-spanless_eq_enum!(CoroutineKind; Async(span closure_id return_impl_trait_id)
- Gen(span closure_id return_impl_trait_id)
- AsyncGen(span closure_id return_impl_trait_id));
-spanless_eq_enum!(ExprKind; Array(0) ConstBlock(0) Call(0 1) MethodCall(0)
- Tup(0) Binary(0 1 2) Unary(0 1) Move(0 1) Lit(0) Cast(0 1) Type(0 1)
- Let(0 1 2 3) If(0 1 2) While(0 1 2) ForLoop(pat iter body label kind)
- Loop(0 1 2) Match(0 1 2) Closure(0) Block(0 1) Gen(0 1 2 3) Await(0 1)
- Use(0 1) TryBlock(0 1) Assign(0 1 2) AssignOp(0 1 2) Field(0 1) Index(0 1 2)
- Underscore Range(0 1 2) Path(0 1) AddrOf(0 1 2) Break(0 1) Continue(0)
- Ret(0) InlineAsm(0) OffsetOf(0 1) MacCall(0) Struct(0) Repeat(0 1) Paren(0)
- Try(0) Yield(0) Yeet(0) Become(0) IncludedBytes(0) FormatArgs(0)
- UnsafeBinderCast(0 1 2) DirectConstArg(0) Err(0) Dummy);
-spanless_eq_enum!(InlineAsmOperand; In(reg expr) Out(reg late expr)
- InOut(reg late expr) SplitInOut(reg late in_expr out_expr) Const(anon_const)
- Sym(sym) Label(block));
-spanless_eq_enum!(ItemKind; ExternCrate(0 1) Use(0) Static(0) Const(0)
- ConstBlock(0) Fn(0) Mod(0 1 2) ForeignMod(0) GlobalAsm(0) TyAlias(0)
- Enum(0 1 2) Struct(0 1 2) Union(0 1 2) Trait(0) TraitAlias(0) Impl(0)
- MacCall(0) MacroDef(0 1) Delegation(0) DelegationMac(0));
-spanless_eq_enum!(LitKind; Str(0 1) ByteStr(0 1) CStr(0 1) Byte(0) Char(0)
- Int(0 1) Float(0 1) Bool(0) Err(0));
-spanless_eq_enum!(PatKind; Missing Wild Ident(0 1 2) Struct(0 1 2 3)
- TupleStruct(0 1 2) Or(0) Path(0 1) Tuple(0) Box(0) Deref(0) Ref(0 1 2)
- Expr(0) Range(0 1 2) Slice(0) Rest Never Guard(0 1) Paren(0) MacCall(0)
- Err(0));
-spanless_eq_enum!(TyKind; Slice(0) Array(0 1) Ptr(0) Ref(0 1) PinnedRef(0 1)
- FnPtr(0) UnsafeBinder(0) Never Tup(0) Path(0 1) TraitObject(0 1)
- ImplTrait(0 1) Paren(0) Infer ImplicitSelf MacCall(0) CVarArgs Pat(0 1)
- FieldOf(0 1 2) View(0 1) DirectConstArg(0) Dummy Err(0));
-
-impl SpanlessEq for Ident {
- fn eq(&self, other: &Self) -> bool {
- self.as_str() == other.as_str()
- }
-}
-
-impl SpanlessEq for RangeSyntax {
- fn eq(&self, _other: &Self) -> bool {
- match self {
- RangeSyntax::DotDotDot | RangeSyntax::DotDotEq => true,
- }
- }
-}
-
-impl SpanlessEq for Param {
- fn eq(&self, other: &Self) -> bool {
- let Param { attrs, ty, pat, id, span: _, is_placeholder } = self;
- let Param {
- attrs: attrs2,
- ty: ty2,
- pat: pat2,
- id: id2,
- span: _,
- is_placeholder: is_placeholder2,
- } = other;
- SpanlessEq::eq(id, id2)
- && SpanlessEq::eq(is_placeholder, is_placeholder2)
- && (matches!(ty.kind, TyKind::Err(_))
- || matches!(ty2.kind, TyKind::Err(_))
- || SpanlessEq::eq(attrs, attrs2)
- && SpanlessEq::eq(ty, ty2)
- && SpanlessEq::eq(pat, pat2))
- }
-}
-
-impl SpanlessEq for TokenKind {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (TokenKind::Literal(this), TokenKind::Literal(other)) => SpanlessEq::eq(this, other),
- (TokenKind::DotDotEq | TokenKind::DotDotDot, _) => match other {
- TokenKind::DotDotEq | TokenKind::DotDotDot => true,
- _ => false,
- },
- _ => self == other,
- }
- }
-}
-
-impl SpanlessEq for TokenStream {
- fn eq(&self, other: &Self) -> bool {
- let mut this_trees = self.iter();
- let mut other_trees = other.iter();
- loop {
- let Some(this) = this_trees.next() else {
- return other_trees.next().is_none();
- };
- let Some(other) = other_trees.next() else {
- return false;
- };
- if SpanlessEq::eq(this, other) {
- continue;
- }
- if let (TokenTree::Token(this, _), TokenTree::Token(other, _)) = (this, other) {
- if match (&this.kind, &other.kind) {
- (TokenKind::Literal(this), TokenKind::Literal(other)) => {
- SpanlessEq::eq(this, other)
- }
- (TokenKind::DocComment(_kind, style, symbol), TokenKind::Pound) => {
- doc_comment(*style, *symbol, &mut other_trees)
- }
- (TokenKind::Pound, TokenKind::DocComment(_kind, style, symbol)) => {
- doc_comment(*style, *symbol, &mut this_trees)
- }
- _ => false,
- } {
- continue;
- }
- }
- return false;
- }
- }
-}
-
-fn doc_comment<'a>(
- style: AttrStyle,
- unescaped: Symbol,
- trees: &mut impl Iterator<Item = &'a TokenTree>,
-) -> bool {
- if match style {
- AttrStyle::Outer => false,
- AttrStyle::Inner => true,
- } {
- match trees.next() {
- Some(TokenTree::Token(Token { kind: TokenKind::Bang, span: _ }, _spacing)) => {}
- _ => return false,
- }
- }
- let Some(TokenTree::Delimited(_span, _spacing, Delimiter::Bracket, stream)) = trees.next()
- else {
- return false;
- };
- let mut trees = stream.iter();
- match trees.next() {
- Some(TokenTree::Token(
- Token { kind: TokenKind::Ident(symbol, IdentIsRaw::No), span: _ },
- _spacing,
- )) if *symbol == sym::doc => {}
- _ => return false,
- }
- match trees.next() {
- Some(TokenTree::Token(Token { kind: TokenKind::Eq, span: _ }, _spacing)) => {}
- _ => return false,
- }
- match trees.next() {
- Some(TokenTree::Token(token, _spacing)) => {
- is_escaped_literal_token(token, unescaped) && trees.next().is_none()
- }
- _ => false,
- }
-}
-
-fn is_escaped_literal_token(token: &Token, unescaped: Symbol) -> bool {
- match token {
- Token { kind: TokenKind::Literal(lit), span: _ } => {
- match MetaItemLit::from_token_lit(*lit, DUMMY_SP) {
- Ok(lit) => is_escaped_literal_meta_item_lit(&lit, unescaped),
- Err(_) => false,
- }
- }
- _ => false,
- }
-}
-
-fn is_escaped_literal_meta_item_lit(lit: &MetaItemLit, unescaped: Symbol) -> bool {
- match lit {
- MetaItemLit { symbol: _, suffix: None, kind, span: _ } => {
- is_escaped_lit_kind(kind, unescaped)
- }
- _ => false,
- }
-}
-
-fn is_escaped_lit(lit: &Lit, unescaped: Symbol) -> bool {
- match lit {
- Lit { kind: token::LitKind::Str, symbol: _, suffix: None } => {
- match LitKind::from_token_lit(*lit) {
- Ok(lit_kind) => is_escaped_lit_kind(&lit_kind, unescaped),
- _ => false,
- }
- }
- _ => false,
- }
-}
-
-fn is_escaped_lit_kind(kind: &LitKind, unescaped: Symbol) -> bool {
- match kind {
- LitKind::Str(symbol, StrStyle::Cooked) => {
- symbol.as_str().replace('\r', "") == unescaped.as_str().replace('\r', "")
- }
- _ => false,
- }
-}
-
-impl SpanlessEq for LazyAttrTokenStream {
- fn eq(&self, other: &Self) -> bool {
- let this = self.to_attr_token_stream();
- let other = other.to_attr_token_stream();
- SpanlessEq::eq(&this, &other)
- }
-}
-
-impl SpanlessEq for AttrKind {
- fn eq(&self, other: &Self) -> bool {
- match (self, other) {
- (AttrKind::Normal(normal), AttrKind::Normal(normal2)) => {
- SpanlessEq::eq(normal, normal2)
- }
- (AttrKind::DocComment(kind, symbol), AttrKind::DocComment(kind2, symbol2)) => {
- SpanlessEq::eq(kind, kind2) && SpanlessEq::eq(symbol, symbol2)
- }
- (AttrKind::DocComment(kind, unescaped), AttrKind::Normal(normal2)) => {
- match kind {
- CommentKind::Line | CommentKind::Block => {}
- }
- let path = Path::from_ident(Ident::with_dummy_span(sym::doc));
- SpanlessEq::eq(&path, &normal2.item.path)
- && match &normal2.item.args {
- AttrItemKind::Parsed(_)
- | AttrItemKind::Unparsed(AttrArgs::Empty | AttrArgs::Delimited(_)) => false,
- AttrItemKind::Unparsed(AttrArgs::Eq { eq_span: _, expr }) => {
- match &expr.kind {
- ExprKind::Lit(lit) => is_escaped_lit(lit, *unescaped),
- _ => false,
- }
- }
- }
- }
- (AttrKind::Normal(_), AttrKind::DocComment(..)) => SpanlessEq::eq(other, self),
- }
- }
-}
-
-impl SpanlessEq for FormatArguments {
- fn eq(&self, other: &Self) -> bool {
- SpanlessEq::eq(self.all_args(), other.all_args())
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/common/mod.rs b/deps/crates/vendor/syn-v2/tests/common/mod.rs
deleted file mode 100644
index ead830f8116..00000000000
--- a/deps/crates/vendor/syn-v2/tests/common/mod.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-#![allow(dead_code)]
-#![allow(clippy::module_name_repetitions, clippy::shadow_unrelated)]
-
-pub mod eq;
-pub mod parse;
-pub mod visit;
diff --git a/deps/crates/vendor/syn-v2/tests/common/parse.rs b/deps/crates/vendor/syn-v2/tests/common/parse.rs
deleted file mode 100644
index 75217e1b573..00000000000
--- a/deps/crates/vendor/syn-v2/tests/common/parse.rs
+++ /dev/null
@@ -1,51 +0,0 @@
-extern crate rustc_ast;
-extern crate rustc_driver;
-extern crate rustc_expand;
-extern crate rustc_parse;
-extern crate rustc_session;
-extern crate rustc_span;
-
-use rustc_ast::ast;
-use rustc_parse::lexer::StripTokens;
-use rustc_session::parse::ParseSess;
-use rustc_span::FileName;
-use std::panic;
-
-pub fn librustc_expr(input: &str) -> Option<Box<ast::Expr>> {
- match panic::catch_unwind(|| {
- let sess = ParseSess::new();
- let name = FileName::Custom("test_precedence".to_string());
- let mut parser = rustc_parse::new_parser_from_source_str(
- &sess,
- name,
- input.to_string(),
- StripTokens::ShebangAndFrontmatter,
- )
- .unwrap();
- let presult = parser.parse_expr();
- match presult {
- Ok(expr) => Some(expr),
- Err(diagnostic) => {
- diagnostic.emit();
- None
- }
- }
- }) {
- Ok(Some(e)) => Some(e),
- Ok(None) => None,
- Err(_) => {
- errorf!("librustc panicked\n");
- None
- }
- }
-}
-
-pub fn syn_expr(input: &str) -> Option<syn::Expr> {
- match syn::parse_str(input) {
- Ok(e) => Some(e),
- Err(msg) => {
- errorf!("syn failed to parse\n{:?}\n", msg);
- None
- }
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/common/visit.rs b/deps/crates/vendor/syn-v2/tests/common/visit.rs
deleted file mode 100644
index 2d2a6c5382d..00000000000
--- a/deps/crates/vendor/syn-v2/tests/common/visit.rs
+++ /dev/null
@@ -1,119 +0,0 @@
-use proc_macro2::{Delimiter, Group, TokenStream, TokenTree};
-use std::mem;
-use syn::visit_mut::{self, VisitMut};
-use syn::{Expr, File, Generics, LifetimeParam, MacroDelimiter, Stmt, StmtMacro, TypeParam};
-
-pub struct FlattenParens {
- discard_paren_attrs: bool,
-}
-
-impl FlattenParens {
- pub fn discard_attrs() -> Self {
- FlattenParens {
- discard_paren_attrs: true,
- }
- }
-
- pub fn combine_attrs() -> Self {
- FlattenParens {
- discard_paren_attrs: false,
- }
- }
-
- pub fn visit_token_stream_mut(tokens: &mut TokenStream) {
- *tokens = mem::take(tokens)
- .into_iter()
- .flat_map(|tt| {
- if let TokenTree::Group(group) = tt {
- let delimiter = group.delimiter();
- let mut content = group.stream();
- Self::visit_token_stream_mut(&mut content);
- if let Delimiter::Parenthesis = delimiter {
- content
- } else {
- TokenStream::from(TokenTree::Group(Group::new(delimiter, content)))
- }
- } else {
- TokenStream::from(tt)
- }
- })
- .collect();
- }
-}
-
-impl VisitMut for FlattenParens {
- fn visit_expr_mut(&mut self, e: &mut Expr) {
- while let Expr::Paren(paren) = e {
- let paren_attrs = mem::take(&mut paren.attrs);
- *e = mem::replace(&mut *paren.expr, Expr::PLACEHOLDER);
- if !paren_attrs.is_empty() && !self.discard_paren_attrs {
- let nested_attrs = match e {
- Expr::Assign(e) => &mut e.attrs,
- Expr::Binary(e) => &mut e.attrs,
- Expr::Cast(e) => &mut e.attrs,
- _ => unimplemented!(),
- };
- assert!(nested_attrs.is_empty());
- *nested_attrs = paren_attrs;
- }
- }
- visit_mut::visit_expr_mut(self, e);
- }
-}
-
-pub struct AsIfPrinted;
-
-impl VisitMut for AsIfPrinted {
- fn visit_file_mut(&mut self, file: &mut File) {
- file.shebang = None;
- visit_mut::visit_file_mut(self, file);
- }
-
- fn visit_generics_mut(&mut self, generics: &mut Generics) {
- if generics.params.is_empty() {
- generics.lt_token = None;
- generics.gt_token = None;
- }
- if let Some(where_clause) = &generics.where_clause {
- if where_clause.predicates.is_empty() {
- generics.where_clause = None;
- }
- }
- visit_mut::visit_generics_mut(self, generics);
- }
-
- fn visit_lifetime_param_mut(&mut self, param: &mut LifetimeParam) {
- if param.bounds.is_empty() {
- param.colon_token = None;
- }
- visit_mut::visit_lifetime_param_mut(self, param);
- }
-
- fn visit_stmt_mut(&mut self, stmt: &mut Stmt) {
- if let Stmt::Expr(expr, semi) = stmt {
- if let Expr::Macro(e) = expr {
- if match e.mac.delimiter {
- MacroDelimiter::Brace(_) => true,
- MacroDelimiter::Paren(_) | MacroDelimiter::Bracket(_) => semi.is_some(),
- } {
- let Expr::Macro(expr) = mem::replace(expr, Expr::PLACEHOLDER) else {
- unreachable!();
- };
- *stmt = Stmt::Macro(StmtMacro {
- attrs: expr.attrs,
- mac: expr.mac,
- semi_token: *semi,
- });
- }
- }
- }
- visit_mut::visit_stmt_mut(self, stmt);
- }
-
- fn visit_type_param_mut(&mut self, param: &mut TypeParam) {
- if param.bounds.is_empty() {
- param.colon_token = None;
- }
- visit_mut::visit_type_param_mut(self, param);
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/debug/gen.rs b/deps/crates/vendor/syn-v2/tests/debug/gen.rs
deleted file mode 100644
index b74d3a6d86f..00000000000
--- a/deps/crates/vendor/syn-v2/tests/debug/gen.rs
+++ /dev/null
@@ -1,5238 +0,0 @@
-// This file is @generated by syn-internal-codegen.
-// It is not intended for manual editing.
-
-#![allow(clippy::match_wildcard_for_single_variants)]
-use super::{Lite, Present};
-use core::fmt::{self, Debug, Display};
-use ref_cast::RefCast;
-impl Debug for Lite<syn::Abi> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Abi");
- if let Some(val) = &self.value.name {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::LitStr);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("name", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::AngleBracketedGenericArguments> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AngleBracketedGenericArguments");
- if self.value.colon2_token.is_some() {
- formatter.field("colon2_token", &Present);
- }
- if !self.value.args.is_empty() {
- formatter.field("args", Lite(&self.value.args));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Arm> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Arm");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("pat", Lite(&self.value.pat));
- if let Some(val) = &self.value.guard {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::If, Box<syn::Expr>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("guard", Print::ref_cast(val));
- }
- formatter.field("body", Lite(&self.value.body));
- if self.value.comma.is_some() {
- formatter.field("comma", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::AssocConst> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocConst");
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.generics {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::AngleBracketedGenericArguments);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("generics", Print::ref_cast(val));
- }
- formatter.field("value", Lite(&self.value.value));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::AssocType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("AssocType");
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.generics {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::AngleBracketedGenericArguments);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("generics", Print::ref_cast(val));
- }
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::AttrStyle> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::AttrStyle::Outer => formatter.write_str("AttrStyle::Outer"),
- syn::AttrStyle::Inner(_val) => {
- formatter.write_str("AttrStyle::Inner")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Attribute> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Attribute");
- formatter.field("style", Lite(&self.value.style));
- formatter.field("meta", Lite(&self.value.meta));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::BareFnArg> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareFnArg");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.name {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((proc_macro2::Ident, syn::token::Colon));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("name", Print::ref_cast(val));
- }
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::BareVariadic> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BareVariadic");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.name {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((proc_macro2::Ident, syn::token::Colon));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("name", Print::ref_cast(val));
- }
- if self.value.comma.is_some() {
- formatter.field("comma", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::BinOp> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::BinOp::Add(_val) => {
- formatter.write_str("BinOp::Add")?;
- Ok(())
- }
- syn::BinOp::Sub(_val) => {
- formatter.write_str("BinOp::Sub")?;
- Ok(())
- }
- syn::BinOp::Mul(_val) => {
- formatter.write_str("BinOp::Mul")?;
- Ok(())
- }
- syn::BinOp::Div(_val) => {
- formatter.write_str("BinOp::Div")?;
- Ok(())
- }
- syn::BinOp::Rem(_val) => {
- formatter.write_str("BinOp::Rem")?;
- Ok(())
- }
- syn::BinOp::And(_val) => {
- formatter.write_str("BinOp::And")?;
- Ok(())
- }
- syn::BinOp::Or(_val) => {
- formatter.write_str("BinOp::Or")?;
- Ok(())
- }
- syn::BinOp::BitXor(_val) => {
- formatter.write_str("BinOp::BitXor")?;
- Ok(())
- }
- syn::BinOp::BitAnd(_val) => {
- formatter.write_str("BinOp::BitAnd")?;
- Ok(())
- }
- syn::BinOp::BitOr(_val) => {
- formatter.write_str("BinOp::BitOr")?;
- Ok(())
- }
- syn::BinOp::Shl(_val) => {
- formatter.write_str("BinOp::Shl")?;
- Ok(())
- }
- syn::BinOp::Shr(_val) => {
- formatter.write_str("BinOp::Shr")?;
- Ok(())
- }
- syn::BinOp::Eq(_val) => {
- formatter.write_str("BinOp::Eq")?;
- Ok(())
- }
- syn::BinOp::Lt(_val) => {
- formatter.write_str("BinOp::Lt")?;
- Ok(())
- }
- syn::BinOp::Le(_val) => {
- formatter.write_str("BinOp::Le")?;
- Ok(())
- }
- syn::BinOp::Ne(_val) => {
- formatter.write_str("BinOp::Ne")?;
- Ok(())
- }
- syn::BinOp::Ge(_val) => {
- formatter.write_str("BinOp::Ge")?;
- Ok(())
- }
- syn::BinOp::Gt(_val) => {
- formatter.write_str("BinOp::Gt")?;
- Ok(())
- }
- syn::BinOp::AddAssign(_val) => {
- formatter.write_str("BinOp::AddAssign")?;
- Ok(())
- }
- syn::BinOp::SubAssign(_val) => {
- formatter.write_str("BinOp::SubAssign")?;
- Ok(())
- }
- syn::BinOp::MulAssign(_val) => {
- formatter.write_str("BinOp::MulAssign")?;
- Ok(())
- }
- syn::BinOp::DivAssign(_val) => {
- formatter.write_str("BinOp::DivAssign")?;
- Ok(())
- }
- syn::BinOp::RemAssign(_val) => {
- formatter.write_str("BinOp::RemAssign")?;
- Ok(())
- }
- syn::BinOp::BitXorAssign(_val) => {
- formatter.write_str("BinOp::BitXorAssign")?;
- Ok(())
- }
- syn::BinOp::BitAndAssign(_val) => {
- formatter.write_str("BinOp::BitAndAssign")?;
- Ok(())
- }
- syn::BinOp::BitOrAssign(_val) => {
- formatter.write_str("BinOp::BitOrAssign")?;
- Ok(())
- }
- syn::BinOp::ShlAssign(_val) => {
- formatter.write_str("BinOp::ShlAssign")?;
- Ok(())
- }
- syn::BinOp::ShrAssign(_val) => {
- formatter.write_str("BinOp::ShrAssign")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::Block> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Block");
- formatter.field("stmts", Lite(&self.value.stmts));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::BoundLifetimes> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("BoundLifetimes");
- if !self.value.lifetimes.is_empty() {
- formatter.field("lifetimes", Lite(&self.value.lifetimes));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::CapturedParam> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::CapturedParam::Lifetime(_val) => {
- formatter.write_str("CapturedParam::Lifetime")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::CapturedParam::Ident(_val) => {
- formatter.write_str("CapturedParam::Ident")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::ConstParam> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ConstParam");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("ty", Lite(&self.value.ty));
- if self.value.eq_token.is_some() {
- formatter.field("eq_token", &Present);
- }
- if let Some(val) = &self.value.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Expr);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Constraint> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Constraint");
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.generics {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::AngleBracketedGenericArguments);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("generics", Print::ref_cast(val));
- }
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Data> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Data::Struct(_val) => {
- let mut formatter = formatter.debug_struct("Data::Struct");
- formatter.field("fields", Lite(&_val.fields));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::Data::Enum(_val) => {
- let mut formatter = formatter.debug_struct("Data::Enum");
- if !_val.variants.is_empty() {
- formatter.field("variants", Lite(&_val.variants));
- }
- formatter.finish()
- }
- syn::Data::Union(_val) => {
- let mut formatter = formatter.debug_struct("Data::Union");
- formatter.field("fields", Lite(&_val.fields));
- formatter.finish()
- }
- }
- }
-}
-impl Debug for Lite<syn::DataEnum> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DataEnum");
- if !self.value.variants.is_empty() {
- formatter.field("variants", Lite(&self.value.variants));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::DataStruct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DataStruct");
- formatter.field("fields", Lite(&self.value.fields));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::DataUnion> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DataUnion");
- formatter.field("fields", Lite(&self.value.fields));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::DeriveInput> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("DeriveInput");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("data", Lite(&self.value.data));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Expr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Expr::Array(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Array");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Expr::Assign(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Assign");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("left", Lite(&_val.left));
- formatter.field("right", Lite(&_val.right));
- formatter.finish()
- }
- syn::Expr::Async(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Async");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.capture.is_some() {
- formatter.field("capture", &Present);
- }
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Expr::Await(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Await");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("base", Lite(&_val.base));
- formatter.finish()
- }
- syn::Expr::Binary(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Binary");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("left", Lite(&_val.left));
- formatter.field("op", Lite(&_val.op));
- formatter.field("right", Lite(&_val.right));
- formatter.finish()
- }
- syn::Expr::Block(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Block");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Expr::Break(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Break");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- if let Some(val) = &_val.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::Call(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Call");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("func", Lite(&_val.func));
- if !_val.args.is_empty() {
- formatter.field("args", Lite(&_val.args));
- }
- formatter.finish()
- }
- syn::Expr::Cast(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Cast");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.field("ty", Lite(&_val.ty));
- formatter.finish()
- }
- syn::Expr::Closure(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Closure");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- if _val.constness.is_some() {
- formatter.field("constness", &Present);
- }
- if _val.movability.is_some() {
- formatter.field("movability", &Present);
- }
- if _val.asyncness.is_some() {
- formatter.field("asyncness", &Present);
- }
- if _val.capture.is_some() {
- formatter.field("capture", &Present);
- }
- if !_val.inputs.is_empty() {
- formatter.field("inputs", Lite(&_val.inputs));
- }
- formatter.field("output", Lite(&_val.output));
- formatter.field("body", Lite(&_val.body));
- formatter.finish()
- }
- syn::Expr::Const(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Const");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Expr::Continue(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Continue");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::Field(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Field");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("base", Lite(&_val.base));
- formatter.field("member", Lite(&_val.member));
- formatter.finish()
- }
- syn::Expr::ForLoop(_val) => {
- let mut formatter = formatter.debug_struct("Expr::ForLoop");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("pat", Lite(&_val.pat));
- formatter.field("expr", Lite(&_val.expr));
- formatter.field("body", Lite(&_val.body));
- formatter.finish()
- }
- syn::Expr::Group(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Group");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::If(_val) => {
- let mut formatter = formatter.debug_struct("Expr::If");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("cond", Lite(&_val.cond));
- formatter.field("then_branch", Lite(&_val.then_branch));
- if let Some(val) = &_val.else_branch {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Else, Box<syn::Expr>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("else_branch", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::Index(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Index");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.field("index", Lite(&_val.index));
- formatter.finish()
- }
- syn::Expr::Infer(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Infer");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.finish()
- }
- syn::Expr::Let(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Let");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("pat", Lite(&_val.pat));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::Lit(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Lit");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("lit", Lite(&_val.lit));
- formatter.finish()
- }
- syn::Expr::Loop(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Loop");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("body", Lite(&_val.body));
- formatter.finish()
- }
- syn::Expr::Macro(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mac", Lite(&_val.mac));
- formatter.finish()
- }
- syn::Expr::Match(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Match");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- if !_val.arms.is_empty() {
- formatter.field("arms", Lite(&_val.arms));
- }
- formatter.finish()
- }
- syn::Expr::MethodCall(_val) => {
- let mut formatter = formatter.debug_struct("Expr::MethodCall");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("receiver", Lite(&_val.receiver));
- formatter.field("method", Lite(&_val.method));
- if let Some(val) = &_val.turbofish {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::AngleBracketedGenericArguments);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("turbofish", Print::ref_cast(val));
- }
- if !_val.args.is_empty() {
- formatter.field("args", Lite(&_val.args));
- }
- formatter.finish()
- }
- syn::Expr::Paren(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Paren");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::Path(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Path");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&_val.path));
- formatter.finish()
- }
- syn::Expr::Range(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Range");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.start {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("start", Print::ref_cast(val));
- }
- formatter.field("limits", Lite(&_val.limits));
- if let Some(val) = &_val.end {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("end", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::RawAddr(_val) => {
- let mut formatter = formatter.debug_struct("Expr::RawAddr");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mutability", Lite(&_val.mutability));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::Reference(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Reference");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::Repeat(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Repeat");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.field("len", Lite(&_val.len));
- formatter.finish()
- }
- syn::Expr::Return(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Return");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::Struct(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Struct");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&_val.path));
- if !_val.fields.is_empty() {
- formatter.field("fields", Lite(&_val.fields));
- }
- if _val.dot2_token.is_some() {
- formatter.field("dot2_token", &Present);
- }
- if let Some(val) = &_val.rest {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rest", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Expr::Try(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Try");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::TryBlock(_val) => {
- let mut formatter = formatter.debug_struct("Expr::TryBlock");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Expr::Tuple(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Tuple");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Expr::Unary(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Unary");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("op", Lite(&_val.op));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Expr::Unsafe(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Unsafe");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Expr::Verbatim(_val) => {
- formatter.write_str("Expr::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- syn::Expr::While(_val) => {
- let mut formatter = formatter.debug_struct("Expr::While");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("cond", Lite(&_val.cond));
- formatter.field("body", Lite(&_val.body));
- formatter.finish()
- }
- syn::Expr::Yield(_val) => {
- let mut formatter = formatter.debug_struct("Expr::Yield");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::ExprArray> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprArray");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprAssign> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprAssign");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("left", Lite(&self.value.left));
- formatter.field("right", Lite(&self.value.right));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprAsync> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprAsync");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.capture.is_some() {
- formatter.field("capture", &Present);
- }
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprAwait> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprAwait");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("base", Lite(&self.value.base));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprBinary> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprBinary");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("left", Lite(&self.value.left));
- formatter.field("op", Lite(&self.value.op));
- formatter.field("right", Lite(&self.value.right));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprBlock> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprBlock");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprBreak> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprBreak");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- if let Some(val) = &self.value.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprCall> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprCall");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("func", Lite(&self.value.func));
- if !self.value.args.is_empty() {
- formatter.field("args", Lite(&self.value.args));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprCast> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprCast");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprClosure> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprClosure");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- if self.value.constness.is_some() {
- formatter.field("constness", &Present);
- }
- if self.value.movability.is_some() {
- formatter.field("movability", &Present);
- }
- if self.value.asyncness.is_some() {
- formatter.field("asyncness", &Present);
- }
- if self.value.capture.is_some() {
- formatter.field("capture", &Present);
- }
- if !self.value.inputs.is_empty() {
- formatter.field("inputs", Lite(&self.value.inputs));
- }
- formatter.field("output", Lite(&self.value.output));
- formatter.field("body", Lite(&self.value.body));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprConst> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprConst");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprContinue> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprContinue");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprField> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprField");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("base", Lite(&self.value.base));
- formatter.field("member", Lite(&self.value.member));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprForLoop> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprForLoop");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.field("body", Lite(&self.value.body));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprGroup> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprGroup");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprIf> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprIf");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("cond", Lite(&self.value.cond));
- formatter.field("then_branch", Lite(&self.value.then_branch));
- if let Some(val) = &self.value.else_branch {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Else, Box<syn::Expr>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("else_branch", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprIndex> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprIndex");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.field("index", Lite(&self.value.index));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprInfer> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprInfer");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprLet> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprLet");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprLit> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprLit");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("lit", Lite(&self.value.lit));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprLoop> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprLoop");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("body", Lite(&self.value.body));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mac", Lite(&self.value.mac));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprMatch> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprMatch");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- if !self.value.arms.is_empty() {
- formatter.field("arms", Lite(&self.value.arms));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprMethodCall> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprMethodCall");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("receiver", Lite(&self.value.receiver));
- formatter.field("method", Lite(&self.value.method));
- if let Some(val) = &self.value.turbofish {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::AngleBracketedGenericArguments);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("turbofish", Print::ref_cast(val));
- }
- if !self.value.args.is_empty() {
- formatter.field("args", Lite(&self.value.args));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprParen> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprParen");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprPath> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprPath");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprRange> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprRange");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.start {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("start", Print::ref_cast(val));
- }
- formatter.field("limits", Lite(&self.value.limits));
- if let Some(val) = &self.value.end {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("end", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprRawAddr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprRawAddr");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mutability", Lite(&self.value.mutability));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprReference> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprReference");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprRepeat> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprRepeat");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.field("len", Lite(&self.value.len));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprReturn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprReturn");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprStruct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprStruct");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- if !self.value.fields.is_empty() {
- formatter.field("fields", Lite(&self.value.fields));
- }
- if self.value.dot2_token.is_some() {
- formatter.field("dot2_token", &Present);
- }
- if let Some(val) = &self.value.rest {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rest", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprTry> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprTry");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprTryBlock> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprTryBlock");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprTuple> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprTuple");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprUnary> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprUnary");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("op", Lite(&self.value.op));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprUnsafe> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprUnsafe");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprWhile> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprWhile");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.label {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Label);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("label", Print::ref_cast(val));
- }
- formatter.field("cond", Lite(&self.value.cond));
- formatter.field("body", Lite(&self.value.body));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ExprYield> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ExprYield");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.expr {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Box<syn::Expr>);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("expr", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Field> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Field");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- match self.value.mutability {
- syn::FieldMutability::None => {}
- _ => {
- formatter.field("mutability", Lite(&self.value.mutability));
- }
- }
- if let Some(val) = &self.value.ident {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(proc_macro2::Ident);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("ident", Print::ref_cast(val));
- }
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::FieldMutability> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::FieldMutability::None => formatter.write_str("FieldMutability::None"),
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::FieldPat> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldPat");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("member", Lite(&self.value.member));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::FieldValue> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldValue");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("member", Lite(&self.value.member));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Fields> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Fields::Named(_val) => {
- let mut formatter = formatter.debug_struct("Fields::Named");
- if !_val.named.is_empty() {
- formatter.field("named", Lite(&_val.named));
- }
- formatter.finish()
- }
- syn::Fields::Unnamed(_val) => {
- let mut formatter = formatter.debug_struct("Fields::Unnamed");
- if !_val.unnamed.is_empty() {
- formatter.field("unnamed", Lite(&_val.unnamed));
- }
- formatter.finish()
- }
- syn::Fields::Unit => formatter.write_str("Fields::Unit"),
- }
- }
-}
-impl Debug for Lite<syn::FieldsNamed> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldsNamed");
- if !self.value.named.is_empty() {
- formatter.field("named", Lite(&self.value.named));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::FieldsUnnamed> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("FieldsUnnamed");
- if !self.value.unnamed.is_empty() {
- formatter.field("unnamed", Lite(&self.value.unnamed));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::File> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("File");
- if let Some(val) = &self.value.shebang {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(String);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("shebang", Print::ref_cast(val));
- }
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if !self.value.items.is_empty() {
- formatter.field("items", Lite(&self.value.items));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::FnArg> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::FnArg::Receiver(_val) => {
- formatter.write_str("FnArg::Receiver")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::FnArg::Typed(_val) => {
- formatter.write_str("FnArg::Typed")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::ForeignItem> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::ForeignItem::Fn(_val) => {
- let mut formatter = formatter.debug_struct("ForeignItem::Fn");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("sig", Lite(&_val.sig));
- formatter.finish()
- }
- syn::ForeignItem::Static(_val) => {
- let mut formatter = formatter.debug_struct("ForeignItem::Static");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- match _val.mutability {
- syn::StaticMutability::None => {}
- _ => {
- formatter.field("mutability", Lite(&_val.mutability));
- }
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("ty", Lite(&_val.ty));
- formatter.finish()
- }
- syn::ForeignItem::Type(_val) => {
- let mut formatter = formatter.debug_struct("ForeignItem::Type");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.finish()
- }
- syn::ForeignItem::Macro(_val) => {
- let mut formatter = formatter.debug_struct("ForeignItem::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mac", Lite(&_val.mac));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::ForeignItem::Verbatim(_val) => {
- formatter.write_str("ForeignItem::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::ForeignItemFn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ForeignItemFn");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("sig", Lite(&self.value.sig));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ForeignItemMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ForeignItemMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mac", Lite(&self.value.mac));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ForeignItemStatic> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ForeignItemStatic");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- match self.value.mutability {
- syn::StaticMutability::None => {}
- _ => {
- formatter.field("mutability", Lite(&self.value.mutability));
- }
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ForeignItemType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ForeignItemType");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::GenericArgument> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::GenericArgument::Lifetime(_val) => {
- formatter.write_str("GenericArgument::Lifetime")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericArgument::Type(_val) => {
- formatter.write_str("GenericArgument::Type")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericArgument::Const(_val) => {
- formatter.write_str("GenericArgument::Const")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericArgument::AssocType(_val) => {
- formatter.write_str("GenericArgument::AssocType")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericArgument::AssocConst(_val) => {
- formatter.write_str("GenericArgument::AssocConst")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericArgument::Constraint(_val) => {
- formatter.write_str("GenericArgument::Constraint")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::GenericParam> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::GenericParam::Lifetime(_val) => {
- formatter.write_str("GenericParam::Lifetime")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericParam::Type(_val) => {
- formatter.write_str("GenericParam::Type")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::GenericParam::Const(_val) => {
- formatter.write_str("GenericParam::Const")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Generics> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Generics");
- if self.value.lt_token.is_some() {
- formatter.field("lt_token", &Present);
- }
- if !self.value.params.is_empty() {
- formatter.field("params", Lite(&self.value.params));
- }
- if self.value.gt_token.is_some() {
- formatter.field("gt_token", &Present);
- }
- if let Some(val) = &self.value.where_clause {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::WhereClause);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("where_clause", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ImplItem> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::ImplItem::Const(_val) => {
- let mut formatter = formatter.debug_struct("ImplItem::Const");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("ty", Lite(&_val.ty));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::ImplItem::Fn(_val) => {
- let mut formatter = formatter.debug_struct("ImplItem::Fn");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("sig", Lite(&_val.sig));
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::ImplItem::Type(_val) => {
- let mut formatter = formatter.debug_struct("ImplItem::Type");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("ty", Lite(&_val.ty));
- formatter.finish()
- }
- syn::ImplItem::Macro(_val) => {
- let mut formatter = formatter.debug_struct("ImplItem::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mac", Lite(&_val.mac));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::ImplItem::Verbatim(_val) => {
- formatter.write_str("ImplItem::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::ImplItemConst> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ImplItemConst");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ImplItemFn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ImplItemFn");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("sig", Lite(&self.value.sig));
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ImplItemMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ImplItemMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mac", Lite(&self.value.mac));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ImplItemType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ImplItemType");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ImplRestriction> {
- fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
- unreachable!()
- }
-}
-impl Debug for Lite<syn::Index> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Index");
- formatter.field("index", Lite(&self.value.index));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Item> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Item::Const(_val) => {
- let mut formatter = formatter.debug_struct("Item::Const");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("ty", Lite(&_val.ty));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Item::Enum(_val) => {
- let mut formatter = formatter.debug_struct("Item::Enum");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- if !_val.variants.is_empty() {
- formatter.field("variants", Lite(&_val.variants));
- }
- formatter.finish()
- }
- syn::Item::ExternCrate(_val) => {
- let mut formatter = formatter.debug_struct("Item::ExternCrate");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- if let Some(val) = &_val.rename {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::As, proc_macro2::Ident));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rename", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Item::Fn(_val) => {
- let mut formatter = formatter.debug_struct("Item::Fn");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("sig", Lite(&_val.sig));
- formatter.field("block", Lite(&_val.block));
- formatter.finish()
- }
- syn::Item::ForeignMod(_val) => {
- let mut formatter = formatter.debug_struct("Item::ForeignMod");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("abi", Lite(&_val.abi));
- if !_val.items.is_empty() {
- formatter.field("items", Lite(&_val.items));
- }
- formatter.finish()
- }
- syn::Item::Impl(_val) => {
- let mut formatter = formatter.debug_struct("Item::Impl");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- if _val.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("generics", Lite(&_val.generics));
- if let Some(val) = &_val.trait_ {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((Option<syn::token::Not>, syn::Path, syn::token::For));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(
- &(
- &super::Option {
- present: self.0.0.is_some(),
- },
- Lite(&self.0.1),
- ),
- formatter,
- )?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("trait_", Print::ref_cast(val));
- }
- formatter.field("self_ty", Lite(&_val.self_ty));
- if !_val.items.is_empty() {
- formatter.field("items", Lite(&_val.items));
- }
- formatter.finish()
- }
- syn::Item::Macro(_val) => {
- let mut formatter = formatter.debug_struct("Item::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.ident {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(proc_macro2::Ident);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("ident", Print::ref_cast(val));
- }
- formatter.field("mac", Lite(&_val.mac));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::Item::Mod(_val) => {
- let mut formatter = formatter.debug_struct("Item::Mod");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("ident", Lite(&_val.ident));
- if let Some(val) = &_val.content {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Brace, Vec<syn::Item>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("content", Print::ref_cast(val));
- }
- if _val.semi.is_some() {
- formatter.field("semi", &Present);
- }
- formatter.finish()
- }
- syn::Item::Static(_val) => {
- let mut formatter = formatter.debug_struct("Item::Static");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- match _val.mutability {
- syn::StaticMutability::None => {}
- _ => {
- formatter.field("mutability", Lite(&_val.mutability));
- }
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("ty", Lite(&_val.ty));
- formatter.field("expr", Lite(&_val.expr));
- formatter.finish()
- }
- syn::Item::Struct(_val) => {
- let mut formatter = formatter.debug_struct("Item::Struct");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("fields", Lite(&_val.fields));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::Item::Trait(_val) => {
- let mut formatter = formatter.debug_struct("Item::Trait");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- if _val.auto_token.is_some() {
- formatter.field("auto_token", &Present);
- }
- if let Some(val) = &_val.restriction {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::ImplRestriction);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("restriction", Print::ref_cast(val));
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- if _val.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !_val.supertraits.is_empty() {
- formatter.field("supertraits", Lite(&_val.supertraits));
- }
- if !_val.items.is_empty() {
- formatter.field("items", Lite(&_val.items));
- }
- formatter.finish()
- }
- syn::Item::TraitAlias(_val) => {
- let mut formatter = formatter.debug_struct("Item::TraitAlias");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- if !_val.bounds.is_empty() {
- formatter.field("bounds", Lite(&_val.bounds));
- }
- formatter.finish()
- }
- syn::Item::Type(_val) => {
- let mut formatter = formatter.debug_struct("Item::Type");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("ty", Lite(&_val.ty));
- formatter.finish()
- }
- syn::Item::Union(_val) => {
- let mut formatter = formatter.debug_struct("Item::Union");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("fields", Lite(&_val.fields));
- formatter.finish()
- }
- syn::Item::Use(_val) => {
- let mut formatter = formatter.debug_struct("Item::Use");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("vis", Lite(&_val.vis));
- if _val.leading_colon.is_some() {
- formatter.field("leading_colon", &Present);
- }
- formatter.field("tree", Lite(&_val.tree));
- formatter.finish()
- }
- syn::Item::Verbatim(_val) => {
- formatter.write_str("Item::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::ItemConst> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemConst");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemEnum> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemEnum");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- if !self.value.variants.is_empty() {
- formatter.field("variants", Lite(&self.value.variants));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemExternCrate> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemExternCrate");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.rename {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::As, proc_macro2::Ident));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rename", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemFn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemFn");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("sig", Lite(&self.value.sig));
- formatter.field("block", Lite(&self.value.block));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemForeignMod> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemForeignMod");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("abi", Lite(&self.value.abi));
- if !self.value.items.is_empty() {
- formatter.field("items", Lite(&self.value.items));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemImpl> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemImpl");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.defaultness.is_some() {
- formatter.field("defaultness", &Present);
- }
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("generics", Lite(&self.value.generics));
- if let Some(val) = &self.value.trait_ {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((Option<syn::token::Not>, syn::Path, syn::token::For));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(
- &(
- &super::Option {
- present: self.0.0.is_some(),
- },
- Lite(&self.0.1),
- ),
- formatter,
- )?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("trait_", Print::ref_cast(val));
- }
- formatter.field("self_ty", Lite(&self.value.self_ty));
- if !self.value.items.is_empty() {
- formatter.field("items", Lite(&self.value.items));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.ident {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(proc_macro2::Ident);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("ident", Print::ref_cast(val));
- }
- formatter.field("mac", Lite(&self.value.mac));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemMod> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemMod");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.content {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Brace, Vec<syn::Item>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("content", Print::ref_cast(val));
- }
- if self.value.semi.is_some() {
- formatter.field("semi", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemStatic> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemStatic");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- match self.value.mutability {
- syn::StaticMutability::None => {}
- _ => {
- formatter.field("mutability", Lite(&self.value.mutability));
- }
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.field("expr", Lite(&self.value.expr));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemStruct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemStruct");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("fields", Lite(&self.value.fields));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemTrait> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemTrait");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- if self.value.auto_token.is_some() {
- formatter.field("auto_token", &Present);
- }
- if let Some(val) = &self.value.restriction {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::ImplRestriction);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("restriction", Print::ref_cast(val));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !self.value.supertraits.is_empty() {
- formatter.field("supertraits", Lite(&self.value.supertraits));
- }
- if !self.value.items.is_empty() {
- formatter.field("items", Lite(&self.value.items));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemTraitAlias> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemTraitAlias");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemType");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemUnion> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemUnion");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("fields", Lite(&self.value.fields));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ItemUse> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ItemUse");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("vis", Lite(&self.value.vis));
- if self.value.leading_colon.is_some() {
- formatter.field("leading_colon", &Present);
- }
- formatter.field("tree", Lite(&self.value.tree));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Label> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Label");
- formatter.field("name", Lite(&self.value.name));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Lifetime> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Lifetime");
- formatter.field("ident", Lite(&self.value.ident));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::LifetimeParam> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LifetimeParam");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("lifetime", Lite(&self.value.lifetime));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Lit> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Lit::Str(_val) => write!(formatter, "{:?}", _val.value()),
- syn::Lit::ByteStr(_val) => write!(formatter, "{:?}", _val.value()),
- syn::Lit::CStr(_val) => write!(formatter, "{:?}", _val.value()),
- syn::Lit::Byte(_val) => write!(formatter, "{:?}", _val.value()),
- syn::Lit::Char(_val) => write!(formatter, "{:?}", _val.value()),
- syn::Lit::Int(_val) => write!(formatter, "{}", _val),
- syn::Lit::Float(_val) => write!(formatter, "{}", _val),
- syn::Lit::Bool(_val) => {
- let mut formatter = formatter.debug_struct("Lit::Bool");
- formatter.field("value", Lite(&_val.value));
- formatter.finish()
- }
- syn::Lit::Verbatim(_val) => {
- formatter.write_str("Lit::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::LitBool> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LitBool");
- formatter.field("value", Lite(&self.value.value));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::LitByte> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.value())
- }
-}
-impl Debug for Lite<syn::LitByteStr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.value())
- }
-}
-impl Debug for Lite<syn::LitCStr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.value())
- }
-}
-impl Debug for Lite<syn::LitChar> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.value())
- }
-}
-impl Debug for Lite<syn::LitFloat> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-impl Debug for Lite<syn::LitInt> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-impl Debug for Lite<syn::LitStr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.value())
- }
-}
-impl Debug for Lite<syn::Local> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Local");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("pat", Lite(&self.value.pat));
- if let Some(val) = &self.value.init {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::LocalInit);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("init", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::LocalInit> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("LocalInit");
- formatter.field("expr", Lite(&self.value.expr));
- if let Some(val) = &self.value.diverge {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Else, Box<syn::Expr>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("diverge", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Macro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Macro");
- formatter.field("path", Lite(&self.value.path));
- formatter.field("delimiter", Lite(&self.value.delimiter));
- formatter.field("tokens", Lite(&self.value.tokens));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::MacroDelimiter> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::MacroDelimiter::Paren(_val) => {
- formatter.write_str("MacroDelimiter::Paren")?;
- Ok(())
- }
- syn::MacroDelimiter::Brace(_val) => {
- formatter.write_str("MacroDelimiter::Brace")?;
- Ok(())
- }
- syn::MacroDelimiter::Bracket(_val) => {
- formatter.write_str("MacroDelimiter::Bracket")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Member> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Member::Named(_val) => {
- formatter.write_str("Member::Named")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Member::Unnamed(_val) => {
- formatter.write_str("Member::Unnamed")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Meta> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Meta::Path(_val) => {
- let mut formatter = formatter.debug_struct("Meta::Path");
- if _val.leading_colon.is_some() {
- formatter.field("leading_colon", &Present);
- }
- if !_val.segments.is_empty() {
- formatter.field("segments", Lite(&_val.segments));
- }
- formatter.finish()
- }
- syn::Meta::List(_val) => {
- let mut formatter = formatter.debug_struct("Meta::List");
- formatter.field("path", Lite(&_val.path));
- formatter.field("delimiter", Lite(&_val.delimiter));
- formatter.field("tokens", Lite(&_val.tokens));
- formatter.finish()
- }
- syn::Meta::NameValue(_val) => {
- let mut formatter = formatter.debug_struct("Meta::NameValue");
- formatter.field("path", Lite(&_val.path));
- formatter.field("value", Lite(&_val.value));
- formatter.finish()
- }
- }
- }
-}
-impl Debug for Lite<syn::MetaList> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("MetaList");
- formatter.field("path", Lite(&self.value.path));
- formatter.field("delimiter", Lite(&self.value.delimiter));
- formatter.field("tokens", Lite(&self.value.tokens));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::MetaNameValue> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("MetaNameValue");
- formatter.field("path", Lite(&self.value.path));
- formatter.field("value", Lite(&self.value.value));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ParenthesizedGenericArguments> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("ParenthesizedGenericArguments");
- if !self.value.inputs.is_empty() {
- formatter.field("inputs", Lite(&self.value.inputs));
- }
- formatter.field("output", Lite(&self.value.output));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Pat> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Pat::Const(_val) => {
- formatter.write_str("Pat::Const")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Pat::Ident(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Ident");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.by_ref.is_some() {
- formatter.field("by_ref", &Present);
- }
- if _val.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("ident", Lite(&_val.ident));
- if let Some(val) = &_val.subpat {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::At, Box<syn::Pat>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("subpat", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Pat::Lit(_val) => {
- formatter.write_str("Pat::Lit")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Pat::Macro(_val) => {
- formatter.write_str("Pat::Macro")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Pat::Or(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Or");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.leading_vert.is_some() {
- formatter.field("leading_vert", &Present);
- }
- if !_val.cases.is_empty() {
- formatter.field("cases", Lite(&_val.cases));
- }
- formatter.finish()
- }
- syn::Pat::Paren(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Paren");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("pat", Lite(&_val.pat));
- formatter.finish()
- }
- syn::Pat::Path(_val) => {
- formatter.write_str("Pat::Path")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Pat::Range(_val) => {
- formatter.write_str("Pat::Range")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Pat::Reference(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Reference");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if _val.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("pat", Lite(&_val.pat));
- formatter.finish()
- }
- syn::Pat::Rest(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Rest");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.finish()
- }
- syn::Pat::Slice(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Slice");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Pat::Struct(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Struct");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&_val.path));
- if !_val.fields.is_empty() {
- formatter.field("fields", Lite(&_val.fields));
- }
- if let Some(val) = &_val.rest {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::PatRest);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rest", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Pat::Tuple(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Tuple");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Pat::TupleStruct(_val) => {
- let mut formatter = formatter.debug_struct("Pat::TupleStruct");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- if let Some(val) = &_val.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&_val.path));
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Pat::Type(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Type");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("pat", Lite(&_val.pat));
- formatter.field("ty", Lite(&_val.ty));
- formatter.finish()
- }
- syn::Pat::Verbatim(_val) => {
- formatter.write_str("Pat::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- syn::Pat::Wild(_val) => {
- let mut formatter = formatter.debug_struct("Pat::Wild");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.finish()
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::PatIdent> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatIdent");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.by_ref.is_some() {
- formatter.field("by_ref", &Present);
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("ident", Lite(&self.value.ident));
- if let Some(val) = &self.value.subpat {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::At, Box<syn::Pat>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("subpat", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatOr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatOr");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.leading_vert.is_some() {
- formatter.field("leading_vert", &Present);
- }
- if !self.value.cases.is_empty() {
- formatter.field("cases", Lite(&self.value.cases));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatParen> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatParen");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatReference> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatReference");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatRest> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatRest");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatSlice> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatSlice");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatStruct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatStruct");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- if !self.value.fields.is_empty() {
- formatter.field("fields", Lite(&self.value.fields));
- }
- if let Some(val) = &self.value.rest {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::PatRest);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("rest", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatTuple> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatTuple");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatTupleStruct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatTupleStruct");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatType");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("pat", Lite(&self.value.pat));
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PatWild> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PatWild");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Path> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Path");
- if self.value.leading_colon.is_some() {
- formatter.field("leading_colon", &Present);
- }
- if !self.value.segments.is_empty() {
- formatter.field("segments", Lite(&self.value.segments));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PathArguments> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::PathArguments::None => formatter.write_str("PathArguments::None"),
- syn::PathArguments::AngleBracketed(_val) => {
- let mut formatter = formatter
- .debug_struct("PathArguments::AngleBracketed");
- if _val.colon2_token.is_some() {
- formatter.field("colon2_token", &Present);
- }
- if !_val.args.is_empty() {
- formatter.field("args", Lite(&_val.args));
- }
- formatter.finish()
- }
- syn::PathArguments::Parenthesized(_val) => {
- let mut formatter = formatter
- .debug_struct("PathArguments::Parenthesized");
- if !_val.inputs.is_empty() {
- formatter.field("inputs", Lite(&_val.inputs));
- }
- formatter.field("output", Lite(&_val.output));
- formatter.finish()
- }
- }
- }
-}
-impl Debug for Lite<syn::PathSegment> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PathSegment");
- formatter.field("ident", Lite(&self.value.ident));
- match self.value.arguments {
- syn::PathArguments::None => {}
- _ => {
- formatter.field("arguments", Lite(&self.value.arguments));
- }
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PointerMutability> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::PointerMutability::Const(_val) => {
- formatter.write_str("PointerMutability::Const")?;
- Ok(())
- }
- syn::PointerMutability::Mut(_val) => {
- formatter.write_str("PointerMutability::Mut")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::PreciseCapture> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PreciseCapture");
- if !self.value.params.is_empty() {
- formatter.field("params", Lite(&self.value.params));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PredicateLifetime> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateLifetime");
- formatter.field("lifetime", Lite(&self.value.lifetime));
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::PredicateType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("PredicateType");
- if let Some(val) = &self.value.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- formatter.field("bounded_ty", Lite(&self.value.bounded_ty));
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::QSelf> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("QSelf");
- formatter.field("ty", Lite(&self.value.ty));
- formatter.field("position", Lite(&self.value.position));
- if self.value.as_token.is_some() {
- formatter.field("as_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::RangeLimits> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::RangeLimits::HalfOpen(_val) => {
- formatter.write_str("RangeLimits::HalfOpen")?;
- Ok(())
- }
- syn::RangeLimits::Closed(_val) => {
- formatter.write_str("RangeLimits::Closed")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Receiver> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Receiver");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.reference {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::And, Option<syn::Lifetime>));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(
- {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(Option<syn::Lifetime>);
- impl Debug for Print {
- fn fmt(
- &self,
- formatter: &mut fmt::Formatter,
- ) -> fmt::Result {
- match &self.0 {
- Some(_val) => {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- None => formatter.write_str("None"),
- }
- }
- }
- Print::ref_cast(&self.0.1)
- },
- formatter,
- )?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("reference", Print::ref_cast(val));
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- formatter.field("ty", Lite(&self.value.ty));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::ReturnType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::ReturnType::Default => formatter.write_str("ReturnType::Default"),
- syn::ReturnType::Type(_v0, _v1) => {
- let mut formatter = formatter.debug_tuple("ReturnType::Type");
- formatter.field(Lite(_v1));
- formatter.finish()
- }
- }
- }
-}
-impl Debug for Lite<syn::Signature> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Signature");
- if self.value.constness.is_some() {
- formatter.field("constness", &Present);
- }
- if self.value.asyncness.is_some() {
- formatter.field("asyncness", &Present);
- }
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- if let Some(val) = &self.value.abi {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Abi);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("abi", Print::ref_cast(val));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- if !self.value.inputs.is_empty() {
- formatter.field("inputs", Lite(&self.value.inputs));
- }
- if let Some(val) = &self.value.variadic {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Variadic);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("variadic", Print::ref_cast(val));
- }
- formatter.field("output", Lite(&self.value.output));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::StaticMutability> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::StaticMutability::Mut(_val) => {
- formatter.write_str("StaticMutability::Mut")?;
- Ok(())
- }
- syn::StaticMutability::None => formatter.write_str("StaticMutability::None"),
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::Stmt> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Stmt::Local(_val) => {
- let mut formatter = formatter.debug_struct("Stmt::Local");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("pat", Lite(&_val.pat));
- if let Some(val) = &_val.init {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::LocalInit);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("init", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::Stmt::Item(_val) => {
- formatter.write_str("Stmt::Item")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::Stmt::Expr(_v0, _v1) => {
- let mut formatter = formatter.debug_tuple("Stmt::Expr");
- formatter.field(Lite(_v0));
- formatter
- .field(
- &super::Option {
- present: _v1.is_some(),
- },
- );
- formatter.finish()
- }
- syn::Stmt::Macro(_val) => {
- let mut formatter = formatter.debug_struct("Stmt::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mac", Lite(&_val.mac));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- }
- }
-}
-impl Debug for Lite<syn::StmtMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("StmtMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mac", Lite(&self.value.mac));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TraitBound> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitBound");
- if self.value.paren_token.is_some() {
- formatter.field("paren_token", &Present);
- }
- match self.value.modifier {
- syn::TraitBoundModifier::None => {}
- _ => {
- formatter.field("modifier", Lite(&self.value.modifier));
- }
- }
- if let Some(val) = &self.value.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TraitBoundModifier> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::TraitBoundModifier::None => {
- formatter.write_str("TraitBoundModifier::None")
- }
- syn::TraitBoundModifier::Maybe(_val) => {
- formatter.write_str("TraitBoundModifier::Maybe")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::TraitItem> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::TraitItem::Const(_val) => {
- let mut formatter = formatter.debug_struct("TraitItem::Const");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- formatter.field("ty", Lite(&_val.ty));
- if let Some(val) = &_val.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Eq, syn::Expr));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::TraitItem::Fn(_val) => {
- let mut formatter = formatter.debug_struct("TraitItem::Fn");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("sig", Lite(&_val.sig));
- if let Some(val) = &_val.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Block);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::TraitItem::Type(_val) => {
- let mut formatter = formatter.debug_struct("TraitItem::Type");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("ident", Lite(&_val.ident));
- formatter.field("generics", Lite(&_val.generics));
- if _val.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !_val.bounds.is_empty() {
- formatter.field("bounds", Lite(&_val.bounds));
- }
- if let Some(val) = &_val.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Eq, syn::Type));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
- syn::TraitItem::Macro(_val) => {
- let mut formatter = formatter.debug_struct("TraitItem::Macro");
- if !_val.attrs.is_empty() {
- formatter.field("attrs", Lite(&_val.attrs));
- }
- formatter.field("mac", Lite(&_val.mac));
- if _val.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
- syn::TraitItem::Verbatim(_val) => {
- formatter.write_str("TraitItem::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::TraitItemConst> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitItemConst");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- formatter.field("ty", Lite(&self.value.ty));
- if let Some(val) = &self.value.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Eq, syn::Expr));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TraitItemFn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitItemFn");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("sig", Lite(&self.value.sig));
- if let Some(val) = &self.value.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Block);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TraitItemMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitItemMacro");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("mac", Lite(&self.value.mac));
- if self.value.semi_token.is_some() {
- formatter.field("semi_token", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TraitItemType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TraitItemType");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("generics", Lite(&self.value.generics));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- if let Some(val) = &self.value.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Eq, syn::Type));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Type> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Type::Array(_val) => {
- let mut formatter = formatter.debug_struct("Type::Array");
- formatter.field("elem", Lite(&_val.elem));
- formatter.field("len", Lite(&_val.len));
- formatter.finish()
- }
- syn::Type::BareFn(_val) => {
- let mut formatter = formatter.debug_struct("Type::BareFn");
- if let Some(val) = &_val.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- if _val.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- if let Some(val) = &_val.abi {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Abi);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("abi", Print::ref_cast(val));
- }
- if !_val.inputs.is_empty() {
- formatter.field("inputs", Lite(&_val.inputs));
- }
- if let Some(val) = &_val.variadic {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BareVariadic);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("variadic", Print::ref_cast(val));
- }
- formatter.field("output", Lite(&_val.output));
- formatter.finish()
- }
- syn::Type::Group(_val) => {
- let mut formatter = formatter.debug_struct("Type::Group");
- formatter.field("elem", Lite(&_val.elem));
- formatter.finish()
- }
- syn::Type::ImplTrait(_val) => {
- let mut formatter = formatter.debug_struct("Type::ImplTrait");
- if !_val.bounds.is_empty() {
- formatter.field("bounds", Lite(&_val.bounds));
- }
- formatter.finish()
- }
- syn::Type::Infer(_val) => {
- let mut formatter = formatter.debug_struct("Type::Infer");
- formatter.finish()
- }
- syn::Type::Macro(_val) => {
- let mut formatter = formatter.debug_struct("Type::Macro");
- formatter.field("mac", Lite(&_val.mac));
- formatter.finish()
- }
- syn::Type::Never(_val) => {
- let mut formatter = formatter.debug_struct("Type::Never");
- formatter.finish()
- }
- syn::Type::Paren(_val) => {
- let mut formatter = formatter.debug_struct("Type::Paren");
- formatter.field("elem", Lite(&_val.elem));
- formatter.finish()
- }
- syn::Type::Path(_val) => {
- let mut formatter = formatter.debug_struct("Type::Path");
- if let Some(val) = &_val.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&_val.path));
- formatter.finish()
- }
- syn::Type::Ptr(_val) => {
- let mut formatter = formatter.debug_struct("Type::Ptr");
- if _val.const_token.is_some() {
- formatter.field("const_token", &Present);
- }
- if _val.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("elem", Lite(&_val.elem));
- formatter.finish()
- }
- syn::Type::Reference(_val) => {
- let mut formatter = formatter.debug_struct("Type::Reference");
- if let Some(val) = &_val.lifetime {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetime", Print::ref_cast(val));
- }
- if _val.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("elem", Lite(&_val.elem));
- formatter.finish()
- }
- syn::Type::Slice(_val) => {
- let mut formatter = formatter.debug_struct("Type::Slice");
- formatter.field("elem", Lite(&_val.elem));
- formatter.finish()
- }
- syn::Type::TraitObject(_val) => {
- let mut formatter = formatter.debug_struct("Type::TraitObject");
- if _val.dyn_token.is_some() {
- formatter.field("dyn_token", &Present);
- }
- if !_val.bounds.is_empty() {
- formatter.field("bounds", Lite(&_val.bounds));
- }
- formatter.finish()
- }
- syn::Type::Tuple(_val) => {
- let mut formatter = formatter.debug_struct("Type::Tuple");
- if !_val.elems.is_empty() {
- formatter.field("elems", Lite(&_val.elems));
- }
- formatter.finish()
- }
- syn::Type::Verbatim(_val) => {
- formatter.write_str("Type::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::TypeArray> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeArray");
- formatter.field("elem", Lite(&self.value.elem));
- formatter.field("len", Lite(&self.value.len));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeBareFn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeBareFn");
- if let Some(val) = &self.value.lifetimes {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BoundLifetimes);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetimes", Print::ref_cast(val));
- }
- if self.value.unsafety.is_some() {
- formatter.field("unsafety", &Present);
- }
- if let Some(val) = &self.value.abi {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Abi);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("abi", Print::ref_cast(val));
- }
- if !self.value.inputs.is_empty() {
- formatter.field("inputs", Lite(&self.value.inputs));
- }
- if let Some(val) = &self.value.variadic {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::BareVariadic);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("variadic", Print::ref_cast(val));
- }
- formatter.field("output", Lite(&self.value.output));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeGroup> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeGroup");
- formatter.field("elem", Lite(&self.value.elem));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeImplTrait> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeImplTrait");
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeInfer> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeInfer");
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeMacro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeMacro");
- formatter.field("mac", Lite(&self.value.mac));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeNever> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeNever");
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeParam> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeParam");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("ident", Lite(&self.value.ident));
- if self.value.colon_token.is_some() {
- formatter.field("colon_token", &Present);
- }
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- if self.value.eq_token.is_some() {
- formatter.field("eq_token", &Present);
- }
- if let Some(val) = &self.value.default {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Type);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("default", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeParamBound> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::TypeParamBound::Trait(_val) => {
- formatter.write_str("TypeParamBound::Trait")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::TypeParamBound::Lifetime(_val) => {
- let mut formatter = formatter.debug_struct("TypeParamBound::Lifetime");
- formatter.field("ident", Lite(&_val.ident));
- formatter.finish()
- }
- syn::TypeParamBound::PreciseCapture(_val) => {
- formatter.write_str("TypeParamBound::PreciseCapture")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::TypeParamBound::Verbatim(_val) => {
- formatter.write_str("TypeParamBound::Verbatim")?;
- formatter.write_str("(`")?;
- Display::fmt(_val, formatter)?;
- formatter.write_str("`)")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::TypeParen> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeParen");
- formatter.field("elem", Lite(&self.value.elem));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypePath> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypePath");
- if let Some(val) = &self.value.qself {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::QSelf);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("qself", Print::ref_cast(val));
- }
- formatter.field("path", Lite(&self.value.path));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypePtr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypePtr");
- if self.value.const_token.is_some() {
- formatter.field("const_token", &Present);
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("elem", Lite(&self.value.elem));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeReference> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeReference");
- if let Some(val) = &self.value.lifetime {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print(syn::Lifetime);
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("lifetime", Print::ref_cast(val));
- }
- if self.value.mutability.is_some() {
- formatter.field("mutability", &Present);
- }
- formatter.field("elem", Lite(&self.value.elem));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeSlice> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeSlice");
- formatter.field("elem", Lite(&self.value.elem));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeTraitObject> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeTraitObject");
- if self.value.dyn_token.is_some() {
- formatter.field("dyn_token", &Present);
- }
- if !self.value.bounds.is_empty() {
- formatter.field("bounds", Lite(&self.value.bounds));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::TypeTuple> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("TypeTuple");
- if !self.value.elems.is_empty() {
- formatter.field("elems", Lite(&self.value.elems));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UnOp> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::UnOp::Deref(_val) => {
- formatter.write_str("UnOp::Deref")?;
- Ok(())
- }
- syn::UnOp::Not(_val) => {
- formatter.write_str("UnOp::Not")?;
- Ok(())
- }
- syn::UnOp::Neg(_val) => {
- formatter.write_str("UnOp::Neg")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::UseGlob> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGlob");
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UseGroup> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseGroup");
- if !self.value.items.is_empty() {
- formatter.field("items", Lite(&self.value.items));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UseName> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseName");
- formatter.field("ident", Lite(&self.value.ident));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UsePath> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UsePath");
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("tree", Lite(&self.value.tree));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UseRename> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("UseRename");
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("rename", Lite(&self.value.rename));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::UseTree> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::UseTree::Path(_val) => {
- formatter.write_str("UseTree::Path")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::UseTree::Name(_val) => {
- formatter.write_str("UseTree::Name")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::UseTree::Rename(_val) => {
- formatter.write_str("UseTree::Rename")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::UseTree::Glob(_val) => {
- formatter.write_str("UseTree::Glob")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::UseTree::Group(_val) => {
- formatter.write_str("UseTree::Group")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- }
-}
-impl Debug for Lite<syn::Variadic> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variadic");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- if let Some(val) = &self.value.pat {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((Box<syn::Pat>, syn::token::Colon));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.0), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("pat", Print::ref_cast(val));
- }
- if self.value.comma.is_some() {
- formatter.field("comma", &Present);
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Variant> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("Variant");
- if !self.value.attrs.is_empty() {
- formatter.field("attrs", Lite(&self.value.attrs));
- }
- formatter.field("ident", Lite(&self.value.ident));
- formatter.field("fields", Lite(&self.value.fields));
- if let Some(val) = &self.value.discriminant {
- #[derive(RefCast)]
- #[repr(transparent)]
- struct Print((syn::token::Eq, syn::Expr));
- impl Debug for Print {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some(")?;
- Debug::fmt(Lite(&self.0.1), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- }
- formatter.field("discriminant", Print::ref_cast(val));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::VisRestricted> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("VisRestricted");
- if self.value.in_token.is_some() {
- formatter.field("in_token", &Present);
- }
- formatter.field("path", Lite(&self.value.path));
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::Visibility> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::Visibility::Public(_val) => {
- formatter.write_str("Visibility::Public")?;
- Ok(())
- }
- syn::Visibility::Restricted(_val) => {
- let mut formatter = formatter.debug_struct("Visibility::Restricted");
- if _val.in_token.is_some() {
- formatter.field("in_token", &Present);
- }
- formatter.field("path", Lite(&_val.path));
- formatter.finish()
- }
- syn::Visibility::Inherited => formatter.write_str("Visibility::Inherited"),
- }
- }
-}
-impl Debug for Lite<syn::WhereClause> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut formatter = formatter.debug_struct("WhereClause");
- if !self.value.predicates.is_empty() {
- formatter.field("predicates", Lite(&self.value.predicates));
- }
- formatter.finish()
- }
-}
-impl Debug for Lite<syn::WherePredicate> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- match &self.value {
- syn::WherePredicate::Lifetime(_val) => {
- formatter.write_str("WherePredicate::Lifetime")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- syn::WherePredicate::Type(_val) => {
- formatter.write_str("WherePredicate::Type")?;
- formatter.write_str("(")?;
- Debug::fmt(Lite(_val), formatter)?;
- formatter.write_str(")")?;
- Ok(())
- }
- _ => unreachable!(),
- }
- }
-}
-impl Debug for Lite<syn::token::Abstract> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![abstract]")
- }
-}
-impl Debug for Lite<syn::token::And> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![&]")
- }
-}
-impl Debug for Lite<syn::token::AndAnd> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![&&]")
- }
-}
-impl Debug for Lite<syn::token::AndEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![&=]")
- }
-}
-impl Debug for Lite<syn::token::As> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![as]")
- }
-}
-impl Debug for Lite<syn::token::Async> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![async]")
- }
-}
-impl Debug for Lite<syn::token::At> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![@]")
- }
-}
-impl Debug for Lite<syn::token::Auto> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![auto]")
- }
-}
-impl Debug for Lite<syn::token::Await> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![await]")
- }
-}
-impl Debug for Lite<syn::token::Become> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![become]")
- }
-}
-impl Debug for Lite<syn::token::Box> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![box]")
- }
-}
-impl Debug for Lite<syn::token::Break> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![break]")
- }
-}
-impl Debug for Lite<syn::token::Caret> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![^]")
- }
-}
-impl Debug for Lite<syn::token::CaretEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![^=]")
- }
-}
-impl Debug for Lite<syn::token::Colon> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![:]")
- }
-}
-impl Debug for Lite<syn::token::Comma> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![,]")
- }
-}
-impl Debug for Lite<syn::token::Const> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![const]")
- }
-}
-impl Debug for Lite<syn::token::Continue> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![continue]")
- }
-}
-impl Debug for Lite<syn::token::Crate> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![crate]")
- }
-}
-impl Debug for Lite<syn::token::Default> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![default]")
- }
-}
-impl Debug for Lite<syn::token::Do> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![do]")
- }
-}
-impl Debug for Lite<syn::token::Dollar> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![$]")
- }
-}
-impl Debug for Lite<syn::token::Dot> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![.]")
- }
-}
-impl Debug for Lite<syn::token::DotDot> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![..]")
- }
-}
-impl Debug for Lite<syn::token::DotDotDot> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![...]")
- }
-}
-impl Debug for Lite<syn::token::DotDotEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![..=]")
- }
-}
-impl Debug for Lite<syn::token::Dyn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![dyn]")
- }
-}
-impl Debug for Lite<syn::token::Else> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![else]")
- }
-}
-impl Debug for Lite<syn::token::Enum> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![enum]")
- }
-}
-impl Debug for Lite<syn::token::Eq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![=]")
- }
-}
-impl Debug for Lite<syn::token::EqEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![==]")
- }
-}
-impl Debug for Lite<syn::token::Extern> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![extern]")
- }
-}
-impl Debug for Lite<syn::token::FatArrow> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![=>]")
- }
-}
-impl Debug for Lite<syn::token::Final> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![final]")
- }
-}
-impl Debug for Lite<syn::token::Fn> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![fn]")
- }
-}
-impl Debug for Lite<syn::token::For> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![for]")
- }
-}
-impl Debug for Lite<syn::token::Ge> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![>=]")
- }
-}
-impl Debug for Lite<syn::token::Gt> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![>]")
- }
-}
-impl Debug for Lite<syn::token::If> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![if]")
- }
-}
-impl Debug for Lite<syn::token::Impl> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![impl]")
- }
-}
-impl Debug for Lite<syn::token::In> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![in]")
- }
-}
-impl Debug for Lite<syn::token::LArrow> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![<-]")
- }
-}
-impl Debug for Lite<syn::token::Le> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![<=]")
- }
-}
-impl Debug for Lite<syn::token::Let> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![let]")
- }
-}
-impl Debug for Lite<syn::token::Loop> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![loop]")
- }
-}
-impl Debug for Lite<syn::token::Lt> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![<]")
- }
-}
-impl Debug for Lite<syn::token::Macro> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![macro]")
- }
-}
-impl Debug for Lite<syn::token::Match> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![match]")
- }
-}
-impl Debug for Lite<syn::token::Minus> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![-]")
- }
-}
-impl Debug for Lite<syn::token::MinusEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![-=]")
- }
-}
-impl Debug for Lite<syn::token::Mod> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![mod]")
- }
-}
-impl Debug for Lite<syn::token::Move> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![move]")
- }
-}
-impl Debug for Lite<syn::token::Mut> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![mut]")
- }
-}
-impl Debug for Lite<syn::token::Ne> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![!=]")
- }
-}
-impl Debug for Lite<syn::token::Not> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![!]")
- }
-}
-impl Debug for Lite<syn::token::Or> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![|]")
- }
-}
-impl Debug for Lite<syn::token::OrEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![|=]")
- }
-}
-impl Debug for Lite<syn::token::OrOr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![||]")
- }
-}
-impl Debug for Lite<syn::token::Override> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![override]")
- }
-}
-impl Debug for Lite<syn::token::PathSep> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![::]")
- }
-}
-impl Debug for Lite<syn::token::Percent> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![%]")
- }
-}
-impl Debug for Lite<syn::token::PercentEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![%=]")
- }
-}
-impl Debug for Lite<syn::token::Plus> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![+]")
- }
-}
-impl Debug for Lite<syn::token::PlusEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![+=]")
- }
-}
-impl Debug for Lite<syn::token::Pound> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![#]")
- }
-}
-impl Debug for Lite<syn::token::Priv> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![priv]")
- }
-}
-impl Debug for Lite<syn::token::Pub> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![pub]")
- }
-}
-impl Debug for Lite<syn::token::Question> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![?]")
- }
-}
-impl Debug for Lite<syn::token::RArrow> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![->]")
- }
-}
-impl Debug for Lite<syn::token::Raw> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![raw]")
- }
-}
-impl Debug for Lite<syn::token::Ref> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![ref]")
- }
-}
-impl Debug for Lite<syn::token::Return> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![return]")
- }
-}
-impl Debug for Lite<syn::token::SelfType> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![Self]")
- }
-}
-impl Debug for Lite<syn::token::SelfValue> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![self]")
- }
-}
-impl Debug for Lite<syn::token::Semi> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![;]")
- }
-}
-impl Debug for Lite<syn::token::Shl> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![<<]")
- }
-}
-impl Debug for Lite<syn::token::ShlEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![<<=]")
- }
-}
-impl Debug for Lite<syn::token::Shr> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![>>]")
- }
-}
-impl Debug for Lite<syn::token::ShrEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![>>=]")
- }
-}
-impl Debug for Lite<syn::token::Slash> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![/]")
- }
-}
-impl Debug for Lite<syn::token::SlashEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![/=]")
- }
-}
-impl Debug for Lite<syn::token::Star> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![*]")
- }
-}
-impl Debug for Lite<syn::token::StarEq> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![*=]")
- }
-}
-impl Debug for Lite<syn::token::Static> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![static]")
- }
-}
-impl Debug for Lite<syn::token::Struct> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![struct]")
- }
-}
-impl Debug for Lite<syn::token::Super> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![super]")
- }
-}
-impl Debug for Lite<syn::token::Tilde> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![~]")
- }
-}
-impl Debug for Lite<syn::token::Trait> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![trait]")
- }
-}
-impl Debug for Lite<syn::token::Try> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![try]")
- }
-}
-impl Debug for Lite<syn::token::Type> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![type]")
- }
-}
-impl Debug for Lite<syn::token::Typeof> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![typeof]")
- }
-}
-impl Debug for Lite<syn::token::Underscore> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![_]")
- }
-}
-impl Debug for Lite<syn::token::Union> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![union]")
- }
-}
-impl Debug for Lite<syn::token::Unsafe> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![unsafe]")
- }
-}
-impl Debug for Lite<syn::token::Unsized> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![unsized]")
- }
-}
-impl Debug for Lite<syn::token::Use> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![use]")
- }
-}
-impl Debug for Lite<syn::token::Virtual> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![virtual]")
- }
-}
-impl Debug for Lite<syn::token::Where> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![where]")
- }
-}
-impl Debug for Lite<syn::token::While> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![while]")
- }
-}
-impl Debug for Lite<syn::token::Yield> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Token![yield]")
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/debug/mod.rs b/deps/crates/vendor/syn-v2/tests/debug/mod.rs
deleted file mode 100644
index 7ab2b795d5d..00000000000
--- a/deps/crates/vendor/syn-v2/tests/debug/mod.rs
+++ /dev/null
@@ -1,147 +0,0 @@
-#![allow(
- clippy::no_effect_underscore_binding,
- clippy::too_many_lines,
- clippy::used_underscore_binding
-)]
-
-#[rustfmt::skip]
-mod gen;
-
-use proc_macro2::{Ident, Literal, TokenStream};
-use ref_cast::RefCast;
-use std::fmt::{self, Debug};
-use std::ops::Deref;
-use syn::punctuated::Punctuated;
-
-#[derive(RefCast)]
-#[repr(transparent)]
-pub struct Lite<T: ?Sized> {
- value: T,
-}
-
-#[allow(non_snake_case)]
-pub fn Lite<T: ?Sized>(value: &T) -> &Lite<T> {
- Lite::ref_cast(value)
-}
-
-impl<T: ?Sized> Deref for Lite<T> {
- type Target = T;
-
- fn deref(&self) -> &Self::Target {
- &self.value
- }
-}
-
-impl Debug for Lite<bool> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-
-impl Debug for Lite<u32> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-
-impl Debug for Lite<usize> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-
-impl Debug for Lite<String> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value)
- }
-}
-
-impl Debug for Lite<Ident> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{:?}", self.value.to_string())
- }
-}
-
-impl Debug for Lite<Literal> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "{}", self.value)
- }
-}
-
-impl Debug for Lite<TokenStream> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let string = self.value.to_string();
- if string.len() <= 80 {
- write!(formatter, "TokenStream(`{}`)", self.value)
- } else {
- formatter
- .debug_tuple("TokenStream")
- .field(&format_args!("`{}`", string))
- .finish()
- }
- }
-}
-
-impl<T> Debug for Lite<&T>
-where
- Lite<T>: Debug,
-{
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- Debug::fmt(Lite(self.value), formatter)
- }
-}
-
-impl<T> Debug for Lite<Box<T>>
-where
- Lite<T>: Debug,
-{
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- Debug::fmt(Lite(&*self.value), formatter)
- }
-}
-
-impl<T> Debug for Lite<Vec<T>>
-where
- Lite<T>: Debug,
-{
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter
- .debug_list()
- .entries(self.value.iter().map(Lite))
- .finish()
- }
-}
-
-impl<T, P> Debug for Lite<Punctuated<T, P>>
-where
- Lite<T>: Debug,
- Lite<P>: Debug,
-{
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- let mut list = formatter.debug_list();
- for pair in self.pairs() {
- let (node, punct) = pair.into_tuple();
- list.entry(Lite(node));
- list.entries(punct.map(Lite));
- }
- list.finish()
- }
-}
-
-struct Present;
-
-impl Debug for Present {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str("Some")
- }
-}
-
-struct Option {
- present: bool,
-}
-
-impl Debug for Option {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- formatter.write_str(if self.present { "Some" } else { "None" })
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/macros/mod.rs b/deps/crates/vendor/syn-v2/tests/macros/mod.rs
deleted file mode 100644
index 9c9a957f71c..00000000000
--- a/deps/crates/vendor/syn-v2/tests/macros/mod.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-macro_rules! errorf {
- ($($tt:tt)*) => {{
- use ::std::io::Write;
- let stderr = ::std::io::stderr();
- write!(stderr.lock(), $($tt)*).unwrap();
- }};
-}
diff --git a/deps/crates/vendor/syn-v2/tests/regression.rs b/deps/crates/vendor/syn-v2/tests/regression.rs
deleted file mode 100644
index 5c7fcddc8da..00000000000
--- a/deps/crates/vendor/syn-v2/tests/regression.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-#![allow(clippy::let_underscore_untyped, clippy::uninlined_format_args)]
-
-mod regression {
- automod::dir!("tests/regression");
-}
diff --git a/deps/crates/vendor/syn-v2/tests/regression/issue1108.rs b/deps/crates/vendor/syn-v2/tests/regression/issue1108.rs
deleted file mode 100644
index 11a82adaadb..00000000000
--- a/deps/crates/vendor/syn-v2/tests/regression/issue1108.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-#[test]
-fn issue1108() {
- let data = "impl<x<>>::x for";
- let _ = syn::parse_file(data);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/regression/issue1235.rs b/deps/crates/vendor/syn-v2/tests/regression/issue1235.rs
deleted file mode 100644
index 8836030664b..00000000000
--- a/deps/crates/vendor/syn-v2/tests/regression/issue1235.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-use proc_macro2::{Delimiter, Group};
-use quote::quote;
-
-#[test]
-fn main() {
- // Okay. Rustc allows top-level `static` with no value syntactically, but
- // not semantically. Syn parses as Item::Verbatim.
- let tokens = quote! {
- pub static FOO: usize;
- pub static BAR: usize;
- };
- let file = syn::parse2::<syn::File>(tokens).unwrap();
- println!("{:#?}", file);
-
- // Okay.
- let inner = Group::new(
- Delimiter::None,
- quote!(static FOO: usize = 0; pub static BAR: usize = 0),
- );
- let tokens = quote!(pub #inner;);
- let file = syn::parse2::<syn::File>(tokens).unwrap();
- println!("{:#?}", file);
-
- // Formerly parser crash.
- let inner = Group::new(
- Delimiter::None,
- quote!(static FOO: usize; pub static BAR: usize),
- );
- let tokens = quote!(pub #inner;);
- let file = syn::parse2::<syn::File>(tokens).unwrap();
- println!("{:#?}", file);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/repo/mod.rs b/deps/crates/vendor/syn-v2/tests/repo/mod.rs
deleted file mode 100644
index a9d4b3e3701..00000000000
--- a/deps/crates/vendor/syn-v2/tests/repo/mod.rs
+++ /dev/null
@@ -1,1017 +0,0 @@
-#![allow(clippy::manual_assert)]
-
-mod progress;
-
-use self::progress::Progress;
-use anyhow::Result;
-use flate2::read::GzDecoder;
-use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
-use rayon::ThreadPoolBuilder;
-use std::collections::BTreeSet;
-use std::env;
-use std::ffi::OsStr;
-use std::fs;
-use std::path::{Path, PathBuf};
-use tar::Archive;
-use walkdir::{DirEntry, WalkDir};
-
-// nightly-2026-07-13
-const REVISION: &str = "77cf889bc178ddb44d6a1c78e5a820b5abb31d8d";
-
-#[rustfmt::skip]
-static EXCLUDE_FILES: &[&str] = &[
- // TODO: const traits: `pub const trait Trait {}`
- // https://github.com/dtolnay/syn/issues/1887
- "library/core/src/alloc/mod.rs",
- "library/core/src/borrow.rs",
- "library/core/src/clone.rs",
- "library/core/src/cmp.rs",
- "library/core/src/cmp/bytewise.rs",
- "library/core/src/convert/mod.rs",
- "library/core/src/default.rs",
- "library/core/src/intrinsics/fallback.rs",
- "library/core/src/iter/range.rs",
- "library/core/src/iter/traits/accum.rs",
- "library/core/src/iter/traits/collect.rs",
- "library/core/src/iter/traits/double_ended.rs",
- "library/core/src/iter/traits/iterator.rs",
- "library/core/src/iter/traits/marker.rs",
- "library/core/src/ops/arith.rs",
- "library/core/src/ops/bit.rs",
- "library/core/src/ops/deref.rs",
- "library/core/src/ops/drop.rs",
- "library/core/src/ops/function.rs",
- "library/core/src/ops/index.rs",
- "library/core/src/ops/range.rs",
- "library/core/src/ops/try_trait.rs",
- "library/core/src/pat.rs",
- "library/core/src/slice/mod.rs",
- "library/stdarch/crates/core_arch/src/loongarch64/simd.rs",
- "src/tools/clippy/tests/ui/assign_ops.rs",
- "src/tools/clippy/tests/ui/missing_const_for_fn/const_trait.rs",
- "src/tools/clippy/tests/ui/trait_duplication_in_bounds.rs",
- "src/tools/rust-analyzer/crates/test-utils/src/minicore.rs",
- "src/tools/rustfmt/tests/target/const_trait.rs",
- "tests/rustdoc-html/constant/const-effect-param.rs",
- "tests/rustdoc-html/constant/const-trait-and-impl-methods.rs",
- "tests/rustdoc-html/constant/rfc-2632-const-trait-impl.rs",
- "tests/rustdoc-html/inline_cross/auxiliary/const-effect-param.rs",
- "tests/rustdoc-json/attrs/stability/const_traits.rs",
- "tests/ui/const-generics/const_trait_fn-issue-88433.rs",
- "tests/ui/const-generics/issues/issue-88119.rs",
- "tests/ui/consts/const-closure-in-trait-impl.rs",
- "tests/ui/consts/trait_alias_method_call.rs",
- "tests/ui/generic-const-items/const-trait-impl.rs",
- "tests/ui/parser/impls-nested-within-fns-semantic-1.rs",
- "tests/ui/traits/const-traits/assoc-type-const-bound-usage-0.rs",
- "tests/ui/traits/const-traits/assoc-type-const-bound-usage-1.rs",
- "tests/ui/traits/const-traits/auxiliary/associated-const-stability.rs",
- "tests/ui/traits/const-traits/auxiliary/cross-crate.rs",
- "tests/ui/traits/const-traits/auxiliary/minicore.rs",
- "tests/ui/traits/const-traits/auxiliary/staged-api.rs",
- "tests/ui/traits/const-traits/call-generic-in-impl.rs",
- "tests/ui/traits/const-traits/conditionally-const-assoc-fn-in-trait-impl.rs",
- "tests/ui/traits/const-traits/conditionally-const-inherent-assoc-const-fn.rs",
- "tests/ui/traits/const-traits/conditionally-const-trait-bound-assoc-tys.rs",
- "tests/ui/traits/const-traits/const-assoc-bound-in-trait-wc.rs",
- "tests/ui/traits/const-traits/const-bound-in-host.rs",
- "tests/ui/traits/const-traits/const-closure-inherited-const-condition.rs",
- "tests/ui/traits/const-traits/const-closure-trait-method.rs",
- "tests/ui/traits/const-traits/const-cond-for-rpitit.rs",
- "tests/ui/traits/const-traits/const-impl-inherent-bounds.rs",
- "tests/ui/traits/const-traits/const-impl-recovery.rs",
- "tests/ui/traits/const-traits/const-impl-trait-not-impl-const-trait.rs",
- "tests/ui/traits/const-traits/const-impl-trait.rs",
- "tests/ui/traits/const-traits/const-in-closure.rs",
- "tests/ui/traits/const-traits/const-via-item-bound.rs",
- "tests/ui/traits/const-traits/default-method-body-is-const-with-staged-api.rs",
- "tests/ui/traits/const-traits/do-not-const-check-override.rs",
- "tests/ui/traits/const-traits/do-not-const-check.rs",
- "tests/ui/traits/const-traits/dont-ice-on-const-pred-for-bounds.rs",
- "tests/ui/traits/const-traits/dont-observe-host.rs",
- "tests/ui/traits/const-traits/dont-prefer-param-env-for-infer-self-ty.rs",
- "tests/ui/traits/const-traits/effect-param-infer.rs",
- "tests/ui/traits/const-traits/function-pointer-does-not-require-const.rs",
- "tests/ui/traits/const-traits/hir-const-check.rs",
- "tests/ui/traits/const-traits/impl-with-default-fn-pass.rs",
- "tests/ui/traits/const-traits/imply-always-const.rs",
- "tests/ui/traits/const-traits/inherent-impl-const-bounds.rs",
- "tests/ui/traits/const-traits/issue-100222.rs",
- "tests/ui/traits/const-traits/issue-92230-wf-super-trait-env.rs",
- "tests/ui/traits/const-traits/item-bound-entailment.rs",
- "tests/ui/traits/const-traits/non-const-op-in-closure-in-const.rs",
- "tests/ui/traits/const-traits/parse-const-unsafe-trait.rs",
- "tests/ui/traits/const-traits/predicate-entailment-passes.rs",
- "tests/ui/traits/const-traits/project.rs",
- "tests/ui/traits/const-traits/specialization/const-default-const-specialized.rs",
- "tests/ui/traits/const-traits/specialization/default-keyword.rs",
- "tests/ui/traits/const-traits/specialization/issue-95187-same-trait-bound-different-constness.rs",
- "tests/ui/traits/const-traits/specialization/non-const-default-const-specialized.rs",
- "tests/ui/traits/const-traits/specialization/pass.rs",
- "tests/ui/traits/const-traits/specialization/specialize-on-conditionally-const.rs",
- "tests/ui/traits/const-traits/super-traits.rs",
- "tests/ui/traits/const-traits/trait-where-clause-run.rs",
- "tests/ui/traits/const-traits/trait-where-clause-self-referential.rs",
- "tests/ui/traits/const-traits/unconstrained-var-specialization.rs",
- "tests/ui/traits/next-solver/canonical/effect-var.rs",
-
- // TODO: const impls: `const impl Trait for T {}`
- // https://github.com/dtolnay/syn/issues/1980
- "compiler/rustc_data_structures/src/unord.rs",
- "compiler/rustc_middle/src/middle/codegen_fn_attrs.rs",
- "library/alloc/src/alloc.rs",
- "library/alloc/src/collections/btree/map.rs",
- "library/alloc/src/collections/mod.rs",
- "library/alloc/src/raw_vec/mod.rs",
- "library/alloc/src/string.rs",
- "library/alloc/src/vec/mod.rs",
- "library/core/src/any.rs",
- "library/core/src/array/drain.rs",
- "library/core/src/array/equality.rs",
- "library/core/src/array/mod.rs",
- "library/core/src/bstr/mod.rs",
- "library/core/src/cell.rs",
- "library/core/src/cell/lazy.rs",
- "library/core/src/cell/once.rs",
- "library/core/src/char/convert.rs",
- "library/core/src/ffi/c_str.rs",
- "library/core/src/ffi/va_list.rs",
- "library/core/src/hash/mod.rs",
- "library/core/src/hash/sip.rs",
- "library/core/src/iter/adapters/cycle.rs",
- "library/core/src/iter/adapters/flatten.rs",
- "library/core/src/iter/sources/empty.rs",
- "library/core/src/marker.rs",
- "library/core/src/mem/alignment.rs",
- "library/core/src/mem/drop_guard.rs",
- "library/core/src/mem/manually_drop.rs",
- "library/core/src/net/ip_addr.rs",
- "library/core/src/net/socket_addr.rs",
- "library/core/src/num/error.rs",
- "library/core/src/num/niche_types.rs",
- "library/core/src/ops/control_flow.rs",
- "library/core/src/option.rs",
- "library/core/src/panic/unwind_safe.rs",
- "library/core/src/pin.rs",
- "library/core/src/pin/unsafe_pinned.rs",
- "library/core/src/ptr/non_null.rs",
- "library/core/src/ptr/unique.rs",
- "library/core/src/range.rs",
- "library/core/src/result.rs",
- "library/core/src/slice/cmp.rs",
- "library/core/src/slice/index.rs",
- "library/core/src/str/mod.rs",
- "library/core/src/str/traits.rs",
- "library/core/src/sync/sync_view.rs",
- "library/core/src/task/poll.rs",
- "library/core/src/task/wake.rs",
- "library/core/src/time.rs",
- "library/coretests/tests/array.rs",
- "library/coretests/tests/cmp.rs",
- "library/coretests/tests/hint.rs",
- "library/coretests/tests/manually_drop.rs",
- "library/std/src/collections/hash/map.rs",
- "library/std/src/collections/hash/set.rs",
- "library/std/src/ffi/os_str.rs",
- "library/std/src/hash/random.rs",
- "library/std/src/path.rs",
- "library/std/src/sync/lazy_lock.rs",
- "library/std/src/sync/once_lock.rs",
- "library/stdarch/crates/core_arch/src/simd.rs",
- "src/tools/clippy/tests/ui/derivable_impls.rs",
- "src/tools/clippy/tests/ui/derivable_impls_derive_const.rs",
- "src/tools/clippy/tests/ui/equatable_if_let_const_cmp.rs",
- "src/tools/rustfmt/tests/source/impls.rs",
- "src/tools/rustfmt/tests/target/impls.rs",
- "tests/ui/consts/const-try.rs",
- "tests/ui/traits/const-traits/call-const-trait-method-pass.rs",
- "tests/ui/traits/const-traits/call-generic-method-chain.rs",
- "tests/ui/traits/const-traits/call-generic-method-dup-bound.rs",
- "tests/ui/traits/const-traits/call-generic-method-pass.rs",
- "tests/ui/traits/const-traits/const-drop.rs",
- "tests/ui/traits/const-traits/const-impl-inherent.rs",
- "tests/ui/traits/const-traits/const-unsafe-impl.rs",
- "tests/ui/traits/const-traits/const_derives/derive-const-use.rs",
- "tests/ui/traits/const-traits/drop-manually-drop.rs",
- "tests/ui/traits/const-traits/enforce-deref-on-adjust.rs",
- "tests/ui/traits/const-traits/generic-bound.rs",
- "tests/ui/traits/const-traits/inherent-impl.rs",
- "tests/ui/traits/const-traits/minicore-works.rs",
- "tests/ui/traits/const-traits/rustc-impl-const-stability.rs",
- "tests/ui/traits/const-traits/trait-default-body-stability.rs",
-
- // TODO: unsafe binders: `unsafe<'a> &'a T`
- // https://github.com/dtolnay/syn/issues/1791
- "src/tools/rustfmt/tests/source/unsafe-binders.rs",
- "src/tools/rustfmt/tests/target/unsafe-binders.rs",
- "tests/debuginfo/unsafe-binders.rs",
- "tests/mir-opt/gvn_on_unsafe_binder.rs",
- "tests/rustdoc-html/auxiliary/unsafe-binder-dep.rs",
- "tests/rustdoc-html/unsafe-binder.rs",
- "tests/ui/unsafe-binders/binder-sized-crit.rs",
- "tests/ui/unsafe-binders/cat-projection.rs",
- "tests/ui/unsafe-binders/expr.rs",
- "tests/ui/unsafe-binders/simple.rs",
- "tests/ui/unsafe-binders/unsafe-binders-debuginfo.rs",
-
- // TODO: unsafe fields: `struct S { unsafe field: T }`
- // https://github.com/dtolnay/syn/issues/1792
- "src/tools/clippy/tests/ui/derive.rs",
- "src/tools/clippy/tests/ui/doc_unsafe.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/record_field_list.rs",
- "src/tools/rustfmt/tests/source/unsafe-field.rs",
- "src/tools/rustfmt/tests/target/unsafe-field.rs",
- "tests/ui/unsafe-fields/auxiliary/unsafe-fields-crate-dep.rs",
-
- // TODO: guard patterns: `match expr { (A if f()) | (B if g()) => {} }`
- // https://github.com/dtolnay/syn/issues/1793
- "src/tools/rustfmt/tests/target/guard_patterns.rs",
- "tests/ui/lint/unused/unused_parens/parens-around-guard-patterns-not-unused.rs",
- "tests/ui/pattern/rfc-3637-guard-patterns/liveness-ice-issue-146445.rs",
- "tests/ui/pattern/rfc-3637-guard-patterns/only-gather-locals-once.rs",
- "tests/ui/reachable/guard_read_for_never.rs",
-
- // TODO: struct field default: `struct S { field: i32 = 1 }`
- // https://github.com/dtolnay/syn/issues/1774
- "compiler/rustc_ast_lowering/src/delegation/generics.rs",
- "compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs",
- "compiler/rustc_errors/src/markdown/parse.rs",
- "compiler/rustc_hir/src/attrs/diagnostic.rs",
- "compiler/rustc_hir_analysis/src/hir_wf_check.rs",
- "compiler/rustc_middle/src/hir/map.rs",
- "compiler/rustc_middle/src/ty/mod.rs",
- "compiler/rustc_parse/src/parser/mod.rs",
- "compiler/rustc_parse/src/parser/stmt.rs",
- "compiler/rustc_privacy/src/lib.rs",
- "compiler/rustc_resolve/src/imports.rs",
- "compiler/rustc_resolve/src/lib.rs",
- "compiler/rustc_session/src/config.rs",
- "compiler/rustc_trait_selection/src/error_reporting/traits/suggestions.rs",
- "src/tools/clippy/tests/ui/exhaustive_items.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/record_field_default_values.rs",
- "src/tools/rustfmt/tests/source/default-field-values.rs",
- "src/tools/rustfmt/tests/target/default-field-values.rs",
- "tests/ui/structs/default-field-values/auxiliary/struct_field_default.rs",
- "tests/ui/structs/default-field-values/const-trait-default-field-value.rs",
- "tests/ui/structs/default-field-values/field-references-param.rs",
- "tests/ui/structs/default-field-values/support.rs",
- "tests/ui/structs/default-field-values/use-normalized-ty-for-default-struct-value.rs",
-
- // TODO: final associated functions: `final fn`
- // https://github.com/dtolnay/syn/issues/1981
- "library/core/src/io/size_hint.rs",
- "src/tools/rustfmt/tests/target/final-kw.rs",
- "tests/rustdoc-html/final-trait-method.rs",
- "tests/ui/traits/final/dyn-compat.rs",
- "tests/ui/traits/final/works.rs",
-
- // TODO: impl restrictions: `pub impl(self) trait Trait`
- // https://github.com/dtolnay/syn/issues/1982
- "library/core/src/convert/num.rs",
- "library/core/src/num/nonzero.rs",
- "library/core/src/num/traits.rs",
- "library/core/src/sync/atomic.rs",
- "library/std/src/io/stdio.rs",
- "library/std/src/os/darwin/fs.rs",
- "library/std/src/os/freebsd/net.rs",
- "library/std/src/os/illumos/net.rs",
- "library/std/src/os/linux/process.rs",
- "library/std/src/os/motor/ffi.rs",
- "library/std/src/os/motor/process.rs",
- "library/std/src/os/net/linux_ext/addr.rs",
- "library/std/src/os/net/linux_ext/socket.rs",
- "library/std/src/os/net/linux_ext/tcp.rs",
- "library/std/src/os/netbsd/net.rs",
- "library/std/src/os/solaris/net.rs",
- "library/std/src/os/unix/ffi/os_str.rs",
- "library/std/src/os/unix/fs.rs",
- "library/std/src/os/unix/io/mod.rs",
- "library/std/src/os/unix/process.rs",
- "library/std/src/os/windows/ffi.rs",
- "library/std/src/os/windows/fs.rs",
- "library/std/src/os/windows/process.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/impl_restrictions.rs",
- "src/tools/rustfmt/tests/source/impl-restriction.rs",
- "src/tools/rustfmt/tests/target/impl-restriction.rs",
- "tests/pretty/hir-impl-restriction.rs",
- "tests/rustdoc-html/impl/impl-restriction-document-private.rs",
- "tests/rustdoc-html/impl/impl-restriction.rs",
- "tests/ui/impl-restriction/auxiliary/external-impl-restriction.rs",
-
- // TODO: return type notation: `where T: Trait<method(): Send>` and `where T::method(..): Send`
- // https://github.com/dtolnay/syn/issues/1434
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/return_type_syntax_in_path.rs",
- "src/tools/rustfmt/tests/target/return-type-notation.rs",
- "tests/rustdoc-html/jump-to-def/assoc-items-extra.rs",
- "tests/rustdoc-html/return-type-notation.rs",
- "tests/rustdoc-json/return-type-notation.rs",
- "tests/ui/associated-type-bounds/all-generics-lookup.rs",
- "tests/ui/associated-type-bounds/implied-from-self-where-clause.rs",
- "tests/ui/associated-type-bounds/return-type-notation/basic.rs",
- "tests/ui/associated-type-bounds/return-type-notation/higher-ranked-bound-works.rs",
- "tests/ui/associated-type-bounds/return-type-notation/namespace-conflict.rs",
- "tests/ui/associated-type-bounds/return-type-notation/path-constrained-in-method.rs",
- "tests/ui/associated-type-bounds/return-type-notation/path-self-qself.rs",
- "tests/ui/associated-type-bounds/return-type-notation/path-works.rs",
- "tests/ui/associated-type-bounds/return-type-notation/trait-alias.rs",
- "tests/ui/associated-type-bounds/return-type-notation/unpretty-parenthesized.rs",
- "tests/ui/async-await/return-type-notation/issue-110963-late.rs",
- "tests/ui/async-await/return-type-notation/normalizing-self-auto-trait-issue-109924.rs",
- "tests/ui/async-await/return-type-notation/rtn-implied-in-supertrait.rs",
- "tests/ui/async-await/return-type-notation/super-method-bound.rs",
- "tests/ui/async-await/return-type-notation/supertrait-bound.rs",
- "tests/ui/borrowck/alias-liveness/rtn-static.rs",
- "tests/ui/feature-gates/feature-gate-return_type_notation.rs",
-
- // TODO: lazy type alias syntax with where-clause in trailing position
- // https://github.com/dtolnay/syn/issues/1525
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/type_item_where_clause.rs",
- "src/tools/rustfmt/tests/source/type-alias-where-clauses-with-comments.rs",
- "src/tools/rustfmt/tests/source/type-alias-where-clauses.rs",
- "src/tools/rustfmt/tests/target/type-alias-where-clauses-with-comments.rs",
- "src/tools/rustfmt/tests/target/type-alias-where-clauses.rs",
- "tests/rustdoc-html/typedef-inner-variants-lazy_type_alias.rs",
- "tests/ui/traits/next-solver/normalize/normalize-self-type-constrains-trait-args.rs",
-
- // TODO: gen blocks and functions
- // https://github.com/dtolnay/syn/issues/1526
- "compiler/rustc_codegen_cranelift/example/gen_block_iterate.rs",
- "compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs",
- "compiler/rustc_metadata/src/rmeta/decoder.rs",
- "compiler/rustc_middle/src/ty/closure.rs",
- "compiler/rustc_middle/src/ty/context.rs",
- "src/tools/clippy/tests/ui/infinite_loops.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/gen_blocks.rs",
- "tests/ui/async-await/async-drop/assign-incompatible-types.rs",
- "tests/ui/coroutine/async-gen-deduce-yield.rs",
- "tests/ui/coroutine/async-gen-yield-ty-is-unit.rs",
- "tests/ui/coroutine/async_gen_fn_iter.rs",
- "tests/ui/coroutine/gen_block_is_fused_iter.rs",
- "tests/ui/coroutine/gen_block_is_iter.rs",
- "tests/ui/coroutine/gen_block_iterate.rs",
- "tests/ui/coroutine/gen_fn_iter.rs",
- "tests/ui/coroutine/gen_fn_lifetime_capture.rs",
- "tests/ui/coroutine/other-attribute-on-gen.rs",
- "tests/ui/coroutine/return-types-diverge.rs",
- "tests/ui/higher-ranked/builtin-closure-like-bounds.rs",
- "tests/ui/sanitizer/cfi/coroutine.rs",
-
- // TODO: postfix yield
- // https://github.com/dtolnay/syn/issues/1890
- "tests/pretty/postfix-yield.rs",
- "tests/ui/coroutine/postfix-yield.rs",
-
- // TODO: `!` as a pattern
- // https://github.com/dtolnay/syn/issues/1546
- "tests/mir-opt/building/match/never_patterns.rs",
- "tests/pretty/never-pattern.rs",
- "tests/ui/reachable/never-pattern-closure-param-array.rs",
- "tests/ui/rfcs/rfc-0000-never_patterns/always-read-in-closure-capture.rs",
- "tests/ui/rfcs/rfc-0000-never_patterns/diverges.rs",
- "tests/ui/rfcs/rfc-0000-never_patterns/use-bindings.rs",
-
- // TODO: async trait bounds: `impl async Fn()`
- // https://github.com/dtolnay/syn/issues/1628
- "src/tools/miri/tests/pass/async-closure-captures.rs",
- "src/tools/miri/tests/pass/async-closure-drop.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/async_trait_bound.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/for_binder_bound.rs",
- "src/tools/rustfmt/tests/target/asyncness.rs",
- "tests/coverage/async_closure.rs",
- "tests/ui/async-await/async-closures/async-fn-mut-for-async-fn.rs",
- "tests/ui/async-await/async-closures/async-fn-once-for-async-fn.rs",
- "tests/ui/async-await/async-closures/auxiliary/foreign.rs",
- "tests/ui/async-await/async-closures/body-check-on-non-fnmut.rs",
- "tests/ui/async-await/async-closures/box-deref-in-debuginfo.rs",
- "tests/ui/async-await/async-closures/brand.rs",
- "tests/ui/async-await/async-closures/captures.rs",
- "tests/ui/async-await/async-closures/clone-closure.rs",
- "tests/ui/async-await/async-closures/constrained-but-no-upvars-yet.rs",
- "tests/ui/async-await/async-closures/debuginfo-by-move-body.rs",
- "tests/ui/async-await/async-closures/drop.rs",
- "tests/ui/async-await/async-closures/force-move-due-to-inferred-kind.rs",
- "tests/ui/async-await/async-closures/foreign.rs",
- "tests/ui/async-await/async-closures/inline-body.rs",
- "tests/ui/async-await/async-closures/mangle.rs",
- "tests/ui/async-await/async-closures/moro-example.rs",
- "tests/ui/async-await/async-closures/move-is-async-fn.rs",
- "tests/ui/async-await/async-closures/mut-ref-reborrow.rs",
- "tests/ui/async-await/async-closures/no-borrow-from-env.rs",
- "tests/ui/async-await/async-closures/non-copy-arg-does-not-force-inner-move.rs",
- "tests/ui/async-await/async-closures/overlapping-projs.rs",
- "tests/ui/async-await/async-closures/precise-captures.rs",
- "tests/ui/async-await/async-closures/refd.rs",
- "tests/ui/async-await/async-closures/signature-deduction.rs",
- "tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs",
- "tests/ui/async-await/async-fn/higher-ranked-async-fn.rs",
- "tests/ui/async-await/async-fn/impl-trait.rs",
- "tests/ui/async-await/async-fn/project.rs",
- "tests/ui/async-await/async-fn/sugar.rs",
-
- // TODO: mutable by-reference bindings (mut ref)
- // https://github.com/dtolnay/syn/issues/1629
- "src/tools/rustfmt/tests/source/mut_ref.rs",
- "src/tools/rustfmt/tests/target/mut_ref.rs",
- "tests/ui/mut/mut-ref.rs",
-
- // TODO: postfix match
- // https://github.com/dtolnay/syn/issues/1630
- "src/tools/clippy/tests/ui/unnecessary_semicolon.rs",
- "src/tools/rustfmt/tests/source/postfix-match/pf-match.rs",
- "src/tools/rustfmt/tests/target/postfix-match/pf-match.rs",
- "tests/pretty/postfix-match/simple-matches.rs",
- "tests/ui/match/postfix-match/no-unused-parens.rs",
- "tests/ui/match/postfix-match/pf-match-chain.rs",
- "tests/ui/match/postfix-match/postfix-match.rs",
-
- // TODO: delegation: `reuse Trait::bar { Box::new(self.0) }`
- // https://github.com/dtolnay/syn/issues/1580
- "src/tools/rustfmt/tests/target/issue_6513.rs",
- "tests/incremental/delegation-ice-155729.rs",
- "tests/pretty/delegation/delegation.rs",
- "tests/pretty/delegation/generics.rs",
- "tests/pretty/delegation/impl-reuse.rs",
- "tests/pretty/delegation/inherit-attributes.rs",
- "tests/pretty/delegation/inline-attribute.rs",
- "tests/pretty/delegation/self-mapping-output.rs",
- "tests/pretty/delegation/self-rename.rs",
- "tests/pretty/hir-delegation.rs",
- "tests/rustdoc-html/async/async-fn-delegation.rs",
- "tests/ui/delegation/auxiliary/recursive-delegation-aux.rs",
- "tests/ui/delegation/body-identity-glob.rs",
- "tests/ui/delegation/body-identity-list.rs",
- "tests/ui/delegation/explicit-paths-in-traits-pass.rs",
- "tests/ui/delegation/explicit-paths-pass.rs",
- "tests/ui/delegation/explicit-paths-signature-pass.rs",
- "tests/ui/delegation/fn-header.rs",
- "tests/ui/delegation/generics/const-type-ice-154334.rs",
- "tests/ui/delegation/generics/free-fn-to-free-fn-pass.rs",
- "tests/ui/delegation/generics/free-fn-to-trait-method-pass.rs",
- "tests/ui/delegation/generics/generics-aux-pass.rs",
- "tests/ui/delegation/generics/impl-to-free-fn-pass.rs",
- "tests/ui/delegation/generics/impl-trait-to-trait-method-pass.rs",
- "tests/ui/delegation/generics/inherent-impl-to-trait-method-pass.rs",
- "tests/ui/delegation/generics/mapping/free-to-free-pass.rs",
- "tests/ui/delegation/generics/mapping/free-to-trait-pass.rs",
- "tests/ui/delegation/generics/mapping/impl-trait-to-free-pass.rs",
- "tests/ui/delegation/generics/mapping/impl-trait-to-trait-pass.rs",
- "tests/ui/delegation/generics/mapping/inherent-impl-to-free-pass.rs",
- "tests/ui/delegation/generics/mapping/inherent-impl-to-trait-pass.rs",
- "tests/ui/delegation/generics/mapping/trait-to-free-pass.rs",
- "tests/ui/delegation/generics/mapping/trait-to-trait-pass.rs",
- "tests/ui/delegation/generics/self-rename.rs",
- "tests/ui/delegation/generics/stability-implications-non-local-defid.rs",
- "tests/ui/delegation/generics/synth-params-ice-154780.rs",
- "tests/ui/delegation/generics/trait-method-to-other-pass.rs",
- "tests/ui/delegation/generics/unelided-lifetime-in-sig-ice-156848.rs",
- "tests/ui/delegation/glob-glob.rs",
- "tests/ui/delegation/glob-override.rs",
- "tests/ui/delegation/glob.rs",
- "tests/ui/delegation/impl-reuse-pass.rs",
- "tests/ui/delegation/impl-trait.rs",
- "tests/ui/delegation/list.rs",
- "tests/ui/delegation/macro-inside-glob.rs",
- "tests/ui/delegation/macro-inside-list.rs",
- "tests/ui/delegation/method-call-priority.rs",
- "tests/ui/delegation/parse.rs",
- "tests/ui/delegation/recursive-delegation-pass.rs",
- "tests/ui/delegation/rename.rs",
- "tests/ui/delegation/self-coercion.rs",
- "tests/ui/delegation/self-mapping-arguments.rs",
- "tests/ui/delegation/target-expression-removal-pass.rs",
-
- // TODO: for await
- // https://github.com/dtolnay/syn/issues/1631
- "tests/ui/async-await/for-await-2015.rs",
- "tests/ui/async-await/for-await-passthrough.rs",
- "tests/ui/async-await/for-await.rs",
-
- // TODO: unparenthesized half-open range pattern inside slice pattern: `[1..]`
- // https://github.com/dtolnay/syn/issues/1769
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/range_pat.rs",
- "tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs",
-
- // TODO: pinned type sugar: `&pin const Self`
- // https://github.com/dtolnay/syn/issues/1770
- "src/tools/rustfmt/tests/source/pin_sugar.rs",
- "src/tools/rustfmt/tests/target/pin_sugar.rs",
- "tests/pretty/pin-ergonomics-hir.rs",
- "tests/pretty/pin-ergonomics.rs",
- "tests/ui/pin-ergonomics/borrow.rs",
- "tests/ui/pin-ergonomics/pin-coercion.rs",
- "tests/ui/pin-ergonomics/pinned-drop-sugar-no-core.rs",
- "tests/ui/pin-ergonomics/pinned-drop-sugar.rs",
- "tests/ui/pin-ergonomics/pinned-drop.rs",
- "tests/ui/pin-ergonomics/sugar-self.rs",
- "tests/ui/pin-ergonomics/sugar.rs",
- "tests/ui/pin-ergonomics/user-type-projection.rs",
-
- // TODO: attributes on where-predicates
- // https://github.com/dtolnay/syn/issues/1705
- "src/tools/rustfmt/tests/target/cfg_attribute_in_where.rs",
- "tests/ui/where-clauses/cfg-attr-issue-138010-1.rs",
-
- // TODO: super let
- // https://github.com/dtolnay/syn/issues/1889
- "library/std/src/macros/tests.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/let_stmt.rs",
- "tests/ui/drop/if-let-super-let.rs",
- "tests/ui/drop/super-let-tail-expr-drop-order.rs",
-
- // TODO: "ergonomic clones": `f(obj.use)`, `thread::spawn(use || f(obj))`, `async use`
- // https://github.com/dtolnay/syn/issues/1802
- "src/tools/clippy/tests/ui/redundant_closure_call_early.rs",
- "src/tools/clippy/tests/ui/redundant_closure_call_fixable.rs",
- "src/tools/rustfmt/tests/source/ergonomic_clones.rs",
- "src/tools/rustfmt/tests/target/ergonomic_clones.rs",
- "tests/codegen-llvm/ergonomic-clones/closure.rs",
- "tests/mir-opt/ergonomic-clones/closure.rs",
- "tests/ui/ergonomic-clones/async/basic.rs",
- "tests/ui/ergonomic-clones/closure/basic.rs",
- "tests/ui/ergonomic-clones/closure/const-closure.rs",
- "tests/ui/ergonomic-clones/closure/mutation.rs",
- "tests/ui/ergonomic-clones/closure/nested.rs",
- "tests/ui/ergonomic-clones/closure/once-move-out-on-heap.rs",
- "tests/ui/ergonomic-clones/closure/with-binders.rs",
- "tests/ui/ergonomic-clones/dotuse/basic.rs",
- "tests/ui/ergonomic-clones/dotuse/block.rs",
-
- // TODO: move expression
- // https://github.com/dtolnay/syn/issues/1983
- "tests/ui/move-expr/borrow-only.rs",
- "tests/ui/move-expr/copy-type.rs",
- "tests/ui/move-expr/name-resolution.rs",
- "tests/ui/move-expr/nested-closures.rs",
- "tests/ui/move-expr/nested-move-expr.rs",
- "tests/ui/move-expr/parse-ambiguity.rs",
- "tests/ui/move-expr/plain-closure.rs",
-
- // TODO: contracts
- // https://github.com/dtolnay/syn/issues/1892
- "tests/ui/contracts/internal_machinery/contract-ast-extensions-nest.rs",
- "tests/ui/contracts/internal_machinery/contract-ast-extensions-tail.rs",
- "tests/ui/contracts/internal_machinery/contracts-lowering-ensures-is-not-inherited-when-nesting.rs",
- "tests/ui/contracts/internal_machinery/contracts-lowering-requires-is-not-inherited-when-nesting.rs",
-
- // TODO: frontmatter
- // https://github.com/dtolnay/syn/issues/1893
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/frontmatter.rs",
- "src/tools/rustfmt/tests/source/frontmatter_compact.rs",
- "src/tools/rustfmt/tests/source/frontmatter_escaped.rs",
- "src/tools/rustfmt/tests/source/frontmatter_spaced.rs",
- "src/tools/rustfmt/tests/target/frontmatter_compact.rs",
- "src/tools/rustfmt/tests/target/frontmatter_escaped.rs",
- "src/tools/rustfmt/tests/target/frontmatter_spaced.rs",
- "tests/rustdoc-html/source-code-pages/frontmatter.rs",
- "tests/ui/frontmatter/auxiliary/expr.rs",
- "tests/ui/frontmatter/auxiliary/lib.rs",
- "tests/ui/frontmatter/content-contains-whitespace.rs",
- "tests/ui/frontmatter/content-non-lexible-tokens.rs",
- "tests/ui/frontmatter/escape-hyphens-leading.rs",
- "tests/ui/frontmatter/escape-hyphens-nonleading-1.rs",
- "tests/ui/frontmatter/escape-hyphens-nonleading-2.rs",
- "tests/ui/frontmatter/escape-hyphens-nonleading-3.rs",
- "tests/ui/frontmatter/fence-whitespace-trailing-1.rs",
- "tests/ui/frontmatter/fence-whitespace-trailing-2.rs",
- "tests/ui/frontmatter/frontmatter-crlf.rs",
- "tests/ui/frontmatter/infostring-dot-nonleading.rs",
- "tests/ui/frontmatter/infostring-hyphen-nonleading.rs",
- "tests/ui/frontmatter/location-after-shebang.rs",
- "tests/ui/include-macros/auxiliary/shebang-expr.rs",
- "tests/ui/unpretty/frontmatter.rs",
-
- // TODO: `type const` associated items
- // https://github.com/dtolnay/syn/issues/1984
- "src/tools/clippy/tests/ui/crashes/mgca-16691.rs",
- "src/tools/clippy/tests/ui/trait_duplication_in_bounds_assoc_const_eq.rs",
- "src/tools/rustfmt/tests/source/direct_const_arg.rs",
- "src/tools/rustfmt/tests/target/direct_const_arg.rs",
- "tests/debuginfo/associated-const-bindings.rs",
- "tests/rustdoc-html/constant/ice-associated-const-equality-105952.rs",
- "tests/rustdoc-html/inline_cross/auxiliary/assoc-const-equality.rs",
- "tests/rustdoc-html/type-const-associated-const-no-body.rs",
- "tests/rustdoc-html/type-const-free-in-array.rs",
- "tests/rustdoc-html/type-const-inherent-with-body.rs",
- "tests/ui/associated-consts/issue-110933.rs",
- "tests/ui/associated-consts/type-const-in-array-len.rs",
- "tests/ui/associated-type-bounds/duplicate-bound.rs",
- "tests/ui/const-generics/associated-const-bindings/assoc-const.rs",
- "tests/ui/const-generics/associated-const-bindings/bound-var-in-ty.rs",
- "tests/ui/const-generics/associated-const-bindings/coexisting-with-type-binding.rs",
- "tests/ui/const-generics/associated-const-bindings/const_evaluatable_unchecked.rs",
- "tests/ui/const-generics/associated-const-bindings/dyn-compat-basic.rs",
- "tests/ui/const-generics/associated-const-bindings/dyn-compat-self-const-projections-in-methods.rs",
- "tests/ui/const-generics/associated-const-bindings/dyn-const-projection-escaping-bound-vars.rs",
- "tests/ui/const-generics/associated-const-bindings/equality-unused-issue-126729.rs",
- "tests/ui/const-generics/associated-const-bindings/equality_bound_with_infer.rs",
- "tests/ui/const-generics/associated-const-bindings/normalization-via-param-env.rs",
- "tests/ui/const-generics/associated-const-bindings/supertraits.rs",
- "tests/ui/const-generics/gca/basic-different-definitions.rs",
- "tests/ui/const-generics/gca/basic.rs",
- "tests/ui/const-generics/generic_const_exprs/auxiliary/non_local_type_const.rs",
- "tests/ui/const-generics/mgca/adt_expr_infers_from_value.rs",
- "tests/ui/const-generics/mgca/array-expr-with-assoc-const.rs",
- "tests/ui/const-generics/mgca/assoc-const-projection-in-bound.rs",
- "tests/ui/const-generics/mgca/assoc-const.rs",
- "tests/ui/const-generics/mgca/concrete-expr-with-generics-in-env.rs",
- "tests/ui/const-generics/mgca/explicit_anon_consts_literals_hack.rs",
- "tests/ui/const-generics/mgca/generic-args-on-enum-variant-segments.rs",
- "tests/ui/const-generics/mgca/multi_braced_direct_const_args.rs",
- "tests/ui/const-generics/mgca/tuple_ctor_arg_simple.rs",
- "tests/ui/const-generics/mgca/tuple_expr_arg_simple.rs",
- "tests/ui/const-generics/mgca/type-const-ctor-148953.rs",
- "tests/ui/const-generics/mgca/type-const-used-in-trait.rs",
- "tests/ui/const-generics/mgca/type_const-array-return.rs",
- "tests/ui/const-generics/mgca/type_const-incemental-compile.rs",
- "tests/ui/const-generics/mgca/type_const-pub.rs",
- "tests/ui/const-generics/mgca/type_const-use.rs",
- "tests/ui/const-generics/mgca/type_const_in_pattern.rs",
- "tests/ui/generic-const-items/assoc-const-bindings.rs",
- "tests/ui/generic-const-items/type-const-nested-assoc-const.rs",
- "tests/ui/sanitizer/cfi/assoc-const-projection-issue-151878.rs",
- "tests/ui/supertrait-shadowing/assoc-const.rs",
- "tests/ui/supertrait-shadowing/out-of-scope.rs",
- "tests/ui/supertrait-shadowing/type-dependent.rs",
-
- // TODO: const block in path argument: `T: Trait<const { ... }>`
- // https://github.com/dtolnay/syn/issues/1985
- "tests/ui/const-generics/mgca/higher-ranked-lts-good.rs",
- "tests/ui/traits/associated_type_bound/generic-const-args-default.rs",
-
- // TODO: item-level const blocks
- // https://github.com/dtolnay/syn/issues/1986
- "src/tools/rustfmt/tests/source/const-block-items.rs",
- "src/tools/rustfmt/tests/target/const-block-items.rs",
- "tests/ui/consts/const-block-items/assert-pass.rs",
- "tests/ui/consts/const-block-items/hir.rs",
- "tests/ui/parser/const-block-items/attrs.rs",
- "tests/ui/parser/const-block-items/mod-in-fn.rs",
- "tests/ui/parser/const-block-items/pub.rs",
-
- // TODO: mut-restricted fields
- // https://github.com/dtolnay/syn/issues/1987
- "src/tools/rustfmt/tests/source/mut-restriction.rs",
- "src/tools/rustfmt/tests/target/mut-restriction.rs",
- "tests/pretty/hir-mut-restriction.rs",
- "tests/ui/mut-restriction/auxiliary/external-mut-restriction.rs",
-
- // TODO: heterogeneous try-blocks: `try bikeshed Option<_>`
- // https://github.com/dtolnay/syn/issues/1988
- "src/tools/rustfmt/tests/source/try_blocks_heterogeneous.rs",
- "src/tools/rustfmt/tests/target/try_blocks_heterogeneous.rs",
- "tests/pretty/try-blocks.rs",
- "tests/ui/try-block/try-block-heterogeneous.rs",
-
- // TODO: `|| .. .method()`
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/closure_range_method_call.rs",
- "src/tools/rustfmt/tests/source/issue-4808.rs",
-
- // Negative inherent impl: `impl !Box<JoinHandle> {}`
- "src/tools/rustfmt/tests/source/negative-impl.rs",
- "src/tools/rustfmt/tests/target/negative-impl.rs",
-
- // Compile-fail expr parameter in const generic position: `f::<1 + 2>()`
- "tests/ui/const-generics/early/closing-args-token.rs",
- "tests/ui/const-generics/early/const-expression-parameter.rs",
-
- // Compile-fail variadics in not the last position of a function parameter list
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/fn_def_param.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/param_list_vararg.rs",
- "tests/ui/parser/variadic-ffi-syntactic-pass.rs",
-
- // Need at least one trait in impl Trait, no such type as impl 'static
- "tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs",
-
- // Negative polarity trait bound: `where T: !Copy`
- "src/tools/rustfmt/tests/target/negative-bounds.rs",
- "tests/ui/traits/negative-bounds/supertrait.rs",
-
- // Const impl that is not a trait impl: `impl ~const T {}`
- "tests/ui/traits/const-traits/syntax.rs",
-
- // Lifetimes and types out of order in angle bracketed path arguments
- "tests/ui/parser/constraints-before-generic-args-syntactic-pass.rs",
-
- // Deprecated anonymous parameter syntax in traits
- "src/tools/rustfmt/tests/source/trait.rs",
- "src/tools/rustfmt/tests/target/trait.rs",
- "tests/pretty/hir-fn-params.rs",
- "tests/rustdoc-html/anon-fn-params.rs",
- "tests/rustdoc-html/auxiliary/ext-anon-fn-params.rs",
- "tests/ui/anon-params/anon-params-trait-method-multiple.rs",
- "tests/ui/fn/anonymous-parameters-trait-13105.rs",
- "tests/ui/proc-macro/trait-fn-args-2015.rs",
- "tests/ui/trait-bounds/anonymous-parameters-13775.rs",
-
- // Deprecated where-clause location
- "src/tools/rustfmt/tests/source/issue_4257.rs",
- "src/tools/rustfmt/tests/source/issue_4911.rs",
- "src/tools/rustfmt/tests/target/issue_4257.rs",
- "src/tools/rustfmt/tests/target/issue_4911.rs",
- "tests/pretty/gat-bounds.rs",
-
- // Deprecated trait object syntax with parenthesized generic arguments and no dyn keyword
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/path_fn_trait_args.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/typepathfn_with_coloncolon.rs",
- "src/tools/rustfmt/tests/source/attrib.rs",
- "src/tools/rustfmt/tests/source/closure.rs",
- "src/tools/rustfmt/tests/source/existential_type.rs",
- "src/tools/rustfmt/tests/source/fn-simple.rs",
- "src/tools/rustfmt/tests/source/fn_args_layout-vertical.rs",
- "src/tools/rustfmt/tests/source/issue-4689/one.rs",
- "src/tools/rustfmt/tests/source/issue-4689/two.rs",
- "src/tools/rustfmt/tests/source/paths.rs",
- "src/tools/rustfmt/tests/source/structs.rs",
- "src/tools/rustfmt/tests/target/attrib.rs",
- "src/tools/rustfmt/tests/target/closure.rs",
- "src/tools/rustfmt/tests/target/existential_type.rs",
- "src/tools/rustfmt/tests/target/fn-simple.rs",
- "src/tools/rustfmt/tests/target/fn.rs",
- "src/tools/rustfmt/tests/target/fn_args_layout-vertical.rs",
- "src/tools/rustfmt/tests/target/issue-4689/one.rs",
- "src/tools/rustfmt/tests/target/issue-4689/two.rs",
- "src/tools/rustfmt/tests/target/paths.rs",
- "src/tools/rustfmt/tests/target/structs.rs",
- "tests/codegen-units/item-collection/non-generic-closures.rs",
- "tests/debuginfo/recursive-enum.rs",
- "tests/pretty/closure-reform-pretty.rs",
- "tests/run-make/reproducible-build-2/reproducible-build.rs",
- "tests/run-make/reproducible-build/reproducible-build.rs",
- "tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.rs",
- "tests/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs",
- "tests/ui/lifetimes/bare-trait-object-borrowck.rs",
- "tests/ui/lifetimes/bare-trait-object.rs",
- "tests/ui/parser/bounds-obj-parens.rs",
-
- // Various extensions to Rust syntax made up by rust-analyzer
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/asm_piece_attr.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/assoc_type_bound.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/const_param_default_path.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/deref_pat.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/field_expr.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/generic_arg_bounds.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/global_asm.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/include_bytes.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/not_null_pat.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/pattern_type.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/question_for_type_trait_bound.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/record_mut_restrictions_after.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/record_mut_restrictions_before.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/ref_expr.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/try_block_expr.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/tuple_mut_restrictions.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/type_const.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/use_tree_abs_star.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0015_use_tree.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0019_enums.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0029_range_forms.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0051_parameter_attrs.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0055_dot_dot_dot.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0068_item_modifiers.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0031_block_inner_attrs.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0038_endless_inclusive_range.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0045_ambiguous_trait_object.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0046_mutable_const_item.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0224_dangling_dyn.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/0261_dangling_impl_undeclared_lifetime.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/dangling_impl.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/dangling_impl_reference.rs",
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/validation/impl_trait_lifetime_only.rs",
-
- // Placeholder syntax for "throw expressions"
- "compiler/rustc_expand/src/module.rs",
- "compiler/rustc_trait_selection/src/error_reporting/infer/need_type_info.rs",
- "src/tools/clippy/tests/ui/needless_return.rs",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/yeet_expr.rs",
- "tests/pretty/yeet-expr.rs",
- "tests/ui/contracts/contracts-ensures-early-fn-exit.rs",
- "tests/ui/try-trait/yeet-for-option.rs",
- "tests/ui/try-trait/yeet-for-result.rs",
-
- // Edition 2015 code using identifiers that are now keywords
- // TODO: some of these we should probably parse
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/dyn_trait_type_weak.rs",
- "src/tools/rustfmt/tests/source/configs/indent_style/block_call.rs",
- "src/tools/rustfmt/tests/source/configs/use_try_shorthand/false.rs",
- "src/tools/rustfmt/tests/source/configs/use_try_shorthand/true.rs",
- "src/tools/rustfmt/tests/source/issue_1306.rs",
- "src/tools/rustfmt/tests/source/try-conversion.rs",
- "src/tools/rustfmt/tests/target/configs/indent_style/block_call.rs",
- "src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs",
- "src/tools/rustfmt/tests/target/issue-1681.rs",
- "src/tools/rustfmt/tests/target/issue_1306.rs",
- "tests/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs",
- "tests/ui/editions/edition-keywords-2015-2015.rs",
- "tests/ui/editions/edition-keywords-2015-2018.rs",
- "tests/ui/lint/keyword-idents/auxiliary/multi_file_submod.rs",
- "tests/ui/lint/lint_pre_expansion_extern_module_aux.rs",
- "tests/ui/macros/macro-comma-support-rpass.rs",
- "tests/ui/macros/try-macro.rs",
- "tests/ui/parser/extern-crate-async.rs",
- "tests/ui/try-block/try-is-identifier-edition2015.rs",
-
- // Excessive nesting
- "tests/ui/expr/if/expr-stack-overflow.rs",
-
- // Testing tools on invalid syntax
- "src/tools/clippy/tests/ui/non_expressive_names_error_recovery.rs",
- "src/tools/rustfmt/tests/coverage/target/comments.rs",
- "src/tools/rustfmt/tests/parser/issue-4126/invalid.rs",
- "src/tools/rustfmt/tests/parser/issue_4418.rs",
- "src/tools/rustfmt/tests/parser/stashed-diag.rs",
- "src/tools/rustfmt/tests/parser/stashed-diag2.rs",
- "src/tools/rustfmt/tests/parser/unclosed-delims/issue_4466.rs",
- "src/tools/rustfmt/tests/source/configs/disable_all_formatting/true.rs",
- "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/false.rs",
- "src/tools/rustfmt/tests/source/configs/spaces_around_ranges/true.rs",
- "src/tools/rustfmt/tests/source/type.rs",
- "src/tools/rustfmt/tests/target/configs/spaces_around_ranges/false.rs",
- "src/tools/rustfmt/tests/target/configs/spaces_around_ranges/true.rs",
- "src/tools/rustfmt/tests/target/type.rs",
- "src/tools/rustfmt/tests/target/unsafe_extern_blocks.rs",
- "tests/ui/generics/issue-94432-garbage-ice.rs",
-
- // Not actually test cases
- "tests/ui/lint/expansion-time-include.rs",
- "tests/ui/macros/auxiliary/macro-comma-support.rs",
- "tests/ui/macros/auxiliary/macro-include-items-expr.rs",
- "tests/ui/macros/include-single-expr-helper.rs",
- "tests/ui/macros/include-single-expr-helper-1.rs",
- "tests/ui/parser/issues/auxiliary/issue-21146-inc.rs",
-];
-
-#[rustfmt::skip]
-static EXCLUDE_DIRS: &[&str] = &[
- // Inputs that intentionally do not parse
- "src/tools/rust-analyzer/crates/parser/test_data/parser/err",
- "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/err",
-
- // Inputs that lex but do not necessarily parse
- "src/tools/rust-analyzer/crates/parser/test_data/lexer",
-
- // Inputs that used to crash rust-analyzer, but aren't necessarily supposed to parse
- "src/tools/rust-analyzer/crates/syntax/test_data/parser/fuzz-failures",
- "src/tools/rust-analyzer/crates/syntax/test_data/reparse/fuzz-failures",
-
- // Inputs that crash rustc, making no claim about whether they are valid Rust
- "tests/crashes",
-];
-
-// Directories in which a .stderr implies the corresponding .rs is not expected
-// to work.
-static UI_TEST_DIRS: &[&str] = &["tests/ui", "tests/rustdoc-ui"];
-
-pub fn for_each_rust_file(for_each: impl Fn(&Path) + Sync + Send) {
- let mut rs_files = BTreeSet::new();
-
- let repo_dir = Path::new("tests/rust");
- for entry in WalkDir::new(repo_dir).into_iter().filter_entry(base_dir_filter) {
- let entry = entry.unwrap();
- if !entry.file_type().is_dir() {
- rs_files.insert(entry.into_path());
- }
- }
-
- for ui_test_dir in UI_TEST_DIRS {
- for entry in WalkDir::new(repo_dir.join(ui_test_dir)) {
- let mut path = entry.unwrap().into_path();
- if path.extension() == Some(OsStr::new("stderr")) {
- loop {
- rs_files.remove(&path.with_extension("rs"));
- path = path.with_extension("");
- if path.extension().is_none() {
- break;
- }
- }
- }
- }
- }
-
- rs_files.par_iter().map(PathBuf::as_path).for_each(for_each);
-}
-
-pub fn base_dir_filter(entry: &DirEntry) -> bool {
- let path = entry.path();
-
- let mut path_string = path.to_string_lossy();
- if cfg!(windows) {
- path_string = path_string.replace('\\', "/").into();
- }
- let path_string = if path_string == "tests/rust" {
- return true;
- } else if let Some(path) = path_string.strip_prefix("tests/rust/") {
- path
- } else {
- panic!("unexpected path in Rust dist: {}", path_string);
- };
-
- if path.is_dir() {
- return !EXCLUDE_DIRS.contains(&path_string);
- }
-
- if path.extension() != Some(OsStr::new("rs")) {
- return false;
- }
-
- !EXCLUDE_FILES.contains(&path_string)
-}
-
-#[allow(dead_code)]
-pub fn edition(path: &Path) -> &'static str {
- if path.ends_with("dyn-2015-no-warnings-without-lints.rs") {
- "2015"
- } else {
- "2021"
- }
-}
-
-#[allow(dead_code)]
-pub fn abort_after() -> usize {
- match env::var("ABORT_AFTER_FAILURE") {
- Ok(s) => s.parse().expect("failed to parse ABORT_AFTER_FAILURE"),
- Err(_) => usize::MAX,
- }
-}
-
-pub fn rayon_init() {
- let stack_size = match env::var("RUST_MIN_STACK") {
- Ok(s) => s.parse().expect("failed to parse RUST_MIN_STACK"),
- Err(_) => 1024 * 1024 * if cfg!(debug_assertions) { 40 } else { 20 },
- };
- ThreadPoolBuilder::new().stack_size(stack_size).build_global().unwrap();
-}
-
-pub fn clone_rust() {
- let needs_clone = match fs::read_to_string("tests/rust/COMMIT") {
- Err(_) => true,
- Ok(contents) => contents.trim() != REVISION,
- };
- if needs_clone {
- download_and_unpack().unwrap();
- }
-
- let mut missing = String::new();
- let test_src = Path::new("tests/rust");
-
- let mut exclude_files_set = BTreeSet::new();
- for exclude in EXCLUDE_FILES {
- if !exclude_files_set.insert(exclude) {
- panic!("duplicate path in EXCLUDE_FILES: {}", exclude);
- }
- for dir in EXCLUDE_DIRS {
- if Path::new(exclude).starts_with(dir) {
- panic!("excluded file {} is inside an excluded dir", exclude);
- }
- }
- if !test_src.join(exclude).is_file() {
- missing += "\ntests/rust/";
- missing += exclude;
- }
- }
-
- let mut exclude_dirs_set = BTreeSet::new();
- for exclude in EXCLUDE_DIRS {
- if !exclude_dirs_set.insert(exclude) {
- panic!("duplicate path in EXCLUDE_DIRS: {}", exclude);
- }
- if !test_src.join(exclude).is_dir() {
- missing += "\ntests/rust/";
- missing += exclude;
- missing += "/";
- }
- }
-
- if !missing.is_empty() {
- panic!("excluded test file does not exist:{}\n", missing);
- }
-}
-
-fn download_and_unpack() -> Result<()> {
- let url = format!("https://github.com/rust-lang/rust/archive/{REVISION}.tar.gz");
- errorf!("downloading {url}\n");
-
- let response = reqwest::blocking::get(url)?.error_for_status()?;
- let progress = Progress::new(response);
- let decoder = GzDecoder::new(progress);
- let mut archive = Archive::new(decoder);
- let prefix = format!("rust-{}", REVISION);
-
- let tests_rust = Path::new("tests/rust");
- if tests_rust.exists() {
- fs::remove_dir_all(tests_rust)?;
- }
-
- for entry in archive.entries()? {
- let mut entry = entry?;
- let path = entry.path()?;
- if path == Path::new("pax_global_header") {
- continue;
- }
- let relative = path.strip_prefix(&prefix)?;
- let out = tests_rust.join(relative);
- entry.unpack(&out)?;
- }
-
- fs::write("tests/rust/COMMIT", REVISION)?;
- Ok(())
-}
diff --git a/deps/crates/vendor/syn-v2/tests/repo/progress.rs b/deps/crates/vendor/syn-v2/tests/repo/progress.rs
deleted file mode 100644
index 9e1e9a49b2b..00000000000
--- a/deps/crates/vendor/syn-v2/tests/repo/progress.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-use std::io::{Read, Result};
-use std::time::{Duration, Instant};
-
-pub struct Progress<R> {
- bytes: usize,
- tick: Instant,
- stream: R,
-}
-
-impl<R> Progress<R> {
- pub fn new(stream: R) -> Self {
- Progress { bytes: 0, tick: Instant::now() + Duration::from_secs(2), stream }
- }
-}
-
-impl<R: Read> Read for Progress<R> {
- fn read(&mut self, buf: &mut [u8]) -> Result<usize> {
- let num = self.stream.read(buf)?;
- self.bytes += num;
- let now = Instant::now();
- if now > self.tick {
- self.tick = now + Duration::from_millis(500);
- errorf!("downloading... {} bytes\n", self.bytes);
- }
- Ok(num)
- }
-}
-
-impl<R> Drop for Progress<R> {
- fn drop(&mut self) {
- errorf!("done ({} bytes)\n", self.bytes);
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/snapshot/mod.rs b/deps/crates/vendor/syn-v2/tests/snapshot/mod.rs
deleted file mode 100644
index 98d2aebc9d3..00000000000
--- a/deps/crates/vendor/syn-v2/tests/snapshot/mod.rs
+++ /dev/null
@@ -1,68 +0,0 @@
-#![allow(unused_macros, unused_macro_rules)]
-
-use std::str::FromStr;
-use syn::parse::Result;
-
-macro_rules! snapshot {
- ($($args:tt)*) => {
- snapshot_impl!(() $($args)*)
- };
-}
-
-macro_rules! snapshot_impl {
- (($expr:ident) as $t:ty, @$snapshot:literal) => {
- let tokens = crate::snapshot::TryIntoTokens::try_into_tokens($expr).unwrap();
- let $expr: $t = syn::parse_quote!(#tokens);
- let debug = crate::debug::Lite(&$expr);
- if !cfg!(miri) {
- #[allow(clippy::needless_raw_string_hashes)] // https://github.com/mitsuhiko/insta/issues/389
- {
- insta::assert_debug_snapshot!(debug, @$snapshot);
- }
- }
- };
- (($($expr:tt)*) as $t:ty, @$snapshot:literal) => {{
- let tokens = crate::snapshot::TryIntoTokens::try_into_tokens($($expr)*).unwrap();
- let syntax_tree: $t = syn::parse_quote!(#tokens);
- let debug = crate::debug::Lite(&syntax_tree);
- if !cfg!(miri) {
- #[allow(clippy::needless_raw_string_hashes)]
- {
- insta::assert_debug_snapshot!(debug, @$snapshot);
- }
- }
- syntax_tree
- }};
- (($($expr:tt)*) , @$snapshot:literal) => {{
- let syntax_tree = $($expr)*;
- let debug = crate::debug::Lite(&syntax_tree);
- if !cfg!(miri) {
- #[allow(clippy::needless_raw_string_hashes)]
- {
- insta::assert_debug_snapshot!(debug, @$snapshot);
- }
- }
- syntax_tree
- }};
- (($($expr:tt)*) $next:tt $($rest:tt)*) => {
- snapshot_impl!(($($expr)* $next) $($rest)*)
- };
-}
-
-pub trait TryIntoTokens {
- #[allow(dead_code)]
- fn try_into_tokens(self) -> Result<proc_macro2::TokenStream>;
-}
-
-impl TryIntoTokens for &str {
- fn try_into_tokens(self) -> Result<proc_macro2::TokenStream> {
- let tokens = proc_macro2::TokenStream::from_str(self)?;
- Ok(tokens)
- }
-}
-
-impl TryIntoTokens for proc_macro2::TokenStream {
- fn try_into_tokens(self) -> Result<proc_macro2::TokenStream> {
- Ok(self)
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_asyncness.rs b/deps/crates/vendor/syn-v2/tests/test_asyncness.rs
deleted file mode 100644
index c7aee3285bb..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_asyncness.rs
+++ /dev/null
@@ -1,49 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use syn::{Expr, Item};
-
-#[test]
-fn test_async_fn() {
- let input = "async fn process() {}";
-
- snapshot!(input as Item, @r#"
- Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- asyncness: Some,
- ident: "process",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- }
- "#);
-}
-
-#[test]
-fn test_async_closure() {
- let input = "async || {}";
-
- snapshot!(input as Expr, @r#"
- Expr::Closure {
- asyncness: Some,
- output: ReturnType::Default,
- body: Expr::Block {
- block: Block {
- stmts: [],
- },
- },
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_attribute.rs b/deps/crates/vendor/syn-v2/tests/test_attribute.rs
deleted file mode 100644
index 81c485e6b28..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_attribute.rs
+++ /dev/null
@@ -1,231 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use syn::parse::Parser;
-use syn::{Attribute, Meta};
-
-#[test]
-fn test_meta_item_word() {
- let meta = test("#[foo]");
-
- snapshot!(meta, @r#"
- Meta::Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_name_value() {
- let meta = test("#[foo = 5]");
-
- snapshot!(meta, @r#"
- Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- value: Expr::Lit {
- lit: 5,
- },
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_bool_value() {
- let meta = test("#[foo = true]");
-
- snapshot!(meta, @r#"
- Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- value: Expr::Lit {
- lit: Lit::Bool {
- value: true,
- },
- },
- }
- "#);
-
- let meta = test("#[foo = false]");
-
- snapshot!(meta, @r#"
- Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- value: Expr::Lit {
- lit: Lit::Bool {
- value: false,
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_list_lit() {
- let meta = test("#[foo(5)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`5`),
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_list_word() {
- let meta = test("#[foo(bar)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`bar`),
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_list_name_value() {
- let meta = test("#[foo(bar = 5)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`bar = 5`),
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_list_bool_value() {
- let meta = test("#[foo(bar = true)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`bar = true`),
- }
- "#);
-}
-
-#[test]
-fn test_meta_item_multiple() {
- let meta = test("#[foo(word, name = 5, list(name2 = 6), word2)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`),
- }
- "#);
-}
-
-#[test]
-fn test_bool_lit() {
- let meta = test("#[foo(true)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`true`),
- }
- "#);
-}
-
-#[test]
-fn test_negative_lit() {
- let meta = test("#[form(min = -1, max = 200)]");
-
- snapshot!(meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "form",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`min = - 1 , max = 200`),
- }
- "#);
-}
-
-fn test(input: &str) -> Meta {
- let attrs = Attribute::parse_outer.parse_str(input).unwrap();
-
- assert_eq!(attrs.len(), 1);
- let attr = attrs.into_iter().next().unwrap();
-
- attr.meta
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_derive_input.rs b/deps/crates/vendor/syn-v2/tests/test_derive_input.rs
deleted file mode 100644
index 790e2792adb..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_derive_input.rs
+++ /dev/null
@@ -1,785 +0,0 @@
-#![allow(
- clippy::assertions_on_result_states,
- clippy::elidable_lifetime_names,
- clippy::manual_let_else,
- clippy::needless_lifetimes,
- clippy::too_many_lines,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use quote::quote;
-use syn::{Data, DeriveInput};
-
-#[test]
-fn test_unit() {
- let input = quote! {
- struct Unit;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "Unit",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-}
-
-#[test]
-fn test_struct() {
- let input = quote! {
- #[derive(Debug, Clone)]
- pub struct Item {
- pub ident: Ident,
- pub attrs: Vec<Attribute>
- }
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "derive",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`Debug , Clone`),
- },
- },
- ],
- vis: Visibility::Public,
- ident: "Item",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Named {
- named: [
- Field {
- vis: Visibility::Public,
- ident: Some("ident"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Ident",
- },
- ],
- },
- },
- },
- Token![,],
- Field {
- vis: Visibility::Public,
- ident: Some("attrs"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Vec",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Attribute",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- },
- },
- ],
- },
- },
- }
- "#);
-
- snapshot!(&input.attrs[0].meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "derive",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`Debug , Clone`),
- }
- "#);
-}
-
-#[test]
-fn test_union() {
- let input = quote! {
- union MaybeUninit<T> {
- uninit: (),
- value: T
- }
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "MaybeUninit",
- generics: Generics {
- lt_token: Some,
- params: [
- GenericParam::Type(TypeParam {
- ident: "T",
- }),
- ],
- gt_token: Some,
- },
- data: Data::Union {
- fields: FieldsNamed {
- named: [
- Field {
- vis: Visibility::Inherited,
- ident: Some("uninit"),
- colon_token: Some,
- ty: Type::Tuple,
- },
- Token![,],
- Field {
- vis: Visibility::Inherited,
- ident: Some("value"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- },
- },
- ],
- },
- },
- }
- "#);
-}
-
-#[test]
-#[cfg(feature = "full")]
-fn test_enum() {
- let input = quote! {
- /// See the std::result module documentation for details.
- #[must_use]
- pub enum Result<T, E> {
- Ok(T),
- Err(E),
- Surprise = 0isize,
-
- // Smuggling data into a proc_macro_derive,
- // in the style of https://github.com/dtolnay/proc-macro-hack
- ProcMacroHack = (0, "data").0
- }
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "doc",
- },
- ],
- },
- value: Expr::Lit {
- lit: " See the std::result module documentation for details.",
- },
- },
- },
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "must_use",
- },
- ],
- },
- },
- ],
- vis: Visibility::Public,
- ident: "Result",
- generics: Generics {
- lt_token: Some,
- params: [
- GenericParam::Type(TypeParam {
- ident: "T",
- }),
- Token![,],
- GenericParam::Type(TypeParam {
- ident: "E",
- }),
- ],
- gt_token: Some,
- },
- data: Data::Enum {
- variants: [
- Variant {
- ident: "Ok",
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- },
- },
- ],
- },
- },
- Token![,],
- Variant {
- ident: "Err",
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "E",
- },
- ],
- },
- },
- },
- ],
- },
- },
- Token![,],
- Variant {
- ident: "Surprise",
- fields: Fields::Unit,
- discriminant: Some(Expr::Lit {
- lit: 0isize,
- }),
- },
- Token![,],
- Variant {
- ident: "ProcMacroHack",
- fields: Fields::Unit,
- discriminant: Some(Expr::Field {
- base: Expr::Tuple {
- elems: [
- Expr::Lit {
- lit: 0,
- },
- Token![,],
- Expr::Lit {
- lit: "data",
- },
- ],
- },
- member: Member::Unnamed(Index {
- index: 0,
- }),
- }),
- },
- ],
- },
- }
- "#);
-
- let meta_items: Vec<_> = input.attrs.into_iter().map(|attr| attr.meta).collect();
-
- snapshot!(meta_items, @r#"
- [
- Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "doc",
- },
- ],
- },
- value: Expr::Lit {
- lit: " See the std::result module documentation for details.",
- },
- },
- Meta::Path {
- segments: [
- PathSegment {
- ident: "must_use",
- },
- ],
- },
- ]
- "#);
-}
-
-#[test]
-fn test_attr_with_non_mod_style_path() {
- let input = quote! {
- #[inert <T>]
- struct S;
- };
-
- syn::parse2::<DeriveInput>(input).unwrap_err();
-}
-
-#[test]
-fn test_attr_with_mod_style_path_with_self() {
- let input = quote! {
- #[foo::self]
- struct S;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- Token![::],
- PathSegment {
- ident: "self",
- },
- ],
- },
- },
- ],
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-
- snapshot!(&input.attrs[0].meta, @r#"
- Meta::Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- Token![::],
- PathSegment {
- ident: "self",
- },
- ],
- }
- "#);
-}
-
-#[test]
-fn test_pub_restricted() {
- // Taken from tests/rust/src/test/ui/resolve/auxiliary/privacy-struct-ctor.rs
- let input = quote! {
- pub(in m) struct Z(pub(in m::n) u8);
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Restricted {
- in_token: Some,
- path: Path {
- segments: [
- PathSegment {
- ident: "m",
- },
- ],
- },
- },
- ident: "Z",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Restricted {
- in_token: Some,
- path: Path {
- segments: [
- PathSegment {
- ident: "m",
- },
- Token![::],
- PathSegment {
- ident: "n",
- },
- ],
- },
- },
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "u8",
- },
- ],
- },
- },
- },
- ],
- },
- semi_token: Some,
- },
- }
- "#);
-}
-
-#[test]
-fn test_pub_restricted_crate() {
- let input = quote! {
- pub(crate) struct S;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Restricted {
- path: Path {
- segments: [
- PathSegment {
- ident: "crate",
- },
- ],
- },
- },
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-}
-
-#[test]
-fn test_pub_restricted_super() {
- let input = quote! {
- pub(super) struct S;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Restricted {
- path: Path {
- segments: [
- PathSegment {
- ident: "super",
- },
- ],
- },
- },
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-}
-
-#[test]
-fn test_pub_restricted_in_super() {
- let input = quote! {
- pub(in super) struct S;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Restricted {
- in_token: Some,
- path: Path {
- segments: [
- PathSegment {
- ident: "super",
- },
- ],
- },
- },
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-}
-
-#[test]
-fn test_fields_on_unit_struct() {
- let input = quote! {
- struct S;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-
- let data = match input.data {
- Data::Struct(data) => data,
- _ => panic!("expected a struct"),
- };
-
- assert_eq!(0, data.fields.iter().count());
-}
-
-#[test]
-fn test_fields_on_named_struct() {
- let input = quote! {
- struct S {
- foo: i32,
- pub bar: String,
- }
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Named {
- named: [
- Field {
- vis: Visibility::Inherited,
- ident: Some("foo"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "i32",
- },
- ],
- },
- },
- },
- Token![,],
- Field {
- vis: Visibility::Public,
- ident: Some("bar"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "String",
- },
- ],
- },
- },
- },
- Token![,],
- ],
- },
- },
- }
- "#);
-
- let data = match input.data {
- Data::Struct(data) => data,
- _ => panic!("expected a struct"),
- };
-
- snapshot!(data.fields.into_iter().collect::<Vec<_>>(), @r#"
- [
- Field {
- vis: Visibility::Inherited,
- ident: Some("foo"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "i32",
- },
- ],
- },
- },
- },
- Field {
- vis: Visibility::Public,
- ident: Some("bar"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "String",
- },
- ],
- },
- },
- },
- ]
- "#);
-}
-
-#[test]
-fn test_fields_on_tuple_struct() {
- let input = quote! {
- struct S(i32, pub String);
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "i32",
- },
- ],
- },
- },
- },
- Token![,],
- Field {
- vis: Visibility::Public,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "String",
- },
- ],
- },
- },
- },
- ],
- },
- semi_token: Some,
- },
- }
- "#);
-
- let data = match input.data {
- Data::Struct(data) => data,
- _ => panic!("expected a struct"),
- };
-
- snapshot!(data.fields.iter().collect::<Vec<_>>(), @r#"
- [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "i32",
- },
- ],
- },
- },
- },
- Field {
- vis: Visibility::Public,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "String",
- },
- ],
- },
- },
- },
- ]
- "#);
-}
-
-#[test]
-fn test_ambiguous_crate() {
- let input = quote! {
- // The field type is `(crate::X)` not `crate (::X)`.
- struct S(crate::X);
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "crate",
- },
- Token![::],
- PathSegment {
- ident: "X",
- },
- ],
- },
- },
- },
- ],
- },
- semi_token: Some,
- },
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_expr.rs b/deps/crates/vendor/syn-v2/tests/test_expr.rs
deleted file mode 100644
index e21373cf96d..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_expr.rs
+++ /dev/null
@@ -1,1702 +0,0 @@
-#![cfg(not(miri))]
-#![recursion_limit = "1024"]
-#![feature(rustc_private)]
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::match_like_matches_macro,
- clippy::needless_lifetimes,
- clippy::single_element_loop,
- clippy::too_many_lines,
- clippy::uninlined_format_args,
- clippy::unreadable_literal
-)]
-
-#[macro_use]
-mod macros;
-#[macro_use]
-mod snapshot;
-
-mod common;
-mod debug;
-
-use crate::common::visit::{AsIfPrinted, FlattenParens};
-use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream};
-use quote::{quote, ToTokens as _};
-use std::process::ExitCode;
-use syn::punctuated::Punctuated;
-use syn::visit_mut::VisitMut as _;
-use syn::{
- parse_quote, token, AngleBracketedGenericArguments, Arm, BinOp, Block, Expr, ExprArray,
- ExprAssign, ExprAsync, ExprAwait, ExprBinary, ExprBlock, ExprBreak, ExprCall, ExprCast,
- ExprClosure, ExprConst, ExprContinue, ExprField, ExprForLoop, ExprIf, ExprIndex, ExprLet,
- ExprLit, ExprLoop, ExprMacro, ExprMatch, ExprMethodCall, ExprPath, ExprRange, ExprRawAddr,
- ExprReference, ExprReturn, ExprStruct, ExprTry, ExprTryBlock, ExprTuple, ExprUnary, ExprUnsafe,
- ExprWhile, ExprYield, GenericArgument, Label, Lifetime, Lit, LitInt, Macro, MacroDelimiter,
- Member, Pat, PatWild, Path, PathArguments, PathSegment, PointerMutability, QSelf, RangeLimits,
- ReturnType, Stmt, Token, Type, TypePath, UnOp,
-};
-
-#[test]
-fn test_expr_parse() {
- let tokens = quote!(..100u32);
- snapshot!(tokens as Expr, @r#"
- Expr::Range {
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Lit {
- lit: 100u32,
- }),
- }
- "#);
-
- let tokens = quote!(..100u32);
- snapshot!(tokens as ExprRange, @r#"
- ExprRange {
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Lit {
- lit: 100u32,
- }),
- }
- "#);
-}
-
-#[test]
-fn test_await() {
- // Must not parse as Expr::Field.
- let tokens = quote!(fut.await);
-
- snapshot!(tokens as Expr, @r#"
- Expr::Await {
- base: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "fut",
- },
- ],
- },
- },
- }
- "#);
-}
-
-#[rustfmt::skip]
-#[test]
-fn test_tuple_multi_index() {
- let expected = snapshot!("tuple.0.0" as Expr, @r#"
- Expr::Field {
- base: Expr::Field {
- base: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "tuple",
- },
- ],
- },
- },
- member: Member::Unnamed(Index {
- index: 0,
- }),
- },
- member: Member::Unnamed(Index {
- index: 0,
- }),
- }
- "#);
-
- for &input in &[
- "tuple .0.0",
- "tuple. 0.0",
- "tuple.0 .0",
- "tuple.0. 0",
- "tuple . 0 . 0",
- ] {
- assert_eq!(expected, syn::parse_str(input).unwrap());
- }
-
- for tokens in [
- quote!(tuple.0.0),
- quote!(tuple .0.0),
- quote!(tuple. 0.0),
- quote!(tuple.0 .0),
- quote!(tuple.0. 0),
- quote!(tuple . 0 . 0),
- ] {
- assert_eq!(expected, syn::parse2(tokens).unwrap());
- }
-}
-
-#[test]
-fn test_macro_variable_func() {
- // mimics the token stream corresponding to `$fn()`
- let path = Group::new(Delimiter::None, quote!(f));
- let tokens = quote!(#path());
-
- snapshot!(tokens as Expr, @r#"
- Expr::Call {
- func: Expr::Group {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "f",
- },
- ],
- },
- },
- },
- }
- "#);
-
- let path = Group::new(Delimiter::None, quote! { #[inside] f });
- let tokens = quote!(#[outside] #path());
-
- snapshot!(tokens as Expr, @r#"
- Expr::Call {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "outside",
- },
- ],
- },
- },
- ],
- func: Expr::Group {
- expr: Expr::Path {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "inside",
- },
- ],
- },
- },
- ],
- path: Path {
- segments: [
- PathSegment {
- ident: "f",
- },
- ],
- },
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_macro_variable_macro() {
- // mimics the token stream corresponding to `$macro!()`
- let mac = Group::new(Delimiter::None, quote!(m));
- let tokens = quote!(#mac!());
-
- snapshot!(tokens as Expr, @r#"
- Expr::Macro {
- mac: Macro {
- path: Path {
- segments: [
- PathSegment {
- ident: "m",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(``),
- },
- }
- "#);
-}
-
-#[test]
-fn test_macro_variable_struct() {
- // mimics the token stream corresponding to `$struct {}`
- let s = Group::new(Delimiter::None, quote! { S });
- let tokens = quote!(#s {});
-
- snapshot!(tokens as Expr, @r#"
- Expr::Struct {
- path: Path {
- segments: [
- PathSegment {
- ident: "S",
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn test_macro_variable_unary() {
- // mimics the token stream corresponding to `$expr.method()` where expr is `&self`
- let inner = Group::new(Delimiter::None, quote!(&self));
- let tokens = quote!(#inner.method());
- snapshot!(tokens as Expr, @r#"
- Expr::MethodCall {
- receiver: Expr::Group {
- expr: Expr::Reference {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "self",
- },
- ],
- },
- },
- },
- },
- method: "method",
- }
- "#);
-}
-
-#[test]
-fn test_macro_variable_match_arm() {
- // mimics the token stream corresponding to `match v { _ => $expr }`
- let expr = Group::new(Delimiter::None, quote! { #[a] () });
- let tokens = quote!(match v { _ => #expr });
- snapshot!(tokens as Expr, @r#"
- Expr::Match {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "v",
- },
- ],
- },
- },
- arms: [
- Arm {
- pat: Pat::Wild,
- body: Expr::Group {
- expr: Expr::Tuple {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "a",
- },
- ],
- },
- },
- ],
- },
- },
- },
- ],
- }
- "#);
-
- let expr = Group::new(Delimiter::None, quote!(loop {} + 1));
- let tokens = quote!(match v { _ => #expr });
- snapshot!(tokens as Expr, @r#"
- Expr::Match {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "v",
- },
- ],
- },
- },
- arms: [
- Arm {
- pat: Pat::Wild,
- body: Expr::Group {
- expr: Expr::Binary {
- left: Expr::Loop {
- body: Block {
- stmts: [],
- },
- },
- op: BinOp::Add,
- right: Expr::Lit {
- lit: 1,
- },
- },
- },
- },
- ],
- }
- "#);
-}
-
-// https://github.com/dtolnay/syn/issues/1019
-#[test]
-fn test_closure_vs_rangefull() {
- #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808
- let tokens = quote!(|| .. .method());
- snapshot!(tokens as Expr, @r#"
- Expr::MethodCall {
- receiver: Expr::Closure {
- output: ReturnType::Default,
- body: Expr::Range {
- limits: RangeLimits::HalfOpen,
- },
- },
- method: "method",
- }
- "#);
-}
-
-#[test]
-fn test_postfix_operator_after_cast() {
- syn::parse_str::<Expr>("|| &x as T[0]").unwrap_err();
- syn::parse_str::<Expr>("|| () as ()()").unwrap_err();
-}
-
-#[test]
-fn test_range_kinds() {
- syn::parse_str::<Expr>("..").unwrap();
- syn::parse_str::<Expr>("..hi").unwrap();
- syn::parse_str::<Expr>("lo..").unwrap();
- syn::parse_str::<Expr>("lo..hi").unwrap();
-
- syn::parse_str::<Expr>("..=").unwrap_err();
- syn::parse_str::<Expr>("..=hi").unwrap();
- syn::parse_str::<Expr>("lo..=").unwrap_err();
- syn::parse_str::<Expr>("lo..=hi").unwrap();
-
- syn::parse_str::<Expr>("...").unwrap_err();
- syn::parse_str::<Expr>("...hi").unwrap_err();
- syn::parse_str::<Expr>("lo...").unwrap_err();
- syn::parse_str::<Expr>("lo...hi").unwrap_err();
-}
-
-#[test]
-fn test_range_precedence() {
- snapshot!(".. .." as Expr, @r#"
- Expr::Range {
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- }
- "#);
-
- snapshot!(".. .. ()" as Expr, @r#"
- Expr::Range {
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Tuple),
- }),
- }
- "#);
-
- snapshot!("() .. .." as Expr, @r#"
- Expr::Range {
- start: Some(Expr::Tuple),
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- }
- "#);
-
- snapshot!("() = .. + ()" as Expr, @r"
- Expr::Binary {
- left: Expr::Assign {
- left: Expr::Tuple,
- right: Expr::Range {
- limits: RangeLimits::HalfOpen,
- },
- },
- op: BinOp::Add,
- right: Expr::Tuple,
- }
- ");
-
- // A range with a lower bound cannot be the upper bound of another range,
- // and a range with an upper bound cannot be the lower bound of another
- // range.
- syn::parse_str::<Expr>(".. x ..").unwrap_err();
- syn::parse_str::<Expr>("x .. x ..").unwrap_err();
-}
-
-#[test]
-fn test_range_attrs() {
- // Attributes are not allowed on range expressions starting with `..`
- syn::parse_str::<Expr>("#[allow()] ..").unwrap_err();
- syn::parse_str::<Expr>("#[allow()] .. hi").unwrap_err();
-
- snapshot!("#[allow()] lo .. hi" as Expr, @r#"
- Expr::Range {
- start: Some(Expr::Path {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "allow",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(``),
- },
- },
- ],
- path: Path {
- segments: [
- PathSegment {
- ident: "lo",
- },
- ],
- },
- }),
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "hi",
- },
- ],
- },
- }),
- }
- "#);
-}
-
-#[test]
-fn test_ranges_bailout() {
- syn::parse_str::<Expr>(".. ?").unwrap_err();
- syn::parse_str::<Expr>(".. .field").unwrap_err();
-
- snapshot!("return .. ?" as Expr, @r"
- Expr::Try {
- expr: Expr::Return {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- }
- ");
-
- snapshot!("break .. ?" as Expr, @r"
- Expr::Try {
- expr: Expr::Break {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- }
- ");
-
- snapshot!("|| .. ?" as Expr, @r"
- Expr::Try {
- expr: Expr::Closure {
- output: ReturnType::Default,
- body: Expr::Range {
- limits: RangeLimits::HalfOpen,
- },
- },
- }
- ");
-
- snapshot!("return .. .field" as Expr, @r#"
- Expr::Field {
- base: Expr::Return {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- member: Member::Named("field"),
- }
- "#);
-
- snapshot!("break .. .field" as Expr, @r#"
- Expr::Field {
- base: Expr::Break {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- member: Member::Named("field"),
- }
- "#);
-
- snapshot!("|| .. .field" as Expr, @r#"
- Expr::Field {
- base: Expr::Closure {
- output: ReturnType::Default,
- body: Expr::Range {
- limits: RangeLimits::HalfOpen,
- },
- },
- member: Member::Named("field"),
- }
- "#);
-
- snapshot!("return .. = ()" as Expr, @r"
- Expr::Assign {
- left: Expr::Return {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- right: Expr::Tuple,
- }
- ");
-
- snapshot!("return .. += ()" as Expr, @r"
- Expr::Binary {
- left: Expr::Return {
- expr: Some(Expr::Range {
- limits: RangeLimits::HalfOpen,
- }),
- },
- op: BinOp::AddAssign,
- right: Expr::Tuple,
- }
- ");
-}
-
-#[test]
-fn test_ambiguous_label() {
- for stmt in [
- quote! {
- return 'label: loop { break 'label 42; };
- },
- quote! {
- break ('label: loop { break 'label 42; });
- },
- quote! {
- break 1 + 'label: loop { break 'label 42; };
- },
- quote! {
- break 'outer 'inner: loop { break 'inner 42; };
- },
- ] {
- syn::parse2::<Stmt>(stmt).unwrap();
- }
-
- for stmt in [
- // Parentheses required. See https://github.com/rust-lang/rust/pull/87026.
- quote! {
- break 'label: loop { break 'label 42; };
- },
- ] {
- syn::parse2::<Stmt>(stmt).unwrap_err();
- }
-}
-
-#[test]
-fn test_extended_interpolated_path() {
- let path = Group::new(Delimiter::None, quote!(a::b));
-
- let tokens = quote!(if #path {});
- snapshot!(tokens as Expr, @r#"
- Expr::If {
- cond: Expr::Group {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "a",
- },
- Token![::],
- PathSegment {
- ident: "b",
- },
- ],
- },
- },
- },
- then_branch: Block {
- stmts: [],
- },
- }
- "#);
-
- let tokens = quote!(#path {});
- snapshot!(tokens as Expr, @r#"
- Expr::Struct {
- path: Path {
- segments: [
- PathSegment {
- ident: "a",
- },
- Token![::],
- PathSegment {
- ident: "b",
- },
- ],
- },
- }
- "#);
-
- let tokens = quote!(#path :: c);
- snapshot!(tokens as Expr, @r#"
- Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "a",
- },
- Token![::],
- PathSegment {
- ident: "b",
- },
- Token![::],
- PathSegment {
- ident: "c",
- },
- ],
- },
- }
- "#);
-
- let nested = Group::new(Delimiter::None, quote!(a::b || true));
- let tokens = quote!(if #nested && false {});
- snapshot!(tokens as Expr, @r#"
- Expr::If {
- cond: Expr::Binary {
- left: Expr::Group {
- expr: Expr::Binary {
- left: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "a",
- },
- Token![::],
- PathSegment {
- ident: "b",
- },
- ],
- },
- },
- op: BinOp::Or,
- right: Expr::Lit {
- lit: Lit::Bool {
- value: true,
- },
- },
- },
- },
- op: BinOp::And,
- right: Expr::Lit {
- lit: Lit::Bool {
- value: false,
- },
- },
- },
- then_branch: Block {
- stmts: [],
- },
- }
- "#);
-}
-
-#[test]
-fn test_tuple_comma() {
- let mut expr = ExprTuple {
- attrs: Vec::new(),
- paren_token: token::Paren::default(),
- elems: Punctuated::new(),
- };
- snapshot!(expr.to_token_stream() as Expr, @"Expr::Tuple");
-
- expr.elems.push_value(parse_quote!(continue));
- // Must not parse to Expr::Paren
- snapshot!(expr.to_token_stream() as Expr, @r#"
- Expr::Tuple {
- elems: [
- Expr::Continue,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Expr, @r#"
- Expr::Tuple {
- elems: [
- Expr::Continue,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_value(parse_quote!(continue));
- snapshot!(expr.to_token_stream() as Expr, @r#"
- Expr::Tuple {
- elems: [
- Expr::Continue,
- Token![,],
- Expr::Continue,
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Expr, @r#"
- Expr::Tuple {
- elems: [
- Expr::Continue,
- Token![,],
- Expr::Continue,
- Token![,],
- ],
- }
- "#);
-}
-
-#[test]
-fn test_binop_associativity() {
- // Left to right.
- snapshot!("() + () + ()" as Expr, @r#"
- Expr::Binary {
- left: Expr::Binary {
- left: Expr::Tuple,
- op: BinOp::Add,
- right: Expr::Tuple,
- },
- op: BinOp::Add,
- right: Expr::Tuple,
- }
- "#);
-
- // Right to left.
- snapshot!("() += () += ()" as Expr, @r#"
- Expr::Binary {
- left: Expr::Tuple,
- op: BinOp::AddAssign,
- right: Expr::Binary {
- left: Expr::Tuple,
- op: BinOp::AddAssign,
- right: Expr::Tuple,
- },
- }
- "#);
-
- // Parenthesization is required.
- syn::parse_str::<Expr>("() == () == ()").unwrap_err();
-}
-
-#[test]
-fn test_assign_range_precedence() {
- // Range has higher precedence as the right-hand of an assignment, but
- // ambiguous precedence as the left-hand of an assignment.
- snapshot!("() = () .. ()" as Expr, @r#"
- Expr::Assign {
- left: Expr::Tuple,
- right: Expr::Range {
- start: Some(Expr::Tuple),
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Tuple),
- },
- }
- "#);
-
- snapshot!("() += () .. ()" as Expr, @r#"
- Expr::Binary {
- left: Expr::Tuple,
- op: BinOp::AddAssign,
- right: Expr::Range {
- start: Some(Expr::Tuple),
- limits: RangeLimits::HalfOpen,
- end: Some(Expr::Tuple),
- },
- }
- "#);
-
- syn::parse_str::<Expr>("() .. () = ()").unwrap_err();
- syn::parse_str::<Expr>("() .. () += ()").unwrap_err();
-}
-
-#[test]
-fn test_chained_comparison() {
- // https://github.com/dtolnay/syn/issues/1738
- let _ = syn::parse_str::<Expr>("a = a < a <");
- let _ = syn::parse_str::<Expr>("a = a .. a ..");
- let _ = syn::parse_str::<Expr>("a = a .. a +=");
-
- let err = syn::parse_str::<Expr>("a < a < a").unwrap_err();
- assert_eq!("comparison operators cannot be chained", err.to_string());
-
- let err = syn::parse_str::<Expr>("a .. a .. a").unwrap_err();
- assert_eq!("unexpected token", err.to_string());
-
- let err = syn::parse_str::<Expr>("a .. a += a").unwrap_err();
- assert_eq!("unexpected token", err.to_string());
-}
-
-#[test]
-fn test_fixup() {
- for tokens in [
- quote! { 2 * (1 + 1) },
- quote! { 0 + (0 + 0) },
- quote! { (a = b) = c },
- quote! { (x as i32) < 0 },
- quote! { 1 + (x as i32) < 0 },
- quote! { (1 + 1).abs() },
- quote! { (lo..hi)[..] },
- quote! { (a..b)..(c..d) },
- quote! { (x > ..) > x },
- quote! { (&mut fut).await },
- quote! { &mut (x as i32) },
- quote! { -(x as i32) },
- quote! { if (S {}) == 1 {} },
- quote! { { (m! {}) - 1 } },
- quote! { match m { _ => ({}) - 1 } },
- quote! { if let _ = (a && b) && c {} },
- quote! { if let _ = (S {}) {} },
- quote! { if (S {}) == 0 && let Some(_) = x {} },
- quote! { break ('a: loop { break 'a 1 } + 1) },
- quote! { a + (|| b) + c },
- quote! { if let _ = ((break) - 1 || true) {} },
- quote! { if let _ = (break + 1 || true) {} },
- quote! { if break (break) {} },
- quote! { if break break {} {} },
- quote! { if return (..) {} },
- quote! { if return .. {} {} },
- quote! { if || (Struct {}) {} },
- quote! { if || (Struct {}).await {} },
- quote! { if break || Struct {}.await {} },
- quote! { if break 'outer 'block: {} {} },
- quote! { if ..'block: {} {} },
- quote! { if break ({}).await {} },
- quote! { (break)() },
- quote! { (..) = () },
- quote! { (..) += () },
- quote! { (1 < 2) == (3 < 4) },
- quote! { { (let _ = ()) } },
- quote! { (#[attr] thing).field },
- quote! { #[attr] (1 + 1) },
- quote! { #[attr] (x = 1) },
- quote! { #[attr] (x += 1) },
- quote! { #[attr] (1 as T) },
- quote! { (return #[attr] (x + ..)).field },
- quote! { (self.f)() },
- quote! { (return)..=return },
- quote! { 1 + (return)..=1 + return },
- quote! { .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. },
- ] {
- let original: Expr = syn::parse2(tokens).unwrap();
-
- let mut flat = original.clone();
- FlattenParens::combine_attrs().visit_expr_mut(&mut flat);
- let reconstructed: Expr = match syn::parse2(flat.to_token_stream()) {
- Ok(reconstructed) => reconstructed,
- Err(err) => panic!("failed to parse `{}`: {}", flat.to_token_stream(), err),
- };
-
- assert!(
- original == reconstructed,
- "original: {}\n{:#?}\nreconstructed: {}\n{:#?}",
- original.to_token_stream(),
- crate::debug::Lite(&original),
- reconstructed.to_token_stream(),
- crate::debug::Lite(&reconstructed),
- );
- }
-}
-
-#[test]
-fn test_permutations() -> ExitCode {
- fn iter(depth: usize, f: &mut dyn FnMut(Expr)) {
- let span = Span::call_site();
-
- // Expr::Path
- f(Expr::Path(ExprPath {
- // `x`
- attrs: Vec::new(),
- qself: None,
- path: Path::from(Ident::new("x", span)),
- }));
- if false {
- f(Expr::Path(ExprPath {
- // `x::<T>`
- attrs: Vec::new(),
- qself: None,
- path: Path {
- leading_colon: None,
- segments: Punctuated::from_iter([PathSegment {
- ident: Ident::new("x", span),
- arguments: PathArguments::AngleBracketed(AngleBracketedGenericArguments {
- colon2_token: Some(Token),
- lt_token: Token,
- args: Punctuated::from_iter([GenericArgument::Type(Type::Path(
- TypePath {
- qself: None,
- path: Path::from(Ident::new("T", span)),
- },
- ))]),
- gt_token: Token,
- }),
- }]),
- },
- }));
- f(Expr::Path(ExprPath {
- // `<T as Trait>::CONST`
- attrs: Vec::new(),
- qself: Some(QSelf {
- lt_token: Token,
- ty: Box::new(Type::Path(TypePath {
- qself: None,
- path: Path::from(Ident::new("T", span)),
- })),
- position: 1,
- as_token: Some(Token),
- gt_token: Token,
- }),
- path: Path {
- leading_colon: None,
- segments: Punctuated::from_iter([
- PathSegment::from(Ident::new("Trait", span)),
- PathSegment::from(Ident::new("CONST", span)),
- ]),
- },
- }));
- }
-
- let Some(depth) = depth.checked_sub(1) else {
- return;
- };
-
- // Expr::Assign
- iter(depth, &mut |expr| {
- iter(0, &mut |simple| {
- f(Expr::Assign(ExprAssign {
- // `x = $expr`
- attrs: Vec::new(),
- left: Box::new(simple.clone()),
- eq_token: Token,
- right: Box::new(expr.clone()),
- }));
- f(Expr::Assign(ExprAssign {
- // `$expr = x`
- attrs: Vec::new(),
- left: Box::new(expr.clone()),
- eq_token: Token,
- right: Box::new(simple),
- }));
- });
- });
-
- // Expr::Binary
- iter(depth, &mut |expr| {
- iter(0, &mut |simple| {
- for op in [
- BinOp::Add(Token),
- //BinOp::Sub(Token),
- //BinOp::Mul(Token),
- //BinOp::Div(Token),
- //BinOp::Rem(Token),
- //BinOp::And(Token),
- //BinOp::Or(Token),
- //BinOp::BitXor(Token),
- //BinOp::BitAnd(Token),
- //BinOp::BitOr(Token),
- //BinOp::Shl(Token),
- //BinOp::Shr(Token),
- //BinOp::Eq(Token),
- BinOp::Lt(Token),
- //BinOp::Le(Token),
- //BinOp::Ne(Token),
- //BinOp::Ge(Token),
- //BinOp::Gt(Token),
- BinOp::ShlAssign(Token),
- ] {
- f(Expr::Binary(ExprBinary {
- // `x + $expr`
- attrs: Vec::new(),
- left: Box::new(simple.clone()),
- op,
- right: Box::new(expr.clone()),
- }));
- f(Expr::Binary(ExprBinary {
- // `$expr + x`
- attrs: Vec::new(),
- left: Box::new(expr.clone()),
- op,
- right: Box::new(simple.clone()),
- }));
- }
- });
- });
-
- // Expr::Block
- f(Expr::Block(ExprBlock {
- // `{}`
- attrs: Vec::new(),
- label: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::Break
- f(Expr::Break(ExprBreak {
- // `break`
- attrs: Vec::new(),
- break_token: Token,
- label: None,
- expr: None,
- }));
- iter(depth, &mut |expr| {
- f(Expr::Break(ExprBreak {
- // `break $expr`
- attrs: Vec::new(),
- break_token: Token,
- label: None,
- expr: Some(Box::new(expr)),
- }));
- });
-
- // Expr::Call
- iter(depth, &mut |expr| {
- f(Expr::Call(ExprCall {
- // `$expr()`
- attrs: Vec::new(),
- func: Box::new(expr),
- paren_token: token::Paren(span),
- args: Punctuated::new(),
- }));
- });
-
- // Expr::Cast
- iter(depth, &mut |expr| {
- f(Expr::Cast(ExprCast {
- // `$expr as T`
- attrs: Vec::new(),
- expr: Box::new(expr),
- as_token: Token,
- ty: Box::new(Type::Path(TypePath {
- qself: None,
- path: Path::from(Ident::new("T", span)),
- })),
- }));
- });
-
- // Expr::Closure
- iter(depth, &mut |expr| {
- f(Expr::Closure(ExprClosure {
- // `|| $expr`
- attrs: Vec::new(),
- lifetimes: None,
- constness: None,
- movability: None,
- asyncness: None,
- capture: None,
- or1_token: Token,
- inputs: Punctuated::new(),
- or2_token: Token,
- output: ReturnType::Default,
- body: Box::new(expr),
- }));
- });
-
- // Expr::Field
- iter(depth, &mut |expr| {
- f(Expr::Field(ExprField {
- // `$expr.field`
- attrs: Vec::new(),
- base: Box::new(expr),
- dot_token: Token,
- member: Member::Named(Ident::new("field", span)),
- }));
- });
-
- // Expr::If
- iter(depth, &mut |expr| {
- f(Expr::If(ExprIf {
- // `if $expr {}`
- attrs: Vec::new(),
- if_token: Token,
- cond: Box::new(expr),
- then_branch: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- else_branch: None,
- }));
- });
-
- // Expr::Let
- iter(depth, &mut |expr| {
- f(Expr::Let(ExprLet {
- attrs: Vec::new(),
- let_token: Token,
- pat: Box::new(Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- })),
- eq_token: Token,
- expr: Box::new(expr),
- }));
- });
-
- // Expr::Range
- f(Expr::Range(ExprRange {
- // `..`
- attrs: Vec::new(),
- start: None,
- limits: RangeLimits::HalfOpen(Token),
- end: None,
- }));
- iter(depth, &mut |expr| {
- f(Expr::Range(ExprRange {
- // `..$expr`
- attrs: Vec::new(),
- start: None,
- limits: RangeLimits::HalfOpen(Token),
- end: Some(Box::new(expr.clone())),
- }));
- f(Expr::Range(ExprRange {
- // `$expr..`
- attrs: Vec::new(),
- start: Some(Box::new(expr)),
- limits: RangeLimits::HalfOpen(Token),
- end: None,
- }));
- });
-
- // Expr::Reference
- iter(depth, &mut |expr| {
- f(Expr::Reference(ExprReference {
- // `&$expr`
- attrs: Vec::new(),
- and_token: Token,
- mutability: None,
- expr: Box::new(expr),
- }));
- });
-
- // Expr::Return
- f(Expr::Return(ExprReturn {
- // `return`
- attrs: Vec::new(),
- return_token: Token,
- expr: None,
- }));
- iter(depth, &mut |expr| {
- f(Expr::Return(ExprReturn {
- // `return $expr`
- attrs: Vec::new(),
- return_token: Token,
- expr: Some(Box::new(expr)),
- }));
- });
-
- // Expr::Try
- iter(depth, &mut |expr| {
- f(Expr::Try(ExprTry {
- // `$expr?`
- attrs: Vec::new(),
- expr: Box::new(expr),
- question_token: Token,
- }));
- });
-
- // Expr::Unary
- iter(depth, &mut |expr| {
- for op in [
- UnOp::Deref(Token),
- //UnOp::Not(Token),
- //UnOp::Neg(Token),
- ] {
- f(Expr::Unary(ExprUnary {
- // `*$expr`
- attrs: Vec::new(),
- op,
- expr: Box::new(expr.clone()),
- }));
- }
- });
-
- if false {
- // Expr::Array
- f(Expr::Array(ExprArray {
- // `[]`
- attrs: Vec::new(),
- bracket_token: token::Bracket(span),
- elems: Punctuated::new(),
- }));
-
- // Expr::Async
- f(Expr::Async(ExprAsync {
- // `async {}`
- attrs: Vec::new(),
- async_token: Token,
- capture: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::Await
- iter(depth, &mut |expr| {
- f(Expr::Await(ExprAwait {
- // `$expr.await`
- attrs: Vec::new(),
- base: Box::new(expr),
- dot_token: Token,
- await_token: Token,
- }));
- });
-
- // Expr::Block
- f(Expr::Block(ExprBlock {
- // `'a: {}`
- attrs: Vec::new(),
- label: Some(Label {
- name: Lifetime::new("'a", span),
- colon_token: Token,
- }),
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- iter(depth, &mut |expr| {
- f(Expr::Block(ExprBlock {
- // `{ $expr }`
- attrs: Vec::new(),
- label: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::from([Stmt::Expr(expr.clone(), None)]),
- },
- }));
- f(Expr::Block(ExprBlock {
- // `{ $expr; }`
- attrs: Vec::new(),
- label: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::from([Stmt::Expr(expr, Some(Token))]),
- },
- }));
- });
-
- // Expr::Break
- f(Expr::Break(ExprBreak {
- // `break 'a`
- attrs: Vec::new(),
- break_token: Token,
- label: Some(Lifetime::new("'a", span)),
- expr: None,
- }));
- iter(depth, &mut |expr| {
- f(Expr::Break(ExprBreak {
- // `break 'a $expr`
- attrs: Vec::new(),
- break_token: Token,
- label: Some(Lifetime::new("'a", span)),
- expr: Some(Box::new(expr)),
- }));
- });
-
- // Expr::Closure
- f(Expr::Closure(ExprClosure {
- // `|| -> T {}`
- attrs: Vec::new(),
- lifetimes: None,
- constness: None,
- movability: None,
- asyncness: None,
- capture: None,
- or1_token: Token,
- inputs: Punctuated::new(),
- or2_token: Token,
- output: ReturnType::Type(
- Token,
- Box::new(Type::Path(TypePath {
- qself: None,
- path: Path::from(Ident::new("T", span)),
- })),
- ),
- body: Box::new(Expr::Block(ExprBlock {
- attrs: Vec::new(),
- label: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- })),
- }));
-
- // Expr::Const
- f(Expr::Const(ExprConst {
- // `const {}`
- attrs: Vec::new(),
- const_token: Token,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::Continue
- f(Expr::Continue(ExprContinue {
- // `continue`
- attrs: Vec::new(),
- continue_token: Token,
- label: None,
- }));
- f(Expr::Continue(ExprContinue {
- // `continue 'a`
- attrs: Vec::new(),
- continue_token: Token,
- label: Some(Lifetime::new("'a", span)),
- }));
-
- // Expr::ForLoop
- iter(depth, &mut |expr| {
- f(Expr::ForLoop(ExprForLoop {
- // `for _ in $expr {}`
- attrs: Vec::new(),
- label: None,
- for_token: Token,
- pat: Box::new(Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- })),
- in_token: Token,
- expr: Box::new(expr.clone()),
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- f(Expr::ForLoop(ExprForLoop {
- // `'a: for _ in $expr {}`
- attrs: Vec::new(),
- label: Some(Label {
- name: Lifetime::new("'a", span),
- colon_token: Token,
- }),
- for_token: Token,
- pat: Box::new(Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- })),
- in_token: Token,
- expr: Box::new(expr),
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- });
-
- // Expr::Index
- iter(depth, &mut |expr| {
- f(Expr::Index(ExprIndex {
- // `$expr[0]`
- attrs: Vec::new(),
- expr: Box::new(expr),
- bracket_token: token::Bracket(span),
- index: Box::new(Expr::Lit(ExprLit {
- attrs: Vec::new(),
- lit: Lit::Int(LitInt::new("0", span)),
- })),
- }));
- });
-
- // Expr::Loop
- f(Expr::Loop(ExprLoop {
- // `loop {}`
- attrs: Vec::new(),
- label: None,
- loop_token: Token,
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- f(Expr::Loop(ExprLoop {
- // `'a: loop {}`
- attrs: Vec::new(),
- label: Some(Label {
- name: Lifetime::new("'a", span),
- colon_token: Token,
- }),
- loop_token: Token,
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::Macro
- f(Expr::Macro(ExprMacro {
- // `m!()`
- attrs: Vec::new(),
- mac: Macro {
- path: Path::from(Ident::new("m", span)),
- bang_token: Token,
- delimiter: MacroDelimiter::Paren(token::Paren(span)),
- tokens: TokenStream::new(),
- },
- }));
- f(Expr::Macro(ExprMacro {
- // `m! {}`
- attrs: Vec::new(),
- mac: Macro {
- path: Path::from(Ident::new("m", span)),
- bang_token: Token,
- delimiter: MacroDelimiter::Brace(token::Brace(span)),
- tokens: TokenStream::new(),
- },
- }));
-
- // Expr::Match
- iter(depth, &mut |expr| {
- f(Expr::Match(ExprMatch {
- // `match $expr {}`
- attrs: Vec::new(),
- match_token: Token,
- expr: Box::new(expr.clone()),
- brace_token: token::Brace(span),
- arms: Vec::new(),
- }));
- f(Expr::Match(ExprMatch {
- // `match x { _ => $expr }`
- attrs: Vec::new(),
- match_token: Token,
- expr: Box::new(Expr::Path(ExprPath {
- attrs: Vec::new(),
- qself: None,
- path: Path::from(Ident::new("x", span)),
- })),
- brace_token: token::Brace(span),
- arms: Vec::from([Arm {
- attrs: Vec::new(),
- pat: Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- }),
- guard: None,
- fat_arrow_token: Token,
- body: Box::new(expr.clone()),
- comma: None,
- }]),
- }));
- f(Expr::Match(ExprMatch {
- // `match x { _ if $expr => {} }`
- attrs: Vec::new(),
- match_token: Token,
- expr: Box::new(Expr::Path(ExprPath {
- attrs: Vec::new(),
- qself: None,
- path: Path::from(Ident::new("x", span)),
- })),
- brace_token: token::Brace(span),
- arms: Vec::from([Arm {
- attrs: Vec::new(),
- pat: Pat::Wild(PatWild {
- attrs: Vec::new(),
- underscore_token: Token,
- }),
- guard: Some((Token, Box::new(expr))),
- fat_arrow_token: Token,
- body: Box::new(Expr::Block(ExprBlock {
- attrs: Vec::new(),
- label: None,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- })),
- comma: None,
- }]),
- }));
- });
-
- // Expr::MethodCall
- iter(depth, &mut |expr| {
- f(Expr::MethodCall(ExprMethodCall {
- // `$expr.method()`
- attrs: Vec::new(),
- receiver: Box::new(expr.clone()),
- dot_token: Token,
- method: Ident::new("method", span),
- turbofish: None,
- paren_token: token::Paren(span),
- args: Punctuated::new(),
- }));
- f(Expr::MethodCall(ExprMethodCall {
- // `$expr.method::<T>()`
- attrs: Vec::new(),
- receiver: Box::new(expr),
- dot_token: Token,
- method: Ident::new("method", span),
- turbofish: Some(AngleBracketedGenericArguments {
- colon2_token: Some(Token),
- lt_token: Token,
- args: Punctuated::from_iter([GenericArgument::Type(Type::Path(
- TypePath {
- qself: None,
- path: Path::from(Ident::new("T", span)),
- },
- ))]),
- gt_token: Token,
- }),
- paren_token: token::Paren(span),
- args: Punctuated::new(),
- }));
- });
-
- // Expr::RawAddr
- iter(depth, &mut |expr| {
- f(Expr::RawAddr(ExprRawAddr {
- // `&raw const $expr`
- attrs: Vec::new(),
- and_token: Token,
- raw: Token,
- mutability: PointerMutability::Const(Token),
- expr: Box::new(expr),
- }));
- });
-
- // Expr::Struct
- f(Expr::Struct(ExprStruct {
- // `Struct {}`
- attrs: Vec::new(),
- qself: None,
- path: Path::from(Ident::new("Struct", span)),
- brace_token: token::Brace(span),
- fields: Punctuated::new(),
- dot2_token: None,
- rest: None,
- }));
-
- // Expr::TryBlock
- f(Expr::TryBlock(ExprTryBlock {
- // `try {}`
- attrs: Vec::new(),
- try_token: Token,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::Unsafe
- f(Expr::Unsafe(ExprUnsafe {
- // `unsafe {}`
- attrs: Vec::new(),
- unsafe_token: Token,
- block: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
-
- // Expr::While
- iter(depth, &mut |expr| {
- f(Expr::While(ExprWhile {
- // `while $expr {}`
- attrs: Vec::new(),
- label: None,
- while_token: Token,
- cond: Box::new(expr.clone()),
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- f(Expr::While(ExprWhile {
- // `'a: while $expr {}`
- attrs: Vec::new(),
- label: Some(Label {
- name: Lifetime::new("'a", span),
- colon_token: Token,
- }),
- while_token: Token,
- cond: Box::new(expr),
- body: Block {
- brace_token: token::Brace(span),
- stmts: Vec::new(),
- },
- }));
- });
-
- // Expr::Yield
- f(Expr::Yield(ExprYield {
- // `yield`
- attrs: Vec::new(),
- yield_token: Token,
- expr: None,
- }));
- iter(depth, &mut |expr| {
- f(Expr::Yield(ExprYield {
- // `yield $expr`
- attrs: Vec::new(),
- yield_token: Token,
- expr: Some(Box::new(expr)),
- }));
- });
- }
- }
-
- let mut failures = 0;
- macro_rules! fail {
- ($($message:tt)*) => {{
- eprintln!($($message)*);
- failures += 1;
- return;
- }};
- }
- let mut assert = |mut original: Expr| {
- let tokens = original.to_token_stream();
- let Ok(mut parsed) = syn::parse2::<Expr>(tokens.clone()) else {
- fail!(
- "failed to parse: {}\n{:#?}",
- tokens,
- crate::debug::Lite(&original),
- );
- };
- AsIfPrinted.visit_expr_mut(&mut original);
- FlattenParens::combine_attrs().visit_expr_mut(&mut parsed);
- if original != parsed {
- fail!(
- "before: {}\n{:#?}\nafter: {}\n{:#?}",
- tokens,
- crate::debug::Lite(&original),
- parsed.to_token_stream(),
- crate::debug::Lite(&parsed),
- );
- }
- let mut tokens_no_paren = tokens.clone();
- FlattenParens::visit_token_stream_mut(&mut tokens_no_paren);
- if tokens.to_string() != tokens_no_paren.to_string() {
- if let Ok(mut parsed2) = syn::parse2::<Expr>(tokens_no_paren) {
- FlattenParens::combine_attrs().visit_expr_mut(&mut parsed2);
- if original == parsed2 {
- fail!("redundant parens: {}", tokens);
- }
- }
- }
- };
-
- iter(4, &mut assert);
- if failures > 0 {
- eprintln!("FAILURES: {failures}");
- ExitCode::FAILURE
- } else {
- ExitCode::SUCCESS
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_generics.rs b/deps/crates/vendor/syn-v2/tests/test_generics.rs
deleted file mode 100644
index 61bc8dea1ce..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_generics.rs
+++ /dev/null
@@ -1,356 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::manual_let_else,
- clippy::needless_lifetimes,
- clippy::too_many_lines,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use quote::quote;
-use syn::{
- parse_quote, DeriveInput, GenericParam, Generics, ItemFn, Lifetime, LifetimeParam,
- TypeParamBound, WhereClause, WherePredicate,
-};
-
-#[test]
-fn test_split_for_impl() {
- let input = quote! {
- struct S<'a, 'b: 'a, #[may_dangle] T: 'a = ()> where T: Debug;
- };
-
- snapshot!(input as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics {
- lt_token: Some,
- params: [
- GenericParam::Lifetime(LifetimeParam {
- lifetime: Lifetime {
- ident: "a",
- },
- }),
- Token![,],
- GenericParam::Lifetime(LifetimeParam {
- lifetime: Lifetime {
- ident: "b",
- },
- colon_token: Some,
- bounds: [
- Lifetime {
- ident: "a",
- },
- ],
- }),
- Token![,],
- GenericParam::Type(TypeParam {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "may_dangle",
- },
- ],
- },
- },
- ],
- ident: "T",
- colon_token: Some,
- bounds: [
- TypeParamBound::Lifetime {
- ident: "a",
- },
- ],
- eq_token: Some,
- default: Some(Type::Tuple),
- }),
- ],
- gt_token: Some,
- where_clause: Some(WhereClause {
- predicates: [
- WherePredicate::Type(PredicateType {
- bounded_ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- },
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Debug",
- },
- ],
- },
- }),
- ],
- }),
- ],
- }),
- },
- data: Data::Struct {
- fields: Fields::Unit,
- semi_token: Some,
- },
- }
- "#);
-
- let generics = input.generics;
- let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
-
- let generated = quote! {
- impl #impl_generics MyTrait for Test #ty_generics #where_clause {}
- };
- let expected = quote! {
- impl<'a, 'b: 'a, #[may_dangle] T: 'a> MyTrait
- for Test<'a, 'b, T>
- where
- T: Debug
- {}
- };
- assert_eq!(generated.to_string(), expected.to_string());
-
- let turbofish = ty_generics.as_turbofish();
- let generated = quote! {
- Test #turbofish
- };
- let expected = quote! {
- Test::<'a, 'b, T>
- };
- assert_eq!(generated.to_string(), expected.to_string());
-}
-
-#[test]
-fn test_type_param_bound() {
- let tokens = quote!('a);
- snapshot!(tokens as TypeParamBound, @r#"
- TypeParamBound::Lifetime {
- ident: "a",
- }
- "#);
-
- let tokens = quote!('_);
- snapshot!(tokens as TypeParamBound, @r#"
- TypeParamBound::Lifetime {
- ident: "_",
- }
- "#);
-
- let tokens = quote!(Debug);
- snapshot!(tokens as TypeParamBound, @r#"
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Debug",
- },
- ],
- },
- })
- "#);
-
- let tokens = quote!(?Sized);
- snapshot!(tokens as TypeParamBound, @r#"
- TypeParamBound::Trait(TraitBound {
- modifier: TraitBoundModifier::Maybe,
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- })
- "#);
-
- let tokens = quote!(for<'a> Trait);
- snapshot!(tokens as TypeParamBound, @r#"
- TypeParamBound::Trait(TraitBound {
- lifetimes: Some(BoundLifetimes {
- lifetimes: [
- GenericParam::Lifetime(LifetimeParam {
- lifetime: Lifetime {
- ident: "a",
- },
- }),
- ],
- }),
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- })
- "#);
-
- let tokens = quote!(for<> ?Trait);
- let err = syn::parse2::<TypeParamBound>(tokens).unwrap_err();
- assert_eq!(
- "`for<...>` binder not allowed with `?` trait polarity modifier",
- err.to_string(),
- );
-
- let tokens = quote!(?for<> Trait);
- let err = syn::parse2::<TypeParamBound>(tokens).unwrap_err();
- assert_eq!(
- "`for<...>` binder not allowed with `?` trait polarity modifier",
- err.to_string(),
- );
-}
-
-#[test]
-fn test_fn_precedence_in_where_clause() {
- // This should parse as two separate bounds, `FnOnce() -> i32` and `Send` - not
- // `FnOnce() -> (i32 + Send)`.
- let input = quote! {
- fn f<G>()
- where
- G: FnOnce() -> i32 + Send,
- {
- }
- };
-
- snapshot!(input as ItemFn, @r#"
- ItemFn {
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "f",
- generics: Generics {
- lt_token: Some,
- params: [
- GenericParam::Type(TypeParam {
- ident: "G",
- }),
- ],
- gt_token: Some,
- where_clause: Some(WhereClause {
- predicates: [
- WherePredicate::Type(PredicateType {
- bounded_ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "G",
- },
- ],
- },
- },
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "FnOnce",
- arguments: PathArguments::Parenthesized {
- output: ReturnType::Type(
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "i32",
- },
- ],
- },
- },
- ),
- },
- },
- ],
- },
- }),
- Token![+],
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Send",
- },
- ],
- },
- }),
- ],
- }),
- Token![,],
- ],
- }),
- },
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- }
- "#);
-
- let where_clause = input.sig.generics.where_clause.as_ref().unwrap();
- assert_eq!(where_clause.predicates.len(), 1);
-
- let predicate = match &where_clause.predicates[0] {
- WherePredicate::Type(pred) => pred,
- _ => panic!("wrong predicate kind"),
- };
-
- assert_eq!(predicate.bounds.len(), 2, "{:#?}", predicate.bounds);
-
- let first_bound = &predicate.bounds[0];
- assert_eq!(quote!(#first_bound).to_string(), "FnOnce () -> i32");
-
- let second_bound = &predicate.bounds[1];
- assert_eq!(quote!(#second_bound).to_string(), "Send");
-}
-
-#[test]
-fn test_where_clause_at_end_of_input() {
- let input = quote! {
- where
- };
-
- snapshot!(input as WhereClause, @"WhereClause");
-
- assert_eq!(input.predicates.len(), 0);
-}
-
-// Regression test for https://github.com/dtolnay/syn/issues/1718
-#[test]
-#[allow(clippy::map_unwrap_or)]
-fn no_opaque_drop() {
- let mut generics = Generics::default();
-
- let _ = generics
- .lifetimes()
- .next()
- .map(|param| param.lifetime.clone())
- .unwrap_or_else(|| {
- let lifetime: Lifetime = parse_quote!('a);
- generics.params.insert(
- 0,
- GenericParam::Lifetime(LifetimeParam::new(lifetime.clone())),
- );
- lifetime
- });
-}
-
-#[test]
-fn type_param_with_colon_and_no_bounds() {
- let tokens = quote!(T:);
- snapshot!(tokens as GenericParam, @r#"
- GenericParam::Type(TypeParam {
- ident: "T",
- colon_token: Some,
- })
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_grouping.rs b/deps/crates/vendor/syn-v2/tests/test_grouping.rs
deleted file mode 100644
index b466c7e7217..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_grouping.rs
+++ /dev/null
@@ -1,59 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree};
-use syn::Expr;
-
-#[test]
-fn test_grouping() {
- let tokens: TokenStream = TokenStream::from_iter([
- TokenTree::Literal(Literal::i32_suffixed(1)),
- TokenTree::Punct(Punct::new('+', Spacing::Alone)),
- TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([
- TokenTree::Literal(Literal::i32_suffixed(2)),
- TokenTree::Punct(Punct::new('+', Spacing::Alone)),
- TokenTree::Literal(Literal::i32_suffixed(3)),
- ]),
- )),
- TokenTree::Punct(Punct::new('*', Spacing::Alone)),
- TokenTree::Literal(Literal::i32_suffixed(4)),
- ]);
-
- assert_eq!(tokens.to_string(), "1i32 + 2i32 + 3i32 * 4i32");
-
- snapshot!(tokens as Expr, @r#"
- Expr::Binary {
- left: Expr::Lit {
- lit: 1i32,
- },
- op: BinOp::Add,
- right: Expr::Binary {
- left: Expr::Group {
- expr: Expr::Binary {
- left: Expr::Lit {
- lit: 2i32,
- },
- op: BinOp::Add,
- right: Expr::Lit {
- lit: 3i32,
- },
- },
- },
- op: BinOp::Mul,
- right: Expr::Lit {
- lit: 4i32,
- },
- },
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_ident.rs b/deps/crates/vendor/syn-v2/tests/test_ident.rs
deleted file mode 100644
index 10df0ad56c2..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_ident.rs
+++ /dev/null
@@ -1,87 +0,0 @@
-use proc_macro2::{Ident, Span, TokenStream};
-use std::str::FromStr;
-use syn::Result;
-
-#[track_caller]
-fn parse(s: &str) -> Result<Ident> {
- syn::parse2(TokenStream::from_str(s).unwrap())
-}
-
-#[track_caller]
-fn new(s: &str) -> Ident {
- Ident::new(s, Span::call_site())
-}
-
-#[test]
-fn ident_parse() {
- parse("String").unwrap();
-}
-
-#[test]
-fn ident_parse_keyword() {
- parse("abstract").unwrap_err();
-}
-
-#[test]
-fn ident_parse_empty() {
- parse("").unwrap_err();
-}
-
-#[test]
-fn ident_parse_lifetime() {
- parse("'static").unwrap_err();
-}
-
-#[test]
-fn ident_parse_underscore() {
- parse("_").unwrap_err();
-}
-
-#[test]
-fn ident_parse_number() {
- parse("255").unwrap_err();
-}
-
-#[test]
-fn ident_parse_invalid() {
- parse("a#").unwrap_err();
-}
-
-#[test]
-fn ident_new() {
- new("String");
-}
-
-#[test]
-fn ident_new_keyword() {
- new("abstract");
-}
-
-#[test]
-#[should_panic(expected = "use Option<Ident>")]
-fn ident_new_empty() {
- new("");
-}
-
-#[test]
-#[should_panic(expected = "not a valid Ident")]
-fn ident_new_lifetime() {
- new("'static");
-}
-
-#[test]
-fn ident_new_underscore() {
- new("_");
-}
-
-#[test]
-#[should_panic(expected = "use Literal instead")]
-fn ident_new_number() {
- new("255");
-}
-
-#[test]
-#[should_panic(expected = "\"a#\" is not a valid Ident")]
-fn ident_new_invalid() {
- new("a#");
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_item.rs b/deps/crates/vendor/syn-v2/tests/test_item.rs
deleted file mode 100644
index cb63ad4c69f..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_item.rs
+++ /dev/null
@@ -1,371 +0,0 @@
-#![recursion_limit = "256"]
-#![feature(negative_impls)]
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree};
-use quote::quote;
-use syn::{Item, ItemTrait};
-
-#[test]
-fn test_macro_variable_attr() {
- // mimics the token stream corresponding to `$attr fn f() {}`
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { #[test] })),
- TokenTree::Ident(Ident::new("fn", Span::call_site())),
- TokenTree::Ident(Ident::new("f", Span::call_site())),
- TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())),
- TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())),
- ]);
-
- snapshot!(tokens as Item, @r#"
- Item::Fn {
- attrs: [
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "test",
- },
- ],
- },
- },
- ],
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "f",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- }
- "#);
-}
-
-#[test]
-fn test_negative_impl() {
- #[cfg(any())]
- impl ! {}
- let tokens = quote! {
- impl ! {}
- };
- snapshot!(tokens as Item, @r#"
- Item::Impl {
- generics: Generics,
- self_ty: Type::Never,
- }
- "#);
-
- let tokens = quote! {
- impl !Trait {}
- };
- let err = syn::parse2::<Item>(tokens).unwrap_err();
- assert_eq!(err.to_string(), "inherent impls cannot be negative");
-
- #[cfg(any())]
- impl !Trait for T {}
- let tokens = quote! {
- impl !Trait for T {}
- };
- snapshot!(tokens as Item, @r#"
- Item::Impl {
- generics: Generics,
- trait_: Some((
- Some,
- Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- )),
- self_ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_macro_variable_impl() {
- // mimics the token stream corresponding to `impl $trait for $ty {}`
- let tokens = TokenStream::from_iter([
- TokenTree::Ident(Ident::new("impl", Span::call_site())),
- TokenTree::Group(Group::new(Delimiter::None, quote!(Trait))),
- TokenTree::Ident(Ident::new("for", Span::call_site())),
- TokenTree::Group(Group::new(Delimiter::None, quote!(Type))),
- TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())),
- ]);
-
- snapshot!(tokens as Item, @r#"
- Item::Impl {
- generics: Generics,
- trait_: Some((
- None,
- Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- )),
- self_ty: Type::Group {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Type",
- },
- ],
- },
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_supertraits() {
- // Rustc parses all of the following.
-
- #[rustfmt::skip]
- let tokens = quote!(trait Trait where {});
- snapshot!(tokens as ItemTrait, @r#"
- ItemTrait {
- vis: Visibility::Inherited,
- ident: "Trait",
- generics: Generics {
- where_clause: Some(WhereClause),
- },
- }
- "#);
-
- #[rustfmt::skip]
- let tokens = quote!(trait Trait: where {});
- snapshot!(tokens as ItemTrait, @r#"
- ItemTrait {
- vis: Visibility::Inherited,
- ident: "Trait",
- generics: Generics {
- where_clause: Some(WhereClause),
- },
- colon_token: Some,
- }
- "#);
-
- #[rustfmt::skip]
- let tokens = quote!(trait Trait: Sized where {});
- snapshot!(tokens as ItemTrait, @r#"
- ItemTrait {
- vis: Visibility::Inherited,
- ident: "Trait",
- generics: Generics {
- where_clause: Some(WhereClause),
- },
- colon_token: Some,
- supertraits: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- }),
- ],
- }
- "#);
-
- #[rustfmt::skip]
- let tokens = quote!(trait Trait: Sized + where {});
- snapshot!(tokens as ItemTrait, @r#"
- ItemTrait {
- vis: Visibility::Inherited,
- ident: "Trait",
- generics: Generics {
- where_clause: Some(WhereClause),
- },
- colon_token: Some,
- supertraits: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- }),
- Token![+],
- ],
- }
- "#);
-}
-
-#[test]
-fn test_type_empty_bounds() {
- #[rustfmt::skip]
- let tokens = quote! {
- trait Foo {
- type Bar: ;
- }
- };
-
- snapshot!(tokens as ItemTrait, @r#"
- ItemTrait {
- vis: Visibility::Inherited,
- ident: "Foo",
- generics: Generics,
- items: [
- TraitItem::Type {
- ident: "Bar",
- generics: Generics,
- colon_token: Some,
- },
- ],
- }
- "#);
-}
-
-#[test]
-fn test_impl_visibility() {
- let tokens = quote! {
- pub default unsafe impl union {}
- };
-
- snapshot!(tokens as Item, @"Item::Verbatim(`pub default unsafe impl union { }`)");
-}
-
-#[test]
-fn test_impl_type_parameter_defaults() {
- #[cfg(any())]
- impl<T = ()> () {}
- let tokens = quote! {
- impl<T = ()> () {}
- };
- snapshot!(tokens as Item, @r#"
- Item::Impl {
- generics: Generics {
- lt_token: Some,
- params: [
- GenericParam::Type(TypeParam {
- ident: "T",
- eq_token: Some,
- default: Some(Type::Tuple),
- }),
- ],
- gt_token: Some,
- },
- self_ty: Type::Tuple,
- }
- "#);
-}
-
-#[test]
-fn test_impl_trait_trailing_plus() {
- let tokens = quote! {
- fn f() -> impl Sized + {}
- };
-
- snapshot!(tokens as Item, @r#"
- Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "f",
- generics: Generics,
- output: ReturnType::Type(
- Type::ImplTrait {
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- }),
- Token![+],
- ],
- },
- ),
- },
- block: Block {
- stmts: [],
- },
- }
- "#);
-}
-
-// Regression test for issue https://github.com/dtolnay/syn/issues/1967
-#[test]
-fn test_nested_receiver_classification() {
- let tokens = quote! {
- fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- self: foo<{ fn foo(
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- )}>
- ) {}
- };
-
- let _ = syn::parse2::<syn::File>(tokens);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_lit.rs b/deps/crates/vendor/syn-v2/tests/test_lit.rs
deleted file mode 100644
index f2367b44165..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_lit.rs
+++ /dev/null
@@ -1,335 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::float_cmp,
- clippy::needless_lifetimes,
- clippy::needless_raw_string_hashes,
- clippy::non_ascii_literal,
- clippy::single_match_else,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Literal, Span, TokenStream, TokenTree};
-use quote::ToTokens;
-use std::ffi::CStr;
-use std::str::FromStr;
-use syn::{Lit, LitFloat, LitInt, LitStr};
-
-#[track_caller]
-fn lit(s: &str) -> Lit {
- let mut tokens = TokenStream::from_str(s).unwrap().into_iter();
- match tokens.next().unwrap() {
- TokenTree::Literal(lit) => {
- assert!(tokens.next().is_none());
- Lit::new(lit)
- }
- wrong => panic!("{:?}", wrong),
- }
-}
-
-#[test]
-fn strings() {
- #[track_caller]
- fn test_string(s: &str, value: &str) {
- let s = s.trim();
- match lit(s) {
- Lit::Str(lit) => {
- assert_eq!(lit.value(), value);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_string(&again, value);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_string(r#" "" "#, "");
- test_string(r#" "a" "#, "a");
- test_string(r#" "\n" "#, "\n");
- test_string(r#" "\r" "#, "\r");
- test_string(r#" "\t" "#, "\t");
- test_string(r#" "🐕" "#, "🐕"); // NOTE: This is an emoji
- test_string(r#" "\"" "#, "\"");
- test_string(r#" "'" "#, "'");
- test_string(r#" "\u{1F415}" "#, "\u{1F415}");
- test_string(r#" "\u{1_2__3_}" "#, "\u{123}");
- test_string(
- "\"contains\nnewlines\\\nescaped newlines\"",
- "contains\nnewlinesescaped newlines",
- );
- test_string(
- "\"escaped newline\\\n \x0C unsupported whitespace\"",
- "escaped newline\x0C unsupported whitespace",
- );
- test_string("r\"raw\nstring\\\nhere\"", "raw\nstring\\\nhere");
- test_string("\"...\"q", "...");
- test_string("r\"...\"q", "...");
- test_string("r##\"...\"##q", "...");
-}
-
-#[test]
-fn byte_strings() {
- #[track_caller]
- fn test_byte_string(s: &str, value: &[u8]) {
- let s = s.trim();
- match lit(s) {
- Lit::ByteStr(lit) => {
- assert_eq!(lit.value(), value);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_byte_string(&again, value);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_byte_string(r#" b"" "#, b"");
- test_byte_string(r#" b"a" "#, b"a");
- test_byte_string(r#" b"\n" "#, b"\n");
- test_byte_string(r#" b"\r" "#, b"\r");
- test_byte_string(r#" b"\t" "#, b"\t");
- test_byte_string(r#" b"\"" "#, b"\"");
- test_byte_string(r#" b"'" "#, b"'");
- test_byte_string(
- "b\"contains\nnewlines\\\nescaped newlines\"",
- b"contains\nnewlinesescaped newlines",
- );
- test_byte_string("br\"raw\nstring\\\nhere\"", b"raw\nstring\\\nhere");
- test_byte_string("b\"...\"q", b"...");
- test_byte_string("br\"...\"q", b"...");
- test_byte_string("br##\"...\"##q", b"...");
-}
-
-#[test]
-fn c_strings() {
- #[track_caller]
- fn test_c_string(s: &str, value: &CStr) {
- let s = s.trim();
- match lit(s) {
- Lit::CStr(lit) => {
- assert_eq!(*lit.value(), *value);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_c_string(&again, value);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_c_string(r#" c"" "#, c"");
- test_c_string(r#" c"a" "#, c"a");
- test_c_string(r#" c"\n" "#, c"\n");
- test_c_string(r#" c"\r" "#, c"\r");
- test_c_string(r#" c"\t" "#, c"\t");
- test_c_string(r#" c"\\" "#, c"\\");
- test_c_string(r#" c"\'" "#, c"'");
- test_c_string(r#" c"\"" "#, c"\"");
- test_c_string(
- "c\"contains\nnewlines\\\nescaped newlines\"",
- c"contains\nnewlinesescaped newlines",
- );
- test_c_string("cr\"raw\nstring\\\nhere\"", c"raw\nstring\\\nhere");
- test_c_string("c\"...\"q", c"...");
- test_c_string("cr\"...\"", c"...");
- test_c_string("cr##\"...\"##", c"...");
- test_c_string(
- r#" c"hello\x80我叫\u{1F980}" "#, // from the RFC
- c"hello\x80我叫\u{1F980}",
- );
-}
-
-#[test]
-fn bytes() {
- #[track_caller]
- fn test_byte(s: &str, value: u8) {
- let s = s.trim();
- match lit(s) {
- Lit::Byte(lit) => {
- assert_eq!(lit.value(), value);
- let again = lit.into_token_stream().to_string();
- assert_eq!(again, s);
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_byte(r#" b'a' "#, b'a');
- test_byte(r#" b'\n' "#, b'\n');
- test_byte(r#" b'\r' "#, b'\r');
- test_byte(r#" b'\t' "#, b'\t');
- test_byte(r#" b'\'' "#, b'\'');
- test_byte(r#" b'"' "#, b'"');
- test_byte(r#" b'a'q "#, b'a');
-}
-
-#[test]
-fn chars() {
- #[track_caller]
- fn test_char(s: &str, value: char) {
- let s = s.trim();
- match lit(s) {
- Lit::Char(lit) => {
- assert_eq!(lit.value(), value);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_char(&again, value);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_char(r#" 'a' "#, 'a');
- test_char(r#" '\n' "#, '\n');
- test_char(r#" '\r' "#, '\r');
- test_char(r#" '\t' "#, '\t');
- test_char(r#" '🐕' "#, '🐕'); // NOTE: This is an emoji
- test_char(r#" '\'' "#, '\'');
- test_char(r#" '"' "#, '"');
- test_char(r#" '\u{1F415}' "#, '\u{1F415}');
- test_char(r#" 'a'q "#, 'a');
-}
-
-#[test]
-fn ints() {
- #[track_caller]
- fn test_int(s: &str, value: u64, suffix: &str) {
- match lit(s) {
- Lit::Int(lit) => {
- assert_eq!(lit.base10_digits().parse::<u64>().unwrap(), value);
- assert_eq!(lit.suffix(), suffix);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_int(&again, value, suffix);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_int("5", 5, "");
- test_int("5u32", 5, "u32");
- test_int("0E", 0, "E");
- test_int("0ECMA", 0, "ECMA");
- test_int("0o0A", 0, "A");
- test_int("5_0", 50, "");
- test_int("5_____0_____", 50, "");
- test_int("0x7f", 127, "");
- test_int("0x7F", 127, "");
- test_int("0b1001", 9, "");
- test_int("0o73", 59, "");
- test_int("0x7Fu8", 127, "u8");
- test_int("0b1001i8", 9, "i8");
- test_int("0o73u32", 59, "u32");
- test_int("0x__7___f_", 127, "");
- test_int("0x__7___F_", 127, "");
- test_int("0b_1_0__01", 9, "");
- test_int("0o_7__3", 59, "");
- test_int("0x_7F__u8", 127, "u8");
- test_int("0b__10__0_1i8", 9, "i8");
- test_int("0o__7__________________3u32", 59, "u32");
- test_int("0e1\u{5c5}", 0, "e1\u{5c5}");
-}
-
-#[test]
-fn floats() {
- #[track_caller]
- fn test_float(s: &str, value: f64, suffix: &str) {
- match lit(s) {
- Lit::Float(lit) => {
- assert_eq!(lit.base10_digits().parse::<f64>().unwrap(), value);
- assert_eq!(lit.suffix(), suffix);
- let again = lit.into_token_stream().to_string();
- if again != s {
- test_float(&again, value, suffix);
- }
- }
- wrong => panic!("{:?}", wrong),
- }
- }
-
- test_float("5.5", 5.5, "");
- test_float("5.5E12", 5.5e12, "");
- test_float("5.5e12", 5.5e12, "");
- test_float("1.0__3e-12", 1.03e-12, "");
- test_float("1.03e+12", 1.03e12, "");
- test_float("9e99e99", 9e99, "e99");
- test_float("1e_0", 1.0, "");
- test_float("0.0ECMA", 0.0, "ECMA");
-}
-
-#[test]
-fn negative() {
- let span = Span::call_site();
- assert_eq!("-1", LitInt::new("-1", span).to_string());
- assert_eq!("-1i8", LitInt::new("-1i8", span).to_string());
- assert_eq!("-1i16", LitInt::new("-1i16", span).to_string());
- assert_eq!("-1i32", LitInt::new("-1i32", span).to_string());
- assert_eq!("-1i64", LitInt::new("-1i64", span).to_string());
- assert_eq!("-1.5", LitFloat::new("-1.5", span).to_string());
- assert_eq!("-1.5f32", LitFloat::new("-1.5f32", span).to_string());
- assert_eq!("-1.5f64", LitFloat::new("-1.5f64", span).to_string());
-}
-
-#[test]
-fn suffix() {
- #[track_caller]
- fn get_suffix(token: &str) -> String {
- let lit = syn::parse_str::<Lit>(token).unwrap();
- match lit {
- Lit::Str(lit) => lit.suffix().to_owned(),
- Lit::ByteStr(lit) => lit.suffix().to_owned(),
- Lit::CStr(lit) => lit.suffix().to_owned(),
- Lit::Byte(lit) => lit.suffix().to_owned(),
- Lit::Char(lit) => lit.suffix().to_owned(),
- Lit::Int(lit) => lit.suffix().to_owned(),
- Lit::Float(lit) => lit.suffix().to_owned(),
- _ => unimplemented!(),
- }
- }
-
- assert_eq!(get_suffix("\"\"s"), "s");
- assert_eq!(get_suffix("r\"\"r"), "r");
- assert_eq!(get_suffix("r#\"\"#r"), "r");
- assert_eq!(get_suffix("b\"\"b"), "b");
- assert_eq!(get_suffix("br\"\"br"), "br");
- assert_eq!(get_suffix("br#\"\"#br"), "br");
- assert_eq!(get_suffix("c\"\"c"), "c");
- assert_eq!(get_suffix("cr\"\"cr"), "cr");
- assert_eq!(get_suffix("cr#\"\"#cr"), "cr");
- assert_eq!(get_suffix("'c'c"), "c");
- assert_eq!(get_suffix("b'b'b"), "b");
- assert_eq!(get_suffix("1i32"), "i32");
- assert_eq!(get_suffix("1_i32"), "i32");
- assert_eq!(get_suffix("1.0f32"), "f32");
- assert_eq!(get_suffix("1.0_f32"), "f32");
-}
-
-#[test]
-fn test_deep_group_empty() {
- let tokens = TokenStream::from_iter([TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([TokenTree::Literal(Literal::string("hi"))]),
- ))]),
- ))]);
-
- snapshot!(tokens as Lit, @r#""hi""# );
-}
-
-#[test]
-fn test_error() {
- let err = syn::parse_str::<LitStr>("...").unwrap_err();
- assert_eq!("expected string literal", err.to_string());
-
- let err = syn::parse_str::<LitStr>("5").unwrap_err();
- assert_eq!("expected string literal", err.to_string());
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_meta.rs b/deps/crates/vendor/syn-v2/tests/test_meta.rs
deleted file mode 100644
index 4e1f9caf38e..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_meta.rs
+++ /dev/null
@@ -1,180 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::shadow_unrelated,
- clippy::too_many_lines,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use quote::quote;
-use syn::parse::{ParseStream, Parser as _, Result};
-use syn::{Meta, MetaList, MetaNameValue, Token};
-
-#[test]
-fn test_parse_meta_item_word() {
- let input = "hello";
-
- snapshot!(input as Meta, @r#"
- Meta::Path {
- segments: [
- PathSegment {
- ident: "hello",
- },
- ],
- }
- "#);
-}
-
-#[test]
-fn test_parse_meta_name_value() {
- let input = "foo = 5";
- let (inner, meta) = (input, input);
-
- snapshot!(inner as MetaNameValue, @r#"
- MetaNameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- value: Expr::Lit {
- lit: 5,
- },
- }
- "#);
-
- snapshot!(meta as Meta, @r#"
- Meta::NameValue {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- value: Expr::Lit {
- lit: 5,
- },
- }
- "#);
-
- assert_eq!(meta, Meta::NameValue(inner));
-}
-
-#[test]
-fn test_parse_meta_item_list_lit() {
- let input = "foo(5)";
- let (inner, meta) = (input, input);
-
- snapshot!(inner as MetaList, @r#"
- MetaList {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`5`),
- }
- "#);
-
- snapshot!(meta as Meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`5`),
- }
- "#);
-
- assert_eq!(meta, Meta::List(inner));
-}
-
-#[test]
-fn test_parse_meta_item_multiple() {
- let input = "foo(word, name = 5, list(name2 = 6), word2)";
- let (inner, meta) = (input, input);
-
- snapshot!(inner as MetaList, @r#"
- MetaList {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`),
- }
- "#);
-
- snapshot!(meta as Meta, @r#"
- Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "foo",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`word , name = 5 , list (name2 = 6) , word2`),
- }
- "#);
-
- assert_eq!(meta, Meta::List(inner));
-}
-
-#[test]
-fn test_parse_path() {
- let input = "::serde::Serialize";
- snapshot!(input as Meta, @r#"
- Meta::Path {
- leading_colon: Some,
- segments: [
- PathSegment {
- ident: "serde",
- },
- Token![::],
- PathSegment {
- ident: "Serialize",
- },
- ],
- }
- "#);
-}
-
-#[test]
-fn test_fat_arrow_after_meta() {
- fn parse(input: ParseStream) -> Result<()> {
- while !input.is_empty() {
- let _: Meta = input.parse()?;
- let _: Token![=>] = input.parse()?;
- let brace;
- syn::braced!(brace in input);
- }
- Ok(())
- }
-
- let input = quote! {
- target_os = "linux" => {}
- windows => {}
- };
-
- parse.parse2(input).unwrap();
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_parse_buffer.rs b/deps/crates/vendor/syn-v2/tests/test_parse_buffer.rs
deleted file mode 100644
index f756578b93a..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_parse_buffer.rs
+++ /dev/null
@@ -1,104 +0,0 @@
-#![allow(clippy::non_ascii_literal)]
-
-use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, TokenStream, TokenTree};
-use std::panic;
-use syn::parse::discouraged::Speculative as _;
-use syn::parse::{Parse, ParseStream, Parser, Result};
-use syn::{parenthesized, Token};
-
-#[test]
-#[should_panic(expected = "fork was not derived from the advancing parse stream")]
-fn smuggled_speculative_cursor_between_sources() {
- struct BreakRules;
- impl Parse for BreakRules {
- fn parse(input1: ParseStream) -> Result<Self> {
- let nested = |input2: ParseStream| {
- input1.advance_to(input2);
- Ok(Self)
- };
- nested.parse_str("")
- }
- }
-
- syn::parse_str::<BreakRules>("").unwrap();
-}
-
-#[test]
-#[should_panic(expected = "fork was not derived from the advancing parse stream")]
-fn smuggled_speculative_cursor_between_brackets() {
- struct BreakRules;
- impl Parse for BreakRules {
- fn parse(input: ParseStream) -> Result<Self> {
- let a;
- let b;
- parenthesized!(a in input);
- parenthesized!(b in input);
- a.advance_to(&b);
- Ok(Self)
- }
- }
-
- syn::parse_str::<BreakRules>("()()").unwrap();
-}
-
-#[test]
-#[should_panic(expected = "fork was not derived from the advancing parse stream")]
-fn smuggled_speculative_cursor_into_brackets() {
- struct BreakRules;
- impl Parse for BreakRules {
- fn parse(input: ParseStream) -> Result<Self> {
- let a;
- parenthesized!(a in input);
- input.advance_to(&a);
- Ok(Self)
- }
- }
-
- syn::parse_str::<BreakRules>("()").unwrap();
-}
-
-#[test]
-fn trailing_empty_none_group() {
- fn parse(input: ParseStream) -> Result<()> {
- input.parse::<Token![+]>()?;
-
- let content;
- parenthesized!(content in input);
- content.parse::<Token![+]>()?;
-
- Ok(())
- }
-
- // `+ ( + «∅ ∅» ) «∅ «∅ ∅» ∅»`
- let tokens = TokenStream::from_iter([
- TokenTree::Punct(Punct::new('+', Spacing::Alone)),
- TokenTree::Group(Group::new(
- Delimiter::Parenthesis,
- TokenStream::from_iter([
- TokenTree::Punct(Punct::new('+', Spacing::Alone)),
- TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())),
- ]),
- )),
- TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())),
- TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::new(),
- ))]),
- )),
- ]);
-
- parse.parse2(tokens).unwrap();
-}
-
-#[test]
-#[cfg_attr(miri, ignore)] // https://github.com/rust-lang/miri/issues/4793
-fn test_unwind_safe() {
- fn parse(input: ParseStream) -> Result<Ident> {
- let thread_result = panic::catch_unwind(|| input.parse());
- thread_result.unwrap()
- }
-
- parse.parse_str("throw").unwrap();
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_parse_quote.rs b/deps/crates/vendor/syn-v2/tests/test_parse_quote.rs
deleted file mode 100644
index 600870bab58..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_parse_quote.rs
+++ /dev/null
@@ -1,172 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use syn::punctuated::Punctuated;
-use syn::{parse_quote, Attribute, Field, Lit, Pat, Stmt, Token};
-
-#[test]
-fn test_attribute() {
- let attr: Attribute = parse_quote!(#[test]);
- snapshot!(attr, @r#"
- Attribute {
- style: AttrStyle::Outer,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "test",
- },
- ],
- },
- }
- "#);
-
- let attr: Attribute = parse_quote!(#![no_std]);
- snapshot!(attr, @r#"
- Attribute {
- style: AttrStyle::Inner,
- meta: Meta::Path {
- segments: [
- PathSegment {
- ident: "no_std",
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn test_field() {
- let field: Field = parse_quote!(pub enabled: bool);
- snapshot!(field, @r#"
- Field {
- vis: Visibility::Public,
- ident: Some("enabled"),
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "bool",
- },
- ],
- },
- },
- }
- "#);
-
- let field: Field = parse_quote!(primitive::bool);
- snapshot!(field, @r#"
- Field {
- vis: Visibility::Inherited,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "primitive",
- },
- Token![::],
- PathSegment {
- ident: "bool",
- },
- ],
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_pat() {
- let pat: Pat = parse_quote!(Some(false) | None);
- snapshot!(&pat, @r#"
- Pat::Or {
- cases: [
- Pat::TupleStruct {
- path: Path {
- segments: [
- PathSegment {
- ident: "Some",
- },
- ],
- },
- elems: [
- Pat::Lit(ExprLit {
- lit: Lit::Bool {
- value: false,
- },
- }),
- ],
- },
- Token![|],
- Pat::Ident {
- ident: "None",
- },
- ],
- }
- "#);
-
- let boxed_pat: Box<Pat> = parse_quote!(Some(false) | None);
- assert_eq!(*boxed_pat, pat);
-}
-
-#[test]
-fn test_punctuated() {
- let punctuated: Punctuated<Lit, Token![|]> = parse_quote!(true | true);
- snapshot!(punctuated, @r#"
- [
- Lit::Bool {
- value: true,
- },
- Token![|],
- Lit::Bool {
- value: true,
- },
- ]
- "#);
-
- let punctuated: Punctuated<Lit, Token![|]> = parse_quote!(true | true |);
- snapshot!(punctuated, @r#"
- [
- Lit::Bool {
- value: true,
- },
- Token![|],
- Lit::Bool {
- value: true,
- },
- Token![|],
- ]
- "#);
-}
-
-#[test]
-fn test_vec_stmt() {
- let stmts: Vec<Stmt> = parse_quote! {
- let _;
- true
- };
- snapshot!(stmts, @r#"
- [
- Stmt::Local {
- pat: Pat::Wild,
- },
- Stmt::Expr(
- Expr::Lit {
- lit: Lit::Bool {
- value: true,
- },
- },
- None,
- ),
- ]
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_parse_stream.rs b/deps/crates/vendor/syn-v2/tests/test_parse_stream.rs
deleted file mode 100644
index a650fc85346..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_parse_stream.rs
+++ /dev/null
@@ -1,187 +0,0 @@
-#![allow(clippy::items_after_statements, clippy::let_underscore_untyped)]
-
-use proc_macro2::{Delimiter, Group, Punct, Spacing, Span, TokenStream, TokenTree};
-use quote::quote;
-use syn::ext::IdentExt as _;
-use syn::parse::discouraged::AnyDelimiter;
-use syn::parse::{ParseStream, Parser as _, Result};
-use syn::{parenthesized, token, Ident, Lifetime, Token};
-
-#[test]
-fn test_peek_punct() {
- let tokens = quote!(+= + =);
-
- fn assert(input: ParseStream) -> Result<()> {
- assert!(input.peek(Token![+]));
- assert!(input.peek(Token![+=]));
-
- let _: Token![+] = input.parse()?;
-
- assert!(input.peek(Token![=]));
- assert!(!input.peek(Token![==]));
- assert!(!input.peek(Token![+]));
-
- let _: Token![=] = input.parse()?;
-
- assert!(input.peek(Token![+]));
- assert!(!input.peek(Token![+=]));
-
- let _: Token![+] = input.parse()?;
- let _: Token![=] = input.parse()?;
- Ok(())
- }
-
- assert.parse2(tokens).unwrap();
-}
-
-#[test]
-fn test_peek_lifetime() {
- // 'static ;
- let tokens = TokenStream::from_iter([
- TokenTree::Punct(Punct::new('\'', Spacing::Joint)),
- TokenTree::Ident(Ident::new("static", Span::call_site())),
- TokenTree::Punct(Punct::new(';', Spacing::Alone)),
- ]);
-
- fn assert(input: ParseStream) -> Result<()> {
- assert!(input.peek(Lifetime));
- assert!(input.peek2(Token![;]));
- assert!(!input.peek2(Token![static]));
-
- let _: Lifetime = input.parse()?;
-
- assert!(input.peek(Token![;]));
-
- let _: Token![;] = input.parse()?;
- Ok(())
- }
-
- assert.parse2(tokens).unwrap();
-}
-
-#[test]
-fn test_peek_not_lifetime() {
- // ' static
- let tokens = TokenStream::from_iter([
- TokenTree::Punct(Punct::new('\'', Spacing::Alone)),
- TokenTree::Ident(Ident::new("static", Span::call_site())),
- ]);
-
- fn assert(input: ParseStream) -> Result<()> {
- assert!(!input.peek(Lifetime));
- assert!(input.parse::<Option<Punct>>()?.is_none());
-
- let _: TokenTree = input.parse()?;
-
- assert!(input.peek(Token![static]));
-
- let _: Token![static] = input.parse()?;
- Ok(())
- }
-
- assert.parse2(tokens).unwrap();
-}
-
-#[test]
-fn test_peek_ident() {
- let tokens = quote!(static var);
-
- fn assert(input: ParseStream) -> Result<()> {
- assert!(!input.peek(Ident));
- assert!(input.peek(Ident::peek_any));
- assert!(input.peek(Token![static]));
-
- let _: Token![static] = input.parse()?;
-
- assert!(input.peek(Ident));
- assert!(input.peek(Ident::peek_any));
-
- let _: Ident = input.parse()?;
- Ok(())
- }
-
- assert.parse2(tokens).unwrap();
-}
-
-#[test]
-fn test_peek_groups() {
- // pub ( :: ) «∅ ! = ∅» static
- let tokens = TokenStream::from_iter([
- TokenTree::Ident(Ident::new("pub", Span::call_site())),
- TokenTree::Group(Group::new(
- Delimiter::Parenthesis,
- TokenStream::from_iter([
- TokenTree::Punct(Punct::new(':', Spacing::Joint)),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- ]),
- )),
- TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([
- TokenTree::Punct(Punct::new('!', Spacing::Alone)),
- TokenTree::Punct(Punct::new('=', Spacing::Alone)),
- ]),
- )),
- TokenTree::Ident(Ident::new("static", Span::call_site())),
- ]);
-
- fn assert(input: ParseStream) -> Result<()> {
- assert!(input.peek2(token::Paren));
- assert!(input.peek3(token::Group));
- assert!(input.peek3(Token![!]));
-
- let _: Token![pub] = input.parse()?;
-
- assert!(input.peek(token::Paren));
- assert!(!input.peek(Token![::]));
- assert!(!input.peek2(Token![::]));
- assert!(input.peek2(Token![!]));
- assert!(input.peek2(token::Group));
- assert!(input.peek3(Token![=]));
- assert!(!input.peek3(Token![static]));
-
- let content;
- parenthesized!(content in input);
-
- assert!(content.peek(Token![::]));
- assert!(content.peek2(Token![:]));
- assert!(!content.peek3(token::Group));
- assert!(!content.peek3(Token![!]));
-
- assert!(input.peek(token::Group));
- assert!(input.peek(Token![!]));
-
- let _: Token![::] = content.parse()?;
-
- assert!(input.peek(token::Group));
- assert!(input.peek(Token![!]));
- assert!(input.peek2(Token![=]));
- assert!(input.peek3(Token![static]));
- assert!(!input.peek2(Token![static]));
-
- let implicit = input.fork();
- let explicit = input.fork();
-
- let _: Token![!] = implicit.parse()?;
- assert!(implicit.peek(Token![=]));
- assert!(implicit.peek2(Token![static]));
- let _: Token![=] = implicit.parse()?;
- assert!(implicit.peek(Token![static]));
-
- let (delimiter, _span, grouped) = explicit.parse_any_delimiter()?;
- assert_eq!(delimiter, Delimiter::None);
- assert!(grouped.peek(Token![!]));
- assert!(grouped.peek2(Token![=]));
- assert!(!grouped.peek3(Token![static]));
- let _: Token![!] = grouped.parse()?;
- assert!(grouped.peek(Token![=]));
- assert!(!grouped.peek2(Token![static]));
- let _: Token![=] = grouped.parse()?;
- assert!(!grouped.peek(Token![static]));
-
- let _: TokenStream = input.parse()?;
- Ok(())
- }
-
- assert.parse2(tokens).unwrap();
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_pat.rs b/deps/crates/vendor/syn-v2/tests/test_pat.rs
deleted file mode 100644
index f778928bc99..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_pat.rs
+++ /dev/null
@@ -1,158 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, TokenStream, TokenTree};
-use quote::{quote, ToTokens as _};
-use syn::parse::Parser;
-use syn::punctuated::Punctuated;
-use syn::{parse_quote, token, Item, Pat, PatTuple, Stmt, Token};
-
-#[test]
-fn test_pat_ident() {
- match Pat::parse_single.parse2(quote!(self)).unwrap() {
- Pat::Ident(_) => (),
- value => panic!("expected PatIdent, got {:?}", value),
- }
-}
-
-#[test]
-fn test_pat_path() {
- match Pat::parse_single.parse2(quote!(self::CONST)).unwrap() {
- Pat::Path(_) => (),
- value => panic!("expected PatPath, got {:?}", value),
- }
-}
-
-#[test]
-fn test_leading_vert() {
- // https://github.com/rust-lang/rust/blob/1.43.0/src/test/ui/or-patterns/remove-leading-vert.rs
-
- syn::parse_str::<Item>("fn f() {}").unwrap();
- syn::parse_str::<Item>("fn fun1(| A: E) {}").unwrap_err();
- syn::parse_str::<Item>("fn fun2(|| A: E) {}").unwrap_err();
-
- syn::parse_str::<Stmt>("let | () = ();").unwrap_err();
- syn::parse_str::<Stmt>("let (| A): E;").unwrap();
- syn::parse_str::<Stmt>("let (|| A): (E);").unwrap_err();
- syn::parse_str::<Stmt>("let (| A,): (E,);").unwrap();
- syn::parse_str::<Stmt>("let [| A]: [E; 1];").unwrap();
- syn::parse_str::<Stmt>("let [|| A]: [E; 1];").unwrap_err();
- syn::parse_str::<Stmt>("let TS(| A): TS;").unwrap();
- syn::parse_str::<Stmt>("let TS(|| A): TS;").unwrap_err();
- syn::parse_str::<Stmt>("let NS { f: | A }: NS;").unwrap();
- syn::parse_str::<Stmt>("let NS { f: || A }: NS;").unwrap_err();
-}
-
-#[test]
-fn test_group() {
- let group = Group::new(Delimiter::None, quote!(Some(_)));
- let tokens = TokenStream::from_iter([TokenTree::Group(group)]);
- let pat = Pat::parse_single.parse2(tokens).unwrap();
-
- snapshot!(pat, @r#"
- Pat::TupleStruct {
- path: Path {
- segments: [
- PathSegment {
- ident: "Some",
- },
- ],
- },
- elems: [
- Pat::Wild,
- ],
- }
- "#);
-}
-
-#[test]
-fn test_ranges() {
- Pat::parse_single.parse_str("..").unwrap();
- Pat::parse_single.parse_str("..hi").unwrap();
- Pat::parse_single.parse_str("lo..").unwrap();
- Pat::parse_single.parse_str("lo..hi").unwrap();
-
- Pat::parse_single.parse_str("..=").unwrap_err();
- Pat::parse_single.parse_str("..=hi").unwrap();
- Pat::parse_single.parse_str("lo..=").unwrap_err();
- Pat::parse_single.parse_str("lo..=hi").unwrap();
-
- Pat::parse_single.parse_str("...").unwrap_err();
- Pat::parse_single.parse_str("...hi").unwrap_err();
- Pat::parse_single.parse_str("lo...").unwrap_err();
- Pat::parse_single.parse_str("lo...hi").unwrap();
-
- Pat::parse_single.parse_str("[lo..]").unwrap_err();
- Pat::parse_single.parse_str("[..=hi]").unwrap_err();
- Pat::parse_single.parse_str("[(lo..)]").unwrap();
- Pat::parse_single.parse_str("[(..=hi)]").unwrap();
- Pat::parse_single.parse_str("[lo..=hi]").unwrap();
-
- Pat::parse_single.parse_str("[_, lo.., _]").unwrap_err();
- Pat::parse_single.parse_str("[_, ..=hi, _]").unwrap_err();
- Pat::parse_single.parse_str("[_, (lo..), _]").unwrap();
- Pat::parse_single.parse_str("[_, (..=hi), _]").unwrap();
- Pat::parse_single.parse_str("[_, lo..=hi, _]").unwrap();
-}
-
-#[test]
-fn test_tuple_comma() {
- let mut expr = PatTuple {
- attrs: Vec::new(),
- paren_token: token::Paren::default(),
- elems: Punctuated::new(),
- };
- snapshot!(expr.to_token_stream() as Pat, @"Pat::Tuple");
-
- expr.elems.push_value(parse_quote!(_));
- // Must not parse to Pat::Paren
- snapshot!(expr.to_token_stream() as Pat, @r#"
- Pat::Tuple {
- elems: [
- Pat::Wild,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Pat, @r#"
- Pat::Tuple {
- elems: [
- Pat::Wild,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_value(parse_quote!(_));
- snapshot!(expr.to_token_stream() as Pat, @r#"
- Pat::Tuple {
- elems: [
- Pat::Wild,
- Token![,],
- Pat::Wild,
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Pat, @r#"
- Pat::Tuple {
- elems: [
- Pat::Wild,
- Token![,],
- Pat::Wild,
- Token![,],
- ],
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_path.rs b/deps/crates/vendor/syn-v2/tests/test_path.rs
deleted file mode 100644
index 7f9e515d269..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_path.rs
+++ /dev/null
@@ -1,116 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree};
-use quote::{quote, ToTokens};
-use syn::{parse_quote, Expr, Type, TypePath};
-
-#[test]
-fn parse_interpolated_leading_component() {
- // mimics the token stream corresponding to `$mod::rest`
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { first })),
- TokenTree::Punct(Punct::new(':', Spacing::Joint)),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- TokenTree::Ident(Ident::new("rest", Span::call_site())),
- ]);
-
- snapshot!(tokens.clone() as Expr, @r#"
- Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "first",
- },
- Token![::],
- PathSegment {
- ident: "rest",
- },
- ],
- },
- }
- "#);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "first",
- },
- Token![::],
- PathSegment {
- ident: "rest",
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn print_incomplete_qpath() {
- // qpath with `as` token
- let mut ty: TypePath = parse_quote!(<Self as A>::Q);
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self as A > :: Q`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self as A > ::`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self >`)");
- assert!(ty.path.segments.pop().is_none());
-
- // qpath without `as` token
- let mut ty: TypePath = parse_quote!(<Self>::A::B);
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > :: A :: B`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > :: A ::`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`< Self > ::`)");
- assert!(ty.path.segments.pop().is_none());
-
- // normal path
- let mut ty: TypePath = parse_quote!(Self::A::B);
- snapshot!(ty.to_token_stream(), @"TokenStream(`Self :: A :: B`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`Self :: A ::`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(`Self ::`)");
- assert!(ty.path.segments.pop().is_some());
- snapshot!(ty.to_token_stream(), @"TokenStream(``)");
- assert!(ty.path.segments.pop().is_none());
-}
-
-#[test]
-fn parse_parenthesized_path_arguments_with_disambiguator() {
- #[rustfmt::skip]
- let tokens = quote!(dyn FnOnce::() -> !);
- snapshot!(tokens as Type, @r#"
- Type::TraitObject {
- dyn_token: Some,
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "FnOnce",
- arguments: PathArguments::Parenthesized {
- output: ReturnType::Type(
- Type::Never,
- ),
- },
- },
- ],
- },
- }),
- ],
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_precedence.rs b/deps/crates/vendor/syn-v2/tests/test_precedence.rs
deleted file mode 100644
index 4950eecb60a..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_precedence.rs
+++ /dev/null
@@ -1,556 +0,0 @@
-// This test does the following for every file in the rust-lang/rust repo:
-//
-// 1. Parse the file using syn into a syn::File.
-// 2. Extract every syn::Expr from the file.
-// 3. Print each expr to a string of source code.
-// 4. Parse the source code using librustc_parse into a rustc_ast::Expr.
-// 5. For both the syn::Expr and rustc_ast::Expr, crawl the syntax tree to
-// insert parentheses surrounding every subexpression.
-// 6. Serialize the fully parenthesized syn::Expr to a string of source code.
-// 7. Parse the fully parenthesized source code using librustc_parse.
-// 8. Compare the rustc_ast::Expr resulting from parenthesizing using rustc data
-// structures vs syn data structures, ignoring spans. If they agree, rustc's
-// parser and syn's parser have identical handling of expression precedence.
-
-#![cfg(not(syn_disable_nightly_tests))]
-#![cfg(not(miri))]
-#![recursion_limit = "1024"]
-#![feature(rustc_private)]
-#![allow(
- clippy::blocks_in_conditions,
- clippy::doc_markdown,
- clippy::elidable_lifetime_names,
- clippy::explicit_deref_methods,
- clippy::let_underscore_untyped,
- clippy::manual_assert,
- clippy::manual_let_else,
- clippy::match_like_matches_macro,
- clippy::match_wildcard_for_single_variants,
- clippy::needless_lifetimes,
- clippy::too_many_lines,
- clippy::uninlined_format_args,
- clippy::unnecessary_box_returns
-)]
-
-extern crate rustc_ast;
-extern crate rustc_ast_pretty;
-extern crate rustc_data_structures;
-extern crate rustc_driver;
-extern crate rustc_span;
-
-use crate::common::eq::SpanlessEq;
-use crate::common::parse;
-use quote::ToTokens;
-use rustc_ast::ast;
-use rustc_ast_pretty::pprust;
-use rustc_span::edition::Edition;
-use std::fs;
-use std::mem;
-use std::path::Path;
-use std::process;
-use std::sync::atomic::{AtomicUsize, Ordering};
-use syn::parse::Parser as _;
-
-#[macro_use]
-mod macros;
-
-mod common;
-mod repo;
-
-#[path = "../src/scan_expr.rs"]
-mod scan_expr;
-
-#[test]
-fn test_rustc_precedence() {
- repo::rayon_init();
- repo::clone_rust();
- let abort_after = repo::abort_after();
- if abort_after == 0 {
- panic!("skipping all precedence tests");
- }
-
- let passed = AtomicUsize::new(0);
- let failed = AtomicUsize::new(0);
-
- repo::for_each_rust_file(|path| {
- let content = fs::read_to_string(path).unwrap();
-
- let (l_passed, l_failed) = match syn::parse_file(&content) {
- Ok(file) => {
- let edition = repo::edition(path).parse().unwrap();
- let exprs = collect_exprs(file);
- let (l_passed, l_failed) = test_expressions(path, edition, exprs);
- errorf!(
- "=== {}: {} passed | {} failed\n",
- path.display(),
- l_passed,
- l_failed,
- );
- (l_passed, l_failed)
- }
- Err(msg) => {
- errorf!("\nFAIL {} - syn failed to parse: {}\n", path.display(), msg);
- (0, 1)
- }
- };
-
- passed.fetch_add(l_passed, Ordering::Relaxed);
- let prev_failed = failed.fetch_add(l_failed, Ordering::Relaxed);
-
- if prev_failed + l_failed >= abort_after {
- process::exit(1);
- }
- });
-
- let passed = passed.into_inner();
- let failed = failed.into_inner();
-
- errorf!("\n===== Precedence Test Results =====\n");
- errorf!("{} passed | {} failed\n", passed, failed);
-
- if failed > 0 {
- panic!("{} failures", failed);
- }
-}
-
-fn test_expressions(path: &Path, edition: Edition, exprs: Vec<syn::Expr>) -> (usize, usize) {
- let mut passed = 0;
- let mut failed = 0;
-
- rustc_span::create_session_if_not_set_then(edition, |_| {
- for expr in exprs {
- let expr_tokens = expr.to_token_stream();
- let source_code = expr_tokens.to_string();
- let librustc_ast = if let Some(e) = librustc_parse_and_rewrite(&source_code) {
- e
- } else {
- failed += 1;
- errorf!(
- "\nFAIL {} - librustc failed to parse original\n",
- path.display(),
- );
- continue;
- };
-
- let syn_parenthesized_code =
- syn_parenthesize(expr.clone()).to_token_stream().to_string();
- let syn_ast = if let Some(e) = parse::librustc_expr(&syn_parenthesized_code) {
- e
- } else {
- failed += 1;
- errorf!(
- "\nFAIL {} - librustc failed to parse parenthesized\n",
- path.display(),
- );
- continue;
- };
-
- if !SpanlessEq::eq(&syn_ast, &librustc_ast) {
- failed += 1;
- let syn_pretty = pprust::expr_to_string(&syn_ast);
- let librustc_pretty = pprust::expr_to_string(&librustc_ast);
- errorf!(
- "\nFAIL {}\n{}\nsyn != rustc\n{}\n",
- path.display(),
- syn_pretty,
- librustc_pretty,
- );
- continue;
- }
-
- let expr_invisible = make_parens_invisible(expr);
- let Ok(reparsed_expr_invisible) = syn::parse2(expr_invisible.to_token_stream()) else {
- failed += 1;
- errorf!(
- "\nFAIL {} - syn failed to parse invisible delimiters\n{}\n",
- path.display(),
- source_code,
- );
- continue;
- };
- if expr_invisible != reparsed_expr_invisible {
- failed += 1;
- errorf!(
- "\nFAIL {} - mismatch after parsing invisible delimiters\n{}\n",
- path.display(),
- source_code,
- );
- continue;
- }
-
- if scan_expr::scan_expr.parse2(expr_tokens).is_err() {
- failed += 1;
- errorf!(
- "\nFAIL {} - failed to scan expr\n{}\n",
- path.display(),
- source_code,
- );
- continue;
- }
-
- passed += 1;
- }
- });
-
- (passed, failed)
-}
-
-fn librustc_parse_and_rewrite(input: &str) -> Option<Box<ast::Expr>> {
- parse::librustc_expr(input).map(librustc_parenthesize)
-}
-
-fn librustc_parenthesize(mut librustc_expr: Box<ast::Expr>) -> Box<ast::Expr> {
- use rustc_ast::ast::{
- AssocItem, AssocItemKind, Attribute, BinOpKind, Block, BoundConstness, Expr, ExprField,
- ExprKind, GenericArg, GenericBound, Local, LocalKind, Pat, PolyTraitRef, Stmt, StmtKind,
- StructExpr, StructRest, TraitBoundModifiers, Ty,
- };
- use rustc_ast::mut_visit::{walk_flat_map_assoc_item, MutVisitor};
- use rustc_ast::visit::{AssocCtxt, BoundKind};
- use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
- use rustc_data_structures::smallvec::SmallVec;
- use rustc_data_structures::thin_vec::ThinVec;
- use rustc_span::DUMMY_SP;
- use std::ops::DerefMut;
-
- struct FullyParenthesize;
-
- fn contains_let_chain(expr: &Expr) -> bool {
- match &expr.kind {
- ExprKind::Let(..) => true,
- ExprKind::Binary(binop, left, right) => {
- binop.node == BinOpKind::And
- && (contains_let_chain(left) || contains_let_chain(right))
- }
- _ => false,
- }
- }
-
- fn flat_map_field<T: MutVisitor>(mut f: ExprField, vis: &mut T) -> Vec<ExprField> {
- if f.is_shorthand {
- noop_visit_expr(&mut f.expr, vis);
- } else {
- vis.visit_expr(&mut f.expr);
- }
- vec![f]
- }
-
- fn flat_map_stmt<T: MutVisitor>(stmt: Stmt, vis: &mut T) -> Vec<Stmt> {
- let kind = match stmt.kind {
- // Don't wrap toplevel expressions in statements.
- StmtKind::Expr(mut e) => {
- noop_visit_expr(&mut e, vis);
- StmtKind::Expr(e)
- }
- StmtKind::Semi(mut e) => {
- noop_visit_expr(&mut e, vis);
- StmtKind::Semi(e)
- }
- s => s,
- };
-
- vec![Stmt { kind, ..stmt }]
- }
-
- fn noop_visit_expr<T: MutVisitor>(e: &mut Expr, vis: &mut T) {
- match &mut e.kind {
- ExprKind::Become(..) => {}
- ExprKind::Struct(expr) => {
- let StructExpr {
- qself,
- path,
- fields,
- rest,
- } = expr.deref_mut();
- if let Some(qself) = qself {
- vis.visit_qself(qself);
- }
- vis.visit_path(path);
- fields.flat_map_in_place(|field| flat_map_field(field, vis));
- if let StructRest::Base(rest) = rest {
- vis.visit_expr(rest);
- }
- }
- _ => rustc_ast::mut_visit::walk_expr(vis, e),
- }
- }
-
- impl MutVisitor for FullyParenthesize {
- fn visit_expr(&mut self, e: &mut Expr) {
- noop_visit_expr(e, self);
- match e.kind {
- ExprKind::Block(..) | ExprKind::If(..) | ExprKind::Let(..) => {}
- ExprKind::Binary(..) if contains_let_chain(e) => {}
- _ => {
- let inner = mem::replace(e, Expr::dummy());
- *e = Expr {
- id: ast::DUMMY_NODE_ID,
- kind: ExprKind::Paren(Box::new(inner)),
- span: DUMMY_SP,
- attrs: ThinVec::new(),
- tokens: None,
- };
- }
- }
- }
-
- fn visit_generic_arg(&mut self, arg: &mut GenericArg) {
- match arg {
- GenericArg::Lifetime(_lifetime) => {}
- GenericArg::Type(arg) => self.visit_ty(arg),
- // Don't wrap unbraced const generic arg as that's invalid syntax.
- GenericArg::Const(anon_const) => {
- if let ExprKind::Block(..) = &mut anon_const.value.kind {
- noop_visit_expr(&mut anon_const.value, self);
- }
- }
- }
- }
-
- fn visit_param_bound(&mut self, bound: &mut GenericBound, _ctxt: BoundKind) {
- match bound {
- GenericBound::Trait(PolyTraitRef {
- modifiers:
- TraitBoundModifiers {
- constness: BoundConstness::Maybe(_),
- ..
- },
- ..
- })
- | GenericBound::Outlives(..)
- | GenericBound::Use(..) => {}
- GenericBound::Trait(ty) => self.visit_poly_trait_ref(ty),
- }
- }
-
- fn visit_block(&mut self, block: &mut Block) {
- self.visit_id(&mut block.id);
- block
- .stmts
- .flat_map_in_place(|stmt| flat_map_stmt(stmt, self));
- self.visit_span(&mut block.span);
- }
-
- fn visit_local(&mut self, local: &mut Local) {
- match &mut local.kind {
- LocalKind::Decl => {}
- LocalKind::Init(init) => {
- self.visit_expr(init);
- }
- LocalKind::InitElse(init, els) => {
- self.visit_expr(init);
- self.visit_block(els);
- }
- }
- }
-
- fn flat_map_assoc_item(
- &mut self,
- item: Box<AssocItem>,
- ctxt: AssocCtxt,
- ) -> SmallVec<[Box<AssocItem>; 1]> {
- match &item.kind {
- AssocItemKind::Const(const_item)
- if !const_item.generics.params.is_empty()
- || !const_item.generics.where_clause.predicates.is_empty() =>
- {
- SmallVec::from([item])
- }
- _ => walk_flat_map_assoc_item(self, item, ctxt),
- }
- }
-
- // We don't want to look at expressions that might appear in patterns or
- // types yet. We'll look into comparing those in the future. For now
- // focus on expressions appearing in other places.
- fn visit_pat(&mut self, pat: &mut Pat) {
- let _ = pat;
- }
-
- fn visit_ty(&mut self, ty: &mut Ty) {
- let _ = ty;
- }
-
- fn visit_attribute(&mut self, attr: &mut Attribute) {
- let _ = attr;
- }
- }
-
- let mut folder = FullyParenthesize;
- folder.visit_expr(&mut librustc_expr);
- librustc_expr
-}
-
-fn syn_parenthesize(syn_expr: syn::Expr) -> syn::Expr {
- use syn::fold::{fold_expr, fold_generic_argument, Fold};
- use syn::{
- token, BinOp, Expr, ExprParen, GenericArgument, Lit, MetaNameValue, Pat, Stmt, Type,
- };
-
- struct FullyParenthesize;
-
- fn parenthesize(expr: Expr) -> Expr {
- Expr::Paren(ExprParen {
- attrs: Vec::new(),
- expr: Box::new(expr),
- paren_token: token::Paren::default(),
- })
- }
-
- fn needs_paren(expr: &Expr) -> bool {
- match expr {
- Expr::Group(_) => unreachable!(),
- Expr::If(_) | Expr::Unsafe(_) | Expr::Block(_) | Expr::Let(_) => false,
- Expr::Binary(_) => !contains_let_chain(expr),
- _ => true,
- }
- }
-
- fn contains_let_chain(expr: &Expr) -> bool {
- match expr {
- Expr::Let(_) => true,
- Expr::Binary(expr) => {
- matches!(expr.op, BinOp::And(_))
- && (contains_let_chain(&expr.left) || contains_let_chain(&expr.right))
- }
- _ => false,
- }
- }
-
- impl Fold for FullyParenthesize {
- fn fold_expr(&mut self, expr: Expr) -> Expr {
- let needs_paren = needs_paren(&expr);
- let folded = fold_expr(self, expr);
- if needs_paren {
- parenthesize(folded)
- } else {
- folded
- }
- }
-
- fn fold_generic_argument(&mut self, arg: GenericArgument) -> GenericArgument {
- match arg {
- GenericArgument::Const(arg) => GenericArgument::Const(match arg {
- Expr::Block(_) => fold_expr(self, arg),
- // Don't wrap unbraced const generic arg as that's invalid syntax.
- _ => arg,
- }),
- _ => fold_generic_argument(self, arg),
- }
- }
-
- fn fold_stmt(&mut self, stmt: Stmt) -> Stmt {
- match stmt {
- // Don't wrap toplevel expressions in statements.
- Stmt::Expr(Expr::Verbatim(_), Some(_)) => stmt,
- Stmt::Expr(e, semi) => Stmt::Expr(fold_expr(self, e), semi),
- s => s,
- }
- }
-
- fn fold_meta_name_value(&mut self, meta: MetaNameValue) -> MetaNameValue {
- // Don't turn #[p = "..."] into #[p = ("...")].
- meta
- }
-
- // We don't want to look at expressions that might appear in patterns or
- // types yet. We'll look into comparing those in the future. For now
- // focus on expressions appearing in other places.
- fn fold_pat(&mut self, pat: Pat) -> Pat {
- pat
- }
-
- fn fold_type(&mut self, ty: Type) -> Type {
- ty
- }
-
- fn fold_lit(&mut self, lit: Lit) -> Lit {
- if let Lit::Verbatim(lit) = &lit {
- panic!("unexpected verbatim literal: {lit}");
- }
- lit
- }
- }
-
- let mut folder = FullyParenthesize;
- folder.fold_expr(syn_expr)
-}
-
-fn make_parens_invisible(expr: syn::Expr) -> syn::Expr {
- use syn::fold::{fold_expr, fold_stmt, Fold};
- use syn::{token, Expr, ExprGroup, ExprParen, Stmt};
-
- struct MakeParensInvisible;
-
- impl Fold for MakeParensInvisible {
- fn fold_expr(&mut self, mut expr: Expr) -> Expr {
- if let Expr::Paren(paren) = expr {
- expr = Expr::Group(ExprGroup {
- attrs: paren.attrs,
- group_token: token::Group(paren.paren_token.span.join()),
- expr: paren.expr,
- });
- }
- fold_expr(self, expr)
- }
-
- fn fold_stmt(&mut self, stmt: Stmt) -> Stmt {
- if let Stmt::Expr(expr @ (Expr::Binary(_) | Expr::Call(_) | Expr::Cast(_)), None) = stmt
- {
- Stmt::Expr(
- Expr::Paren(ExprParen {
- attrs: Vec::new(),
- paren_token: token::Paren::default(),
- expr: Box::new(fold_expr(self, expr)),
- }),
- None,
- )
- } else {
- fold_stmt(self, stmt)
- }
- }
- }
-
- let mut folder = MakeParensInvisible;
- folder.fold_expr(expr)
-}
-
-/// Walk through a crate collecting all expressions we can find in it.
-fn collect_exprs(file: syn::File) -> Vec<syn::Expr> {
- use syn::fold::Fold;
- use syn::punctuated::Punctuated;
- use syn::{token, ConstParam, Expr, ExprTuple, Pat, Path};
-
- struct CollectExprs(Vec<Expr>);
- impl Fold for CollectExprs {
- fn fold_expr(&mut self, expr: Expr) -> Expr {
- match expr {
- Expr::Verbatim(_) => {}
- _ => self.0.push(expr),
- }
-
- Expr::Tuple(ExprTuple {
- attrs: vec![],
- elems: Punctuated::new(),
- paren_token: token::Paren::default(),
- })
- }
-
- fn fold_pat(&mut self, pat: Pat) -> Pat {
- pat
- }
-
- fn fold_path(&mut self, path: Path) -> Path {
- // Skip traversing into const generic path arguments
- path
- }
-
- fn fold_const_param(&mut self, const_param: ConstParam) -> ConstParam {
- const_param
- }
- }
-
- let mut folder = CollectExprs(vec![]);
- folder.fold_file(file);
- folder.0
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_punctuated.rs b/deps/crates/vendor/syn-v2/tests/test_punctuated.rs
deleted file mode 100644
index 14ea96c7717..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_punctuated.rs
+++ /dev/null
@@ -1,92 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-use syn::punctuated::{Pair, Punctuated};
-use syn::Token;
-
-macro_rules! punctuated {
- ($($e:expr,)+) => {{
- let mut seq = ::syn::punctuated::Punctuated::new();
- $(
- seq.push($e);
- )+
- seq
- }};
-
- ($($e:expr),+) => {
- punctuated!($($e,)+)
- };
-}
-
-macro_rules! check_exact_size_iterator {
- ($iter:expr) => {{
- let iter = $iter;
- let size_hint = iter.size_hint();
- let len = iter.len();
- let count = iter.count();
- assert_eq!(len, count);
- assert_eq!(size_hint, (count, Some(count)));
- }};
-}
-
-#[test]
-fn pairs() {
- let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
-
- check_exact_size_iterator!(p.pairs());
- check_exact_size_iterator!(p.pairs_mut());
- check_exact_size_iterator!(p.into_pairs());
-
- let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
-
- assert_eq!(p.pairs().next_back().map(Pair::into_value), Some(&4));
- assert_eq!(
- p.pairs_mut().next_back().map(Pair::into_value),
- Some(&mut 4)
- );
- assert_eq!(p.into_pairs().next_back().map(Pair::into_value), Some(4));
-}
-
-#[test]
-fn iter() {
- let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
-
- check_exact_size_iterator!(p.iter());
- check_exact_size_iterator!(p.iter_mut());
- check_exact_size_iterator!(p.into_iter());
-
- let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
-
- assert_eq!(p.iter().next_back(), Some(&4));
- assert_eq!(p.iter_mut().next_back(), Some(&mut 4));
- assert_eq!(p.into_iter().next_back(), Some(4));
-}
-
-#[test]
-fn may_dangle() {
- let p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
- for element in &p {
- if *element == 2 {
- drop(p);
- break;
- }
- }
-
- let mut p: Punctuated<_, Token![,]> = punctuated!(2, 3, 4);
- for element in &mut p {
- if *element == 2 {
- drop(p);
- break;
- }
- }
-}
-
-#[test]
-#[should_panic = "index out of bounds: the len is 0 but the index is 0"]
-fn index_out_of_bounds() {
- let p = Punctuated::<syn::Ident, Token![,]>::new();
- let _ = p[0].clone();
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_receiver.rs b/deps/crates/vendor/syn-v2/tests/test_receiver.rs
deleted file mode 100644
index 98194101fda..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_receiver.rs
+++ /dev/null
@@ -1,327 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use syn::{parse_quote, TraitItemFn};
-
-#[test]
-fn test_by_value() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn by_value(self: Self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_by_mut_value() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn by_mut(mut self: Self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- mutability: Some,
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_by_ref() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn by_ref(self: &Self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- colon_token: Some,
- ty: Type::Reference {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_by_box() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn by_box(self: Box<Self>);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Box",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_by_pin() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn by_pin(self: Pin<Self>);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Pin",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_explicit_type() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn explicit_type(self: Pin<MyType>);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- colon_token: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Pin",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "MyType",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_value_shorthand() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn value_shorthand(self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_mut_value_shorthand() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn mut_value_shorthand(mut self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- mutability: Some,
- ty: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_ref_shorthand() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn ref_shorthand(&self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- reference: Some(None),
- ty: Type::Reference {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_ref_shorthand_with_lifetime() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn ref_shorthand(&'a self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- reference: Some(Some(Lifetime {
- ident: "a",
- })),
- ty: Type::Reference {
- lifetime: Some(Lifetime {
- ident: "a",
- }),
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_ref_mut_shorthand() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn ref_mut_shorthand(&mut self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- reference: Some(None),
- mutability: Some,
- ty: Type::Reference {
- mutability: Some,
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- },
- })
- "#);
-}
-
-#[test]
-fn test_ref_mut_shorthand_with_lifetime() {
- let TraitItemFn { sig, .. } = parse_quote! {
- fn ref_mut_shorthand(&'a mut self);
- };
- snapshot!(&sig.inputs[0], @r#"
- FnArg::Receiver(Receiver {
- reference: Some(Some(Lifetime {
- ident: "a",
- })),
- mutability: Some,
- ty: Type::Reference {
- lifetime: Some(Lifetime {
- ident: "a",
- }),
- mutability: Some,
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Self",
- },
- ],
- },
- },
- },
- })
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_round_trip.rs b/deps/crates/vendor/syn-v2/tests/test_round_trip.rs
deleted file mode 100644
index c19adb843c8..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_round_trip.rs
+++ /dev/null
@@ -1,225 +0,0 @@
-#![cfg(not(syn_disable_nightly_tests))]
-#![cfg(not(miri))]
-#![recursion_limit = "1024"]
-#![feature(rustc_private)]
-#![allow(
- clippy::blocks_in_conditions,
- clippy::elidable_lifetime_names,
- clippy::manual_assert,
- clippy::manual_let_else,
- clippy::match_like_matches_macro,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-#![allow(mismatched_lifetime_syntaxes)]
-
-extern crate rustc_ast;
-extern crate rustc_ast_pretty;
-extern crate rustc_data_structures;
-extern crate rustc_driver;
-extern crate rustc_error_messages;
-extern crate rustc_errors;
-extern crate rustc_expand;
-extern crate rustc_parse;
-extern crate rustc_session;
-extern crate rustc_span;
-
-use crate::common::eq::SpanlessEq;
-use quote::quote;
-use rustc_ast::ast::{
- AngleBracketedArg, Crate, GenericArg, GenericArgs, GenericParamKind, Generics,
-};
-use rustc_ast::mut_visit::{self, MutVisitor};
-use rustc_ast_pretty::pprust;
-use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
-use rustc_error_messages::DiagMessage;
-use rustc_errors::{Diag, PResult};
-use rustc_parse::lexer::StripTokens;
-use rustc_session::parse::ParseSess;
-use rustc_span::FileName;
-use std::borrow::Cow;
-use std::fs;
-use std::panic;
-use std::path::Path;
-use std::process;
-use std::sync::atomic::{AtomicUsize, Ordering};
-use std::time::Instant;
-
-#[macro_use]
-mod macros;
-
-mod common;
-mod repo;
-
-#[test]
-fn test_round_trip() {
- repo::rayon_init();
- repo::clone_rust();
- let abort_after = repo::abort_after();
- if abort_after == 0 {
- panic!("skipping all round_trip tests");
- }
-
- let failed = AtomicUsize::new(0);
-
- repo::for_each_rust_file(|path| test(path, &failed, abort_after));
-
- let failed = failed.into_inner();
- if failed > 0 {
- panic!("{} failures", failed);
- }
-}
-
-fn test(path: &Path, failed: &AtomicUsize, abort_after: usize) {
- let failed = || {
- let prev_failed = failed.fetch_add(1, Ordering::Relaxed);
- if prev_failed + 1 >= abort_after {
- process::exit(1);
- }
- };
-
- let content = fs::read_to_string(path).unwrap();
-
- let (back, elapsed) = match panic::catch_unwind(|| {
- let start = Instant::now();
- let result = syn::parse_file(&content);
- let elapsed = start.elapsed();
- result.map(|krate| (quote!(#krate).to_string(), elapsed))
- }) {
- Err(_) => {
- errorf!("=== {}: syn panic\n", path.display());
- failed();
- return;
- }
- Ok(Err(msg)) => {
- errorf!("=== {}: syn failed to parse\n{:?}\n", path.display(), msg);
- failed();
- return;
- }
- Ok(Ok(result)) => result,
- };
-
- let edition = repo::edition(path).parse().unwrap();
-
- rustc_span::create_session_if_not_set_then(edition, |_| {
- let equal = match panic::catch_unwind(|| {
- let sess = ParseSess::new();
- let before = match librustc_parse(content, &sess) {
- Ok(before) => before,
- Err(diagnostic) => {
- errorf!(
- "=== {}: ignore - librustc failed to parse original content: {}\n",
- path.display(),
- translate_message(&diagnostic),
- );
- diagnostic.cancel();
- return Err(true);
- }
- };
- let after = match librustc_parse(back, &sess) {
- Ok(after) => after,
- Err(diagnostic) => {
- errorf!("=== {}: librustc failed to parse", path.display());
- diagnostic.emit();
- return Err(false);
- }
- };
- Ok((before, after))
- }) {
- Err(_) => {
- errorf!("=== {}: ignoring librustc panic\n", path.display());
- true
- }
- Ok(Err(equal)) => equal,
- Ok(Ok((mut before, mut after))) => {
- normalize(&mut before);
- normalize(&mut after);
- if SpanlessEq::eq(&before, &after) {
- errorf!(
- "=== {}: pass in {}ms\n",
- path.display(),
- elapsed.as_secs() * 1000 + u64::from(elapsed.subsec_nanos()) / 1_000_000
- );
- true
- } else {
- errorf!(
- "=== {}: FAIL\n{}\n!=\n{}\n",
- path.display(),
- pprust::crate_to_string_for_macros(&before),
- pprust::crate_to_string_for_macros(&after),
- );
- false
- }
- }
- };
- if !equal {
- failed();
- }
- });
-}
-
-fn librustc_parse(content: String, sess: &ParseSess) -> PResult<Crate> {
- static COUNTER: AtomicUsize = AtomicUsize::new(0);
- let counter = COUNTER.fetch_add(1, Ordering::Relaxed);
- let name = FileName::Custom(format!("test_round_trip{}", counter));
- let mut parser = rustc_parse::new_parser_from_source_str(
- sess,
- name,
- content,
- StripTokens::ShebangAndFrontmatter,
- )
- .unwrap();
- parser.parse_crate_mod()
-}
-
-fn translate_message(diagnostic: &Diag) -> Cow<'static, str> {
- match &diagnostic.messages[0].0 {
- DiagMessage::Str(msg) | DiagMessage::Inline(msg) => msg.clone(),
- }
-}
-
-fn normalize(krate: &mut Crate) {
- struct NormalizeVisitor;
-
- impl MutVisitor for NormalizeVisitor {
- fn visit_generic_args(&mut self, e: &mut GenericArgs) {
- if let GenericArgs::AngleBracketed(e) = e {
- #[derive(Ord, PartialOrd, Eq, PartialEq)]
- enum Group {
- Lifetimes,
- TypesAndConsts,
- Constraints,
- }
- e.args.sort_by_key(|arg| match arg {
- AngleBracketedArg::Arg(arg) => match arg {
- GenericArg::Lifetime(_) => Group::Lifetimes,
- GenericArg::Type(_) | GenericArg::Const(_) => Group::TypesAndConsts,
- },
- AngleBracketedArg::Constraint(_) => Group::Constraints,
- });
- }
- mut_visit::walk_generic_args(self, e);
- }
-
- fn visit_generics(&mut self, e: &mut Generics) {
- #[derive(Ord, PartialOrd, Eq, PartialEq)]
- enum Group {
- Lifetimes,
- TypesAndConsts,
- }
- e.params.sort_by_key(|param| match param.kind {
- GenericParamKind::Lifetime => Group::Lifetimes,
- GenericParamKind::Type { .. } | GenericParamKind::Const { .. } => {
- Group::TypesAndConsts
- }
- });
- e.params
- .flat_map_in_place(|param| self.flat_map_generic_param(param));
- if e.where_clause.predicates.is_empty() {
- e.where_clause.has_where_token = false;
- }
- }
- }
-
- NormalizeVisitor.visit_crate(krate);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_shebang.rs b/deps/crates/vendor/syn-v2/tests/test_shebang.rs
deleted file mode 100644
index 3b55ddfdd59..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_shebang.rs
+++ /dev/null
@@ -1,73 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-#[test]
-fn test_basic() {
- let content = "#!/usr/bin/env rustx\nfn main() {}";
- let file = syn::parse_file(content).unwrap();
- snapshot!(file, @r##"
- File {
- shebang: Some("#!/usr/bin/env rustx"),
- items: [
- Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "main",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- },
- ],
- }
- "##);
-}
-
-#[test]
-fn test_comment() {
- let content = "#!//am/i/a/comment\n[allow(dead_code)] fn main() {}";
- let file = syn::parse_file(content).unwrap();
- snapshot!(file, @r#"
- File {
- attrs: [
- Attribute {
- style: AttrStyle::Inner,
- meta: Meta::List {
- path: Path {
- segments: [
- PathSegment {
- ident: "allow",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`dead_code`),
- },
- },
- ],
- items: [
- Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "main",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- },
- ],
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_size.rs b/deps/crates/vendor/syn-v2/tests/test_size.rs
deleted file mode 100644
index 29fd43589d4..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_size.rs
+++ /dev/null
@@ -1,54 +0,0 @@
-// Assumes proc-macro2's "span-locations" feature is off.
-
-use std::mem;
-use syn::{Expr, Item, Lit, Pat, Type};
-
-#[rustversion::attr(before(2022-11-24), ignore = "requires nightly-2022-11-24 or newer")]
-#[rustversion::attr(
- since(2022-11-24),
- cfg_attr(not(target_pointer_width = "64"), ignore = "only applicable to 64-bit")
-)]
-#[test]
-fn test_expr_size() {
- assert_eq!(mem::size_of::<Expr>(), 176);
-}
-
-#[rustversion::attr(before(2022-09-09), ignore = "requires nightly-2022-09-09 or newer")]
-#[rustversion::attr(
- since(2022-09-09),
- cfg_attr(not(target_pointer_width = "64"), ignore = "only applicable to 64-bit")
-)]
-#[test]
-fn test_item_size() {
- assert_eq!(mem::size_of::<Item>(), 352);
-}
-
-#[rustversion::attr(before(2023-04-29), ignore = "requires nightly-2023-04-29 or newer")]
-#[rustversion::attr(
- since(2023-04-29),
- cfg_attr(not(target_pointer_width = "64"), ignore = "only applicable to 64-bit")
-)]
-#[test]
-fn test_type_size() {
- assert_eq!(mem::size_of::<Type>(), 224);
-}
-
-#[rustversion::attr(before(2023-04-29), ignore = "requires nightly-2023-04-29 or newer")]
-#[rustversion::attr(
- since(2023-04-29),
- cfg_attr(not(target_pointer_width = "64"), ignore = "only applicable to 64-bit")
-)]
-#[test]
-fn test_pat_size() {
- assert_eq!(mem::size_of::<Pat>(), 184);
-}
-
-#[rustversion::attr(before(2023-12-20), ignore = "requires nightly-2023-12-20 or newer")]
-#[rustversion::attr(
- since(2023-12-20),
- cfg_attr(not(target_pointer_width = "64"), ignore = "only applicable to 64-bit")
-)]
-#[test]
-fn test_lit_size() {
- assert_eq!(mem::size_of::<Lit>(), 24);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_stmt.rs b/deps/crates/vendor/syn-v2/tests/test_stmt.rs
deleted file mode 100644
index 101c1b1c906..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_stmt.rs
+++ /dev/null
@@ -1,337 +0,0 @@
-#![allow(
- clippy::assertions_on_result_states,
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::non_ascii_literal,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree};
-use quote::{quote, ToTokens as _};
-use syn::parse::Parser as _;
-use syn::{Block, Stmt};
-
-#[test]
-fn test_raw_operator() {
- let stmt = syn::parse_str::<Stmt>("let _ = &raw const x;").unwrap();
-
- snapshot!(stmt, @r#"
- Stmt::Local {
- pat: Pat::Wild,
- init: Some(LocalInit {
- expr: Expr::RawAddr {
- mutability: PointerMutability::Const,
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "x",
- },
- ],
- },
- },
- },
- }),
- }
- "#);
-}
-
-#[test]
-fn test_raw_variable() {
- let stmt = syn::parse_str::<Stmt>("let _ = &raw;").unwrap();
-
- snapshot!(stmt, @r#"
- Stmt::Local {
- pat: Pat::Wild,
- init: Some(LocalInit {
- expr: Expr::Reference {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "raw",
- },
- ],
- },
- },
- },
- }),
- }
- "#);
-}
-
-#[test]
-fn test_raw_invalid() {
- assert!(syn::parse_str::<Stmt>("let _ = &raw x;").is_err());
-}
-
-#[test]
-fn test_none_group() {
- // «∅ async fn f() {} ∅»
- let tokens = TokenStream::from_iter([TokenTree::Group(Group::new(
- Delimiter::None,
- TokenStream::from_iter([
- TokenTree::Ident(Ident::new("async", Span::call_site())),
- TokenTree::Ident(Ident::new("fn", Span::call_site())),
- TokenTree::Ident(Ident::new("f", Span::call_site())),
- TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())),
- TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())),
- ]),
- ))]);
- snapshot!(tokens as Stmt, @r#"
- Stmt::Item(Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- asyncness: Some,
- ident: "f",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [],
- },
- })
- "#);
-
- let tokens = Group::new(Delimiter::None, quote!(let None = None)).to_token_stream();
- let stmts = Block::parse_within.parse2(tokens).unwrap();
- snapshot!(stmts, @r#"
- [
- Stmt::Expr(
- Expr::Group {
- expr: Expr::Let {
- pat: Pat::Ident {
- ident: "None",
- },
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "None",
- },
- ],
- },
- },
- },
- },
- None,
- ),
- ]
- "#);
-}
-
-#[test]
-fn test_let_dot_dot() {
- let tokens = quote! {
- let .. = 10;
- };
-
- snapshot!(tokens as Stmt, @r#"
- Stmt::Local {
- pat: Pat::Rest,
- init: Some(LocalInit {
- expr: Expr::Lit {
- lit: 10,
- },
- }),
- }
- "#);
-}
-
-#[test]
-fn test_let_else() {
- let tokens = quote! {
- let Some(x) = None else { return 0; };
- };
-
- snapshot!(tokens as Stmt, @r#"
- Stmt::Local {
- pat: Pat::TupleStruct {
- path: Path {
- segments: [
- PathSegment {
- ident: "Some",
- },
- ],
- },
- elems: [
- Pat::Ident {
- ident: "x",
- },
- ],
- },
- init: Some(LocalInit {
- expr: Expr::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "None",
- },
- ],
- },
- },
- diverge: Some(Expr::Block {
- block: Block {
- stmts: [
- Stmt::Expr(
- Expr::Return {
- expr: Some(Expr::Lit {
- lit: 0,
- }),
- },
- Some,
- ),
- ],
- },
- }),
- }),
- }
- "#);
-}
-
-#[test]
-fn test_macros() {
- let tokens = quote! {
- fn main() {
- macro_rules! mac {}
- thread_local! { static FOO }
- println!("");
- vec![]
- }
- };
-
- snapshot!(tokens as Stmt, @r#"
- Stmt::Item(Item::Fn {
- vis: Visibility::Inherited,
- sig: Signature {
- ident: "main",
- generics: Generics,
- output: ReturnType::Default,
- },
- block: Block {
- stmts: [
- Stmt::Item(Item::Macro {
- ident: Some("mac"),
- mac: Macro {
- path: Path {
- segments: [
- PathSegment {
- ident: "macro_rules",
- },
- ],
- },
- delimiter: MacroDelimiter::Brace,
- tokens: TokenStream(``),
- },
- }),
- Stmt::Macro {
- mac: Macro {
- path: Path {
- segments: [
- PathSegment {
- ident: "thread_local",
- },
- ],
- },
- delimiter: MacroDelimiter::Brace,
- tokens: TokenStream(`static FOO`),
- },
- },
- Stmt::Macro {
- mac: Macro {
- path: Path {
- segments: [
- PathSegment {
- ident: "println",
- },
- ],
- },
- delimiter: MacroDelimiter::Paren,
- tokens: TokenStream(`""`),
- },
- semi_token: Some,
- },
- Stmt::Expr(
- Expr::Macro {
- mac: Macro {
- path: Path {
- segments: [
- PathSegment {
- ident: "vec",
- },
- ],
- },
- delimiter: MacroDelimiter::Bracket,
- tokens: TokenStream(``),
- },
- },
- None,
- ),
- ],
- },
- })
- "#);
-}
-
-#[test]
-fn test_early_parse_loop() {
- // The following is an Expr::Loop followed by Expr::Tuple. It is not an
- // Expr::Call.
- let tokens = quote! {
- loop {}
- ()
- };
-
- let stmts = Block::parse_within.parse2(tokens).unwrap();
-
- snapshot!(stmts, @r#"
- [
- Stmt::Expr(
- Expr::Loop {
- body: Block {
- stmts: [],
- },
- },
- None,
- ),
- Stmt::Expr(
- Expr::Tuple,
- None,
- ),
- ]
- "#);
-
- let tokens = quote! {
- 'a: loop {}
- ()
- };
-
- let stmts = Block::parse_within.parse2(tokens).unwrap();
-
- snapshot!(stmts, @r#"
- [
- Stmt::Expr(
- Expr::Loop {
- label: Some(Label {
- name: Lifetime {
- ident: "a",
- },
- }),
- body: Block {
- stmts: [],
- },
- },
- None,
- ),
- Stmt::Expr(
- Expr::Tuple,
- None,
- ),
- ]
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_token_trees.rs b/deps/crates/vendor/syn-v2/tests/test_token_trees.rs
deleted file mode 100644
index 1b473858cd1..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_token_trees.rs
+++ /dev/null
@@ -1,38 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::TokenStream;
-use quote::quote;
-use syn::Lit;
-
-#[test]
-fn test_struct() {
- let input = "
- #[derive(Debug, Clone)]
- pub struct Item {
- pub ident: Ident,
- pub attrs: Vec<Attribute>,
- }
- ";
-
- snapshot!(input as TokenStream, @r##"
- TokenStream(
- `# [derive (Debug , Clone)] pub struct Item { pub ident : Ident , pub attrs : Vec < Attribute >, }`,
- )
- "##);
-}
-
-#[test]
-fn test_literal_mangling() {
- let code = "0_4";
- let parsed: Lit = syn::parse_str(code).unwrap();
- assert_eq!(code, quote!(#parsed).to_string());
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_ty.rs b/deps/crates/vendor/syn-v2/tests/test_ty.rs
deleted file mode 100644
index 5f292201147..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_ty.rs
+++ /dev/null
@@ -1,471 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree};
-use quote::{quote, ToTokens as _};
-use syn::punctuated::Punctuated;
-use syn::{parse_quote, token, Token, Type, TypeTuple};
-
-#[test]
-fn test_mut_self() {
- syn::parse_str::<Type>("fn(mut self)").unwrap();
- syn::parse_str::<Type>("fn(mut self,)").unwrap();
- syn::parse_str::<Type>("fn(mut self: ())").unwrap();
- syn::parse_str::<Type>("fn(mut self: ...)").unwrap_err();
- syn::parse_str::<Type>("fn(mut self: mut self)").unwrap_err();
- syn::parse_str::<Type>("fn(mut self::T)").unwrap_err();
-}
-
-#[test]
-fn test_macro_variable_type() {
- // mimics the token stream corresponding to `$ty<T>`
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { ty })),
- TokenTree::Punct(Punct::new('<', Spacing::Alone)),
- TokenTree::Ident(Ident::new("T", Span::call_site())),
- TokenTree::Punct(Punct::new('>', Spacing::Alone)),
- ]);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "ty",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- }
- "#);
-
- // mimics the token stream corresponding to `$ty::<T>`
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { ty })),
- TokenTree::Punct(Punct::new(':', Spacing::Joint)),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- TokenTree::Punct(Punct::new('<', Spacing::Alone)),
- TokenTree::Ident(Ident::new("T", Span::call_site())),
- TokenTree::Punct(Punct::new('>', Spacing::Alone)),
- ]);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "ty",
- arguments: PathArguments::AngleBracketed {
- colon2_token: Some,
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn test_group_angle_brackets() {
- // mimics the token stream corresponding to `Option<$ty>`
- let tokens = TokenStream::from_iter([
- TokenTree::Ident(Ident::new("Option", Span::call_site())),
- TokenTree::Punct(Punct::new('<', Spacing::Alone)),
- TokenTree::Group(Group::new(Delimiter::None, quote! { Vec<u8> })),
- TokenTree::Punct(Punct::new('>', Spacing::Alone)),
- ]);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Option",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Group {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Vec",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "u8",
- },
- ],
- },
- }),
- ],
- },
- },
- ],
- },
- },
- }),
- ],
- },
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn test_group_colons() {
- // mimics the token stream corresponding to `$ty::Item`
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { Vec<u8> })),
- TokenTree::Punct(Punct::new(':', Spacing::Joint)),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- TokenTree::Ident(Ident::new("Item", Span::call_site())),
- ]);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "Vec",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Type(Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "u8",
- },
- ],
- },
- }),
- ],
- },
- },
- Token![::],
- PathSegment {
- ident: "Item",
- },
- ],
- },
- }
- "#);
-
- let tokens = TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, quote! { [T] })),
- TokenTree::Punct(Punct::new(':', Spacing::Joint)),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- TokenTree::Ident(Ident::new("Element", Span::call_site())),
- ]);
-
- snapshot!(tokens as Type, @r#"
- Type::Path {
- qself: Some(QSelf {
- ty: Type::Slice {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "T",
- },
- ],
- },
- },
- },
- position: 0,
- }),
- path: Path {
- leading_colon: Some,
- segments: [
- PathSegment {
- ident: "Element",
- },
- ],
- },
- }
- "#);
-}
-
-#[test]
-fn test_trait_object() {
- let tokens = quote!(dyn for<'a> Trait<'a> + 'static);
- snapshot!(tokens as Type, @r#"
- Type::TraitObject {
- dyn_token: Some,
- bounds: [
- TypeParamBound::Trait(TraitBound {
- lifetimes: Some(BoundLifetimes {
- lifetimes: [
- GenericParam::Lifetime(LifetimeParam {
- lifetime: Lifetime {
- ident: "a",
- },
- }),
- ],
- }),
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- arguments: PathArguments::AngleBracketed {
- args: [
- GenericArgument::Lifetime(Lifetime {
- ident: "a",
- }),
- ],
- },
- },
- ],
- },
- }),
- Token![+],
- TypeParamBound::Lifetime {
- ident: "static",
- },
- ],
- }
- "#);
-
- let tokens = quote!(dyn 'a + Trait);
- snapshot!(tokens as Type, @r#"
- Type::TraitObject {
- dyn_token: Some,
- bounds: [
- TypeParamBound::Lifetime {
- ident: "a",
- },
- Token![+],
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- }),
- ],
- }
- "#);
-
- // None of the following are valid Rust types.
- syn::parse_str::<Type>("for<'a> dyn Trait<'a>").unwrap_err();
- syn::parse_str::<Type>("dyn for<'a> 'a + Trait").unwrap_err();
-}
-
-#[test]
-fn test_trailing_plus() {
- #[rustfmt::skip]
- let tokens = quote!(impl Trait +);
- snapshot!(tokens as Type, @r#"
- Type::ImplTrait {
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- }),
- Token![+],
- ],
- }
- "#);
-
- #[rustfmt::skip]
- let tokens = quote!(dyn Trait +);
- snapshot!(tokens as Type, @r#"
- Type::TraitObject {
- dyn_token: Some,
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- }),
- Token![+],
- ],
- }
- "#);
-
- #[rustfmt::skip]
- let tokens = quote!(Trait +);
- snapshot!(tokens as Type, @r#"
- Type::TraitObject {
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Trait",
- },
- ],
- },
- }),
- Token![+],
- ],
- }
- "#);
-}
-
-#[test]
-fn test_tuple_comma() {
- let mut expr = TypeTuple {
- paren_token: token::Paren::default(),
- elems: Punctuated::new(),
- };
- snapshot!(expr.to_token_stream() as Type, @"Type::Tuple");
-
- expr.elems.push_value(parse_quote!(_));
- // Must not parse to Type::Paren
- snapshot!(expr.to_token_stream() as Type, @r#"
- Type::Tuple {
- elems: [
- Type::Infer,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Type, @r#"
- Type::Tuple {
- elems: [
- Type::Infer,
- Token![,],
- ],
- }
- "#);
-
- expr.elems.push_value(parse_quote!(_));
- snapshot!(expr.to_token_stream() as Type, @r#"
- Type::Tuple {
- elems: [
- Type::Infer,
- Token![,],
- Type::Infer,
- ],
- }
- "#);
-
- expr.elems.push_punct(<Token![,]>::default());
- snapshot!(expr.to_token_stream() as Type, @r#"
- Type::Tuple {
- elems: [
- Type::Infer,
- Token![,],
- Type::Infer,
- Token![,],
- ],
- }
- "#);
-}
-
-#[test]
-fn test_impl_trait_use() {
- let tokens = quote! {
- impl Sized + use<'_, 'a, A, Test>
- };
-
- snapshot!(tokens as Type, @r#"
- Type::ImplTrait {
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- }),
- Token![+],
- TypeParamBound::PreciseCapture(PreciseCapture {
- params: [
- CapturedParam::Lifetime(Lifetime {
- ident: "_",
- }),
- Token![,],
- CapturedParam::Lifetime(Lifetime {
- ident: "a",
- }),
- Token![,],
- CapturedParam::Ident("A"),
- Token![,],
- CapturedParam::Ident("Test"),
- ],
- }),
- ],
- }
- "#);
-
- let trailing = quote! {
- impl Sized + use<'_,>
- };
-
- snapshot!(trailing as Type, @r#"
- Type::ImplTrait {
- bounds: [
- TypeParamBound::Trait(TraitBound {
- path: Path {
- segments: [
- PathSegment {
- ident: "Sized",
- },
- ],
- },
- }),
- Token![+],
- TypeParamBound::PreciseCapture(PreciseCapture {
- params: [
- CapturedParam::Lifetime(Lifetime {
- ident: "_",
- }),
- Token![,],
- ],
- }),
- ],
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_unparenthesize.rs b/deps/crates/vendor/syn-v2/tests/test_unparenthesize.rs
deleted file mode 100644
index 5fa2e59e14b..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_unparenthesize.rs
+++ /dev/null
@@ -1,70 +0,0 @@
-#![cfg(not(miri))]
-#![recursion_limit = "1024"]
-#![feature(rustc_private)]
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::manual_assert,
- clippy::match_like_matches_macro,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-use crate::common::visit::{AsIfPrinted, FlattenParens};
-use quote::ToTokens as _;
-use std::fs;
-use std::panic;
-use std::path::Path;
-use std::sync::atomic::{AtomicUsize, Ordering};
-use syn::visit_mut::VisitMut as _;
-
-#[macro_use]
-mod macros;
-
-mod common;
-mod repo;
-
-#[test]
-fn test_unparenthesize() {
- repo::rayon_init();
- repo::clone_rust();
-
- let failed = AtomicUsize::new(0);
-
- repo::for_each_rust_file(|path| test(path, &failed));
-
- let failed = failed.into_inner();
- if failed > 0 {
- panic!("{} failures", failed);
- }
-}
-
-fn test(path: &Path, failed: &AtomicUsize) {
- let content = fs::read_to_string(path).unwrap();
-
- match panic::catch_unwind(|| -> syn::Result<()> {
- let mut before = syn::parse_file(&content)?;
- FlattenParens::discard_attrs().visit_file_mut(&mut before);
- let printed = before.to_token_stream();
- let mut after = syn::parse2::<syn::File>(printed.clone())?;
- FlattenParens::discard_attrs().visit_file_mut(&mut after);
- // Normalize features that we expect Syn not to print.
- AsIfPrinted.visit_file_mut(&mut before);
- if before != after {
- errorf!("=== {}\n", path.display());
- if failed.fetch_add(1, Ordering::Relaxed) == 0 {
- errorf!("BEFORE:\n{:#?}\nAFTER:\n{:#?}\n", before, after);
- }
- }
- Ok(())
- }) {
- Err(_) => {
- errorf!("=== {}: syn panic\n", path.display());
- failed.fetch_add(1, Ordering::Relaxed);
- }
- Ok(Err(msg)) => {
- errorf!("=== {}: syn failed to parse\n{:?}\n", path.display(), msg);
- failed.fetch_add(1, Ordering::Relaxed);
- }
- Ok(Ok(())) => {}
- }
-}
diff --git a/deps/crates/vendor/syn-v2/tests/test_visibility.rs b/deps/crates/vendor/syn-v2/tests/test_visibility.rs
deleted file mode 100644
index cf15574b510..00000000000
--- a/deps/crates/vendor/syn-v2/tests/test_visibility.rs
+++ /dev/null
@@ -1,191 +0,0 @@
-#![allow(
- clippy::elidable_lifetime_names,
- clippy::needless_lifetimes,
- clippy::uninlined_format_args
-)]
-
-#[macro_use]
-mod snapshot;
-
-mod debug;
-
-use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree};
-use quote::quote;
-use syn::parse::{Parse, ParseStream};
-use syn::{DeriveInput, Result, Visibility};
-
-#[derive(Debug)]
-struct VisRest {
- vis: Visibility,
- rest: TokenStream,
-}
-
-impl Parse for VisRest {
- fn parse(input: ParseStream) -> Result<Self> {
- Ok(VisRest {
- vis: input.parse()?,
- rest: input.parse()?,
- })
- }
-}
-
-macro_rules! assert_vis_parse {
- ($input:expr, Ok($p:pat)) => {
- assert_vis_parse!($input, Ok($p) + "");
- };
-
- ($input:expr, Ok($p:pat) + $rest:expr) => {
- let expected = $rest.parse::<TokenStream>().unwrap();
- let parse: VisRest = syn::parse_str($input).unwrap();
-
- match parse.vis {
- $p => {}
- _ => panic!("expected {}, got {:?}", stringify!($p), parse.vis),
- }
-
- // NOTE: Round-trips through `to_string` to avoid potential whitespace
- // diffs.
- assert_eq!(parse.rest.to_string(), expected.to_string());
- };
-
- ($input:expr, Err) => {
- syn::parse2::<VisRest>($input.parse().unwrap()).unwrap_err();
- };
-}
-
-#[test]
-fn test_pub() {
- assert_vis_parse!("pub", Ok(Visibility::Public(_)));
-}
-
-#[test]
-fn test_inherited() {
- assert_vis_parse!("", Ok(Visibility::Inherited));
-}
-
-#[test]
-fn test_in() {
- assert_vis_parse!("pub(in foo::bar)", Ok(Visibility::Restricted(_)));
-}
-
-#[test]
-fn test_pub_crate() {
- assert_vis_parse!("pub(crate)", Ok(Visibility::Restricted(_)));
-}
-
-#[test]
-fn test_pub_self() {
- assert_vis_parse!("pub(self)", Ok(Visibility::Restricted(_)));
-}
-
-#[test]
-fn test_pub_super() {
- assert_vis_parse!("pub(super)", Ok(Visibility::Restricted(_)));
-}
-
-#[test]
-fn test_missing_in() {
- assert_vis_parse!("pub(foo::bar)", Ok(Visibility::Public(_)) + "(foo::bar)");
-}
-
-#[test]
-fn test_missing_in_path() {
- assert_vis_parse!("pub(in)", Err);
-}
-
-#[test]
-fn test_crate_path() {
- assert_vis_parse!(
- "pub(crate::A, crate::B)",
- Ok(Visibility::Public(_)) + "(crate::A, crate::B)"
- );
-}
-
-#[test]
-fn test_junk_after_in() {
- assert_vis_parse!("pub(in some::path @@garbage)", Err);
-}
-
-#[test]
-fn test_inherited_vis_named_field() {
- // mimics `struct S { $vis $field: () }` where $vis is empty
- let tokens = TokenStream::from_iter([
- TokenTree::Ident(Ident::new("struct", Span::call_site())),
- TokenTree::Ident(Ident::new("S", Span::call_site())),
- TokenTree::Group(Group::new(
- Delimiter::Brace,
- TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())),
- TokenTree::Group(Group::new(Delimiter::None, quote!(f))),
- TokenTree::Punct(Punct::new(':', Spacing::Alone)),
- TokenTree::Group(Group::new(Delimiter::Parenthesis, TokenStream::new())),
- ]),
- )),
- ]);
-
- snapshot!(tokens as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Named {
- named: [
- Field {
- vis: Visibility::Inherited,
- ident: Some("f"),
- colon_token: Some,
- ty: Type::Tuple,
- },
- ],
- },
- },
- }
- "#);
-}
-
-#[test]
-fn test_inherited_vis_unnamed_field() {
- // mimics `struct S($vis $ty);` where $vis is empty
- let tokens = TokenStream::from_iter([
- TokenTree::Ident(Ident::new("struct", Span::call_site())),
- TokenTree::Ident(Ident::new("S", Span::call_site())),
- TokenTree::Group(Group::new(
- Delimiter::Parenthesis,
- TokenStream::from_iter([
- TokenTree::Group(Group::new(Delimiter::None, TokenStream::new())),
- TokenTree::Group(Group::new(Delimiter::None, quote!(str))),
- ]),
- )),
- TokenTree::Punct(Punct::new(';', Spacing::Alone)),
- ]);
-
- snapshot!(tokens as DeriveInput, @r#"
- DeriveInput {
- vis: Visibility::Inherited,
- ident: "S",
- generics: Generics,
- data: Data::Struct {
- fields: Fields::Unnamed {
- unnamed: [
- Field {
- vis: Visibility::Inherited,
- ty: Type::Group {
- elem: Type::Path {
- path: Path {
- segments: [
- PathSegment {
- ident: "str",
- },
- ],
- },
- },
- },
- },
- ],
- },
- semi_token: Some,
- },
- }
- "#);
-}
diff --git a/deps/crates/vendor/syn-v2/tests/zzz_stable.rs b/deps/crates/vendor/syn-v2/tests/zzz_stable.rs
deleted file mode 100644
index a1a670d9ede..00000000000
--- a/deps/crates/vendor/syn-v2/tests/zzz_stable.rs
+++ /dev/null
@@ -1,33 +0,0 @@
-#![cfg(syn_disable_nightly_tests)]
-
-use std::io::{self, Write};
-use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
-
-const MSG: &str = "\
-‖
-‖ WARNING:
-‖ This is not a nightly compiler so not all tests were able to
-‖ run. Syn includes tests that compare Syn's parser against the
-‖ compiler's parser, which requires access to unstable librustc
-‖ data structures and a nightly compiler.
-‖
-";
-
-#[test]
-fn notice() -> io::Result<()> {
- let header = "WARNING";
- let index_of_header = MSG.find(header).unwrap();
- let before = &MSG[..index_of_header];
- let after = &MSG[index_of_header + header.len()..];
-
- let mut stderr = StandardStream::stderr(ColorChoice::Auto);
- stderr.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)))?;
- write!(&mut stderr, "{}", before)?;
- stderr.set_color(ColorSpec::new().set_bold(true).set_fg(Some(Color::Yellow)))?;
- write!(&mut stderr, "{}", header)?;
- stderr.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)))?;
- write!(&mut stderr, "{}", after)?;
- stderr.reset()?;
-
- Ok(())
-}
diff --git a/deps/crates/vendor/syn-v3/.cargo_vcs_info.json b/deps/crates/vendor/syn-v3/.cargo_vcs_info.json
index f8dfb219e1e..305c7a37416 100644
--- a/deps/crates/vendor/syn-v3/.cargo_vcs_info.json
+++ b/deps/crates/vendor/syn-v3/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "e0ad92d68b588c964e82bb74c3bd3e1e99f97ceb"
+ "sha1": "559cab55ef0c644f77660840edc3620d0d99d3d7"
},
"path_in_vcs": ""
}
\ No newline at end of file
diff --git a/deps/crates/vendor/syn-v3/Cargo.lock b/deps/crates/vendor/syn-v3/Cargo.lock
index f15946967cf..d80901b46f0 100644
--- a/deps/crates/vendor/syn-v3/Cargo.lock
+++ b/deps/crates/vendor/syn-v3/Cargo.lock
@@ -60,11 +60,17 @@ version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
[[package]]
name = "bitflags"
-version = "2.13.1"
+version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
[[package]]
name = "bumpalo"
@@ -80,9 +86,9 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
[[package]]
name = "cc"
-version = "1.4.5"
+version = "1.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80"
+checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -92,9 +98,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "cfg_aliases"
@@ -134,9 +140,9 @@ dependencies = [
[[package]]
name = "console"
-version = "0.16.4"
+version = "0.16.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fe5f465a4f6fee88fad41b85d990f84c835335e85b5d9e6e63e0d06d28cba7c"
+checksum = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3"
dependencies = [
"encode_unicode",
"libc",
@@ -169,6 +175,12 @@ version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+[[package]]
+name = "core_detect"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
+
[[package]]
name = "cpufeatures"
version = "0.3.1"
@@ -180,18 +192,18 @@ dependencies = [
[[package]]
name = "crc32fast"
-version = "1.5.1"
+version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"
+checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
dependencies = [
"cfg-if",
]
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -199,18 +211,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "displaydoc"
@@ -220,7 +232,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -243,11 +255,17 @@ checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
[[package]]
name = "encoding_rs"
-version = "0.8.35"
+version = "0.8.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
+checksum = "7b5ef0006ac9ab233c38522f5ae99cae3625151de8f706cacee1cba4b8e2832a"
dependencies = [
"cfg-if",
+ "core_detect",
+ "multiversion",
+ "multiversion_no_op",
+ "rustversion",
+ "scopeguard",
+ "simdutf8",
]
[[package]]
@@ -502,7 +520,7 @@ version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
dependencies = [
- "base64",
+ "base64 0.22.1",
"bytes",
"futures-channel",
"futures-util",
@@ -627,9 +645,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.14.1"
+version = "2.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07aa2048142242915a31d35844fb311e0e53fcca590c3a0a40dcf1b841fa09eb"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
dependencies = [
"equivalent",
"hashbrown",
@@ -649,9 +667,9 @@ dependencies = [
[[package]]
name = "ipnet"
-version = "2.12.1"
+version = "2.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
+checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
[[package]]
name = "itoa"
@@ -720,9 +738,9 @@ dependencies = [
[[package]]
name = "js-sys"
-version = "0.3.104"
+version = "0.3.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"
+checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e"
dependencies = [
"cfg-if",
"futures-util",
@@ -755,9 +773,9 @@ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
[[package]]
name = "lru-slab"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
+checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"
[[package]]
name = "memchr"
@@ -792,6 +810,33 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "multiversion"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4ca4bea16ffc3f443cf7d866912118196bfef4c6a1556ca00f9f9b00bb43f7c"
+dependencies = [
+ "multiversion-macros",
+]
+
+[[package]]
+name = "multiversion-macros"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d416831a7317ef4b08bee00b69cbbb9c8763da7959a7026244d6266869f9c83"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustversion",
+ "syn 3.0.5",
+]
+
+[[package]]
+name = "multiversion_no_op"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
+
[[package]]
name = "once_cell"
version = "1.21.4"
@@ -842,9 +887,9 @@ dependencies = [
[[package]]
name = "quinn"
-version = "0.11.11"
+version = "0.11.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
+checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"
dependencies = [
"bytes",
"cfg_aliases",
@@ -862,9 +907,9 @@ dependencies = [
[[package]]
name = "quinn-proto"
-version = "0.11.17"
+version = "0.11.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83"
+checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc"
dependencies = [
"aws-lc-rs",
"bytes",
@@ -975,16 +1020,16 @@ checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
name = "reqwest"
-version = "0.13.4"
+version = "0.13.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
dependencies = [
- "base64",
+ "base64 0.23.1",
"bytes",
"encoding_rs",
"futures-channel",
@@ -1062,9 +1107,9 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.43"
+version = "0.23.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
+checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
dependencies = [
"aws-lc-rs",
"once_cell",
@@ -1159,6 +1204,12 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
[[package]]
name = "security-framework"
version = "3.7.0"
@@ -1214,7 +1265,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -1259,9 +1310,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
[[package]]
name = "smallvec"
-version = "1.16.0"
+version = "1.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f"
+checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891"
[[package]]
name = "socket2"
@@ -1298,9 +1349,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.4"
+version = "3.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
+checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
dependencies = [
"proc-macro2",
"quote",
@@ -1309,7 +1360,7 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.5"
+version = "3.0.6"
dependencies = [
"anyhow",
"automod",
@@ -1345,13 +1396,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.5",
]
[[package]]
@@ -1425,7 +1476,7 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
@@ -1440,18 +1491,9 @@ dependencies = [
[[package]]
name = "tinyvec"
-version = "1.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cf0ded5c4e56918d8f8a339e1bb67d038d3bc6d144ac407904015ba2e4cde9b"
-dependencies = [
- "tinyvec_macros",
-]
-
-[[package]]
-name = "tinyvec_macros"
-version = "0.1.1"
+version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
[[package]]
name = "tokio"
@@ -1563,9 +1605,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "ab72a15cf68d77cb0987d3684aa8a45c5ef827e8cb49ee2f30bfd7ba2feb519f"
[[package]]
name = "untrusted"
@@ -1618,9 +1660,9 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasm-bindgen"
-version = "0.2.127"
+version = "0.2.128"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"
+checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf"
dependencies = [
"cfg-if",
"once_cell",
@@ -1631,9 +1673,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.77"
+version = "0.4.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950"
+checksum = "6ef4c5d3d2cdf5c54f4231181768f5510842e350db025faf1f7163b1030ed928"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -1641,9 +1683,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.127"
+version = "0.2.128"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"
+checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -1651,31 +1693,31 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.127"
+version = "0.2.128"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"
+checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.5",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.127"
+version = "0.2.128"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"
+checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e"
dependencies = [
"unicode-ident",
]
[[package]]
name = "web-sys"
-version = "0.3.104"
+version = "0.3.105"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30"
+checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -1855,13 +1897,13 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "33811428bee40dbceb6d545e95754741d17a6aef9a4849f0fd62e2ba4f412a78"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.5",
"synstructure",
]
@@ -1876,13 +1918,13 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.5",
"synstructure",
]
@@ -1922,11 +1964,11 @@ checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.4",
+ "syn 3.0.5",
]
[[package]]
name = "zlib-rs"
-version = "0.6.7"
+version = "0.6.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
diff --git a/deps/crates/vendor/syn-v3/Cargo.toml b/deps/crates/vendor/syn-v3/Cargo.toml
index a18bffecfd3..7a29350790c 100644
--- a/deps/crates/vendor/syn-v3/Cargo.toml
+++ b/deps/crates/vendor/syn-v3/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.71"
name = "syn"
-version = "3.0.5"
+version = "3.0.6"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = false
include = [
diff --git a/deps/crates/vendor/syn-v3/Cargo.toml.orig b/deps/crates/vendor/syn-v3/Cargo.toml.orig
index 7e6765a0f1a..0e4139a18fd 100644
--- a/deps/crates/vendor/syn-v3/Cargo.toml.orig
+++ b/deps/crates/vendor/syn-v3/Cargo.toml.orig
@@ -1,6 +1,6 @@
[package]
name = "syn"
-version = "3.0.5"
+version = "3.0.6"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
description = "Parser for Rust source code"
diff --git a/deps/crates/vendor/syn-v3/src/expr.rs b/deps/crates/vendor/syn-v3/src/expr.rs
index c9437d50cf3..5e428834419 100644
--- a/deps/crates/vendor/syn-v3/src/expr.rs
+++ b/deps/crates/vendor/syn-v3/src/expr.rs
@@ -1293,13 +1293,12 @@ pub(crate) mod parsing {
#[cfg(feature = "full")]
use crate::generics::{self, BoundLifetimes};
use crate::ident::Ident;
- #[cfg(feature = "full")]
use crate::lifetime::Lifetime;
use crate::lit::{Lit, LitFloat, LitInt};
use crate::mac::{self, Macro};
use crate::op::BinOp;
use crate::parse::discouraged::Speculative as _;
- use crate::parse::{Parse, ParseStream};
+ use crate::parse::{End, Parse, ParseStream};
#[cfg(feature = "full")]
use crate::pat::{Pat, PatType};
use crate::path::{self, AngleBracketedGenericArguments, Path, QSelf};
@@ -1342,7 +1341,10 @@ pub(crate) mod parsing {
#[cfg(feature = "full")]
pub(super) fn parse_with_earlier_boundary_rule(input: ParseStream) -> Result<Expr> {
let mut attrs = input.call(expr_attrs)?;
- let mut expr = if input.peek(token::Group) {
+ let mut expr = if input.peek(token::Group) && {
+ let group = crate::group::parse_group(&input.fork())?;
+ !(group.content.peek(Lifetime) && group.content.peek2(End))
+ } {
let allow_struct = AllowStruct(true);
let atom = expr_group(input, allow_struct)?;
if continue_parsing_early(&atom) {
@@ -1894,7 +1896,10 @@ pub(crate) mod parsing {
// interactions, as they are fully contained.
#[cfg(feature = "full")]
fn atom_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> {
- if input.peek(token::Group) {
+ if input.peek(token::Group) && {
+ let group = crate::group::parse_group(&input.fork())?;
+ !(group.content.peek(Lifetime) && group.content.peek2(End))
+ } {
expr_group(input, allow_struct)
} else if input.peek(Lit) {
input.parse().map(Expr::Lit)
@@ -1994,7 +1999,10 @@ pub(crate) mod parsing {
#[cfg(not(feature = "full"))]
fn atom_expr(input: ParseStream) -> Result<Expr> {
- if input.peek(token::Group) {
+ if input.peek(token::Group) && {
+ let group = crate::group::parse_group(&input.fork())?;
+ !(group.content.peek(Lifetime) && group.content.peek2(End))
+ } {
expr_group(input)
} else if input.peek(Lit) {
input.parse().map(Expr::Lit)
diff --git a/deps/crates/vendor/syn-v3/src/lib.rs b/deps/crates/vendor/syn-v3/src/lib.rs
index e09d386796c..ffe527aad41 100644
--- a/deps/crates/vendor/syn-v3/src/lib.rs
+++ b/deps/crates/vendor/syn-v3/src/lib.rs
@@ -364,7 +364,7 @@
//! compile and work for downstream users in the interim.
#![no_std]
-#![doc(html_root_url = "https://docs.rs/syn/3.0.5")]
+#![doc(html_root_url = "https://docs.rs/syn/3.0.6")]
#![cfg_attr(docsrs, feature(doc_cfg), doc(auto_cfg = false))]
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(non_camel_case_types)]
diff --git a/deps/crates/vendor/syn-v3/tests/common/eq.rs b/deps/crates/vendor/syn-v3/tests/common/eq.rs
index a55708e54f6..746b29e0c57 100644
--- a/deps/crates/vendor/syn-v3/tests/common/eq.rs
+++ b/deps/crates/vendor/syn-v3/tests/common/eq.rs
@@ -36,7 +36,6 @@ use rustc_ast::ast::ClosureBinder;
use rustc_ast::ast::Const;
use rustc_ast::ast::ConstBlockItem;
use rustc_ast::ast::ConstItem;
-use rustc_ast::ast::ConstItemKind;
use rustc_ast::ast::CoroutineKind;
use rustc_ast::ast::CoroutineMarker;
use rustc_ast::ast::Crate;
@@ -156,6 +155,7 @@ use rustc_ast::ast::StructRest;
use rustc_ast::ast::SyntheticAttr;
use rustc_ast::ast::Term;
use rustc_ast::ast::TestBinderBody;
+use rustc_ast::ast::TestBinderBoundTypeConstraint;
use rustc_ast::ast::TestBinderConstraint;
use rustc_ast::ast::TestBinderConstraints;
use rustc_ast::ast::TestBinderExists;
@@ -506,7 +506,7 @@ spanless_eq_struct!(BindingMode; 0 1);
spanless_eq_struct!(Block; stmts id rules span);
spanless_eq_struct!(Closure; binder capture_clause constness coroutine_marker movability fn_decl body !fn_decl_span !fn_arg_span);
spanless_eq_struct!(ConstBlockItem; id span block);
-spanless_eq_struct!(ConstItem; defaultness ident generics ty body kind define_opaque);
+spanless_eq_struct!(ConstItem; defaultness ident generics ty body define_opaque);
spanless_eq_struct!(CoroutineMarker; kind span closure_id return_impl_trait_id);
spanless_eq_struct!(Crate; attrs items spans id is_placeholder);
spanless_eq_struct!(Delegation; id qself path ident rename body source);
@@ -566,7 +566,8 @@ spanless_eq_struct!(StaticItem; ident ty safety mutability expr define_opaque ei
spanless_eq_struct!(Stmt; id kind span);
spanless_eq_struct!(StrLit; symbol suffix symbol_unescaped style span);
spanless_eq_struct!(StructExpr; qself path fields rest);
-spanless_eq_struct!(TestBinderBody; foralls exists constraints);
+spanless_eq_struct!(TestBinderBody; foralls exists constraints predicates);
+spanless_eq_struct!(TestBinderBoundTypeConstraint; span node_id params lhs rhs);
spanless_eq_struct!(TestBinderConstraints; generics body);
spanless_eq_struct!(TestBinderExists; span node_id params body);
spanless_eq_struct!(TestBinderForall; span node_id generics body assert_on_exit);
@@ -605,7 +606,6 @@ spanless_eq_enum!(ByRef; Yes(0 1) No);
spanless_eq_enum!(CaptureBy; Value(move_kw) Ref Use(use_kw));
spanless_eq_enum!(ClosureBinder; NotPresent For(span generic_params));
spanless_eq_enum!(Const; Yes(0) No);
-spanless_eq_enum!(ConstItemKind; Body TypeConst);
spanless_eq_enum!(CoroutineKind; Async Gen AsyncGen);
spanless_eq_enum!(Defaultness; Implicit Default(0) Final(0));
spanless_eq_enum!(DelegationSource; Single List(0) Glob);
@@ -657,7 +657,7 @@ spanless_eq_enum!(StrStyle; Cooked Raw(0));
spanless_eq_enum!(StructRest; Base(0) Rest(0) None NoneWithError(0));
spanless_eq_enum!(SyntheticAttr; CfgTrace(0) CfgAttrTrace(0));
spanless_eq_enum!(Term; Ty(0) Const(0));
-spanless_eq_enum!(TestBinderConstraint; And(items) Or(items) Lifetime(lhs rhs) Type(lhs rhs));
+spanless_eq_enum!(TestBinderConstraint; And(items) Or(items) Lifetime(lhs rhs) PlaceholderOutlives(lhs rhs) AliasOutlives(bound_type_constraint));
spanless_eq_enum!(TokenTree; Token(0 1) Delimited(0 1 2 3));
spanless_eq_enum!(TraitObjectSyntax; Dyn None);
spanless_eq_enum!(TyPatKind; Range(0 1 2) NotNull Or(0) Err(0));
diff --git a/deps/crates/vendor/syn-v3/tests/test_stmt.rs b/deps/crates/vendor/syn-v3/tests/test_stmt.rs
index 9c2aa2a558b..c66ff43ee93 100644
--- a/deps/crates/vendor/syn-v3/tests/test_stmt.rs
+++ b/deps/crates/vendor/syn-v3/tests/test_stmt.rs
@@ -11,7 +11,7 @@ mod snapshot;
mod debug;
-use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree};
+use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree};
use quote::{quote, ToTokens as _};
use syn::parse::Parser as _;
use syn::{Block, Stmt};
@@ -343,3 +343,36 @@ fn test_early_parse_loop() {
]
"#);
}
+
+// Regression test for https://github.com/dtolnay/syn/issues/2081
+#[test]
+fn test_interpolated_lifetime_at_statement_start() {
+ // «∅ 'a ∅» : loop {}
+ let tokens = TokenStream::from_iter([
+ TokenTree::Group(Group::new(
+ Delimiter::None,
+ TokenStream::from_iter([
+ TokenTree::Punct(Punct::new('\'', Spacing::Joint)),
+ TokenTree::Ident(Ident::new("a", Span::call_site())),
+ ]),
+ )),
+ TokenTree::Punct(Punct::new(':', Spacing::Joint)),
+ TokenTree::Ident(Ident::new("loop", Span::call_site())),
+ TokenTree::Group(Group::new(Delimiter::Brace, TokenStream::new())),
+ ]);
+ snapshot!(tokens as Stmt, @r#"
+ Stmt::Expr(
+ Expr::Loop {
+ label: Some(Label {
+ name: Lifetime {
+ ident: "a",
+ },
+ }),
+ body: Block {
+ stmts: [],
+ },
+ },
+ None,
+ )
+ "#);
+}
diff --git a/deps/crates/vendor/synstructure-v0_13/.cargo-checksum.json b/deps/crates/vendor/synstructure-v0_13/.cargo-checksum.json
deleted file mode 100644
index 697c9ce2fbb..00000000000
--- a/deps/crates/vendor/synstructure-v0_13/.cargo-checksum.json
+++ /dev/null
@@ -1 +0,0 @@
-{"files":{}}
diff --git a/deps/crates/vendor/synstructure-v0_13/.cargo_vcs_info.json b/deps/crates/vendor/synstructure-v0_13/.cargo_vcs_info.json
deleted file mode 100644
index 54efc864c54..00000000000
--- a/deps/crates/vendor/synstructure-v0_13/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "91ead072fa43c55f35880bd7f75a2b0eab72a04e"
- },
- "path_in_vcs": ""
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/icu_locale_data-v2/.cargo-checksum.json b/deps/crates/vendor/synstructure-v0_14/.cargo-checksum.json
similarity index 100%
rename from deps/crates/vendor/icu_locale_data-v2/.cargo-checksum.json
rename to deps/crates/vendor/synstructure-v0_14/.cargo-checksum.json
diff --git a/deps/crates/vendor/synstructure-v0_14/.cargo_vcs_info.json b/deps/crates/vendor/synstructure-v0_14/.cargo_vcs_info.json
new file mode 100644
index 00000000000..ebbb9bb6587
--- /dev/null
+++ b/deps/crates/vendor/synstructure-v0_14/.cargo_vcs_info.json
@@ -0,0 +1,6 @@
+{
+ "git": {
+ "sha1": "30cfafe36e42405e717a8e55da042a2835a698d7"
+ },
+ "path_in_vcs": ""
+}
\ No newline at end of file
diff --git a/deps/crates/vendor/synstructure-v0_13/Cargo.lock b/deps/crates/vendor/synstructure-v0_14/Cargo.lock
similarity index 69%
rename from deps/crates/vendor/synstructure-v0_13/Cargo.lock
rename to deps/crates/vendor/synstructure-v0_14/Cargo.lock
index 5178efe403e..adf7a9671e1 100644
--- a/deps/crates/vendor/synstructure-v0_13/Cargo.lock
+++ b/deps/crates/vendor/synstructure-v0_14/Cargo.lock
@@ -1,30 +1,30 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 4
+version = 3
[[package]]
name = "proc-macro2"
-version = "1.0.60"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.26"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
-version = "2.0.0"
+version = "3.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cff13bb1732bccfe3b246f3fdb09edfd51c01d6f5299b7ccd9457c2e4e37774"
+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
dependencies = [
"proc-macro2",
"quote",
@@ -33,7 +33,7 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
dependencies = [
"proc-macro2",
"quote",
@@ -49,6 +49,6 @@ checksum = "c6e0c1828b7994d45bbef3cbbe56a6157c42db92b82b1a5bf22fb09996d06eac"
[[package]]
name = "unicode-ident"
-version = "1.0.0"
+version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee"
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
diff --git a/deps/crates/vendor/synstructure-v0_13/Cargo.toml b/deps/crates/vendor/synstructure-v0_14/Cargo.toml
similarity index 96%
rename from deps/crates/vendor/synstructure-v0_13/Cargo.toml
rename to deps/crates/vendor/synstructure-v0_14/Cargo.toml
index 095a18e0e75..4c3f07c7e02 100644
--- a/deps/crates/vendor/synstructure-v0_13/Cargo.toml
+++ b/deps/crates/vendor/synstructure-v0_14/Cargo.toml
@@ -11,8 +11,9 @@
[package]
edition = "2018"
+rust-version = "1.71"
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
authors = ["Nika Layzell <nika@thelayzells.com>"]
build = false
include = [
@@ -39,6 +40,14 @@ keywords = [
license = "MIT"
repository = "https://github.com/mystor/synstructure"
+[features]
+default = ["proc-macro"]
+proc-macro = [
+ "proc-macro2/proc-macro",
+ "syn/proc-macro",
+ "quote/proc-macro",
+]
+
[lib]
name = "synstructure"
path = "src/lib.rs"
@@ -52,7 +61,7 @@ version = "1"
default-features = false
[dependencies.syn]
-version = "2"
+version = "3"
features = [
"derive",
"parsing",
@@ -65,11 +74,3 @@ default-features = false
[dev-dependencies.synstructure_test_traits]
version = "0.1"
-
-[features]
-default = ["proc-macro"]
-proc-macro = [
- "proc-macro2/proc-macro",
- "syn/proc-macro",
- "quote/proc-macro",
-]
diff --git a/deps/crates/vendor/synstructure-v0_13/Cargo.toml.orig b/deps/crates/vendor/synstructure-v0_14/Cargo.toml.orig
similarity index 95%
rename from deps/crates/vendor/synstructure-v0_13/Cargo.toml.orig
rename to deps/crates/vendor/synstructure-v0_14/Cargo.toml.orig
index 2edfa63d28e..105fd2a4c22 100644
--- a/deps/crates/vendor/synstructure-v0_13/Cargo.toml.orig
+++ b/deps/crates/vendor/synstructure-v0_14/Cargo.toml.orig
@@ -1,9 +1,9 @@
[package]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
authors = ["Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
-
+rust-version = "1.71"
description = "Helper methods and macros for custom derives"
documentation = "https://docs.rs/synstructure"
repository = "https://github.com/mystor/synstructure"
@@ -22,7 +22,7 @@ proc-macro2 = { version = "1.0.60", default-features = false }
quote = { version = "1", default-features = false }
[dependencies.syn]
-version = "2"
+version = "3"
default-features = false
features = ["derive", "parsing", "printing", "clone-impls", "visit", "extra-traits"]
diff --git a/deps/crates/vendor/synstructure-v0_13/LICENSE b/deps/crates/vendor/synstructure-v0_14/LICENSE
similarity index 100%
rename from deps/crates/vendor/synstructure-v0_13/LICENSE
rename to deps/crates/vendor/synstructure-v0_14/LICENSE
diff --git a/deps/crates/vendor/synstructure-v0_13/README.md b/deps/crates/vendor/synstructure-v0_14/README.md
similarity index 96%
rename from deps/crates/vendor/synstructure-v0_13/README.md
rename to deps/crates/vendor/synstructure-v0_14/README.md
index c7a6c5fd70a..ba62fe9ae06 100644
--- a/deps/crates/vendor/synstructure-v0_13/README.md
+++ b/deps/crates/vendor/synstructure-v0_14/README.md
@@ -3,7 +3,7 @@
[](https://crates.io/crates/synstructure)
[](https://docs.rs/synstructure)
[](https://github.com/mystor/synstructure/actions)
-[](https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html)
+[](https://blog.rust-lang.org/2023/07/13/Rust-1.71.0/)
> NOTE: What follows is an exerpt from the module level documentation. For full
> details read the docs on [docs.rs](https://docs.rs/synstructure/)
diff --git a/deps/crates/vendor/synstructure-v0_13/src/lib.rs b/deps/crates/vendor/synstructure-v0_14/src/lib.rs
similarity index 98%
rename from deps/crates/vendor/synstructure-v0_13/src/lib.rs
rename to deps/crates/vendor/synstructure-v0_14/src/lib.rs
index a1f1c2d3c9d..f5e7ac4de1e 100644
--- a/deps/crates/vendor/synstructure-v0_13/src/lib.rs
+++ b/deps/crates/vendor/synstructure-v0_14/src/lib.rs
@@ -257,31 +257,29 @@ fn merge_generics(into: &mut Generics, from: &Generics) -> Result<()> {
for p in &from.params {
for op in &into.params {
match (op, p) {
- (GenericParam::Type(otp), GenericParam::Type(tp)) => {
- // NOTE: This is only OK because syn ignores the span for equality purposes.
- if otp.ident == tp.ident {
- return Err(Error::new_spanned(
- p,
- format!(
- "Attempted to merge conflicting generic parameters: {} and {}",
- quote!(#op),
- quote!(#p)
- ),
- ));
- }
+ // NOTE: This is only OK because syn ignores the span for equality purposes.
+ (GenericParam::Type(otp), GenericParam::Type(tp)) if otp.ident == tp.ident => {
+ return Err(Error::new_spanned(
+ p,
+ format!(
+ "Attempted to merge conflicting generic parameters: {} and {}",
+ quote!(#op),
+ quote!(#p)
+ ),
+ ));
}
- (GenericParam::Lifetime(olp), GenericParam::Lifetime(lp)) => {
- // NOTE: This is only OK because syn ignores the span for equality purposes.
- if olp.lifetime == lp.lifetime {
- return Err(Error::new_spanned(
- p,
- format!(
- "Attempted to merge conflicting generic parameters: {} and {}",
- quote!(#op),
- quote!(#p)
- ),
- ));
- }
+ // NOTE: This is only OK because syn ignores the span for equality purposes.
+ (GenericParam::Lifetime(olp), GenericParam::Lifetime(lp))
+ if olp.lifetime == lp.lifetime =>
+ {
+ return Err(Error::new_spanned(
+ p,
+ format!(
+ "Attempted to merge conflicting generic parameters: {} and {}",
+ quote!(#op),
+ quote!(#p)
+ ),
+ ));
}
// We don't support merging Const parameters, because that wouldn't make much sense.
_ => (),
@@ -460,9 +458,7 @@ fn get_ty_params(field: &Field, generics: &Generics) -> Vec<bool> {
fn visit_type_macro(&mut self, x: &'a TypeMacro) {
// If we see a type_mac declaration, then we can't know what type parameters
// it might be binding, so we presume it binds all of them.
- for r in &mut self.result {
- *r = true;
- }
+ self.result.fill(true);
visit::visit_type_macro(self, x);
}
}
@@ -1751,6 +1747,7 @@ impl<'a> Structure<'a> {
predicates: punctuated::Punctuated::new(),
});
clause.predicates.push(WherePredicate::Type(PredicateType {
+ attrs: Vec::new(),
lifetimes: None,
bounded_ty: ty,
colon_token: Default::default(),
@@ -1779,6 +1776,7 @@ impl<'a> Structure<'a> {
AddBounds::Both | AddBounds::Generics => {
for param in binding.referenced_ty_params() {
pred(Type::Path(TypePath {
+ attrs: Vec::new(),
qself: None,
path: (*param).clone().into(),
}));
diff --git a/deps/crates/vendor/synstructure-v0_13/src/macros.rs b/deps/crates/vendor/synstructure-v0_14/src/macros.rs
similarity index 100%
rename from deps/crates/vendor/synstructure-v0_13/src/macros.rs
rename to deps/crates/vendor/synstructure-v0_14/src/macros.rs
diff --git a/deps/crates/vendor/tinystr-v0_8/.cargo_vcs_info.json b/deps/crates/vendor/tinystr-v0_8/.cargo_vcs_info.json
index b3092ebbf1c..da90cd9baeb 100644
--- a/deps/crates/vendor/tinystr-v0_8/.cargo_vcs_info.json
+++ b/deps/crates/vendor/tinystr-v0_8/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "a14f2dad852be26bad277ae704abf27a15cbfed1"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "utils/tinystr"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/tinystr-v0_8/Cargo.lock b/deps/crates/vendor/tinystr-v0_8/Cargo.lock
index f99cbcfc881..23b87b71c4e 100644
--- a/deps/crates/vendor/tinystr-v0_8/Cargo.lock
+++ b/deps/crates/vendor/tinystr-v0_8/Cargo.lock
@@ -52,9 +52,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -85,18 +85,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -104,9 +104,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -155,9 +155,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -165,18 +165,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -202,14 +202,14 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "either"
-version = "1.17.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "embedded-io"
@@ -247,9 +247,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "is-terminal"
@@ -289,9 +289,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "memchr"
@@ -513,14 +513,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -542,9 +542,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -568,12 +568,12 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
dependencies = [
"bincode",
"criterion",
@@ -598,9 +598,9 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
@@ -708,18 +708,18 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "zerocopy"
-version = "0.8.56"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.56"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
dependencies = [
"proc-macro2",
"quote",
@@ -734,9 +734,9 @@ checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
[[package]]
name = "zerovec"
-version = "0.11.7"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94b5c6b5976d66c1d703c4fd17d3f5e43c8cedaacf604961b171adc7130896d8"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
dependencies = [
"serde",
"zerofrom",
diff --git a/deps/crates/vendor/tinystr-v0_8/Cargo.toml b/deps/crates/vendor/tinystr-v0_8/Cargo.toml
index 6b5000d9913..0685945d351 100644
--- a/deps/crates/vendor/tinystr-v0_8/Cargo.toml
+++ b/deps/crates/vendor/tinystr-v0_8/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.82"
name = "tinystr"
-version = "0.8.4"
+version = "0.8.5"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -110,7 +110,7 @@ optional = true
default-features = false
[dependencies.zerovec]
-version = "0.11.7"
+version = "0.11.9"
optional = true
default-features = false
diff --git a/deps/crates/vendor/tinystr-v0_8/Cargo.toml.orig b/deps/crates/vendor/tinystr-v0_8/Cargo.toml.orig
index b5a90127e79..a162252f4ff 100644
--- a/deps/crates/vendor/tinystr-v0_8/Cargo.toml.orig
+++ b/deps/crates/vendor/tinystr-v0_8/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "tinystr"
description = "A small ASCII-only bounded length string representation."
-version = "0.8.4"
+version = "0.8.5"
keywords = ["small-string", "ascii", "string", "str"]
categories = ["data-structures"]
diff --git a/deps/crates/vendor/tinystr-v0_8/src/ascii.rs b/deps/crates/vendor/tinystr-v0_8/src/ascii.rs
index 8638672df26..98fa64e8d9d 100644
--- a/deps/crates/vendor/tinystr-v0_8/src/ascii.rs
+++ b/deps/crates/vendor/tinystr-v0_8/src/ascii.rs
@@ -24,6 +24,10 @@ impl<const N: usize> TinyAsciiStr<N> {
bytes: [AsciiByte::B0; N],
};
+ pub const fn default() -> Self {
+ Self::EMPTY
+ }
+
#[inline]
pub const fn try_from_str(s: &str) -> Result<Self, ParseError> {
Self::try_from_utf8(s.as_bytes())
@@ -845,6 +849,12 @@ impl<const N: usize> Deref for TinyAsciiStr<N> {
}
}
+impl<const N: usize> Default for TinyAsciiStr<N> {
+ fn default() -> Self {
+ Self::default()
+ }
+}
+
impl<const N: usize> Borrow<str> for TinyAsciiStr<N> {
#[inline]
fn borrow(&self) -> &str {
diff --git a/deps/crates/vendor/tinystr-v0_8/src/unvalidated.rs b/deps/crates/vendor/tinystr-v0_8/src/unvalidated.rs
index 44e0f9f9c15..7824c2c1a9f 100644
--- a/deps/crates/vendor/tinystr-v0_8/src/unvalidated.rs
+++ b/deps/crates/vendor/tinystr-v0_8/src/unvalidated.rs
@@ -57,7 +57,7 @@ impl<const N: usize> UnvalidatedTinyAsciiStr<N> {
#[inline]
/// Returns the empty string.
pub const fn default() -> Self {
- TinyAsciiStr::EMPTY.to_unvalidated()
+ TinyAsciiStr::default().to_unvalidated()
}
}
diff --git a/deps/crates/vendor/unicode-ident-v1/.cargo_vcs_info.json b/deps/crates/vendor/unicode-ident-v1/.cargo_vcs_info.json
index bafcae375e7..60e91948727 100644
--- a/deps/crates/vendor/unicode-ident-v1/.cargo_vcs_info.json
+++ b/deps/crates/vendor/unicode-ident-v1/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "5b54a632702b5744a1c40ea01c127c0ac0498172"
+ "sha1": "48771a67a73f7e14ce802aaeee16770ba661035b"
},
"path_in_vcs": ""
}
\ No newline at end of file
diff --git a/deps/crates/vendor/unicode-ident-v1/.github/workflows/ci.yml b/deps/crates/vendor/unicode-ident-v1/.github/workflows/ci.yml
index d8b3c84b96e..6eb3300bee9 100644
--- a/deps/crates/vendor/unicode-ident-v1/.github/workflows/ci.yml
+++ b/deps/crates/vendor/unicode-ident-v1/.github/workflows/ci.yml
@@ -22,7 +22,7 @@ jobs:
if: github.event_name != 'pull_request'
timeout-minutes: 45
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- id: ucd-generate
run: echo "version=$(grep 'ucd-generate [0-9]\+\.[0-9]\+\.[0-9]\+' tests/tables/tables.rs --only-matching)" >> $GITHUB_OUTPUT
@@ -44,10 +44,10 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly, beta, stable, 1.86.0]
+ rust: [nightly, beta, stable, 1.90.0]
timeout-minutes: 45
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
@@ -56,7 +56,7 @@ jobs:
if: matrix.rust == 'nightly'
- run: cargo test
- run: cargo check --benches
- - uses: actions/upload-artifact@v6
+ - uses: actions/upload-artifact@v7
if: matrix.rust == 'nightly' && always()
with:
name: Cargo.lock
@@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@1.71.0
- run: cargo check --manifest-path tests/crate/Cargo.toml
@@ -83,7 +83,7 @@ jobs:
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs
@@ -94,7 +94,7 @@ jobs:
if: github.event_name != 'pull_request'
timeout-minutes: 45
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --tests --benches --workspace -- -Dclippy::all -Dclippy::pedantic
@@ -104,7 +104,7 @@ jobs:
if: github.event_name != 'pull_request'
timeout-minutes: 45
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/install@cargo-outdated
- run: cargo outdated --workspace --exit-code 1
diff --git a/deps/crates/vendor/unicode-ident-v1/Cargo.lock b/deps/crates/vendor/unicode-ident-v1/Cargo.lock
index 8b38ee72426..866e62118a8 100644
--- a/deps/crates/vendor/unicode-ident-v1/Cargo.lock
+++ b/deps/crates/vendor/unicode-ident-v1/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aho-corasick"
-version = "1.1.4"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
dependencies = [
"memchr",
]
@@ -28,33 +28,21 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstyle"
-version = "1.0.13"
+version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
-
-[[package]]
-name = "anyhow"
-version = "1.0.101"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea"
+checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
[[package]]
name = "autocfg"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
-
-[[package]]
-name = "bitflags"
-version = "2.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "bytemuck"
-version = "1.25.0"
+version = "1.25.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
[[package]]
name = "byteorder"
@@ -70,9 +58,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cc"
-version = "1.2.56"
+version = "1.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2"
+checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4"
dependencies = [
"find-msvc-tools",
"shlex",
@@ -80,15 +68,15 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "chacha20"
-version = "0.10.0"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
dependencies = [
"cfg-if",
"cpufeatures",
@@ -124,18 +112,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.58"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63be97961acde393029492ce0be7a1af7e323e6bae9511ebfac33751be5e6806"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.5.58"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f13174bda5dfd69d7e947827e5af4b0f2f94a4a3ee92912fba07a66150f21e2"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -143,15 +131,15 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "1.0.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
+checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
[[package]]
name = "cpufeatures"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
dependencies = [
"libc",
]
@@ -197,27 +185,15 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "either"
-version = "1.15.0"
+version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
-
-[[package]]
-name = "equivalent"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
[[package]]
name = "find-msvc-tools"
-version = "0.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
-
-[[package]]
-name = "foldhash"
-version = "0.1.5"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
[[package]]
name = "fst"
@@ -227,16 +203,14 @@ checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a"
[[package]]
name = "getrandom"
-version = "0.4.1"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
dependencies = [
"cfg-if",
"libc",
"r-efi",
"rand_core",
- "wasip2",
- "wasip3",
]
[[package]]
@@ -250,45 +224,6 @@ dependencies = [
"zerocopy",
]
-[[package]]
-name = "hashbrown"
-version = "0.15.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
-dependencies = [
- "foldhash",
-]
-
-[[package]]
-name = "hashbrown"
-version = "0.16.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
-
-[[package]]
-name = "heck"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
-
-[[package]]
-name = "id-arena"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
-
-[[package]]
-name = "indexmap"
-version = "2.13.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
-dependencies = [
- "equivalent",
- "hashbrown 0.16.1",
- "serde",
- "serde_core",
-]
-
[[package]]
name = "itertools"
version = "0.13.0"
@@ -300,33 +235,21 @@ dependencies = [
[[package]]
name = "itoa"
-version = "1.0.17"
+version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
-
-[[package]]
-name = "leb128fmt"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "libc"
-version = "0.2.182"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
-
-[[package]]
-name = "log"
-version = "0.4.29"
+version = "0.2.189"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
[[package]]
name = "memchr"
-version = "2.8.0"
+version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
name = "num-traits"
@@ -353,45 +276,35 @@ dependencies = [
"winapi",
]
-[[package]]
-name = "prettyplease"
-version = "0.2.37"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
-dependencies = [
- "proc-macro2",
- "syn",
-]
-
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
- "unicode-ident 1.0.23",
+ "unicode-ident 1.0.25",
]
[[package]]
name = "quote"
-version = "1.0.44"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "r-efi"
-version = "5.3.0"
+version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
[[package]]
name = "rand"
-version = "0.10.0"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8"
+checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
dependencies = [
"chacha20",
"getrandom",
@@ -400,15 +313,15 @@ dependencies = [
[[package]]
name = "rand_core"
-version = "0.10.0"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba"
+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
[[package]]
name = "regex"
-version = "1.12.3"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
dependencies = [
"aho-corasick",
"memchr",
@@ -418,9 +331,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.14"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
"aho-corasick",
"memchr",
@@ -429,15 +342,15 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.9"
+version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "roaring"
-version = "0.11.3"
+version = "0.11.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ba9ce64a8f45d7fc86358410bb1a82e8c987504c0d4900e9141d69a9f26c885"
+checksum = "18bd8a37d17a58532776dcdf6041ce64929adca78e8489d5cacbafe99229d3e1"
dependencies = [
"bytemuck",
"byteorder",
@@ -452,17 +365,11 @@ dependencies = [
"winapi-util",
]
-[[package]]
-name = "semver"
-version = "1.0.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
-
[[package]]
name = "serde"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
@@ -470,29 +377,29 @@ dependencies = [
[[package]]
name = "serde_core"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 3.0.6",
]
[[package]]
name = "serde_json"
-version = "1.0.149"
+version = "1.0.151"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
dependencies = [
"itoa",
"memchr",
@@ -503,19 +410,30 @@ dependencies = [
[[package]]
name = "shlex"
-version = "1.3.0"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
[[package]]
name = "syn"
-version = "2.0.116"
+version = "2.0.119"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3df424c70518695237746f84cede799c9c58fcb37450d7b23716568cc8bc69cb"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
dependencies = [
"proc-macro2",
"quote",
- "unicode-ident 1.0.23",
+ "unicode-ident 1.0.25",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident 1.0.25",
]
[[package]]
@@ -536,13 +454,13 @@ checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"
[[package]]
name = "unicode-ident"
-version = "1.0.23"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e"
+checksum = "ab72a15cf68d77cb0987d3684aa8a45c5ef827e8cb49ee2f30bfd7ba2feb519f"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.26"
dependencies = [
"criterion",
"fst",
@@ -568,58 +486,6 @@ dependencies = [
"winapi-util",
]
-[[package]]
-name = "wasip2"
-version = "1.0.2+wasi-0.2.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
-dependencies = [
- "wit-bindgen",
-]
-
-[[package]]
-name = "wasip3"
-version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
-dependencies = [
- "wit-bindgen",
-]
-
-[[package]]
-name = "wasm-encoder"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
-dependencies = [
- "leb128fmt",
- "wasmparser",
-]
-
-[[package]]
-name = "wasm-metadata"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
-dependencies = [
- "anyhow",
- "indexmap",
- "wasm-encoder",
- "wasmparser",
-]
-
-[[package]]
-name = "wasmparser"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
-dependencies = [
- "bitflags",
- "hashbrown 0.15.5",
- "indexmap",
- "semver",
-]
-
[[package]]
name = "winapi"
version = "0.3.9"
@@ -666,116 +532,28 @@ dependencies = [
"windows-link",
]
-[[package]]
-name = "wit-bindgen"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
-dependencies = [
- "wit-bindgen-rust-macro",
-]
-
-[[package]]
-name = "wit-bindgen-core"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
-dependencies = [
- "anyhow",
- "heck",
- "wit-parser",
-]
-
-[[package]]
-name = "wit-bindgen-rust"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
-dependencies = [
- "anyhow",
- "heck",
- "indexmap",
- "prettyplease",
- "syn",
- "wasm-metadata",
- "wit-bindgen-core",
- "wit-component",
-]
-
-[[package]]
-name = "wit-bindgen-rust-macro"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
-dependencies = [
- "anyhow",
- "prettyplease",
- "proc-macro2",
- "quote",
- "syn",
- "wit-bindgen-core",
- "wit-bindgen-rust",
-]
-
-[[package]]
-name = "wit-component"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
-dependencies = [
- "anyhow",
- "bitflags",
- "indexmap",
- "log",
- "serde",
- "serde_derive",
- "serde_json",
- "wasm-encoder",
- "wasm-metadata",
- "wasmparser",
- "wit-parser",
-]
-
-[[package]]
-name = "wit-parser"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
-dependencies = [
- "anyhow",
- "id-arena",
- "indexmap",
- "log",
- "semver",
- "serde",
- "serde_derive",
- "serde_json",
- "unicode-xid",
- "wasmparser",
-]
-
[[package]]
name = "zerocopy"
-version = "0.8.39"
+version = "0.8.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a"
+checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.39"
+version = "0.8.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517"
+checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.119",
]
[[package]]
name = "zmij"
-version = "1.0.21"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
diff --git a/deps/crates/vendor/unicode-ident-v1/Cargo.toml b/deps/crates/vendor/unicode-ident-v1/Cargo.toml
index 720637c4d7f..df3d4d437f9 100644
--- a/deps/crates/vendor/unicode-ident-v1/Cargo.toml
+++ b/deps/crates/vendor/unicode-ident-v1/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.71"
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.26"
authors = ["David Tolnay <dtolnay@gmail.com>"]
build = false
autolib = false
diff --git a/deps/crates/vendor/unicode-ident-v1/Cargo.toml.orig b/deps/crates/vendor/unicode-ident-v1/Cargo.toml.orig
index f775754c8b8..bba531b8e94 100644
--- a/deps/crates/vendor/unicode-ident-v1/Cargo.toml.orig
+++ b/deps/crates/vendor/unicode-ident-v1/Cargo.toml.orig
@@ -1,6 +1,6 @@
[package]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.26"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["development-tools::procedural-macro-helpers", "no-std", "no-std::no-alloc"]
description = "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31"
@@ -39,4 +39,4 @@ rustdoc-args = [
]
[patch.crates-io]
-unicode-xid = { git = "https://github.com/dtolnay-contrib/unicode-xid", branch = "unicode17.0.0" }
+unicode-xid = { git = "https://github.com/dtolnay-contrib/unicode-xid", branch = "unicode18.0.0" }
diff --git a/deps/crates/vendor/unicode-ident-v1/README.md b/deps/crates/vendor/unicode-ident-v1/README.md
index 2e4668ef625..445e646c5bb 100644
--- a/deps/crates/vendor/unicode-ident-v1/README.md
+++ b/deps/crates/vendor/unicode-ident-v1/README.md
@@ -41,11 +41,11 @@ different ratios of ASCII to non-ASCII codepoints in the input data.
| | static storage | 0% nonascii | 1% | 10% | 100% nonascii |
|---|---|---|---|---|---|
-| **`unicode-ident`** | 10.3 K | 0.41 ns | 0.44 ns | 0.44 ns | 0.93 ns |
-| **`unicode-xid`** | 12.0 K | 2.43 ns | 2.50 ns | 2.85 ns | 8.65 ns |
-| **`ucd-trie`** | 10.4 K | 1.28 ns | 1.25 ns | 1.20 ns | 1.97 ns |
-| **`fst`** | 144 K | 50.9 ns | 51.0 ns | 48.5 ns | 26.7 ns |
-| **`roaring`** | 66.1 K | 4.28 ns | 4.22 ns | 4.25 ns | 4.61 ns |
+| **`unicode-ident`** | 10.3 K | 0.36 ns | 0.37 ns | 0.37 ns | 0.43 ns |
+| **`unicode-xid`** | 12.2 K | 1.63 ns | 1.70 ns | 1.82 ns | 4.56 ns |
+| **`ucd-trie`** | 10.8 K | 1.01 ns | 0.73 ns | 0.97 ns | 1.09 ns |
+| **`fst`** | 149 K | 22.0 ns | 21.9 ns | 20.9 ns | 10.5 ns |
+| **`roaring`** | 66.1 K | 1.91 ns | 1.90 ns | 1.94 ns | 2.67 ns |
Source code for the benchmark is provided in the *bench* directory of this repo
and may be repeated by running `cargo criterion`.
@@ -212,9 +212,8 @@ reasonable. However, as you can see there is a large degree of similarity
between the two bitmaps and across the rows, which lends well to compression.
This crate stores one 512-bit "row" of the above bitmaps in the leaf level of a
-trie, and a single additional level to index into the leafs. It turns out there
-are 124 unique 512-bit chunks across the two bitmaps so 7 bits are sufficient to
-index them.
+trie, and a single additional level to index into the leafs. There are 134
+unique 512-bit chunks across the two bitmaps.
The chunk size of 512 bits is selected as the size that minimizes the total size
of the data structure. A smaller chunk, like 256 or 128 bits, would achieve
@@ -222,12 +221,13 @@ better deduplication but require a larger index. A larger chunk would increase
redundancy in the leaf bitmaps. 512 bit chunks are the optimum for total size of
the index plus leaf bitmaps.
-In fact since there are only 124 unique chunks, we can use an 8-bit index with a
-spare bit to index at the half-chunk level. This achieves an additional 8.5%
-compression by eliminating redundancies between the second half of any chunk and
-the first half of any other chunk. Note that this is not the same as using
-chunks which are half the size, because it does not necessitate raising the size
-of the trie's first level.
+The chunk data is compressed using the Kuhn–Munkres algorithm for bipartite
+matching to eliminate redundancies between the second half of any chunk and the
+first half of any other chunk. This achieves an additional 9% compression of the
+leaf level, leaving 122 chunks that can be indexed at the half-chunk level using
+an 8-bit index. Note that this is not the same as using chunks which are half
+the size, because it does not necessitate raising the size of the trie's first
+level.
In contrast to binary search or the `ucd-trie` crate, performing lookups in this
data structure is straight-line code with no need for branching.
@@ -235,9 +235,9 @@ data structure is straight-line code with no need for branching.
```asm
is_xid_start:
mov eax, edi
- mov ecx, offset unicode_ident::ZERO
shr eax, 9
- cmp edi, 210432
+ cmp edi, 261632
+ mov ecx, offset unicode_ident::tables::TRIE_START+17
lea rax, [rax + unicode_ident::tables::TRIE_START]
cmovb rcx, rax
movzx eax, byte ptr [rcx]
diff --git a/deps/crates/vendor/unicode-ident-v1/src/lib.rs b/deps/crates/vendor/unicode-ident-v1/src/lib.rs
index 7498812f0d3..7e70a0938cd 100644
--- a/deps/crates/vendor/unicode-ident-v1/src/lib.rs
+++ b/deps/crates/vendor/unicode-ident-v1/src/lib.rs
@@ -43,11 +43,11 @@
//!
//! | | static storage | 0% nonascii | 1% | 10% | 100% nonascii |
//! |---|---|---|---|---|---|
-//! | **`unicode-ident`** | 10.3 K | 0.41 ns | 0.44 ns | 0.44 ns | 0.93 ns |
-//! | **`unicode-xid`** | 12.0 K | 2.43 ns | 2.50 ns | 2.85 ns | 8.65 ns |
-//! | **`ucd-trie`** | 10.4 K | 1.28 ns | 1.25 ns | 1.20 ns | 1.97 ns |
-//! | **`fst`** | 144 K | 50.9 ns | 51.0 ns | 48.5 ns | 26.7 ns |
-//! | **`roaring`** | 66.1 K | 4.28 ns | 4.22 ns | 4.25 ns | 4.61 ns |
+//! | **`unicode-ident`** | 10.3 K | 0.36 ns | 0.37 ns | 0.37 ns | 0.43 ns |
+//! | **`unicode-xid`** | 12.2 K | 1.63 ns | 1.70 ns | 1.82 ns | 4.56 ns |
+//! | **`ucd-trie`** | 10.8 K | 1.01 ns | 0.73 ns | 0.97 ns | 1.09 ns |
+//! | **`fst`** | 149 K | 22.0 ns | 21.9 ns | 20.9 ns | 10.5 ns |
+//! | **`roaring`** | 66.1 K | 1.91 ns | 1.90 ns | 1.94 ns | 2.67 ns |
//!
//! Source code for the benchmark is provided in the *bench* directory of this
//! repo and may be repeated by running `cargo criterion`.
@@ -221,9 +221,8 @@
//! compression.
//!
//! This crate stores one 512-bit "row" of the above bitmaps in the leaf level
-//! of a trie, and a single additional level to index into the leafs. It turns
-//! out there are 124 unique 512-bit chunks across the two bitmaps so 7 bits are
-//! sufficient to index them.
+//! of a trie, and a single additional level to index into the leafs. There are
+//! 134 unique 512-bit chunks across the two bitmaps.
//!
//! The chunk size of 512 bits is selected as the size that minimizes the total
//! size of the data structure. A smaller chunk, like 256 or 128 bits, would
@@ -231,18 +230,19 @@
//! would increase redundancy in the leaf bitmaps. 512 bit chunks are the
//! optimum for total size of the index plus leaf bitmaps.
//!
-//! In fact since there are only 124 unique chunks, we can use an 8-bit index
-//! with a spare bit to index at the half-chunk level. This achieves an
-//! additional 8.5% compression by eliminating redundancies between the second
-//! half of any chunk and the first half of any other chunk. Note that this is
-//! not the same as using chunks which are half the size, because it does not
-//! necessitate raising the size of the trie's first level.
+//! The chunk data is compressed using the Kuhn–Munkres algorithm for bipartite
+//! matching to eliminate redundancies between the second half of any chunk and
+//! the first half of any other chunk. This achieves an additional 9%
+//! compression of the leaf level, leaving 122 chunks that can be indexed at the
+//! half-chunk level using an 8-bit index. Note that this is not the same as
+//! using chunks which are half the size, because it does not necessitate
+//! raising the size of the trie's first level.
//!
//! In contrast to binary search or the `ucd-trie` crate, performing lookups in
//! this data structure is straight-line code with no need for branching.
#![no_std]
-#![doc(html_root_url = "https://docs.rs/unicode-ident/1.0.24")]
+#![doc(html_root_url = "https://docs.rs/unicode-ident/1.0.26")]
#![allow(
clippy::doc_markdown,
clippy::must_use_candidate,
@@ -253,16 +253,19 @@
mod tables;
pub use crate::tables::UNICODE_VERSION;
-use crate::tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START};
-
-static ZERO: u8 = 0;
+use crate::tables::{
+ ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START, ZERO_CONTINUE, ZERO_START,
+};
/// Whether the character has the Unicode property XID\_Start.
pub fn is_xid_start(ch: char) -> bool {
if ch.is_ascii() {
return ASCII_START & (1 << ch as u128) != 0;
}
- let chunk = *TRIE_START.0.get(ch as usize / 8 / CHUNK).unwrap_or(&ZERO);
+ let chunk = *TRIE_START
+ .0
+ .get(ch as usize / 8 / CHUNK)
+ .unwrap_or(&TRIE_START.0[ZERO_START]);
let offset = chunk as usize * CHUNK / 2 + ch as usize / 8 % CHUNK;
unsafe { LEAF.0.get_unchecked(offset) }.wrapping_shr(ch as u32 % 8) & 1 != 0
}
@@ -275,7 +278,7 @@ pub fn is_xid_continue(ch: char) -> bool {
let chunk = *TRIE_CONTINUE
.0
.get(ch as usize / 8 / CHUNK)
- .unwrap_or(&ZERO);
+ .unwrap_or(&TRIE_CONTINUE.0[ZERO_CONTINUE]);
let offset = chunk as usize * CHUNK / 2 + ch as usize / 8 % CHUNK;
unsafe { LEAF.0.get_unchecked(offset) }.wrapping_shr(ch as u32 % 8) & 1 != 0
}
diff --git a/deps/crates/vendor/unicode-ident-v1/src/tables.rs b/deps/crates/vendor/unicode-ident-v1/src/tables.rs
index c8adab3eec7..aa2a98ac408 100644
--- a/deps/crates/vendor/unicode-ident-v1/src/tables.rs
+++ b/deps/crates/vendor/unicode-ident-v1/src/tables.rs
@@ -1,6 +1,6 @@
// @generated by ../generate. To regenerate, run the following in the repo root:
//
-// $ curl -LO https://www.unicode.org/Public/17.0.0/ucd/UCD.zip
+// $ curl -LO https://www.unicode.org/Public/18.0.0/ucd/UCD.zip
// $ unzip UCD.zip -d UCD
// $ cargo run --manifest-path generate/Cargo.toml
@@ -9,75 +9,85 @@ pub(crate) struct Align8<T>(pub(crate) T);
#[repr(C, align(64))]
pub(crate) struct Align64<T>(pub(crate) T);
-pub const UNICODE_VERSION: (u8, u8, u8) = (17, 0, 0);
+pub const UNICODE_VERSION: (u8, u8, u8) = (18, 0, 0);
pub(crate) const ASCII_START: u128 = 0x7fffffe07fffffe0000000000000000;
pub(crate) const ASCII_CONTINUE: u128 = 0x7fffffe87fffffe03ff000000000000;
pub(crate) const CHUNK: usize = 64;
-pub(crate) static TRIE_START: Align8<[u8; 411]> = Align8([
- 0x03, 0x09, 0x0D, 0x11, 0x15, 0x19, 0x1D, 0x21, 0x25, 0x2B, 0x2F, 0x32, 0x36, 0x3A, 0x3E, 0xA5,
- 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x4B, 0x00, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0x50, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0x4F, 0x52, 0x56, 0x5A, 0xEF, 0xEF, 0xEF,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EF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xE7, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xE9, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEB, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0x07, 0xEF, 0xED, 0x00, 0x00, 0x00, 0x00, 0xEF, 0xD6, 0x00, 0x00,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0x04, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF,
- 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xEF, 0xF2,
+// Positions of entries for the all-zero chunk.
+pub(crate) const ZERO_START: usize = 17;
+pub(crate) const ZERO_CONTINUE: usize = 17;
+
+pub(crate) static TRIE_START: Align8<[u8; 511]> = Align8([
+ 0x03, 0x09, 0x0D, 0x11, 0x15, 0x19, 0x1D, 0x21, 0x25, 0x2B, 0x2F, 0x32, 0x36, 0x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 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x07, 0xAA, 0xF3, 0x00, 0x00, 0x00, 0x00, 0xAA, 0xD8, 0x00, 0x00,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x04, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xF5, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xF7,
]);
pub(crate) static TRIE_CONTINUE: Align8<[u8; 1793]> = Align8([
- 0x06, 0x0B, 0x0F, 0x13, 0x17, 0x1B, 0x1F, 0x23, 0x28, 0x2D, 0x2F, 0x34, 0x38, 0x3C, 0x40, 0xA5,
- 0x45, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x00, 0x4D, 0x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00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
+ 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xF7, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -161,7 +171,7 @@ pub(crate) static TRIE_CONTINUE: Align8<[u8; 1793]> = Align8([
0x01,
]);
-pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
+pub(crate) static LEAF: Align64<[u8; 7968]> = Align64([
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -190,12 +200,12 @@ pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
0xC0, 0xD7, 0xFF, 0xFF, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0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x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x80, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x84, 0xFC, 0x2F, 0x3F, 0x50, 0xFD, 0xFF, 0xF3, 0xE0, 0x43, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x80,
- 0x00, 0x00, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x1F, 0xE2, 0xFF, 0x01, 0x00,
+ 0x00, 0x80, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x1F, 0xE2, 0xFF, 0x01, 0x00,
0x84, 0xFC, 0x2F, 0x3F, 0x50, 0xFD, 0xFF, 0xF3, 0xE0, 0x43, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
@@ -325,15 +335,15 @@ pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF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0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x03, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x03, 0x00, 0xFC, 0x00, 0x00, 0xFE, 0xFF, 0x7F, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0x1F, 0x80, 0x00, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x7F, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1B, 0x03, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1B, 0x03, 0x00, 0xFC, 0xF8, 0x00, 0xFE, 0xFF, 0x7F, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0x1F, 0x80, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0xFF, 0xFF,
0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x7F, 0x00,
0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x00,
@@ -464,20 +474,20 @@ pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
0x00, 0x00, 0x00, 0x00, 0xFF, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0x1B, 0x00, 0x00, 0x00,
0x01, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0x04, 0x00, 0x00, 0x01, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0x03, 0x00, 0x20, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x80, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0x23, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00,
+ 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0xFF, 0x03,
0xFF, 0xFD, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF,
0xFF, 0xFF, 0x00, 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0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0xFF, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF,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F, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0xAA, 0xFF, 0xFF, 0xFF, 0x3F,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0x5F, 0xDC, 0x1F, 0xCF, 0x0F, 0xFF, 0x1F, 0xDC, 0x1F,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,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, 0x01, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE3, 0x07, 0xF8,
- 0xE7, 0x0F, 0x00, 0x00, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0xFF, 0x1F,
0xFF, 0x01, 0xFF, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF, 0x6F,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x07, 0x98, 0x00, 0x00, 0x00, 0x00,
+ 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0xFF, 0x03,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xDF, 0x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F, 0xF7,
0xFF, 0xFF, 0xDF, 0xFF, 0xFF, 0xFF, 0xDF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF,
0xFF, 0xFD, 0xFF, 0xFF, 0xFF, 0xFD, 0xFF, 0xFF, 0xF7, 0xCF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x20, 0x00,
0x10, 0x00, 0x00, 0xF8, 0xFE, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x00, 0x00,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -584,16 +604,16 @@ pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x0F, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -622,13 +642,15 @@ pub(crate) static LEAF: Align64<[u8; 7808]> = Align64([
0xFF, 0xFB, 0xFF, 0x0F, 0xEE, 0xFB, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x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xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
]);
diff --git a/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_continue.fst b/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_continue.fst
index cc15f2d5dc8..fd11825b69e 100644
Binary files a/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_continue.fst and b/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_continue.fst differ
diff --git a/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_start.fst b/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_start.fst
index 771dc459c68..14ef0565ba1 100644
Binary files a/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_start.fst and b/deps/crates/vendor/unicode-ident-v1/tests/fst/xid_start.fst differ
diff --git a/deps/crates/vendor/unicode-ident-v1/tests/static_size.rs b/deps/crates/vendor/unicode-ident-v1/tests/static_size.rs
index e2bcd736e38..d36bb38db80 100644
--- a/deps/crates/vendor/unicode-ident-v1/tests/static_size.rs
+++ b/deps/crates/vendor/unicode-ident-v1/tests/static_size.rs
@@ -13,7 +13,7 @@ fn test_size() {
+ size_of_val(&tables::TRIE_START)
+ size_of_val(&tables::TRIE_CONTINUE)
+ size_of_val(&tables::LEAF);
- assert_eq!(10056, size);
+ assert_eq!(10344, size);
}
#[test]
@@ -23,7 +23,7 @@ fn test_xid_size() {
mod tables;
let size = size_of_val(tables::XID_START) + size_of_val(tables::XID_CONTINUE);
- assert_eq!(11976, size);
+ assert_eq!(12184, size);
let _ = tables::BY_NAME;
}
@@ -70,7 +70,7 @@ fn test_trieset_size() {
+ size_of_val(tree3_level2)
+ size_of_val(tree3_level3);
- assert_eq!(10392, start_size + continue_size);
+ assert_eq!(10752, start_size + continue_size);
let _ = trie::BY_NAME;
}
@@ -80,7 +80,7 @@ fn test_fst_size() {
let xid_start_fst = include_bytes!("fst/xid_start.fst");
let xid_continue_fst = include_bytes!("fst/xid_continue.fst");
let size = xid_start_fst.len() + xid_continue_fst.len();
- assert_eq!(143513, size);
+ assert_eq!(148706, size);
}
#[test]
diff --git a/deps/crates/vendor/unicode-ident-v1/tests/tables/tables.rs b/deps/crates/vendor/unicode-ident-v1/tests/tables/tables.rs
index 9db6fe95891..d4903351fb1 100644
--- a/deps/crates/vendor/unicode-ident-v1/tests/tables/tables.rs
+++ b/deps/crates/vendor/unicode-ident-v1/tests/tables/tables.rs
@@ -2,7 +2,7 @@
//
// ucd-generate property-bool UCD --include XID_Start,XID_Continue
//
-// Unicode version: 17.0.0.
+// Unicode version: 18.0.0.
//
// ucd-generate 0.3.1 is available on crates.io.
@@ -15,55 +15,55 @@ pub const XID_CONTINUE: &'static [(u32, u32)] = &[
(186, 186), (192, 214), (216, 246), (248, 705), (710, 721), (736, 740),
(748, 748), (750, 750), (768, 884), (886, 887), (891, 893), (895, 895),
(902, 906), (908, 908), (910, 929), (931, 1013), (1015, 1153), (1155, 1159),
- (1162, 1327), (1329, 1366), (1369, 1369), (1376, 1416), (1425, 1469),
- (1471, 1471), (1473, 1474), (1476, 1477), (1479, 1479), (1488, 1514),
- (1519, 1522), (1552, 1562), (1568, 1641), (1646, 1747), (1749, 1756),
- (1759, 1768), (1770, 1788), (1791, 1791), (1808, 1866), (1869, 1969),
- (1984, 2037), (2042, 2042), (2045, 2045), (2048, 2093), (2112, 2139),
- (2144, 2154), (2160, 2183), (2185, 2191), (2199, 2273), (2275, 2403),
- (2406, 2415), (2417, 2435), (2437, 2444), (2447, 2448), (2451, 2472),
- (2474, 2480), (2482, 2482), (2486, 2489), (2492, 2500), (2503, 2504),
- (2507, 2510), (2519, 2519), (2524, 2525), (2527, 2531), (2534, 2545),
- (2556, 2556), (2558, 2558), (2561, 2563), (2565, 2570), (2575, 2576),
- (2579, 2600), (2602, 2608), (2610, 2611), (2613, 2614), (2616, 2617),
- (2620, 2620), (2622, 2626), (2631, 2632), (2635, 2637), (2641, 2641),
- (2649, 2652), (2654, 2654), (2662, 2677), (2689, 2691), (2693, 2701),
- (2703, 2705), (2707, 2728), (2730, 2736), (2738, 2739), (2741, 2745),
- (2748, 2757), (2759, 2761), (2763, 2765), (2768, 2768), (2784, 2787),
- (2790, 2799), (2809, 2815), (2817, 2819), (2821, 2828), (2831, 2832),
- (2835, 2856), (2858, 2864), (2866, 2867), (2869, 2873), (2876, 2884),
- (2887, 2888), (2891, 2893), (2901, 2903), (2908, 2909), (2911, 2915),
- (2918, 2927), (2929, 2929), (2946, 2947), (2949, 2954), (2958, 2960),
- (2962, 2965), (2969, 2970), (2972, 2972), (2974, 2975), (2979, 2980),
- (2984, 2986), (2990, 3001), (3006, 3010), (3014, 3016), (3018, 3021),
- (3024, 3024), (3031, 3031), (3046, 3055), (3072, 3084), (3086, 3088),
- (3090, 3112), (3114, 3129), (3132, 3140), (3142, 3144), (3146, 3149),
- (3157, 3158), (3160, 3162), (3164, 3165), (3168, 3171), (3174, 3183),
- (3200, 3203), (3205, 3212), (3214, 3216), (3218, 3240), (3242, 3251),
- (3253, 3257), (3260, 3268), (3270, 3272), (3274, 3277), (3285, 3286),
- (3292, 3294), (3296, 3299), (3302, 3311), (3313, 3315), (3328, 3340),
- (3342, 3344), (3346, 3396), (3398, 3400), (3402, 3406), (3412, 3415),
- (3423, 3427), (3430, 3439), (3450, 3455), (3457, 3459), (3461, 3478),
- (3482, 3505), (3507, 3515), (3517, 3517), (3520, 3526), (3530, 3530),
- (3535, 3540), (3542, 3542), (3544, 3551), (3558, 3567), (3570, 3571),
- (3585, 3642), (3648, 3662), (3664, 3673), (3713, 3714), (3716, 3716),
- (3718, 3722), (3724, 3747), (3749, 3749), (3751, 3773), (3776, 3780),
- (3782, 3782), (3784, 3790), (3792, 3801), (3804, 3807), (3840, 3840),
- (3864, 3865), (3872, 3881), (3893, 3893), (3895, 3895), (3897, 3897),
- (3902, 3911), (3913, 3948), (3953, 3972), (3974, 3991), (3993, 4028),
- (4038, 4038), (4096, 4169), (4176, 4253), (4256, 4293), (4295, 4295),
- (4301, 4301), (4304, 4346), (4348, 4680), (4682, 4685), (4688, 4694),
- (4696, 4696), (4698, 4701), (4704, 4744), (4746, 4749), (4752, 4784),
- (4786, 4789), (4792, 4798), (4800, 4800), (4802, 4805), (4808, 4822),
- (4824, 4880), (4882, 4885), (4888, 4954), (4957, 4959), (4969, 4977),
- (4992, 5007), (5024, 5109), (5112, 5117), (5121, 5740), (5743, 5759),
- (5761, 5786), (5792, 5866), (5870, 5880), (5888, 5909), (5919, 5940),
- (5952, 5971), (5984, 5996), (5998, 6000), (6002, 6003), (6016, 6099),
- (6103, 6103), (6108, 6109), (6112, 6121), (6155, 6157), (6159, 6169),
- (6176, 6264), (6272, 6314), (6320, 6389), (6400, 6430), (6432, 6443),
- (6448, 6459), (6470, 6509), (6512, 6516), (6528, 6571), (6576, 6601),
- (6608, 6618), (6656, 6683), (6688, 6750), (6752, 6780), (6783, 6793),
- (6800, 6809), (6823, 6823), (6832, 6845), (6847, 6877), (6880, 6891),
+ (1162, 1327), (1329, 1366), (1368, 1369), (1376, 1416), (1419, 1420),
+ (1425, 1469), (1471, 1471), (1473, 1474), (1476, 1477), (1479, 1481),
+ (1488, 1514), (1519, 1522), (1552, 1562), (1568, 1641), (1646, 1747),
+ (1749, 1756), (1759, 1768), (1770, 1788), (1791, 1791), (1808, 1866),
+ (1869, 1969), (1984, 2037), (2042, 2042), (2045, 2045), (2048, 2093),
+ (2112, 2139), (2144, 2154), (2160, 2183), (2185, 2191), (2199, 2273),
+ (2275, 2403), (2406, 2415), (2417, 2435), (2437, 2444), (2447, 2448),
+ (2451, 2472), (2474, 2480), (2482, 2482), (2486, 2489), (2492, 2500),
+ (2503, 2504), (2507, 2510), (2519, 2519), (2524, 2525), (2527, 2531),
+ (2534, 2545), (2556, 2556), (2558, 2558), (2561, 2563), (2565, 2570),
+ (2575, 2576), (2579, 2600), (2602, 2608), (2610, 2611), (2613, 2614),
+ (2616, 2617), (2620, 2620), (2622, 2626), (2631, 2632), (2635, 2637),
+ (2641, 2641), (2649, 2652), (2654, 2654), (2662, 2677), (2689, 2691),
+ (2693, 2701), (2703, 2705), (2707, 2728), (2730, 2736), (2738, 2739),
+ (2741, 2745), (2748, 2757), (2759, 2761), (2763, 2765), (2768, 2768),
+ (2784, 2787), (2790, 2799), (2809, 2815), (2817, 2819), (2821, 2828),
+ (2831, 2832), (2835, 2856), (2858, 2864), (2866, 2867), (2869, 2873),
+ (2876, 2884), (2887, 2888), (2891, 2893), (2899, 2903), (2908, 2909),
+ (2911, 2915), (2918, 2927), (2929, 2929), (2946, 2947), (2949, 2954),
+ (2958, 2960), (2962, 2965), (2969, 2970), (2972, 2972), (2974, 2975),
+ (2979, 2980), (2984, 2986), (2990, 3001), (3006, 3010), (3014, 3016),
+ (3018, 3021), (3024, 3024), (3031, 3031), (3046, 3055), (3072, 3084),
+ (3086, 3088), (3090, 3112), (3114, 3129), (3132, 3140), (3142, 3144),
+ (3146, 3149), (3157, 3158), (3160, 3162), (3164, 3165), (3168, 3171),
+ (3174, 3183), (3200, 3203), (3205, 3212), (3214, 3216), (3218, 3240),
+ (3242, 3251), (3253, 3257), (3260, 3268), (3270, 3272), (3274, 3277),
+ (3285, 3286), (3292, 3294), (3296, 3299), (3302, 3311), (3313, 3315),
+ (3328, 3340), (3342, 3344), (3346, 3396), (3398, 3400), (3402, 3406),
+ (3412, 3415), (3423, 3427), (3430, 3439), (3450, 3455), (3457, 3459),
+ (3461, 3478), (3482, 3505), (3507, 3515), (3517, 3517), (3520, 3526),
+ (3530, 3530), (3535, 3540), (3542, 3542), (3544, 3551), (3558, 3567),
+ (3570, 3571), (3585, 3642), (3648, 3662), (3664, 3673), (3713, 3714),
+ (3716, 3716), (3718, 3722), (3724, 3747), (3749, 3749), (3751, 3773),
+ (3776, 3780), (3782, 3782), (3784, 3790), (3792, 3801), (3804, 3807),
+ (3840, 3840), (3864, 3865), (3872, 3881), (3893, 3893), (3895, 3895),
+ (3897, 3897), (3902, 3911), (3913, 3948), (3953, 3972), (3974, 3991),
+ (3993, 4028), (4038, 4038), (4096, 4169), (4176, 4253), (4256, 4293),
+ (4295, 4295), (4301, 4301), (4304, 4346), (4348, 4680), (4682, 4685),
+ (4688, 4694), (4696, 4696), (4698, 4701), (4704, 4744), (4746, 4749),
+ (4752, 4784), (4786, 4789), (4792, 4798), (4800, 4800), (4802, 4805),
+ (4808, 4822), (4824, 4880), (4882, 4885), (4888, 4954), (4957, 4959),
+ (4969, 4977), (4992, 5007), (5024, 5109), (5112, 5117), (5121, 5740),
+ (5743, 5759), (5761, 5786), (5792, 5866), (5870, 5880), (5888, 5909),
+ (5919, 5940), (5952, 5971), (5984, 5996), (5998, 6000), (6002, 6003),
+ (6016, 6099), (6103, 6103), (6108, 6109), (6112, 6121), (6155, 6157),
+ (6159, 6169), (6176, 6264), (6272, 6314), (6320, 6389), (6400, 6430),
+ (6432, 6443), (6448, 6459), (6470, 6509), (6512, 6516), (6528, 6571),
+ (6576, 6601), (6608, 6618), (6656, 6683), (6688, 6750), (6752, 6780),
+ (6783, 6793), (6800, 6809), (6823, 6823), (6832, 6845), (6847, 6896),
(6912, 6988), (6992, 7001), (7019, 7027), (7040, 7155), (7168, 7223),
(7232, 7241), (7245, 7293), (7296, 7306), (7312, 7354), (7357, 7359),
(7376, 7378), (7380, 7418), (7424, 7957), (7960, 7965), (7968, 8005),
@@ -71,7 +71,7 @@ pub const XID_CONTINUE: &'static [(u32, u32)] = &[
(8031, 8061), (8064, 8116), (8118, 8124), (8126, 8126), (8130, 8132),
(8134, 8140), (8144, 8147), (8150, 8155), (8160, 8172), (8178, 8180),
(8182, 8188), (8204, 8205), (8255, 8256), (8276, 8276), (8305, 8305),
- (8319, 8319), (8336, 8348), (8400, 8412), (8417, 8417), (8421, 8432),
+ (8319, 8319), (8335, 8351), (8400, 8412), (8417, 8417), (8421, 8432),
(8450, 8450), (8455, 8455), (8458, 8467), (8469, 8469), (8472, 8477),
(8484, 8484), (8486, 8486), (8488, 8488), (8490, 8505), (8508, 8511),
(8517, 8521), (8526, 8526), (8544, 8584), (11264, 11492), (11499, 11507),
@@ -84,45 +84,46 @@ pub const XID_CONTINUE: &'static [(u32, u32)] = &[
(12593, 12686), (12704, 12735), (12784, 12799), (13312, 19903),
(19968, 42124), (42192, 42237), (42240, 42508), (42512, 42539),
(42560, 42607), (42612, 42621), (42623, 42737), (42775, 42783),
- (42786, 42888), (42891, 42972), (42993, 43047), (43052, 43052),
- (43072, 43123), (43136, 43205), (43216, 43225), (43232, 43255),
- (43259, 43259), (43261, 43309), (43312, 43347), (43360, 43388),
- (43392, 43456), (43471, 43481), (43488, 43518), (43520, 43574),
- (43584, 43597), (43600, 43609), (43616, 43638), (43642, 43714),
- (43739, 43741), (43744, 43759), (43762, 43766), (43777, 43782),
- (43785, 43790), (43793, 43798), (43808, 43814), (43816, 43822),
- (43824, 43866), (43868, 43881), (43888, 44010), (44012, 44013),
- (44016, 44025), (44032, 55203), (55216, 55238), (55243, 55291),
- (63744, 64109), (64112, 64217), (64256, 64262), (64275, 64279),
- (64285, 64296), (64298, 64310), (64312, 64316), (64318, 64318),
- (64320, 64321), (64323, 64324), (64326, 64433), (64467, 64605),
- (64612, 64829), (64848, 64911), (64914, 64967), (65008, 65017),
- (65024, 65039), (65056, 65071), (65075, 65076), (65101, 65103),
- (65137, 65137), (65139, 65139), (65143, 65143), (65145, 65145),
- (65147, 65147), (65149, 65149), (65151, 65276), (65296, 65305),
- (65313, 65338), (65343, 65343), (65345, 65370), (65381, 65470),
- (65474, 65479), (65482, 65487), (65490, 65495), (65498, 65500),
- (65536, 65547), (65549, 65574), (65576, 65594), (65596, 65597),
- (65599, 65613), (65616, 65629), (65664, 65786), (65856, 65908),
- (66045, 66045), (66176, 66204), (66208, 66256), (66272, 66272),
- (66304, 66335), (66349, 66378), (66384, 66426), (66432, 66461),
- (66464, 66499), (66504, 66511), (66513, 66517), (66560, 66717),
- (66720, 66729), (66736, 66771), (66776, 66811), (66816, 66855),
- (66864, 66915), (66928, 66938), (66940, 66954), (66956, 66962),
- (66964, 66965), (66967, 66977), (66979, 66993), (66995, 67001),
- (67003, 67004), (67008, 67059), (67072, 67382), (67392, 67413),
- (67424, 67431), (67456, 67461), (67463, 67504), (67506, 67514),
- (67584, 67589), (67592, 67592), (67594, 67637), (67639, 67640),
- (67644, 67644), (67647, 67669), (67680, 67702), (67712, 67742),
- (67808, 67826), (67828, 67829), (67840, 67861), (67872, 67897),
- (67904, 67929), (67968, 68023), (68030, 68031), (68096, 68099),
- (68101, 68102), (68108, 68115), (68117, 68119), (68121, 68149),
- (68152, 68154), (68159, 68159), (68192, 68220), (68224, 68252),
- (68288, 68295), (68297, 68326), (68352, 68405), (68416, 68437),
- (68448, 68466), (68480, 68497), (68608, 68680), (68736, 68786),
- (68800, 68850), (68864, 68903), (68912, 68921), (68928, 68965),
- (68969, 68973), (68975, 68997), (69248, 69289), (69291, 69292),
- (69296, 69297), (69314, 69319), (69370, 69404), (69415, 69415),
+ (42786, 42888), (42891, 42973), (42978, 42978), (42993, 43047),
+ (43052, 43052), (43072, 43123), (43136, 43205), (43216, 43225),
+ (43232, 43255), (43259, 43259), (43261, 43309), (43312, 43347),
+ (43360, 43388), (43392, 43456), (43471, 43481), (43488, 43518),
+ (43520, 43574), (43584, 43597), (43600, 43609), (43616, 43638),
+ (43642, 43714), (43739, 43741), (43744, 43759), (43762, 43766),
+ (43777, 43782), (43785, 43790), (43793, 43798), (43808, 43814),
+ (43816, 43822), (43824, 43866), (43868, 43881), (43884, 43885),
+ (43888, 44010), (44012, 44013), (44016, 44025), (44032, 55203),
+ (55216, 55238), (55243, 55291), (63744, 64109), (64112, 64217),
+ (64256, 64262), (64275, 64279), (64285, 64296), (64298, 64310),
+ (64312, 64316), (64318, 64318), (64320, 64321), (64323, 64324),
+ (64326, 64433), (64467, 64605), (64612, 64829), (64848, 64911),
+ (64914, 64967), (65008, 65017), (65024, 65039), (65056, 65071),
+ (65075, 65076), (65101, 65103), (65137, 65137), (65139, 65139),
+ (65143, 65143), (65145, 65145), (65147, 65147), (65149, 65149),
+ (65151, 65276), (65296, 65305), (65313, 65338), (65343, 65343),
+ (65345, 65370), (65381, 65470), (65474, 65479), (65482, 65487),
+ (65490, 65495), (65498, 65500), (65536, 65547), (65549, 65574),
+ (65576, 65594), (65596, 65597), (65599, 65613), (65616, 65629),
+ (65664, 65786), (65856, 65908), (66045, 66045), (66176, 66204),
+ (66208, 66256), (66272, 66272), (66304, 66335), (66349, 66378),
+ (66384, 66426), (66432, 66461), (66464, 66499), (66504, 66511),
+ (66513, 66517), (66560, 66717), (66720, 66729), (66736, 66771),
+ (66776, 66811), (66816, 66855), (66864, 66915), (66928, 66938),
+ (66940, 66954), (66956, 66962), (66964, 66965), (66967, 66977),
+ (66979, 66993), (66995, 67001), (67003, 67004), (67008, 67059),
+ (67072, 67382), (67392, 67413), (67424, 67431), (67456, 67461),
+ (67463, 67504), (67506, 67519), (67584, 67589), (67592, 67592),
+ (67594, 67637), (67639, 67640), (67644, 67644), (67647, 67669),
+ (67680, 67702), (67712, 67742), (67808, 67826), (67828, 67829),
+ (67840, 67861), (67872, 67897), (67904, 67929), (67968, 68023),
+ (68030, 68031), (68096, 68099), (68101, 68102), (68108, 68115),
+ (68117, 68119), (68121, 68149), (68152, 68154), (68159, 68159),
+ (68192, 68220), (68224, 68252), (68288, 68295), (68297, 68326),
+ (68352, 68405), (68416, 68437), (68448, 68466), (68480, 68497),
+ (68608, 68680), (68736, 68786), (68800, 68850), (68864, 68903),
+ (68912, 68921), (68928, 68965), (68969, 68973), (68975, 68997),
+ (69248, 69289), (69291, 69292), (69296, 69297), (69314, 69319),
+ (69323, 69327), (69337, 69358), (69360, 69404), (69415, 69415),
(69424, 69456), (69488, 69509), (69552, 69572), (69600, 69622),
(69632, 69702), (69734, 69749), (69759, 69818), (69826, 69826),
(69840, 69864), (69872, 69881), (69888, 69940), (69942, 69951),
@@ -146,56 +147,58 @@ pub const XID_CONTINUE: &'static [(u32, u32)] = &[
(71991, 71992), (71995, 72003), (72016, 72025), (72096, 72103),
(72106, 72151), (72154, 72161), (72163, 72164), (72192, 72254),
(72263, 72263), (72272, 72345), (72349, 72349), (72368, 72440),
- (72544, 72551), (72640, 72672), (72688, 72697), (72704, 72712),
- (72714, 72758), (72760, 72768), (72784, 72793), (72818, 72847),
- (72850, 72871), (72873, 72886), (72960, 72966), (72968, 72969),
- (72971, 73014), (73018, 73018), (73020, 73021), (73023, 73031),
- (73040, 73049), (73056, 73061), (73063, 73064), (73066, 73102),
- (73104, 73105), (73107, 73112), (73120, 73129), (73136, 73179),
- (73184, 73193), (73440, 73462), (73472, 73488), (73490, 73530),
- (73534, 73538), (73552, 73562), (73648, 73648), (73728, 74649),
- (74752, 74862), (74880, 75075), (77712, 77808), (77824, 78895),
- (78912, 78933), (78944, 82938), (82944, 83526), (90368, 90425),
- (92160, 92728), (92736, 92766), (92768, 92777), (92784, 92862),
- (92864, 92873), (92880, 92909), (92912, 92916), (92928, 92982),
- (92992, 92995), (93008, 93017), (93027, 93047), (93053, 93071),
- (93504, 93548), (93552, 93561), (93760, 93823), (93856, 93880),
- (93883, 93907), (93952, 94026), (94031, 94087), (94095, 94111),
- (94176, 94177), (94179, 94180), (94192, 94198), (94208, 101589),
- (101631, 101662), (101760, 101874), (110576, 110579), (110581, 110587),
- (110589, 110590), (110592, 110882), (110898, 110898), (110928, 110930),
- (110933, 110933), (110948, 110951), (110960, 111355), (113664, 113770),
- (113776, 113788), (113792, 113800), (113808, 113817), (113821, 113822),
- (118000, 118009), (118528, 118573), (118576, 118598), (119141, 119145),
- (119149, 119154), (119163, 119170), (119173, 119179), (119210, 119213),
- (119362, 119364), (119808, 119892), (119894, 119964), (119966, 119967),
- (119970, 119970), (119973, 119974), (119977, 119980), (119982, 119993),
- (119995, 119995), (119997, 120003), (120005, 120069), (120071, 120074),
- (120077, 120084), (120086, 120092), (120094, 120121), (120123, 120126),
- (120128, 120132), (120134, 120134), (120138, 120144), (120146, 120485),
- (120488, 120512), (120514, 120538), (120540, 120570), (120572, 120596),
- (120598, 120628), (120630, 120654), (120656, 120686), (120688, 120712),
- (120714, 120744), (120746, 120770), (120772, 120779), (120782, 120831),
- (121344, 121398), (121403, 121452), (121461, 121461), (121476, 121476),
- (121499, 121503), (121505, 121519), (122624, 122654), (122661, 122666),
- (122880, 122886), (122888, 122904), (122907, 122913), (122915, 122916),
- (122918, 122922), (122928, 122989), (123023, 123023), (123136, 123180),
- (123184, 123197), (123200, 123209), (123214, 123214), (123536, 123566),
- (123584, 123641), (124112, 124153), (124368, 124410), (124608, 124638),
- (124640, 124661), (124670, 124671), (124896, 124902), (124904, 124907),
- (124909, 124910), (124912, 124926), (124928, 125124), (125136, 125142),
- (125184, 125259), (125264, 125273), (126464, 126467), (126469, 126495),
- (126497, 126498), (126500, 126500), (126503, 126503), (126505, 126514),
- (126516, 126519), (126521, 126521), (126523, 126523), (126530, 126530),
- (126535, 126535), (126537, 126537), (126539, 126539), (126541, 126543),
- (126545, 126546), (126548, 126548), (126551, 126551), (126553, 126553),
- (126555, 126555), (126557, 126557), (126559, 126559), (126561, 126562),
- (126564, 126564), (126567, 126570), (126572, 126578), (126580, 126583),
- (126585, 126588), (126590, 126590), (126592, 126601), (126603, 126619),
- (126625, 126627), (126629, 126633), (126635, 126651), (130032, 130041),
- (131072, 173791), (173824, 178205), (178208, 183981), (183984, 191456),
- (191472, 192093), (194560, 195101), (196608, 201546), (201552, 210041),
- (917760, 917999),
+ (72458, 72458), (72544, 72551), (72640, 72672), (72688, 72697),
+ (72704, 72712), (72714, 72758), (72760, 72768), (72784, 72793),
+ (72818, 72847), (72850, 72871), (72873, 72886), (72960, 72966),
+ (72968, 72969), (72971, 73014), (73018, 73018), (73020, 73021),
+ (73023, 73031), (73040, 73049), (73056, 73061), (73063, 73064),
+ (73066, 73102), (73104, 73105), (73107, 73112), (73120, 73129),
+ (73136, 73179), (73184, 73193), (73200, 73201), (73440, 73462),
+ (73472, 73488), (73490, 73530), (73534, 73538), (73552, 73562),
+ (73648, 73648), (73728, 74649), (74752, 74863), (74869, 75075),
+ (75088, 75398), (77712, 77808), (77824, 78895), (78912, 78933),
+ (78944, 82938), (82944, 83526), (90368, 90425), (92160, 92728),
+ (92736, 92766), (92768, 92777), (92784, 92862), (92864, 92873),
+ (92880, 92909), (92912, 92916), (92928, 92982), (92992, 92995),
+ (93008, 93017), (93027, 93047), (93053, 93071), (93504, 93548),
+ (93552, 93561), (93760, 93823), (93856, 93880), (93883, 93907),
+ (93952, 94026), (94031, 94087), (94095, 94111), (94176, 94177),
+ (94179, 94180), (94192, 94198), (94208, 101594), (101631, 101664),
+ (101760, 101874), (101888, 102801), (102816, 102866), (110576, 110579),
+ (110581, 110587), (110589, 110590), (110592, 110888), (110898, 110898),
+ (110928, 110930), (110933, 110933), (110948, 110952), (110960, 111355),
+ (113664, 113770), (113776, 113788), (113792, 113800), (113808, 113817),
+ (113821, 113822), (118000, 118009), (118528, 118573), (118576, 118598),
+ (119079, 119080), (119141, 119145), (119149, 119154), (119163, 119170),
+ (119173, 119179), (119210, 119213), (119362, 119364), (119376, 119378),
+ (119387, 119388), (119391, 119391), (119424, 119425), (119808, 119892),
+ (119894, 119964), (119966, 119967), (119970, 119970), (119973, 119974),
+ (119977, 119980), (119982, 119993), (119995, 119995), (119997, 120003),
+ (120005, 120069), (120071, 120074), (120077, 120084), (120086, 120092),
+ (120094, 120121), (120123, 120126), (120128, 120132), (120134, 120134),
+ (120138, 120144), (120146, 120486), (120488, 120512), (120514, 120538),
+ (120540, 120570), (120572, 120596), (120598, 120628), (120630, 120654),
+ (120656, 120686), (120688, 120712), (120714, 120744), (120746, 120770),
+ (120772, 120779), (120782, 120831), (121344, 121398), (121403, 121452),
+ (121461, 121461), (121476, 121476), (121499, 121503), (121505, 121519),
+ (122624, 122753), (122768, 122774), (122829, 122886), (122888, 122904),
+ (122907, 122913), (122915, 122916), (122918, 122922), (122928, 122989),
+ (123023, 123023), (123136, 123180), (123184, 123197), (123200, 123209),
+ (123214, 123214), (123536, 123566), (123584, 123641), (124112, 124153),
+ (124368, 124410), (124608, 124638), (124640, 124661), (124670, 124671),
+ (124896, 124902), (124904, 124907), (124909, 124910), (124912, 124926),
+ (124928, 125124), (125136, 125142), (125184, 125259), (125264, 125273),
+ (126464, 126467), (126469, 126495), (126497, 126498), (126500, 126500),
+ (126503, 126503), (126505, 126514), (126516, 126519), (126521, 126521),
+ (126523, 126523), (126530, 126530), (126535, 126535), (126537, 126537),
+ (126539, 126539), (126541, 126543), (126545, 126546), (126548, 126548),
+ (126551, 126551), (126553, 126553), (126555, 126555), (126557, 126557),
+ (126559, 126559), (126561, 126562), (126564, 126564), (126567, 126570),
+ (126572, 126578), (126580, 126583), (126585, 126588), (126590, 126590),
+ (126592, 126601), (126603, 126619), (126625, 126627), (126629, 126633),
+ (126635, 126651), (130032, 130041), (131072, 173791), (173824, 178206),
+ (178208, 183981), (183984, 191456), (191472, 192093), (194560, 195101),
+ (196608, 201546), (201552, 210041), (249856, 261183), (917760, 917999),
];
pub const XID_START: &'static [(u32, u32)] = &[
@@ -203,102 +206,103 @@ pub const XID_START: &'static [(u32, u32)] = &[
(216, 246), (248, 705), (710, 721), (736, 740), (748, 748), (750, 750),
(880, 884), (886, 887), (891, 893), (895, 895), (902, 902), (904, 906),
(908, 908), (910, 929), (931, 1013), (1015, 1153), (1162, 1327),
- (1329, 1366), (1369, 1369), (1376, 1416), (1488, 1514), (1519, 1522),
- (1568, 1610), (1646, 1647), (1649, 1747), (1749, 1749), (1765, 1766),
- (1774, 1775), (1786, 1788), (1791, 1791), (1808, 1808), (1810, 1839),
- (1869, 1957), (1969, 1969), (1994, 2026), (2036, 2037), (2042, 2042),
- (2048, 2069), (2074, 2074), (2084, 2084), (2088, 2088), (2112, 2136),
- (2144, 2154), (2160, 2183), (2185, 2191), (2208, 2249), (2308, 2361),
- (2365, 2365), (2384, 2384), (2392, 2401), (2417, 2432), (2437, 2444),
- (2447, 2448), (2451, 2472), (2474, 2480), (2482, 2482), (2486, 2489),
- (2493, 2493), (2510, 2510), (2524, 2525), (2527, 2529), (2544, 2545),
- (2556, 2556), (2565, 2570), (2575, 2576), (2579, 2600), (2602, 2608),
- (2610, 2611), (2613, 2614), (2616, 2617), (2649, 2652), (2654, 2654),
- (2674, 2676), (2693, 2701), (2703, 2705), (2707, 2728), (2730, 2736),
- (2738, 2739), (2741, 2745), (2749, 2749), (2768, 2768), (2784, 2785),
- (2809, 2809), (2821, 2828), (2831, 2832), (2835, 2856), (2858, 2864),
- (2866, 2867), (2869, 2873), (2877, 2877), (2908, 2909), (2911, 2913),
- (2929, 2929), (2947, 2947), (2949, 2954), (2958, 2960), (2962, 2965),
- (2969, 2970), (2972, 2972), (2974, 2975), (2979, 2980), (2984, 2986),
- (2990, 3001), (3024, 3024), (3077, 3084), (3086, 3088), (3090, 3112),
- (3114, 3129), (3133, 3133), (3160, 3162), (3164, 3165), (3168, 3169),
- (3200, 3200), (3205, 3212), (3214, 3216), (3218, 3240), (3242, 3251),
- (3253, 3257), (3261, 3261), (3292, 3294), (3296, 3297), (3313, 3314),
- (3332, 3340), (3342, 3344), (3346, 3386), (3389, 3389), (3406, 3406),
- (3412, 3414), (3423, 3425), (3450, 3455), (3461, 3478), (3482, 3505),
- (3507, 3515), (3517, 3517), (3520, 3526), (3585, 3632), (3634, 3634),
- (3648, 3654), (3713, 3714), (3716, 3716), (3718, 3722), (3724, 3747),
- (3749, 3749), (3751, 3760), (3762, 3762), (3773, 3773), (3776, 3780),
- (3782, 3782), (3804, 3807), (3840, 3840), (3904, 3911), (3913, 3948),
- (3976, 3980), (4096, 4138), (4159, 4159), (4176, 4181), (4186, 4189),
- (4193, 4193), (4197, 4198), (4206, 4208), (4213, 4225), (4238, 4238),
- (4256, 4293), (4295, 4295), (4301, 4301), (4304, 4346), (4348, 4680),
- (4682, 4685), (4688, 4694), (4696, 4696), (4698, 4701), (4704, 4744),
- (4746, 4749), (4752, 4784), (4786, 4789), (4792, 4798), (4800, 4800),
- (4802, 4805), (4808, 4822), (4824, 4880), (4882, 4885), (4888, 4954),
- (4992, 5007), (5024, 5109), (5112, 5117), (5121, 5740), (5743, 5759),
- (5761, 5786), (5792, 5866), (5870, 5880), (5888, 5905), (5919, 5937),
- (5952, 5969), (5984, 5996), (5998, 6000), (6016, 6067), (6103, 6103),
- (6108, 6108), (6176, 6264), (6272, 6312), (6314, 6314), (6320, 6389),
- (6400, 6430), (6480, 6509), (6512, 6516), (6528, 6571), (6576, 6601),
- (6656, 6678), (6688, 6740), (6823, 6823), (6917, 6963), (6981, 6988),
- (7043, 7072), (7086, 7087), (7098, 7141), (7168, 7203), (7245, 7247),
- (7258, 7293), (7296, 7306), (7312, 7354), (7357, 7359), (7401, 7404),
- (7406, 7411), (7413, 7414), (7418, 7418), (7424, 7615), (7680, 7957),
- (7960, 7965), (7968, 8005), (8008, 8013), (8016, 8023), (8025, 8025),
- (8027, 8027), (8029, 8029), (8031, 8061), (8064, 8116), (8118, 8124),
- (8126, 8126), (8130, 8132), (8134, 8140), (8144, 8147), (8150, 8155),
- (8160, 8172), (8178, 8180), (8182, 8188), (8305, 8305), (8319, 8319),
- (8336, 8348), (8450, 8450), (8455, 8455), (8458, 8467), (8469, 8469),
- (8472, 8477), (8484, 8484), (8486, 8486), (8488, 8488), (8490, 8505),
- (8508, 8511), (8517, 8521), (8526, 8526), (8544, 8584), (11264, 11492),
- (11499, 11502), (11506, 11507), (11520, 11557), (11559, 11559),
- (11565, 11565), (11568, 11623), (11631, 11631), (11648, 11670),
- (11680, 11686), (11688, 11694), (11696, 11702), (11704, 11710),
- (11712, 11718), (11720, 11726), (11728, 11734), (11736, 11742),
- (12293, 12295), (12321, 12329), (12337, 12341), (12344, 12348),
- (12353, 12438), (12445, 12447), (12449, 12538), (12540, 12543),
- (12549, 12591), (12593, 12686), (12704, 12735), (12784, 12799),
- (13312, 19903), (19968, 42124), (42192, 42237), (42240, 42508),
- (42512, 42527), (42538, 42539), (42560, 42606), (42623, 42653),
- (42656, 42735), (42775, 42783), (42786, 42888), (42891, 42972),
- (42993, 43009), (43011, 43013), (43015, 43018), (43020, 43042),
- (43072, 43123), (43138, 43187), (43250, 43255), (43259, 43259),
- (43261, 43262), (43274, 43301), (43312, 43334), (43360, 43388),
- (43396, 43442), (43471, 43471), (43488, 43492), (43494, 43503),
- (43514, 43518), (43520, 43560), (43584, 43586), (43588, 43595),
- (43616, 43638), (43642, 43642), (43646, 43695), (43697, 43697),
- (43701, 43702), (43705, 43709), (43712, 43712), (43714, 43714),
- (43739, 43741), (43744, 43754), (43762, 43764), (43777, 43782),
- (43785, 43790), (43793, 43798), (43808, 43814), (43816, 43822),
- (43824, 43866), (43868, 43881), (43888, 44002), (44032, 55203),
- (55216, 55238), (55243, 55291), (63744, 64109), (64112, 64217),
- (64256, 64262), (64275, 64279), (64285, 64285), (64287, 64296),
- (64298, 64310), (64312, 64316), (64318, 64318), (64320, 64321),
- (64323, 64324), (64326, 64433), (64467, 64605), (64612, 64829),
- (64848, 64911), (64914, 64967), (65008, 65017), (65137, 65137),
- (65139, 65139), (65143, 65143), (65145, 65145), (65147, 65147),
- (65149, 65149), (65151, 65276), (65313, 65338), (65345, 65370),
- (65382, 65437), (65440, 65470), (65474, 65479), (65482, 65487),
- (65490, 65495), (65498, 65500), (65536, 65547), (65549, 65574),
- (65576, 65594), (65596, 65597), (65599, 65613), (65616, 65629),
- (65664, 65786), (65856, 65908), (66176, 66204), (66208, 66256),
- (66304, 66335), (66349, 66378), (66384, 66421), (66432, 66461),
- (66464, 66499), (66504, 66511), (66513, 66517), (66560, 66717),
- (66736, 66771), (66776, 66811), (66816, 66855), (66864, 66915),
- (66928, 66938), (66940, 66954), (66956, 66962), (66964, 66965),
- (66967, 66977), (66979, 66993), (66995, 67001), (67003, 67004),
- (67008, 67059), (67072, 67382), (67392, 67413), (67424, 67431),
- (67456, 67461), (67463, 67504), (67506, 67514), (67584, 67589),
- (67592, 67592), (67594, 67637), (67639, 67640), (67644, 67644),
- (67647, 67669), (67680, 67702), (67712, 67742), (67808, 67826),
- (67828, 67829), (67840, 67861), (67872, 67897), (67904, 67929),
- (67968, 68023), (68030, 68031), (68096, 68096), (68112, 68115),
- (68117, 68119), (68121, 68149), (68192, 68220), (68224, 68252),
- (68288, 68295), (68297, 68324), (68352, 68405), (68416, 68437),
- (68448, 68466), (68480, 68497), (68608, 68680), (68736, 68786),
- (68800, 68850), (68864, 68899), (68938, 68965), (68975, 68997),
- (69248, 69289), (69296, 69297), (69314, 69319), (69376, 69404),
+ (1329, 1366), (1368, 1369), (1376, 1416), (1419, 1420), (1488, 1514),
+ (1519, 1522), (1568, 1610), (1646, 1647), (1649, 1747), (1749, 1749),
+ (1765, 1766), (1774, 1775), (1786, 1788), (1791, 1791), (1808, 1808),
+ (1810, 1839), (1869, 1957), (1969, 1969), (1994, 2026), (2036, 2037),
+ (2042, 2042), (2048, 2069), (2074, 2074), (2084, 2084), (2088, 2088),
+ (2112, 2136), (2144, 2154), (2160, 2183), (2185, 2191), (2208, 2249),
+ (2308, 2361), (2365, 2365), (2384, 2384), (2392, 2401), (2417, 2432),
+ (2437, 2444), (2447, 2448), (2451, 2472), (2474, 2480), (2482, 2482),
+ (2486, 2489), (2493, 2493), (2510, 2510), (2524, 2525), (2527, 2529),
+ (2544, 2545), (2556, 2556), (2565, 2570), (2575, 2576), (2579, 2600),
+ (2602, 2608), (2610, 2611), (2613, 2614), (2616, 2617), (2649, 2652),
+ (2654, 2654), (2674, 2676), (2693, 2701), (2703, 2705), (2707, 2728),
+ (2730, 2736), (2738, 2739), (2741, 2745), (2749, 2749), (2768, 2768),
+ (2784, 2785), (2809, 2809), (2821, 2828), (2831, 2832), (2835, 2856),
+ (2858, 2864), (2866, 2867), (2869, 2873), (2877, 2877), (2908, 2909),
+ (2911, 2913), (2929, 2929), (2947, 2947), (2949, 2954), (2958, 2960),
+ (2962, 2965), (2969, 2970), (2972, 2972), (2974, 2975), (2979, 2980),
+ (2984, 2986), (2990, 3001), (3024, 3024), (3077, 3084), (3086, 3088),
+ (3090, 3112), (3114, 3129), (3133, 3133), (3160, 3162), (3164, 3165),
+ (3168, 3169), (3200, 3200), (3205, 3212), (3214, 3216), (3218, 3240),
+ (3242, 3251), (3253, 3257), (3261, 3261), (3292, 3294), (3296, 3297),
+ (3313, 3314), (3332, 3340), (3342, 3344), (3346, 3386), (3389, 3389),
+ (3406, 3406), (3412, 3414), (3423, 3425), (3450, 3455), (3461, 3478),
+ (3482, 3505), (3507, 3515), (3517, 3517), (3520, 3526), (3585, 3632),
+ (3634, 3634), (3648, 3654), (3713, 3714), (3716, 3716), (3718, 3722),
+ (3724, 3747), (3749, 3749), (3751, 3760), (3762, 3762), (3773, 3773),
+ (3776, 3780), (3782, 3782), (3804, 3807), (3840, 3840), (3904, 3911),
+ (3913, 3948), (3976, 3980), (4096, 4138), (4159, 4159), (4176, 4181),
+ (4186, 4189), (4193, 4193), (4197, 4198), (4206, 4208), (4213, 4225),
+ (4238, 4238), (4256, 4293), (4295, 4295), (4301, 4301), (4304, 4346),
+ (4348, 4680), (4682, 4685), (4688, 4694), (4696, 4696), (4698, 4701),
+ (4704, 4744), (4746, 4749), (4752, 4784), (4786, 4789), (4792, 4798),
+ (4800, 4800), (4802, 4805), (4808, 4822), (4824, 4880), (4882, 4885),
+ (4888, 4954), (4992, 5007), (5024, 5109), (5112, 5117), (5121, 5740),
+ (5743, 5759), (5761, 5786), (5792, 5866), (5870, 5880), (5888, 5905),
+ (5919, 5937), (5952, 5969), (5984, 5996), (5998, 6000), (6016, 6067),
+ (6103, 6103), (6108, 6108), (6176, 6264), (6272, 6312), (6314, 6314),
+ (6320, 6389), (6400, 6430), (6480, 6509), (6512, 6516), (6528, 6571),
+ (6576, 6601), (6656, 6678), (6688, 6740), (6823, 6823), (6917, 6963),
+ (6981, 6988), (7043, 7072), (7086, 7087), (7098, 7141), (7168, 7203),
+ (7245, 7247), (7258, 7293), (7296, 7306), (7312, 7354), (7357, 7359),
+ (7401, 7404), (7406, 7411), (7413, 7414), (7418, 7418), (7424, 7615),
+ (7680, 7957), (7960, 7965), (7968, 8005), (8008, 8013), (8016, 8023),
+ (8025, 8025), (8027, 8027), (8029, 8029), (8031, 8061), (8064, 8116),
+ (8118, 8124), (8126, 8126), (8130, 8132), (8134, 8140), (8144, 8147),
+ (8150, 8155), (8160, 8172), (8178, 8180), (8182, 8188), (8305, 8305),
+ (8319, 8319), (8335, 8351), (8450, 8450), (8455, 8455), (8458, 8467),
+ (8469, 8469), (8472, 8477), (8484, 8484), (8486, 8486), (8488, 8488),
+ (8490, 8505), (8508, 8511), (8517, 8521), (8526, 8526), (8544, 8584),
+ (11264, 11492), (11499, 11502), (11506, 11507), (11520, 11557),
+ (11559, 11559), (11565, 11565), (11568, 11623), (11631, 11631),
+ (11648, 11670), (11680, 11686), (11688, 11694), (11696, 11702),
+ (11704, 11710), (11712, 11718), (11720, 11726), (11728, 11734),
+ (11736, 11742), (12293, 12295), (12321, 12329), (12337, 12341),
+ (12344, 12348), (12353, 12438), (12445, 12447), (12449, 12538),
+ (12540, 12543), (12549, 12591), (12593, 12686), (12704, 12735),
+ (12784, 12799), (13312, 19903), (19968, 42124), (42192, 42237),
+ (42240, 42508), (42512, 42527), (42538, 42539), (42560, 42606),
+ (42623, 42653), (42656, 42735), (42775, 42783), (42786, 42888),
+ (42891, 42973), (42978, 42978), (42993, 43009), (43011, 43013),
+ (43015, 43018), (43020, 43042), (43072, 43123), (43138, 43187),
+ (43250, 43255), (43259, 43259), (43261, 43262), (43274, 43301),
+ (43312, 43334), (43360, 43388), (43396, 43442), (43471, 43471),
+ (43488, 43492), (43494, 43503), (43514, 43518), (43520, 43560),
+ (43584, 43586), (43588, 43595), (43616, 43638), (43642, 43642),
+ (43646, 43695), (43697, 43697), (43701, 43702), (43705, 43709),
+ (43712, 43712), (43714, 43714), (43739, 43741), (43744, 43754),
+ (43762, 43764), (43777, 43782), (43785, 43790), (43793, 43798),
+ (43808, 43814), (43816, 43822), (43824, 43866), (43868, 43881),
+ (43884, 43885), (43888, 44002), (44032, 55203), (55216, 55238),
+ (55243, 55291), (63744, 64109), (64112, 64217), (64256, 64262),
+ (64275, 64279), (64285, 64285), (64287, 64296), (64298, 64310),
+ (64312, 64316), (64318, 64318), (64320, 64321), (64323, 64324),
+ (64326, 64433), (64467, 64605), (64612, 64829), (64848, 64911),
+ (64914, 64967), (65008, 65017), (65137, 65137), (65139, 65139),
+ (65143, 65143), (65145, 65145), (65147, 65147), (65149, 65149),
+ (65151, 65276), (65313, 65338), (65345, 65370), (65382, 65437),
+ (65440, 65470), (65474, 65479), (65482, 65487), (65490, 65495),
+ (65498, 65500), (65536, 65547), (65549, 65574), (65576, 65594),
+ (65596, 65597), (65599, 65613), (65616, 65629), (65664, 65786),
+ (65856, 65908), (66176, 66204), (66208, 66256), (66304, 66335),
+ (66349, 66378), (66384, 66421), (66432, 66461), (66464, 66499),
+ (66504, 66511), (66513, 66517), (66560, 66717), (66736, 66771),
+ (66776, 66811), (66816, 66855), (66864, 66915), (66928, 66938),
+ (66940, 66954), (66956, 66962), (66964, 66965), (66967, 66977),
+ (66979, 66993), (66995, 67001), (67003, 67004), (67008, 67059),
+ (67072, 67382), (67392, 67413), (67424, 67431), (67456, 67461),
+ (67463, 67504), (67506, 67519), (67584, 67589), (67592, 67592),
+ (67594, 67637), (67639, 67640), (67644, 67644), (67647, 67669),
+ (67680, 67702), (67712, 67742), (67808, 67826), (67828, 67829),
+ (67840, 67861), (67872, 67897), (67904, 67929), (67968, 68023),
+ (68030, 68031), (68096, 68096), (68112, 68115), (68117, 68119),
+ (68121, 68149), (68192, 68220), (68224, 68252), (68288, 68295),
+ (68297, 68324), (68352, 68405), (68416, 68437), (68448, 68466),
+ (68480, 68497), (68608, 68680), (68736, 68786), (68800, 68850),
+ (68864, 68899), (68938, 68965), (68975, 68997), (69248, 69289),
+ (69296, 69297), (69314, 69319), (69337, 69358), (69376, 69404),
(69415, 69415), (69424, 69445), (69488, 69505), (69552, 69572),
(69600, 69622), (69635, 69687), (69745, 69746), (69749, 69749),
(69763, 69807), (69840, 69864), (69891, 69926), (69956, 69956),
@@ -318,44 +322,46 @@ pub const XID_START: &'static [(u32, u32)] = &[
(71960, 71983), (71999, 71999), (72001, 72001), (72096, 72103),
(72106, 72144), (72161, 72161), (72163, 72163), (72192, 72192),
(72203, 72242), (72250, 72250), (72272, 72272), (72284, 72329),
- (72349, 72349), (72368, 72440), (72640, 72672), (72704, 72712),
- (72714, 72750), (72768, 72768), (72818, 72847), (72960, 72966),
- (72968, 72969), (72971, 73008), (73030, 73030), (73056, 73061),
- (73063, 73064), (73066, 73097), (73112, 73112), (73136, 73179),
- (73440, 73458), (73474, 73474), (73476, 73488), (73490, 73523),
- (73648, 73648), (73728, 74649), (74752, 74862), (74880, 75075),
- (77712, 77808), (77824, 78895), (78913, 78918), (78944, 82938),
- (82944, 83526), (90368, 90397), (92160, 92728), (92736, 92766),
- (92784, 92862), (92880, 92909), (92928, 92975), (92992, 92995),
- (93027, 93047), (93053, 93071), (93504, 93548), (93760, 93823),
- (93856, 93880), (93883, 93907), (93952, 94026), (94032, 94032),
- (94099, 94111), (94176, 94177), (94179, 94179), (94194, 94198),
- (94208, 101589), (101631, 101662), (101760, 101874), (110576, 110579),
- (110581, 110587), (110589, 110590), (110592, 110882), (110898, 110898),
- (110928, 110930), (110933, 110933), (110948, 110951), (110960, 111355),
- (113664, 113770), (113776, 113788), (113792, 113800), (113808, 113817),
- (119808, 119892), (119894, 119964), (119966, 119967), (119970, 119970),
- (119973, 119974), (119977, 119980), (119982, 119993), (119995, 119995),
- (119997, 120003), (120005, 120069), (120071, 120074), (120077, 120084),
- (120086, 120092), (120094, 120121), (120123, 120126), (120128, 120132),
- (120134, 120134), (120138, 120144), (120146, 120485), (120488, 120512),
- (120514, 120538), (120540, 120570), (120572, 120596), (120598, 120628),
- (120630, 120654), (120656, 120686), (120688, 120712), (120714, 120744),
- (120746, 120770), (120772, 120779), (122624, 122654), (122661, 122666),
- (122928, 122989), (123136, 123180), (123191, 123197), (123214, 123214),
- (123536, 123565), (123584, 123627), (124112, 124139), (124368, 124397),
- (124400, 124400), (124608, 124638), (124640, 124642), (124644, 124645),
- (124647, 124653), (124656, 124660), (124670, 124671), (124896, 124902),
- (124904, 124907), (124909, 124910), (124912, 124926), (124928, 125124),
- (125184, 125251), (125259, 125259), (126464, 126467), (126469, 126495),
- (126497, 126498), (126500, 126500), (126503, 126503), (126505, 126514),
- (126516, 126519), (126521, 126521), (126523, 126523), (126530, 126530),
- (126535, 126535), (126537, 126537), (126539, 126539), (126541, 126543),
- (126545, 126546), (126548, 126548), (126551, 126551), (126553, 126553),
- (126555, 126555), (126557, 126557), (126559, 126559), (126561, 126562),
- (126564, 126564), (126567, 126570), (126572, 126578), (126580, 126583),
- (126585, 126588), (126590, 126590), (126592, 126601), (126603, 126619),
- (126625, 126627), (126629, 126633), (126635, 126651), (131072, 173791),
- (173824, 178205), (178208, 183981), (183984, 191456), (191472, 192093),
- (194560, 195101), (196608, 201546), (201552, 210041),
+ (72349, 72349), (72368, 72440), (72458, 72458), (72640, 72672),
+ (72704, 72712), (72714, 72750), (72768, 72768), (72818, 72847),
+ (72960, 72966), (72968, 72969), (72971, 73008), (73030, 73030),
+ (73056, 73061), (73063, 73064), (73066, 73097), (73112, 73112),
+ (73136, 73179), (73201, 73201), (73440, 73458), (73474, 73474),
+ (73476, 73488), (73490, 73523), (73648, 73648), (73728, 74649),
+ (74752, 74863), (74869, 75075), (75088, 75398), (77712, 77808),
+ (77824, 78895), (78913, 78918), (78944, 82938), (82944, 83526),
+ (90368, 90397), (92160, 92728), (92736, 92766), (92784, 92862),
+ (92880, 92909), (92928, 92975), (92992, 92995), (93027, 93047),
+ (93053, 93071), (93504, 93548), (93760, 93823), (93856, 93880),
+ (93883, 93907), (93952, 94026), (94032, 94032), (94099, 94111),
+ (94176, 94177), (94179, 94179), (94194, 94198), (94208, 101594),
+ (101631, 101664), (101760, 101874), (101888, 102801), (102816, 102866),
+ (110576, 110579), (110581, 110587), (110589, 110590), (110592, 110888),
+ (110898, 110898), (110928, 110930), (110933, 110933), (110948, 110952),
+ (110960, 111355), (113664, 113770), (113776, 113788), (113792, 113800),
+ (113808, 113817), (119808, 119892), (119894, 119964), (119966, 119967),
+ (119970, 119970), (119973, 119974), (119977, 119980), (119982, 119993),
+ (119995, 119995), (119997, 120003), (120005, 120069), (120071, 120074),
+ (120077, 120084), (120086, 120092), (120094, 120121), (120123, 120126),
+ (120128, 120132), (120134, 120134), (120138, 120144), (120146, 120486),
+ (120488, 120512), (120514, 120538), (120540, 120570), (120572, 120596),
+ (120598, 120628), (120630, 120654), (120656, 120686), (120688, 120712),
+ (120714, 120744), (120746, 120770), (120772, 120779), (122624, 122753),
+ (122768, 122774), (122829, 122879), (122928, 122989), (123136, 123180),
+ (123191, 123197), (123214, 123214), (123536, 123565), (123584, 123627),
+ (124112, 124139), (124368, 124397), (124400, 124400), (124608, 124638),
+ (124640, 124642), (124644, 124645), (124647, 124653), (124656, 124660),
+ (124670, 124671), (124896, 124902), (124904, 124907), (124909, 124910),
+ (124912, 124926), (124928, 125124), (125184, 125251), (125259, 125259),
+ (126464, 126467), (126469, 126495), (126497, 126498), (126500, 126500),
+ (126503, 126503), (126505, 126514), (126516, 126519), (126521, 126521),
+ (126523, 126523), (126530, 126530), (126535, 126535), (126537, 126537),
+ (126539, 126539), (126541, 126543), (126545, 126546), (126548, 126548),
+ (126551, 126551), (126553, 126553), (126555, 126555), (126557, 126557),
+ (126559, 126559), (126561, 126562), (126564, 126564), (126567, 126570),
+ (126572, 126578), (126580, 126583), (126585, 126588), (126590, 126590),
+ (126592, 126601), (126603, 126619), (126625, 126627), (126629, 126633),
+ (126635, 126651), (131072, 173791), (173824, 178206), (178208, 183981),
+ (183984, 191456), (191472, 192093), (194560, 195101), (196608, 201546),
+ (201552, 210041), (249856, 261183),
];
diff --git a/deps/crates/vendor/unicode-ident-v1/tests/trie/trie.rs b/deps/crates/vendor/unicode-ident-v1/tests/trie/trie.rs
index 0cca9ecce64..c385bc85549 100644
--- a/deps/crates/vendor/unicode-ident-v1/tests/trie/trie.rs
+++ b/deps/crates/vendor/unicode-ident-v1/tests/trie/trie.rs
@@ -2,7 +2,7 @@
//
// ucd-generate property-bool UCD --include XID_Start,XID_Continue --trie-set
//
-// Unicode version: 17.0.0.
+// Unicode version: 18.0.0.
//
// ucd-generate 0.3.1 is available on crates.io.
@@ -19,7 +19,7 @@ pub const XID_CONTINUE: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0xFFFFFFFFFFFFFFFF, 0xB8DFFFFFFFFFFFFF, 0xFFFFFFFBFFFFD7C0,
0xFFBFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF,
0xFFFFFFFFFFFFFCFB, 0xFFFFFFFFFFFFFFFF, 0xFFFEFFFFFFFFFFFF,
- 0xFFFFFFFF027FFFFF, 0xBFFFFFFFFFFE01FF, 0x787FFFFFF00B6,
+ 0xFFFFFFFF037FFFFF, 0xBFFFFFFFFFFE19FF, 0x787FFFFFF03B6,
0xFFFFFFFF07FF0000, 0xFFFFC3FFFFFFFFFF, 0xFFFFFFFFFFFFFFFF,
0x9FFFFDFF9FEFFFFF, 0xFFFFFFFFFFFF0000, 0xFFFFFFFFFFFFE7FF,
0x3FFFFFFFFFFFF, 0x243FFFFFFFFFFFFF,
@@ -76,7 +76,7 @@ pub const XID_CONTINUE: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0xFFFFFFFBFFFFFFFF, 0xFFFFFFFFFFFFFFFF, 0xFFFEFFCFFFFFFFFF,
0xF3C5FDFFFFF99FEF, 0x5003FFCFB080799F, 0xD36DFDFFFFF987EE,
0x3FFFC05E023987, 0xF3EDFDFFFFFBBFEE, 0xFE00FFCF00013BBF,
- 0xF3EDFDFFFFF99FEE, 0x2FFCFB0E0399F, 0xC3FFC718D63DC7EC, 0xFFC000813DC7,
+ 0xF3EDFDFFFFF99FEE, 0x2FFCFB0F8399F, 0xC3FFC718D63DC7EC, 0xFFC000813DC7,
0xF3FFFDFFFFFDDFFF, 0xFFCF37603DDF, 0xF3EFFDFFFFFDDFEF, 0xEFFCF70603DDF,
0xFFFFFFFFFFFDDFFF, 0xFC00FFCF80F07DDF, 0x2FFBFFFFFC7FFFEE,
0xCFFC0FF5F847F, 0x7FFFFFFFFFFFFFE, 0x3FF7FFF, 0x3FFFFFAFFFFFF7D6,
@@ -89,20 +89,20 @@ pub const XID_CONTINUE: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0x3FF308FFFFF, 0xFFFFFFFF03FFB800, 0x1FFFFFFFFFFFFFF, 0xFFFF07FFFFFFFFFF,
0x3FFFFFFFFFFFFF, 0xFFF0FFF7FFFFFFF, 0x1F3FFFFFFFFFC0, 0xFFFF0FFFFFFFFFFF,
0x7FF03FF, 0xFFFFFFFF0FFFFFFF, 0x9FFFFFFF7FFFFFFF, 0xBFFF008003FF03FF,
- 0xFFF3FFFFFFF, 0xFF80003FF1FFF, 0xFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFF,
+ 0x1FFFFFFFFFFFF, 0xFF80003FF1FFF, 0xFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFF,
0x3FFFFFFFFFFFE3FF, 0xE7FFFFFFFFFF07FF, 0x7FFFFFFFFF70000,
0xFFFFFFFF3F3FFFFF, 0x3FFFFFFFAAFF3F3F, 0x5FDFFFFFFFFFFFFF,
- 0x1FDC1FFF0FCF1FDC, 0x8000000000003000, 0x8002000000100001, 0x1FFF0000,
+ 0x1FDC1FFF0FCF1FDC, 0x8000000000003000, 0x8002000000100001, 0xFFFF8000,
0x1FFE21FFF0000, 0xF3FFFD503F2FFC84, 0xFFFFFFFF000043E0, 0x1FF, 0,
0xFF81FFFFFFFFF, 0xFFFF20BFFFFFFFFF, 0x800080FFFFFFFFFF,
0x7F7F7F7F007FFFFF, 0xFFFFFFFF7F7F7F7F, 0x1F3EFFFE000000E0,
0xFFFFFFFEE67FFFFF, 0xFFFEFFFFFFFFFFE0, 0xFFFFFFFF00007FFF,
0xFFFF000000000000, 0x1FFF, 0x3FFFFFFFFFFF0000, 0xFFFFFFF1FFF,
0xBFF0FFFFFFFFFFFF, 0x3FFFFFFFFFFFF, 0xFFFFFFFCFF800000,
- 0xFFFFFFFFFFFFF9FF, 0xFFFE00001FFFFFFF, 0x10FFFFFFFFFF,
+ 0xFFFFFFFFFFFFF9FF, 0xFFFE00043FFFFFFF, 0x10FFFFFFFFFF,
0xE8FFFFFF03FF003F, 0xFFFF3FFFFFFFFFFF, 0x1FFFFFFF000FFFFF,
0x7FFFFFFF03FF8001, 0x7FFFFFFFFFFFFF, 0xFC7FFFFF03FF3FFF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 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 24, 5, 5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 22, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
],
tree3_level2: &[
0, 1, 2, 3, 4, 5, 4, 6, 4, 4, 7, 8, 9, 10, 11, 12, 2, 2, 13, 14, 15, 16,
@@ -129,11 +129,11 @@ pub const XID_CONTINUE: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
31, 32, 33, 34, 35, 4, 2, 36, 37, 37, 38, 39, 40, 4, 4, 4, 41, 42, 43, 44,
45, 46, 2, 47, 3, 48, 49, 50, 2, 51, 52, 53, 54, 55, 56, 57, 58, 59, 2,
60, 2, 61, 4, 4, 62, 63, 2, 64, 65, 66, 67, 68, 4, 4, 3, 4, 69, 70, 71,
- 72, 73, 74, 75, 76, 77, 65, 4, 78, 4, 79, 80, 81, 82, 4, 83, 84, 85, 86,
- 4, 4, 4, 87, 88, 89, 90, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 27,
- 4, 2, 91, 2, 2, 2, 92, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4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FFFF, 0x873FFFFFFEEFF06F, 0x1FFFFFFF00000000, 0x1FFFFFFF,
0x7FFFFFFEFF, 0x3FFFFFFFFFFFFF, 0x7FFFF003FFFFF, 0x3FFFF, 0x1FF,
0x7FFFFFFFFFFFF, 0x3FF00FFFFFFFFFF, 0xFFFFBE3FFFFFFFFF, 0x3F,
- 0x31BFFFFFFFFFF, 0xFC000000000000FC, 0xFFFF00801FFFFFFF,
+ 0x31BFFFFFFFFFF, 0xFFFF7FFFFE00F8FC, 0xFFFF00801FFFFFFF,
0xFFFF00000001FFFF, 0xFFFF00000000003F, 0x7FFFFF0000001F,
0x803FFFC00000007F, 0x3FF01FFFFFF0004, 0xFFDFFFFFFFFFFFFF,
0x4FFFFFFFFF00F0, 0x17FFDE1F, 0xC0FFFFFFFFFBFFFF, 0x3, 0xFFFF01FFBFFFBD7F,
@@ -208,27 +213,29 @@ pub const XID_CONTINUE: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0xFF3FFFFFFFFFFFFF, 0x3F000001, 0x3FF0011, 0x1FFFFFFFFFFFFFF, 0xFFFFF03FF,
0x3FF0FFFE7FFFFFF, 0x7F, 0xFFFFFFFF00000000, 0x800003FFFFFFFFFF,
0xF9BFFFFFFF6FF27F, 0x3FF000F, 0xFFFFFCFF00000000, 0x1BFCFFFFFF,
- 0x7FFFFFFFFFFFFFFF, 0xFFFFFFFFFFFF0080, 0xFFFF000023FFFFFF, 0xFF00000000,
- 0x3FF0001FFFFFFFF, 0xFF7FFFFFFFFFFDFF, 0xFFFC000003FF0001,
+ 0x7FFFFFFFFFFFFFFF, 0xFFFFFFFFFFFF0080, 0xFFFF000023FFFFFF, 0x400,
+ 0xFF00000000, 0x3FF0001FFFFFFFF, 0xFF7FFFFFFFFFFDFF, 0xFFFC000003FF0001,
0x7FFEFFFFFCFFFF, 0xB47FFFFFFFFFFB7F, 0xFFFFFDBF03FF00FF,
- 0xFFFF03FF01FB7FFF, 0x3FF0FFFFFFF, 0x7FFFFF00000000, 0xC7FFFFFFFFFDFFFF,
- 0x7FF0007, 0x1000000000000, 0x7FFFFFFFFFFF, 0xF, 0xFFFFFFFFFFFF0000,
- 0x1FFFFFFFFFFFF, 0xFFFFFFFFFFFF, 0xFFFFFFFF003FFFFF, 0x3FFFFFFFFFFFFFF,
- 0xFFFF03FF7FFFFFFF, 0x1F3FFFFFFF03FF, 0xE0FFFFF803FF000F, 0xFFFF,
- 0x3FF1FFFFFFFFFFF, 0xF9FFFFFF00000000, 0xFFFFF, 0xFFFFFFFFFFFF87FF,
- 0xFFFF80FF, 0x7F001B00000000, 0x80000000003FFFFF, 0x6FEF000000000000,
- 0x40007FFFFFFFF, 0xFFFF00F000270000, 0xFFFFFFFFFFFFFFF,
- 0x1FFF07FFFFFFFFFF, 0x63FF01FF, 0x3FF000000000000, 0xFFFF3FFFFFFFFFFF,
- 0xF807E3E000000000, 0x3C0000000FE7, 0x1C, 0xFFFFFFFFFFDFFFFF,
- 0xEBFFDE64DFFFFFFF, 0xFFFFFFFFFFFFFFEF, 0x7BFFFFFFDFDFE7BF,
- 0xFFFFFFFFFFFDFC5F, 0xFFFFFF3FFFFFFFFF, 0xF7FFFFFFF7FFFFFD,
- 0xFFDFFFFFFFDFFFFF, 0xFFFF7FFFFFFF7FFF, 0xFFFFFDFFFFFFFDFF,
- 0xFFFFFFFFFFFFCFF7, 0xF87FFFFFFFFFFFFF, 0x201FFFFFFFFFFF, 0xFFFEF8000010,
- 0x7E07FFFFFFF, 0xFFFF07DBF9FFFF7F, 0x3FFFFFFFFFFF, 0x8000,
- 0x3FFF1FFFFFFFFFFF, 0x43FF, 0x7FFFFFFF0000, 0x3FFFFFFFFFF0000,
- 0x7FFFFFFFFFF0000, 0xC03FFFFF7FFFFFFF, 0x7FFF6F7F00000000, 0x7F001F,
- 0x3FF0FFF, 0xAF7FE96FFFFFFEF, 0x5EF7F796AA96EA84, 0xFFFFBEE0FFFFBFF,
- 0xFFFFFFFF, 0xFFFF0001FFFFFFFF, 0x3FFFFFFF, 0xFFFFFFFFFFFF07FF,
+ 0xFFFF03FF01FB7FFF, 0x303FF0FFFFFFF, 0x7FFFFF00000000, 0xC7FFFFFFFFFDFFFF,
+ 0x7FF0007, 0x1000000000000, 0xFFE0FFFFFFFFFFFF, 0xFFFFFFFFFFFF000F,
+ 0xFFFFFFFFFFFF0000, 0x1FFFFFFFFFFFF, 0xFFFFFFFFFFFF, 0xFFFFFFFF003FFFFF,
+ 0x3FFFFFFFFFFFFFF, 0xFFFF03FF7FFFFFFF, 0x1F3FFFFFFF03FF,
+ 0xE0FFFFF803FF000F, 0xFFFF, 0x3FF1FFFFFFFFFFF, 0xF9FFFFFF00000000,
+ 0xFFFFF, 0xFFFFFFFFFFFF87FF, 0xFFFF80FF, 0x7F001B00000000,
+ 0x8000000007FFFFFF, 0x1FFFFFFFF, 0xFFFFFFFF0003FFFF, 0x7FFFF,
+ 0x6FEF000000000000, 0x401FFFFFFFFFF, 0xFFFF01F000270000,
+ 0xFFFFFFFFFFFFFFF, 0x1FFF07FFFFFFFFFF, 0x63FF01FF, 0x3FF000000000000,
+ 0xFFFF3FFFFFFFFFFF, 0x18000000000, 0xF807E3E000000000, 0x3C0000000FE7,
+ 0x9807001C, 0xFFFFFFFFFFDFFFFF, 0xEBFFDE64DFFFFFFF, 0xFFFFFFFFFFFFFFEF,
+ 0x7BFFFFFFDFDFE7BF, 0xFFFFFFFFFFFDFC5F, 0xFFFFFF7FFFFFFFFF,
+ 0xF7FFFFFFF7FFFFFD, 0xFFDFFFFFFFDFFFFF, 0xFFFF7FFFFFFF7FFF,
+ 0xFFFFFDFFFFFFFDFF, 0xFFFFFFFFFFFFCFF7, 0xF87FFFFFFFFFFFFF,
+ 0x201FFFFFFFFFFF, 0xFFFEF8000010, 0x7F0003, 0xFFFFFFFFFFFFE000,
+ 0xFFFF07DBF9FFFF7F, 0x3FFFFFFFFFFF, 0x8000, 0x3FFF1FFFFFFFFFFF, 0x43FF,
+ 0x7FFFFFFF0000, 0x3FFFFFFFFFF0000, 0x7FFFFFFFFFF0000, 0xC03FFFFF7FFFFFFF,
+ 0x7FFF6F7F00000000, 0x7F001F, 0x3FF0FFF, 0xAF7FE96FFFFFFEF,
+ 0x5EF7F796AA96EA84, 0xFFFFBEE0FFFFBFF, 0xFFFFFFFF, 0xFFFFFFFF7FFFFFFF,
+ 0xFFFF0001FFFFFFFF, 0x3FFFFFFF, 0xFFFFFFFFFFFF07FF,
],
};
@@ -240,7 +247,7 @@ pub const XID_START: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0xFFFFFFFFFFFFFFFF, 0x501F0003FFC3, 0, 0xB8DF000000000000,
0xFFFFFFFBFFFFD740, 0xFFBFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF,
0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFC03, 0xFFFFFFFFFFFFFFFF,
- 0xFFFEFFFFFFFFFFFF, 0xFFFFFFFF027FFFFF, 0x1FF, 0x787FFFFFF0000,
+ 0xFFFEFFFFFFFFFFFF, 0xFFFFFFFF037FFFFF, 0x19FF, 0x787FFFFFF0000,
0xFFFFFFFF00000000, 0xFFFEC000000007FF, 0xFFFFFFFFFFFFFFFF,
0x9C00C060002FFFFF, 0xFFFFFFFD0000, 0xFFFFFFFFFFFFE000, 0x2003FFFFFFFFF,
0x43007FFFFFFFC00,
@@ -324,17 +331,17 @@ pub const XID_START: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0xFC00C001FFFFFFF8, 0x3FFFFFFFFF, 0xFFFFFFFFF, 0x3FFFFFFFFC00E000,
0xE7FFFFFFFFFF07FF, 0x46FDE0000000000, 0xFFFFFFFF3F3FFFFF,
0x3FFFFFFFAAFF3F3F, 0x5FDFFFFFFFFFFFFF, 0x1FDC1FFF0FCF1FDC,
- 0x8002000000000000, 0x1FFF0000, 0xF3FFFD503F2FFC84, 0xFFFFFFFF000043E0,
+ 0x8002000000000000, 0xFFFF8000, 0xF3FFFD503F2FFC84, 0xFFFFFFFF000043E0,
0x1FF, 0xC781FFFFFFFFF, 0xFFFF20BFFFFFFFFF, 0x80FFFFFFFFFF,
0x7F7F7F7F007FFFFF, 0x7F7F7F7F, 0x1F3E03FE000000E0, 0xFFFFFFFEE07FFFFF,
0xF7FFFFFFFFFFFFFF, 0xFFFEFFFFFFFFFFE0, 0xFFFFFFFF00007FFF,
0xFFFF000000000000, 0x1FFF, 0x3FFFFFFFFFFF0000, 0xC00FFFF1FFF,
0x80007FFFFFFFFFFF, 0xFFFFFFFF3FFFFFFF, 0xFFFFFFFFFFFF,
- 0xFFFFFFFCFF800000, 0xFFFFFFFFFFFFF9FF, 0xFFFE00001FFFFFFF, 0x7FFFFF7BB,
+ 0xFFFFFFFCFF800000, 0xFFFFFFFFFFFFF9FF, 0xFFFE00043FFFFFFF, 0x7FFFFF7BB,
0xFFFFFFFFFFFFC, 0x68FC000000000000, 0xFFFF003FFFFFFC00,
0x1FFFFFFF0000007F, 0x7FFFFFFFFFFF0, 0x7C00FFDF00008000, 0x1FFFFFFFFFF,
0xC47FFFFF00000FF7, 0x3E62FFFFFFFFFFFF, 0x1C07FF38000005,
- 0xFFFF7F7F007E7E7E, 0xFFFF03FFF7FFFFFF, 0x7FFFFFFFF, 0xFFFF000FFFFFFFFF,
+ 0xFFFF7F7F007E7E7E, 0xFFFF33FFF7FFFFFF, 0x7FFFFFFFF, 0xFFFF000FFFFFFFFF,
0xFFFFFFFFFFFF87F, 0xFFFF3FFFFFFFFFFF, 0x3FFFFFF, 0x5F7FFDFFA0F8007F,
0xFFFFFFFFFFFFFFDB, 0x3FFFFFFFFFFFF, 0xFFFFFFFFFFF80000,
0xFFFFFFF03FFFFFFF, 0x3FFFFFFFFFFFFFFF, 0xFFFFFFFFFFFF0000,
@@ -343,9 +350,9 @@ pub const XID_START: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0x7FFFFFFF3FFFFFFF, 0x1CFCFCFC,
],
tree3_level1: &[
- 0, 1, 2, 3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, 4, 5, 4, 4, 4, 4, 6, 7, 8, 9, 10, 11, 2, 2, 12, 13, 14, 15,
@@ -361,56 +368,61 @@ pub const XID_START: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
30, 31, 32, 33, 34, 4, 2, 35, 36, 36, 37, 38, 39, 4, 4, 4, 40, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 23, 57, 58, 59, 60, 5,
61, 62, 63, 4, 4, 64, 65, 62, 66, 67, 4, 68, 69, 4, 4, 70, 4, 71, 72, 73,
- 74, 75, 76, 77, 78, 79, 80, 4, 4, 4, 81, 82, 83, 84, 4, 85, 86, 87, 88, 4,
- 4, 4, 89, 90, 4, 91, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 26, 4,
- 2, 64, 2, 2, 2, 92, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 93, 94,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 62, 95, 2, 2, 2, 2, 2, 2,
+ 74, 75, 76, 77, 78, 79, 80, 81, 4, 4, 82, 83, 84, 85, 4, 86, 87, 88, 89,
+ 4, 4, 4, 90, 91, 4, 92, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 26,
+ 4, 2, 93, 2, 2, 2, 94, 2, 2, 2, 2, 69, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 95,
+ 96, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 62, 97, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 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FFFFFFFFF, 0x7FFFFE0000FC,
0xFFFF00801FFFFFFF, 0xFFFF00000000003F, 0xFFFF000000000003,
0x7FFFFF0000001F, 0xFFFFFFFFFFFFF8, 0x26000000000000, 0xFFFFFFFFFFF8,
0x1FFFFFF0000, 0x7FFFFFFFF8, 0x47FFFFFFFF0090, 0x7FFFFFFFFFFF8,
@@ -432,22 +444,24 @@ pub const XID_START: &'static ::ucd_trie::TrieSet = &::ucd_trie::TrieSet {
0x7FFFFFF, 0x7F, 0xFFFFFFFFFFF, 0xFFFFFFFF00000000, 0x80000000FFFFFFFF,
0x8000FFFFFF6FF27F, 0x2, 0xFFFFFCFF00000000, 0xA0001FFFF,
0x407FFFFFFFFF801, 0xFFFFFFFFF0010000, 0xFFFF0000200003FF,
- 0x1FFFFFFFFFFFFFF, 0x1FFFFFFFF, 0x7FFFFFFFFDFF, 0xFFFC000000000001,
+ 0x1FFFFFFFFFFFFFF, 0x400, 0x1FFFFFFFF, 0x7FFFFFFFFDFF, 0xFFFC000000000001,
0xFFFF, 0x1FFFFFFFFFB7F, 0xFFFFFDBF00000040, 0xFFFF0000010003FF,
- 0xFFFFFFF, 0x7FFFF00000000, 0xFFFFFFFFDFFF4, 0x1000000000000, 0xF,
- 0xFFFFFFFFFFFF0000, 0x1FFFFFFFFFFFF, 0xFFFFFFFF0000007E, 0x3FFFFFFF,
- 0xFFFF00007FFFFFFF, 0x7FFFFFFFFFFFFFFF, 0x3FFFFFFF0000,
- 0xE0FFFFF80000000F, 0x1FFFFFFFFFFF, 0xF9FFFFFF00000000, 0xFFFFF, 0x107FF,
- 0xFFF80000, 0x7C000B00000000, 0x80000000003FFFFF, 0x6FEF000000000000,
- 0x40007FFFFFFFF, 0xFFFF00F000270000, 0xFFFFFFFFFFFFFFF,
+ 0x200000FFFFFFF, 0x7FFFF00000000, 0xFFFFFFFFDFFF4, 0x1000000000000,
+ 0xFFE0FFFFFFFFFFFF, 0xFFFFFFFFFFFF000F, 0xFFFFFFFFFFFF0000,
+ 0x1FFFFFFFFFFFF, 0xFFFFFFFF0000007E, 0x3FFFFFFF, 0xFFFF00007FFFFFFF,
+ 0x7FFFFFFFFFFFFFFF, 0x3FFFFFFF0000, 0xE0FFFFF80000000F, 0x1FFFFFFFFFFF,
+ 0xF9FFFFFF00000000, 0xFFFFF, 0x107FF, 0xFFF80000, 0x7C000B00000000,
+ 0x8000000007FFFFFF, 0xFFFFFFFF0003FFFF, 0x7FFFF, 0x6FEF000000000000,
+ 0x401FFFFFFFFFF, 0xFFFF01F000270000, 0xFFFFFFFFFFFFFFF,
0x1FFF07FFFFFFFFFF, 0x3FF01FF, 0xFFFFFFFFFFDFFFFF, 0xEBFFDE64DFFFFFFF,
0xFFFFFFFFFFFFFFEF, 0x7BFFFFFFDFDFE7BF, 0xFFFFFFFFFFFDFC5F,
- 0xFFFFFF3FFFFFFFFF, 0xF7FFFFFFF7FFFFFD, 0xFFDFFFFFFFDFFFFF,
- 0xFFFF7FFFFFFF7FFF, 0xFFFFFDFFFFFFFDFF, 0xFF7, 0x7E07FFFFFFF,
- 0xFFFF000000000000, 0x3FFFFFFFFFFF, 0x3F801FFFFFFFFFFF, 0x4000,
- 0xFFFFFFF0000, 0x13FFFFFFF0000, 0xC01F3FB77FFFFFFF, 0x7FFF6F7F00000000,
- 0x1F, 0x80F, 0xAF7FE96FFFFFFEF, 0x5EF7F796AA96EA84, 0xFFFFBEE0FFFFBFF,
- 0xFFFFFFFF, 0xFFFF3FFFFFFFFFFF, 0xFFFF0001FFFFFFFF, 0xFFFFFFFFFFFF07FF,
+ 0xFFFFFF7FFFFFFFFF, 0xF7FFFFFFF7FFFFFD, 0xFFDFFFFFFFDFFFFF,
+ 0xFFFF7FFFFFFF7FFF, 0xFFFFFDFFFFFFFDFF, 0xFF7, 0x7F0003,
+ 0xFFFFFFFFFFFFE000, 0xFFFF000000000000, 0x3FFFFFFFFFFF,
+ 0x3F801FFFFFFFFFFF, 0x4000, 0xFFFFFFF0000, 0x13FFFFFFF0000,
+ 0xC01F3FB77FFFFFFF, 0x7FFF6F7F00000000, 0x1F, 0x80F, 0xAF7FE96FFFFFFEF,
+ 0x5EF7F796AA96EA84, 0xFFFFBEE0FFFFBFF, 0xFFFFFFFF, 0xFFFFFFFF7FFFFFFF,
+ 0xFFFF3FFFFFFFFFFF, 0xFFFF0001FFFFFFFF, 0xFFFFFFFFFFFF07FF,
0x3FFFFFFFFFFFFFF,
],
};
diff --git a/deps/crates/vendor/utf8_iter-v1/.cargo-checksum.json b/deps/crates/vendor/utf8_iter-v1/.cargo-checksum.json
deleted file mode 100644
index 697c9ce2fbb..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/.cargo-checksum.json
+++ /dev/null
@@ -1 +0,0 @@
-{"files":{}}
diff --git a/deps/crates/vendor/utf8_iter-v1/.cargo_vcs_info.json b/deps/crates/vendor/utf8_iter-v1/.cargo_vcs_info.json
deleted file mode 100644
index 2d3b6697495..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/.cargo_vcs_info.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "git": {
- "sha1": "6b604ea2365bd535fb66eb4bfe92a9e00e333090"
- },
- "path_in_vcs": ""
-}
\ No newline at end of file
diff --git a/deps/crates/vendor/utf8_iter-v1/.gitignore b/deps/crates/vendor/utf8_iter-v1/.gitignore
deleted file mode 100644
index 4fffb2f89cb..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/target
-/Cargo.lock
diff --git a/deps/crates/vendor/utf8_iter-v1/COPYRIGHT b/deps/crates/vendor/utf8_iter-v1/COPYRIGHT
deleted file mode 100644
index b5e94574045..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/COPYRIGHT
+++ /dev/null
@@ -1,42 +0,0 @@
-Copyright Mozilla Foundation
-
-Licensed under the Apache License (Version 2.0), or the MIT license,
-(the "Licenses") at your option. You may not use this file except in
-compliance with one of the Licenses. You may obtain copies of the
-Licenses at:
-
- https://www.apache.org/licenses/LICENSE-2.0
- https://opensource.org/licenses/MIT
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the Licenses is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the Licenses for the specific language governing permissions and
-limitations under the Licenses.
-
---
-
-Test code is dedicated to the Public Domain when so designated (see
-the individual files for PD/CC0-dedicated sections).
-
---
-
-The implementation for Utf8CharIndices was adapted from the
-CharIndices implementation of the Rust standard library at revision
-ab32548539ec38a939c1b58599249f3b54130026
-(https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/library/core/src/str/iter.rs).
-
-Excerpt from https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/COPYRIGHT ,
-which refers to
-https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/LICENSE-APACHE
-and
-https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/LICENSE-MIT
-:
-
-For full authorship information, see the version control history or
-https://thanks.rust-lang.org
-
-Except as otherwise noted (below and/or in individual files), Rust is
-licensed under the Apache License, Version 2.0 <LICENSE-APACHE> or
-<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-<LICENSE-MIT> or <http://opensource.org/licenses/MIT>, at your option.
diff --git a/deps/crates/vendor/utf8_iter-v1/Cargo.toml b/deps/crates/vendor/utf8_iter-v1/Cargo.toml
deleted file mode 100644
index d1008fdb444..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/Cargo.toml
+++ /dev/null
@@ -1,33 +0,0 @@
-# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
-#
-# When uploading crates to the registry Cargo will automatically
-# "normalize" Cargo.toml files for maximal compatibility
-# with all versions of Cargo and also rewrite `path` dependencies
-# to registry (e.g., crates.io) dependencies.
-#
-# If you are reading this file be aware that the original Cargo.toml
-# will likely look very different (and much more reasonable).
-# See Cargo.toml.orig for the original contents.
-
-[package]
-edition = "2021"
-name = "utf8_iter"
-version = "1.0.4"
-authors = ["Henri Sivonen <hsivonen@hsivonen.fi>"]
-description = "Iterator by char over potentially-invalid UTF-8 in &[u8]"
-homepage = "https://docs.rs/utf8_iter/"
-documentation = "https://docs.rs/utf8_iter/"
-readme = "README.md"
-keywords = [
- "encoding",
- "UTF-8",
- "unicode",
- "iterator",
-]
-categories = [
- "text-processing",
- "encoding",
- "internationalization",
-]
-license = "Apache-2.0 OR MIT"
-repository = "https://github.com/hsivonen/utf8_iter"
diff --git a/deps/crates/vendor/utf8_iter-v1/Cargo.toml.orig b/deps/crates/vendor/utf8_iter-v1/Cargo.toml.orig
deleted file mode 100644
index 263d2d87db4..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/Cargo.toml.orig
+++ /dev/null
@@ -1,13 +0,0 @@
-[package]
-name = "utf8_iter"
-version = "1.0.4"
-edition = "2021"
-description = "Iterator by char over potentially-invalid UTF-8 in &[u8]"
-authors = ["Henri Sivonen <hsivonen@hsivonen.fi>"]
-license = "Apache-2.0 OR MIT"
-readme = "README.md"
-documentation = "https://docs.rs/utf8_iter/"
-homepage = "https://docs.rs/utf8_iter/"
-repository = "https://github.com/hsivonen/utf8_iter"
-keywords = ["encoding", "UTF-8", "unicode", "iterator"]
-categories = ["text-processing", "encoding", "internationalization"]
diff --git a/deps/crates/vendor/utf8_iter-v1/LICENSE-APACHE b/deps/crates/vendor/utf8_iter-v1/LICENSE-APACHE
deleted file mode 100644
index d6456956733..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/LICENSE-APACHE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/deps/crates/vendor/utf8_iter-v1/LICENSE-MIT b/deps/crates/vendor/utf8_iter-v1/LICENSE-MIT
deleted file mode 100644
index 3317c82e2f6..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/LICENSE-MIT
+++ /dev/null
@@ -1,25 +0,0 @@
-Copyright Mozilla Foundation
-
-Permission is hereby granted, free of charge, to any
-person obtaining a copy of this software and associated
-documentation files (the "Software"), to deal in the
-Software without restriction, including without
-limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software
-is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice
-shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
-ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
-TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
-PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
-IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
diff --git a/deps/crates/vendor/utf8_iter-v1/README.md b/deps/crates/vendor/utf8_iter-v1/README.md
deleted file mode 100644
index 08334d4db82..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/README.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# utf8_iter
-
-[](https://crates.io/crates/utf8_iter)
-[](https://docs.rs/utf8_iter/)
-
-utf8_iter provides iteration by `char` over potentially-invalid UTF-8 `&[u8]`
-such that UTF-8 errors are handled according to the WHATWG Encoding Standard.
-
-Iteration by `Result<char,Utf8CharsError>` is provided as an alternative that
-distinguishes UTF-8 errors from U+FFFD appearing in the input.
-
-An implementation of `char_indices()` analogous to the same-name method on
-`str` is also provided.
-
-Key parts of the code are copypaste from the UTF-8 to UTF-16 conversion code
-in `encoding_rs`, which was optimized for speed in the case of valid input.
-The implementation here uses the structure that was found to be fast in the
-`encoding_rs` context but the structure hasn't been benchmarked in this
-context.
-
-This is a `no_std` crate.
-
-## Licensing
-
-TL;DR: `Apache-2.0 OR MIT`
-
-Please see the file named
-[COPYRIGHT](https://github.com/hsivonen/utf8_iter/blob/master/COPYRIGHT).
-
-## Documentation
-
-Generated [API documentation](https://docs.rs/utf8_iter/) is available
-online.
-
-## Release Notes
-
-### 1.0.4
-
-* Add iteration by `Result<char,Utf8CharsError>`.
-
-### 1.0.3
-
-* Fix an error in documentation.
-
-### 1.0.2
-
-* `char_indices()` implementation.
-
-### 1.0.1
-
-* `as_slice()` method.
-* Implement `DoubleEndedIterator`
-
-### 1.0.0
-
-The initial release.
diff --git a/deps/crates/vendor/utf8_iter-v1/src/indices.rs b/deps/crates/vendor/utf8_iter-v1/src/indices.rs
deleted file mode 100644
index 1646f8b8dc0..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/src/indices.rs
+++ /dev/null
@@ -1,120 +0,0 @@
-// The code in this file was adapted from the CharIndices implementation of
-// the Rust standard library at revision ab32548539ec38a939c1b58599249f3b54130026
-// (https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/library/core/src/str/iter.rs).
-//
-// Excerpt from https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/COPYRIGHT ,
-// which refers to
-// https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/LICENSE-APACHE
-// and
-// https://github.com/rust-lang/rust/blob/ab32548539ec38a939c1b58599249f3b54130026/LICENSE-MIT
-// :
-//
-// For full authorship information, see the version control history or
-// https://thanks.rust-lang.org
-//
-// Except as otherwise noted (below and/or in individual files), Rust is
-// licensed under the Apache License, Version 2.0 <LICENSE-APACHE> or
-// <http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT> or <http://opensource.org/licenses/MIT>, at your option.
-
-use super::Utf8Chars;
-use core::iter::FusedIterator;
-
-/// An iterator over the [`char`]s and their positions.
-#[derive(Clone, Debug)]
-#[must_use = "iterators are lazy and do nothing unless consumed"]
-pub struct Utf8CharIndices<'a> {
- front_offset: usize,
- iter: Utf8Chars<'a>,
-}
-
-impl<'a> Iterator for Utf8CharIndices<'a> {
- type Item = (usize, char);
-
- #[inline]
- fn next(&mut self) -> Option<(usize, char)> {
- let pre_len = self.as_slice().len();
- match self.iter.next() {
- None => None,
- Some(ch) => {
- let index = self.front_offset;
- let len = self.as_slice().len();
- self.front_offset += pre_len - len;
- Some((index, ch))
- }
- }
- }
-
- #[inline]
- fn count(self) -> usize {
- self.iter.count()
- }
-
- #[inline]
- fn size_hint(&self) -> (usize, Option<usize>) {
- self.iter.size_hint()
- }
-
- #[inline]
- fn last(mut self) -> Option<(usize, char)> {
- // No need to go through the entire string.
- self.next_back()
- }
-}
-
-impl<'a> DoubleEndedIterator for Utf8CharIndices<'a> {
- #[inline]
- fn next_back(&mut self) -> Option<(usize, char)> {
- self.iter.next_back().map(|ch| {
- let index = self.front_offset + self.as_slice().len();
- (index, ch)
- })
- }
-}
-
-impl FusedIterator for Utf8CharIndices<'_> {}
-
-impl<'a> Utf8CharIndices<'a> {
- #[inline(always)]
- /// Creates the iterator from a byte slice.
- pub fn new(bytes: &'a [u8]) -> Self {
- Utf8CharIndices::<'a> {
- front_offset: 0,
- iter: Utf8Chars::new(bytes),
- }
- }
-
- /// Views the underlying data as a subslice of the original data.
- ///
- /// This has the same lifetime as the original slice, and so the
- /// iterator can continue to be used while this exists.
- #[must_use]
- #[inline]
- pub fn as_slice(&self) -> &'a [u8] {
- self.iter.as_slice()
- }
-
- /// Returns the byte position of the next character, or the length
- /// of the underlying string if there are no more characters.
- ///
- /// # Examples
- ///
- /// ```
- /// use utf8_iter::Utf8CharsEx;
- /// let mut chars = "a楽".as_bytes().char_indices();
- ///
- /// assert_eq!(chars.offset(), 0);
- /// assert_eq!(chars.next(), Some((0, 'a')));
- ///
- /// assert_eq!(chars.offset(), 1);
- /// assert_eq!(chars.next(), Some((1, '楽')));
- ///
- /// assert_eq!(chars.offset(), 4);
- /// assert_eq!(chars.next(), None);
- /// ```
- #[inline]
- #[must_use]
- pub fn offset(&self) -> usize {
- self.front_offset
- }
-}
diff --git a/deps/crates/vendor/utf8_iter-v1/src/lib.rs b/deps/crates/vendor/utf8_iter-v1/src/lib.rs
deleted file mode 100644
index 8edb094b322..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/src/lib.rs
+++ /dev/null
@@ -1,282 +0,0 @@
-// Copyright Mozilla Foundation
-//
-// Licensed under the Apache License (Version 2.0), or the MIT license,
-// (the "Licenses") at your option. You may not use this file except in
-// compliance with one of the Licenses. You may obtain copies of the
-// Licenses at:
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-// https://opensource.org/licenses/MIT
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the Licenses is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the Licenses for the specific language governing permissions and
-// limitations under the Licenses.
-
-#![no_std]
-
-//! Provides iteration by `char` over `&[u8]` containing potentially-invalid
-//! UTF-8 such that errors are handled according to the [WHATWG Encoding
-//! Standard](https://encoding.spec.whatwg.org/#utf-8-decoder) (i.e. the same
-//! way as in `String::from_utf8_lossy`).
-//!
-//! The trait `Utf8CharsEx` provides the convenience method `chars()` on
-//! byte slices themselves instead of having to use the more verbose
-//! `Utf8Chars::new(slice)`.
-//!
-//! ```rust
-//! use utf8_iter::Utf8CharsEx;
-//! let data = b"\xFF\xC2\xE2\xE2\x98\xF0\xF0\x9F\xF0\x9F\x92\xE2\x98\x83";
-//! let from_iter: String = data.chars().collect();
-//! let from_std = String::from_utf8_lossy(data);
-//! assert_eq!(from_iter, from_std);
-//! ```
-
-mod indices;
-mod report;
-
-pub use crate::indices::Utf8CharIndices;
-pub use crate::report::ErrorReportingUtf8Chars;
-pub use crate::report::Utf8CharsError;
-use core::iter::FusedIterator;
-
-#[repr(align(64))] // Align to cache lines
-struct Utf8Data {
- pub table: [u8; 384],
-}
-
-// This is generated code copied and pasted from utf_8.rs of encoding_rs.
-// Please don't edit by hand but instead regenerate as instructed in that
-// file.
-
-static UTF8_DATA: Utf8Data = Utf8Data {
- table: [
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, 148, 148, 148,
- 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 164, 164, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
- 164, 164, 164, 164, 164, 164, 164, 164, 164, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252,
- 252, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
- 8, 8, 8, 8, 8, 8, 8, 16, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 32, 8, 8, 64, 8, 8, 8, 128, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- ],
-};
-
-// End manually copypasted generated code.
-
-#[inline(always)]
-fn in_inclusive_range8(i: u8, start: u8, end: u8) -> bool {
- i.wrapping_sub(start) <= (end - start)
-}
-
-/// Iterator by `char` over `&[u8]` that contains
-/// potentially-invalid UTF-8. See the crate documentation.
-#[derive(Debug, Clone)]
-pub struct Utf8Chars<'a> {
- remaining: &'a [u8],
-}
-
-impl<'a> Utf8Chars<'a> {
- #[inline(always)]
- /// Creates the iterator from a byte slice.
- pub fn new(bytes: &'a [u8]) -> Self {
- Utf8Chars::<'a> { remaining: bytes }
- }
-
- /// Views the current remaining data in the iterator as a subslice
- /// of the original slice.
- #[inline(always)]
- pub fn as_slice(&self) -> &'a [u8] {
- self.remaining
- }
-
- #[inline(never)]
- fn next_fallback(&mut self) -> Option<char> {
- if self.remaining.is_empty() {
- return None;
- }
- let first = self.remaining[0];
- if first < 0x80 {
- self.remaining = &self.remaining[1..];
- return Some(char::from(first));
- }
- if !in_inclusive_range8(first, 0xC2, 0xF4) || self.remaining.len() == 1 {
- self.remaining = &self.remaining[1..];
- return Some('\u{FFFD}');
- }
- let second = self.remaining[1];
- let (lower_bound, upper_bound) = match first {
- 0xE0 => (0xA0, 0xBF),
- 0xED => (0x80, 0x9F),
- 0xF0 => (0x90, 0xBF),
- 0xF4 => (0x80, 0x8F),
- _ => (0x80, 0xBF),
- };
- if !in_inclusive_range8(second, lower_bound, upper_bound) {
- self.remaining = &self.remaining[1..];
- return Some('\u{FFFD}');
- }
- if first < 0xE0 {
- self.remaining = &self.remaining[2..];
- let point = ((u32::from(first) & 0x1F) << 6) | (u32::from(second) & 0x3F);
- return Some(unsafe { char::from_u32_unchecked(point) });
- }
- if self.remaining.len() == 2 {
- self.remaining = &self.remaining[2..];
- return Some('\u{FFFD}');
- }
- let third = self.remaining[2];
- if !in_inclusive_range8(third, 0x80, 0xBF) {
- self.remaining = &self.remaining[2..];
- return Some('\u{FFFD}');
- }
- if first < 0xF0 {
- self.remaining = &self.remaining[3..];
- let point = ((u32::from(first) & 0xF) << 12)
- | ((u32::from(second) & 0x3F) << 6)
- | (u32::from(third) & 0x3F);
- return Some(unsafe { char::from_u32_unchecked(point) });
- }
- // At this point, we have a valid 3-byte prefix of a
- // four-byte sequence that has to be incomplete, because
- // otherwise `next()` would have succeeded.
- self.remaining = &self.remaining[3..];
- Some('\u{FFFD}')
- }
-}
-
-impl<'a> Iterator for Utf8Chars<'a> {
- type Item = char;
-
- #[inline]
- fn next(&mut self) -> Option<char> {
- // Not delegating directly to `ErrorReportingUtf8Chars` to avoid
- // an extra branch in the common case based on a cursory inspection
- // of generated code in a similar case. Be sure to inspect the
- // generated code as inlined into an actual usage site carefully
- // if attempting to consolidate the source code here.
-
- // This loop is only broken out of as goto forward
- #[allow(clippy::never_loop)]
- loop {
- if self.remaining.len() < 4 {
- break;
- }
- let first = self.remaining[0];
- if first < 0x80 {
- self.remaining = &self.remaining[1..];
- return Some(char::from(first));
- }
- let second = self.remaining[1];
- if in_inclusive_range8(first, 0xC2, 0xDF) {
- if !in_inclusive_range8(second, 0x80, 0xBF) {
- break;
- }
- let point = ((u32::from(first) & 0x1F) << 6) | (u32::from(second) & 0x3F);
- self.remaining = &self.remaining[2..];
- return Some(unsafe { char::from_u32_unchecked(point) });
- }
- // This table-based formulation was benchmark-based in encoding_rs,
- // but it hasn't been re-benchmarked in this iterator context.
- let third = self.remaining[2];
- if first < 0xF0 {
- if ((UTF8_DATA.table[usize::from(second)]
- & UTF8_DATA.table[usize::from(first) + 0x80])
- | (third >> 6))
- != 2
- {
- break;
- }
- let point = ((u32::from(first) & 0xF) << 12)
- | ((u32::from(second) & 0x3F) << 6)
- | (u32::from(third) & 0x3F);
- self.remaining = &self.remaining[3..];
- return Some(unsafe { char::from_u32_unchecked(point) });
- }
- let fourth = self.remaining[3];
- if (u16::from(
- UTF8_DATA.table[usize::from(second)] & UTF8_DATA.table[usize::from(first) + 0x80],
- ) | u16::from(third >> 6)
- | (u16::from(fourth & 0xC0) << 2))
- != 0x202
- {
- break;
- }
- let point = ((u32::from(first) & 0x7) << 18)
- | ((u32::from(second) & 0x3F) << 12)
- | ((u32::from(third) & 0x3F) << 6)
- | (u32::from(fourth) & 0x3F);
- self.remaining = &self.remaining[4..];
- return Some(unsafe { char::from_u32_unchecked(point) });
- }
- self.next_fallback()
- }
-}
-
-impl<'a> DoubleEndedIterator for Utf8Chars<'a> {
- #[inline]
- fn next_back(&mut self) -> Option<char> {
- if self.remaining.is_empty() {
- return None;
- }
- let mut attempt = 1;
- for b in self.remaining.iter().rev() {
- if b & 0xC0 != 0x80 {
- let (head, tail) = self.remaining.split_at(self.remaining.len() - attempt);
- let mut inner = Utf8Chars::new(tail);
- let candidate = inner.next();
- if inner.as_slice().is_empty() {
- self.remaining = head;
- return candidate;
- }
- break;
- }
- if attempt == 4 {
- break;
- }
- attempt += 1;
- }
-
- self.remaining = &self.remaining[..self.remaining.len() - 1];
- Some('\u{FFFD}')
- }
-}
-
-impl FusedIterator for Utf8Chars<'_> {}
-
-/// Convenience trait that adds `chars()` and `char_indices()` methods
-/// similar to the ones on string slices to byte slices.
-pub trait Utf8CharsEx {
- fn chars(&self) -> Utf8Chars<'_>;
- fn char_indices(&self) -> Utf8CharIndices<'_>;
-}
-
-impl Utf8CharsEx for [u8] {
- /// Convenience method for creating an UTF-8 iterator
- /// for the slice.
- #[inline]
- fn chars(&self) -> Utf8Chars<'_> {
- Utf8Chars::new(self)
- }
- /// Convenience method for creating a byte index and
- /// UTF-8 iterator for the slice.
- #[inline]
- fn char_indices(&self) -> Utf8CharIndices<'_> {
- Utf8CharIndices::new(self)
- }
-}
-
-// No manually-written tests for forward-iteration, because the code passed multiple
-// days of fuzzing comparing with known-good behavior.
diff --git a/deps/crates/vendor/utf8_iter-v1/src/report.rs b/deps/crates/vendor/utf8_iter-v1/src/report.rs
deleted file mode 100644
index 6f0c44cb57c..00000000000
--- a/deps/crates/vendor/utf8_iter-v1/src/report.rs
+++ /dev/null
@@ -1,234 +0,0 @@
-// Copyright Mozilla Foundation
-//
-// Licensed under the Apache License (Version 2.0), or the MIT license,
-// (the "Licenses") at your option. You may not use this file except in
-// compliance with one of the Licenses. You may obtain copies of the
-// Licenses at:
-//
-// https://www.apache.org/licenses/LICENSE-2.0
-// https://opensource.org/licenses/MIT
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the Licenses is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the Licenses for the specific language governing permissions and
-// limitations under the Licenses.
-
-use crate::in_inclusive_range8;
-use crate::UTF8_DATA;
-use core::fmt::Formatter;
-use core::iter::FusedIterator;
-
-/// A type for signaling UTF-8 errors.
-///
-/// Note: `core::error::Error` is not implemented due to implementing it
-/// being an [unstable feature][1] at the time of writing.
-///
-/// [1]: https://github.com/rust-lang/rust/issues/103765
-#[derive(Debug, PartialEq)]
-#[non_exhaustive]
-pub struct Utf8CharsError;
-
-impl core::fmt::Display for Utf8CharsError {
- fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), core::fmt::Error> {
- write!(f, "byte sequence not well-formed UTF-8")
- }
-}
-
-/// Iterator by `Result<char,Utf8CharsError>` over `&[u8]` that contains
-/// potentially-invalid UTF-8. There is exactly one `Utf8CharsError` per
-/// each error as defined by the WHATWG Encoding Standard.
-///
-/// ```
-/// let s = b"a\xFFb\xFF\x80c\xF0\x9F\xA4\xA6\xF0\x9F\xA4\xF0\x9F\xF0d";
-/// let plain = utf8_iter::Utf8Chars::new(s);
-/// let reporting = utf8_iter::ErrorReportingUtf8Chars::new(s);
-/// assert!(plain.eq(reporting.map(|r| r.unwrap_or('\u{FFFD}'))));
-/// ```
-#[derive(Debug, Clone)]
-pub struct ErrorReportingUtf8Chars<'a> {
- remaining: &'a [u8],
-}
-
-impl<'a> ErrorReportingUtf8Chars<'a> {
- #[inline(always)]
- /// Creates the iterator from a byte slice.
- pub fn new(bytes: &'a [u8]) -> Self {
- ErrorReportingUtf8Chars::<'a> { remaining: bytes }
- }
-
- /// Views the current remaining data in the iterator as a subslice
- /// of the original slice.
- #[inline(always)]
- pub fn as_slice(&self) -> &'a [u8] {
- self.remaining
- }
-
- #[inline(never)]
- fn next_fallback(&mut self) -> Option<Result<char, Utf8CharsError>> {
- if self.remaining.is_empty() {
- return None;
- }
- let first = self.remaining[0];
- if first < 0x80 {
- self.remaining = &self.remaining[1..];
- return Some(Ok(char::from(first)));
- }
- if !in_inclusive_range8(first, 0xC2, 0xF4) || self.remaining.len() == 1 {
- self.remaining = &self.remaining[1..];
- return Some(Err(Utf8CharsError));
- }
- let second = self.remaining[1];
- let (lower_bound, upper_bound) = match first {
- 0xE0 => (0xA0, 0xBF),
- 0xED => (0x80, 0x9F),
- 0xF0 => (0x90, 0xBF),
- 0xF4 => (0x80, 0x8F),
- _ => (0x80, 0xBF),
- };
- if !in_inclusive_range8(second, lower_bound, upper_bound) {
- self.remaining = &self.remaining[1..];
- return Some(Err(Utf8CharsError));
- }
- if first < 0xE0 {
- self.remaining = &self.remaining[2..];
- let point = ((u32::from(first) & 0x1F) << 6) | (u32::from(second) & 0x3F);
- return Some(Ok(unsafe { char::from_u32_unchecked(point) }));
- }
- if self.remaining.len() == 2 {
- self.remaining = &self.remaining[2..];
- return Some(Err(Utf8CharsError));
- }
- let third = self.remaining[2];
- if !in_inclusive_range8(third, 0x80, 0xBF) {
- self.remaining = &self.remaining[2..];
- return Some(Err(Utf8CharsError));
- }
- if first < 0xF0 {
- self.remaining = &self.remaining[3..];
- let point = ((u32::from(first) & 0xF) << 12)
- | ((u32::from(second) & 0x3F) << 6)
- | (u32::from(third) & 0x3F);
- return Some(Ok(unsafe { char::from_u32_unchecked(point) }));
- }
- // At this point, we have a valid 3-byte prefix of a
- // four-byte sequence that has to be incomplete, because
- // otherwise `next()` would have succeeded.
- self.remaining = &self.remaining[3..];
- Some(Err(Utf8CharsError))
- }
-}
-
-impl<'a> Iterator for ErrorReportingUtf8Chars<'a> {
- type Item = Result<char, Utf8CharsError>;
-
- #[inline]
- fn next(&mut self) -> Option<Result<char, Utf8CharsError>> {
- // This loop is only broken out of as goto forward
- #[allow(clippy::never_loop)]
- loop {
- if self.remaining.len() < 4 {
- break;
- }
- let first = self.remaining[0];
- if first < 0x80 {
- self.remaining = &self.remaining[1..];
- return Some(Ok(char::from(first)));
- }
- let second = self.remaining[1];
- if in_inclusive_range8(first, 0xC2, 0xDF) {
- if !in_inclusive_range8(second, 0x80, 0xBF) {
- break;
- }
- let point = ((u32::from(first) & 0x1F) << 6) | (u32::from(second) & 0x3F);
- self.remaining = &self.remaining[2..];
- return Some(Ok(unsafe { char::from_u32_unchecked(point) }));
- }
- // This table-based formulation was benchmark-based in encoding_rs,
- // but it hasn't been re-benchmarked in this iterator context.
- let third = self.remaining[2];
- if first < 0xF0 {
- if ((UTF8_DATA.table[usize::from(second)]
- & UTF8_DATA.table[usize::from(first) + 0x80])
- | (third >> 6))
- != 2
- {
- break;
- }
- let point = ((u32::from(first) & 0xF) << 12)
- | ((u32::from(second) & 0x3F) << 6)
- | (u32::from(third) & 0x3F);
- self.remaining = &self.remaining[3..];
- return Some(Ok(unsafe { char::from_u32_unchecked(point) }));
- }
- let fourth = self.remaining[3];
- if (u16::from(
- UTF8_DATA.table[usize::from(second)] & UTF8_DATA.table[usize::from(first) + 0x80],
- ) | u16::from(third >> 6)
- | (u16::from(fourth & 0xC0) << 2))
- != 0x202
- {
- break;
- }
- let point = ((u32::from(first) & 0x7) << 18)
- | ((u32::from(second) & 0x3F) << 12)
- | ((u32::from(third) & 0x3F) << 6)
- | (u32::from(fourth) & 0x3F);
- self.remaining = &self.remaining[4..];
- return Some(Ok(unsafe { char::from_u32_unchecked(point) }));
- }
- self.next_fallback()
- }
-}
-
-impl<'a> DoubleEndedIterator for ErrorReportingUtf8Chars<'a> {
- #[inline]
- fn next_back(&mut self) -> Option<Result<char, Utf8CharsError>> {
- if self.remaining.is_empty() {
- return None;
- }
- let mut attempt = 1;
- for b in self.remaining.iter().rev() {
- if b & 0xC0 != 0x80 {
- let (head, tail) = self.remaining.split_at(self.remaining.len() - attempt);
- let mut inner = ErrorReportingUtf8Chars::new(tail);
- let candidate = inner.next();
- if inner.as_slice().is_empty() {
- self.remaining = head;
- return candidate;
- }
- break;
- }
- if attempt == 4 {
- break;
- }
- attempt += 1;
- }
-
- self.remaining = &self.remaining[..self.remaining.len() - 1];
- Some(Err(Utf8CharsError))
- }
-}
-
-impl FusedIterator for ErrorReportingUtf8Chars<'_> {}
-
-#[cfg(test)]
-mod tests {
- use crate::ErrorReportingUtf8Chars;
-
- // Should be a static assert, but not taking a dependency for this.
- #[test]
- fn test_size() {
- assert_eq!(
- core::mem::size_of::<Option<<ErrorReportingUtf8Chars<'_> as Iterator>::Item>>(),
- core::mem::size_of::<Option<char>>()
- );
- }
-
- #[test]
- fn test_eq() {
- let a: <ErrorReportingUtf8Chars<'_> as Iterator>::Item = Ok('a');
- let a_again: <ErrorReportingUtf8Chars<'_> as Iterator>::Item = Ok('a');
- assert_eq!(a, a_again);
- }
-}
diff --git a/deps/crates/vendor/yoke-derive-v0_8/.cargo_vcs_info.json b/deps/crates/vendor/yoke-derive-v0_8/.cargo_vcs_info.json
index 9d2ce6c66fd..d0c23e30ba5 100644
--- a/deps/crates/vendor/yoke-derive-v0_8/.cargo_vcs_info.json
+++ b/deps/crates/vendor/yoke-derive-v0_8/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
+ "sha1": "a59ab860d4bda548e94dfbf992d87fe1f761bc55"
},
"path_in_vcs": "utils/yoke/derive"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/yoke-derive-v0_8/Cargo.lock b/deps/crates/vendor/yoke-derive-v0_8/Cargo.lock
index d5dcd9c69d6..b175e811ba6 100644
--- a/deps/crates/vendor/yoke-derive-v0_8/Cargo.lock
+++ b/deps/crates/vendor/yoke-derive-v0_8/Cargo.lock
@@ -4,27 +4,27 @@ version = 3
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
-version = "2.0.117"
+version = "3.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
dependencies = [
"proc-macro2",
"quote",
@@ -33,9 +33,9 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
@@ -50,7 +50,7 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
dependencies = [
"proc-macro2",
"quote",
diff --git a/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml b/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml
index ede0525132e..03a8f09243f 100644
--- a/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml
+++ b/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml
@@ -11,8 +11,9 @@
[package]
edition = "2021"
+rust-version = "1.82"
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
build = false
autolib = false
@@ -57,17 +58,21 @@ version = "1.0.61"
version = "1.0.44"
[dependencies.syn]
-version = "2.0.21"
-features = ["fold"]
+version = "3.0"
+features = [
+ "fold",
+ "visit",
+]
[dependencies.synstructure]
-version = "0.13.0"
+version = "0.14.0"
[dev-dependencies]
[lints.clippy]
-alloc-instead-of-core = "warn"
-branches-sharing-code = "warn"
+alloc_instead_of_core = "warn"
+bool_assert_comparison = "allow"
+branches_sharing_code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
@@ -82,7 +87,7 @@ mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
-or-fun-call = "warn"
+or_fun_call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
@@ -93,7 +98,7 @@ transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
+unnecessary_wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
@@ -110,6 +115,7 @@ priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
+ "cfg(icu4x_nightly_tests)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]
diff --git a/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml.orig b/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml.orig
index 15971543449..a1dffb4be42 100644
--- a/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml.orig
+++ b/deps/crates/vendor/yoke-derive-v0_8/Cargo.toml.orig
@@ -5,14 +5,15 @@
[package]
name = "yoke-derive"
description = "Custom derive for the yoke crate"
-version = "0.8.2"
+version = "0.8.4"
categories = ["data-structures", "memory-management", "caching", "no-std"]
keywords = ["macros", "derive", "zero-copy", "serialization", "self-referential"]
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
-edition.workspace = true
+edition = "2021"
license.workspace = true
repository.workspace = true
+rust-version = "1.82"
[package.metadata.workspaces]
independent = true
@@ -24,12 +25,12 @@ path = "src/lib.rs"
[dependencies]
proc-macro2 = { workspace = true }
quote = { workspace = true }
-syn = { workspace = true, features = ["fold"] }
+syn = { workspace = true, features = ["fold", "visit"] }
synstructure = { workspace = true }
[dev-dependencies]
yoke = { path = "..", features = ["derive"] }
-zerovec = { path = "../../../utils/zerovec", features = ["yoke", "alloc"] }
+zerovec = { path = "../../../utils/zerovec", features = ["alloc", "yoke"] }
[lints]
workspace = true
diff --git a/deps/crates/vendor/yoke-derive-v0_8/src/lib.rs b/deps/crates/vendor/yoke-derive-v0_8/src/lib.rs
index feb8db6ef84..476074767a5 100644
--- a/deps/crates/vendor/yoke-derive-v0_8/src/lib.rs
+++ b/deps/crates/vendor/yoke-derive-v0_8/src/lib.rs
@@ -81,7 +81,6 @@ fn yokeable_derive_impl(input: &DeriveInput) -> TokenStream2 {
GenericParam::Type(ty) => {
// Strip out param defaults, we don't need them in the impl
let mut ty = ty.clone();
- ty.eq_token = None;
ty.default = None;
Some(GenericParam::Type(ty))
}
@@ -198,9 +197,7 @@ fn yokeable_derive_impl(input: &DeriveInput) -> TokenStream2 {
// All usages of the `check_*` functions are above this point,
// in order to ensure that `yoke_lt` is correct.
let (yoke_lt, bound_lt) = {
- let underscores = vec![b'_'; underscores_for_lt];
- #[expect(clippy::expect_used, reason = "invariant is ensured immediately above")]
- let underscores = core::str::from_utf8(&underscores).expect("_ is ASCII and thus UTF-8");
+ let underscores = "_".repeat(underscores_for_lt);
(
format!("'{underscores}yoke"),
format!("'_{underscores}yoke"),
diff --git a/deps/crates/vendor/yoke-v0_8/.cargo_vcs_info.json b/deps/crates/vendor/yoke-v0_8/.cargo_vcs_info.json
index 337747e19e5..d46de6c83a4 100644
--- a/deps/crates/vendor/yoke-v0_8/.cargo_vcs_info.json
+++ b/deps/crates/vendor/yoke-v0_8/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "a954ec29392c0225453404cb1f6a77f0ded27089"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "utils/yoke"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/yoke-v0_8/Cargo.lock b/deps/crates/vendor/yoke-v0_8/Cargo.lock
index f68d17e841a..6da58762e86 100644
--- a/deps/crates/vendor/yoke-v0_8/Cargo.lock
+++ b/deps/crates/vendor/yoke-v0_8/Cargo.lock
@@ -32,27 +32,27 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "serde"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
@@ -60,18 +60,18 @@ dependencies = [
[[package]]
name = "serde_core"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.228"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
@@ -86,9 +86,9 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
[[package]]
name = "syn"
-version = "2.0.117"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -97,9 +97,9 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
@@ -108,18 +108,18 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
+checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.18"
+version = "2.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
+checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
@@ -128,13 +128,13 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
dependencies = [
"bincode",
"postcard",
@@ -146,9 +146,9 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
@@ -167,9 +167,9 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
diff --git a/deps/crates/vendor/yoke-v0_8/Cargo.toml b/deps/crates/vendor/yoke-v0_8/Cargo.toml
index eeafbf1378e..0a6163ca404 100644
--- a/deps/crates/vendor/yoke-v0_8/Cargo.toml
+++ b/deps/crates/vendor/yoke-v0_8/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.82"
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
build = false
include = [
@@ -91,7 +91,7 @@ version = "1.2.0"
default-features = false
[dependencies.yoke-derive]
-version = "0.8.2"
+version = "0.8.4"
optional = true
default-features = false
@@ -112,9 +112,9 @@ version = "1.0.220"
default-features = false
[lints.clippy]
-alloc-instead-of-core = "warn"
-bool-assert-comparison = "allow"
-branches-sharing-code = "warn"
+alloc_instead_of_core = "warn"
+bool_assert_comparison = "allow"
+branches_sharing_code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
@@ -129,7 +129,7 @@ mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
-or-fun-call = "warn"
+or_fun_call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
@@ -140,7 +140,7 @@ transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
+unnecessary_wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
@@ -157,6 +157,7 @@ priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
+ "cfg(icu4x_nightly_tests)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]
diff --git a/deps/crates/vendor/yoke-v0_8/Cargo.toml.orig b/deps/crates/vendor/yoke-v0_8/Cargo.toml.orig
index bc644c8c39a..8edbcebb030 100644
--- a/deps/crates/vendor/yoke-v0_8/Cargo.toml.orig
+++ b/deps/crates/vendor/yoke-v0_8/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "yoke"
description = "Abstraction allowing borrowed data to be carried along with the backing data it borrows from"
-version = "0.8.3"
+version = "0.8.4"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
categories = ["data-structures", "memory-management", "caching", "no-std"]
keywords = ["zero-copy", "serialization", "memory-efficiency", "self-referential"]
diff --git a/deps/crates/vendor/yoke-v0_8/src/cartable_ptr.rs b/deps/crates/vendor/yoke-v0_8/src/cartable_ptr.rs
index f220329ed42..de0e9493e9a 100644
--- a/deps/crates/vendor/yoke-v0_8/src/cartable_ptr.rs
+++ b/deps/crates/vendor/yoke-v0_8/src/cartable_ptr.rs
@@ -156,13 +156,12 @@ unsafe impl<T> CartablePointerLike for Box<T> {
#[inline]
fn into_raw(self) -> NonNull<T> {
- // Safety: `Box::into_raw` says: "The pointer will be properly aligned and non-null."
- unsafe { NonNull::new_unchecked(Box::into_raw(self)) }
+ NonNull::from(Box::leak(self))
}
#[inline]
unsafe fn drop_raw(pointer: NonNull<T>) {
// Safety: per the method's precondition, `pointer` is dereferenceable and was returned by
- // `Self::into_raw`, i.e. by `Box::into_raw`. In this circumstances, calling
+ // `Self::into_raw`, i.e. by `Box::leak`. In this circumstances, calling
// `Box::from_raw` is safe.
let _box = unsafe { Box::from_raw(pointer.as_ptr()) };
diff --git a/deps/crates/vendor/yoke-v0_8/src/yoke.rs b/deps/crates/vendor/yoke-v0_8/src/yoke.rs
index 96e079d9b34..6d21abece74 100644
--- a/deps/crates/vendor/yoke-v0_8/src/yoke.rs
+++ b/deps/crates/vendor/yoke-v0_8/src/yoke.rs
@@ -154,6 +154,16 @@ where
}
}
+impl<T: ?Sized, Y, C> AsRef<T> for Yoke<Y, C>
+where
+ Y: for<'a> Yokeable<'a>,
+ for<'a> <Y as Yokeable<'a>>::Output: AsRef<T>,
+{
+ fn as_ref(&self) -> &T {
+ self.get().as_ref()
+ }
+}
+
#[test]
fn test_debug() {
let local_data = "foo".to_owned();
@@ -212,6 +222,19 @@ fn test_partialord_ord() {
assert_eq!(y1.partial_cmp(&y2), Some(core::cmp::Ordering::Less));
}
+#[test]
+fn test_as_ref() {
+ let a = Rc::new("hello".to_string());
+
+ let y1 = Yoke::<&str, Rc<String>>::attach_to_zero_copy_cart(Rc::clone(&a));
+ let y2 = Yoke::<alloc::borrow::Cow<'_, str>, Rc<String>>::attach_to_zero_copy_cart(a);
+ let y3 = Yoke::<Vec<u8>, ()>::new_always_owned(vec![1, 2, 3]);
+
+ assert_eq!(AsRef::<str>::as_ref(&y1), "hello");
+ assert_eq!(AsRef::<str>::as_ref(&y2), "hello");
+ assert_eq!(AsRef::<[u8]>::as_ref(&y3), [1, 2, 3]);
+}
+
impl<Y: for<'a> Yokeable<'a>, C: StableDeref> Yoke<Y, C>
where
<C as Deref>::Target: 'static,
@@ -902,14 +925,14 @@ impl<Y: for<'a> Yokeable<'a>, C> Yoke<Y, C> {
/// # }
/// #
/// # unsafe fn make(from: Bar<'a>) -> Self {
- /// # unsafe { mem::transmute(from) }
+ /// # unsafe { mem::transmute::<Self::Output, Self>(from) }
/// # }
/// #
/// # fn transform_mut<F>(&'a mut self, f: F)
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
- /// # unsafe { f(mem::transmute(self)) }
+ /// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
@@ -1009,14 +1032,14 @@ impl<Y: for<'a> Yokeable<'a>, C> Yoke<Y, C> {
/// # }
/// #
/// # unsafe fn make(from: Bar<'a>) -> Self {
- /// # unsafe { mem::transmute(from) }
+ /// # unsafe { mem::transmute::<Self::Output, Self>(from) }
/// # }
/// #
/// # fn transform_mut<F>(&'a mut self, f: F)
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
- /// # unsafe { f(mem::transmute(self)) }
+ /// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
@@ -1258,14 +1281,14 @@ where
/// # }
/// #
/// # unsafe fn make(from: Foo<'a>) -> Self {
- /// # unsafe { mem::transmute(from) }
+ /// # unsafe { mem::transmute::<Self::Output, Self>(from) }
/// # }
/// #
/// # fn transform_mut<F>(&'a mut self, f: F)
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
- /// # unsafe { f(mem::transmute(self)) }
+ /// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// #
@@ -1281,14 +1304,14 @@ where
/// # }
/// #
/// # unsafe fn make(from: Bar<'a>) -> Self {
- /// # unsafe { mem::transmute(from) }
+ /// # unsafe { mem::transmute::<Self::Output, Self>(from) }
/// # }
/// #
/// # fn transform_mut<F>(&'a mut self, f: F)
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
- /// # unsafe { f(mem::transmute(self)) }
+ /// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
@@ -1703,7 +1726,7 @@ impl<Y: for<'a> Yokeable<'a>, C> Yoke<Y, C> {
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
-/// # unsafe { f(mem::transmute(self)) }
+/// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
@@ -1986,7 +2009,7 @@ const _: () = ();
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
-/// # unsafe { f(mem::transmute(self)) }
+/// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
@@ -2081,6 +2104,7 @@ const _: () = ();
///
/// type Contra<'a> = fn(&'a ());
///
+/// #[allow(clippy::extra_unused_lifetimes)]
/// fn scope<'b>() {
/// let local = String::from("Hello World!");
/// let yoke: Yoke<&'static str, Option<Rc<Contra<'b>>>> = Yoke::new_owned("hi");
@@ -2097,6 +2121,7 @@ const _: () = ();
///
/// type Contra<'a> = fn(&'a ());
///
+/// #[allow(clippy::extra_unused_lifetimes)]
/// fn scope<'b>() {
/// let local = String::from("Hello World!");
/// let yoke: Yoke<&'static str, Option<Rc<Contra<'b>>>> =
diff --git a/deps/crates/vendor/yoke-v0_8/src/yokeable.rs b/deps/crates/vendor/yoke-v0_8/src/yokeable.rs
index 49d5fd15d6c..fd27cf95194 100644
--- a/deps/crates/vendor/yoke-v0_8/src/yokeable.rs
+++ b/deps/crates/vendor/yoke-v0_8/src/yokeable.rs
@@ -194,7 +194,7 @@ pub unsafe trait Yokeable<'a>: 'static {
/// # where
/// # F: 'static + FnOnce(&'a mut Self::Output),
/// # {
- /// # unsafe { f(mem::transmute(self)) }
+ /// # unsafe { f(mem::transmute::<&mut Self, &mut Self::Output>(self)) }
/// # }
/// # }
/// ```
diff --git a/deps/crates/vendor/zerofrom-derive-v0_1/.cargo_vcs_info.json b/deps/crates/vendor/zerofrom-derive-v0_1/.cargo_vcs_info.json
index 58f5a56738d..87493b0d045 100644
--- a/deps/crates/vendor/zerofrom-derive-v0_1/.cargo_vcs_info.json
+++ b/deps/crates/vendor/zerofrom-derive-v0_1/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "c9fac4e625ccb2c6a7aa35079fff9709db4385ac"
+ "sha1": "ce235d80cf7cbd028e8bd59920420e1203b205b3"
},
"path_in_vcs": "utils/zerofrom/derive"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.lock b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.lock
index c784667bac7..3a58b330dba 100644
--- a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.lock
+++ b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.lock
@@ -4,27 +4,27 @@ version = 3
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "syn"
-version = "2.0.117"
+version = "3.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
dependencies = [
"proc-macro2",
"quote",
@@ -33,9 +33,9 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
@@ -50,7 +50,7 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
dependencies = [
"proc-macro2",
"quote",
diff --git a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml
index d550ded8c1c..cc9465f2e71 100644
--- a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml
+++ b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.71.1"
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
build = false
autolib = false
@@ -57,17 +57,21 @@ version = "1.0.61"
version = "1.0.44"
[dependencies.syn]
-version = "2.0.21"
-features = ["fold"]
+version = "3.0"
+features = [
+ "fold",
+ "visit",
+]
[dependencies.synstructure]
-version = "0.13.0"
+version = "0.14.0"
[dev-dependencies]
[lints.clippy]
-alloc-instead-of-core = "warn"
-branches-sharing-code = "warn"
+alloc_instead_of_core = "warn"
+bool_assert_comparison = "allow"
+branches_sharing_code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
@@ -82,7 +86,7 @@ mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
-or-fun-call = "warn"
+or_fun_call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
@@ -93,7 +97,7 @@ transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
-unnecessary-wraps = "warn"
+unnecessary_wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
@@ -110,6 +114,7 @@ priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
+ "cfg(icu4x_nightly_tests)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]
diff --git a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml.orig b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml.orig
index fa89857ff06..36be4881b8c 100644
--- a/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml.orig
+++ b/deps/crates/vendor/zerofrom-derive-v0_1/Cargo.toml.orig
@@ -5,12 +5,12 @@
[package]
name = "zerofrom-derive"
description = "Custom derive for the zerofrom crate"
-version = "0.1.7"
+version = "0.1.8"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
categories = ["data-structures", "memory-management", "caching", "no-std"]
keywords = ["macros", "derive", "zero-copy", "serialization"]
-edition.workspace = true
+edition = "2021"
license.workspace = true
repository.workspace = true
rust-version = "1.71.1"
@@ -25,12 +25,12 @@ path = "src/lib.rs"
[dependencies]
proc-macro2 = { workspace = true }
quote = { workspace = true }
-syn = { workspace = true, features = ["fold"] }
+syn = { workspace = true, features = ["fold", "visit"] }
synstructure = { workspace = true }
[dev-dependencies]
zerofrom = { path = "..", features = ["derive"]}
-zerovec = { path = "../../../utils/zerovec", features = ["yoke"] }
+zerovec = { path = "../../../utils/zerovec", features = ["alloc", "yoke"] }
[lints]
workspace = true
diff --git a/deps/crates/vendor/zerofrom-derive-v0_1/src/lib.rs b/deps/crates/vendor/zerofrom-derive-v0_1/src/lib.rs
index 060b961c8ca..c33d3a5d3ec 100644
--- a/deps/crates/vendor/zerofrom-derive-v0_1/src/lib.rs
+++ b/deps/crates/vendor/zerofrom-derive-v0_1/src/lib.rs
@@ -25,8 +25,8 @@ use syn::fold::{self, Fold};
use syn::punctuated::Punctuated;
use syn::spanned::Spanned;
use syn::{
- parse_macro_input, parse_quote, DeriveInput, Ident, Lifetime, MetaList, Token,
- TraitBoundModifier, Type, TypeParamBound, TypePath, WherePredicate,
+ parse_macro_input, parse_quote, DeriveInput, Ident, Lifetime, MetaList, Token, Type,
+ TypeParamBound, TypePath, WherePredicate,
};
use synstructure::Structure;
mod visitor;
@@ -91,7 +91,6 @@ fn zf_derive_impl(input: &DeriveInput) -> TokenStream2 {
.map(|ty| {
// Strip out param defaults, we don't need them in the impl
let mut ty = ty.clone();
- ty.eq_token = None;
ty.default = None;
ty
})
@@ -128,11 +127,10 @@ fn zf_derive_impl(input: &DeriveInput) -> TokenStream2 {
// Remove `?Sized`` bound because we need a param to be Sized in order to take a ZeroFrom of it.
// This only applies to fields marked as `may_borrow`.
let mut bounds = core::mem::take(&mut param.bounds);
- while let Some(bound_pair) = bounds.pop() {
- let bound = bound_pair.into_value();
+ while let Some(bound) = bounds.pop() {
if let TypeParamBound::Trait(ref trait_bound) = bound {
if trait_bound.path.get_ident().map(|ident| ident == "Sized") == Some(true)
- && matches!(trait_bound.modifier, TraitBoundModifier::Maybe(_))
+ && trait_bound.maybe.is_some()
{
continue;
}
diff --git a/deps/crates/vendor/zerovec-derive-v0_11/.cargo_vcs_info.json b/deps/crates/vendor/zerovec-derive-v0_11/.cargo_vcs_info.json
index c3c6c52ad84..8d63e9ff1b2 100644
--- a/deps/crates/vendor/zerovec-derive-v0_11/.cargo_vcs_info.json
+++ b/deps/crates/vendor/zerovec-derive-v0_11/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "898d79c69f37da7b45a15a5714663c9b59b3d928"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "utils/zerovec/derive"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.lock b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.lock
index 76debd400d9..457889d60d4 100644
--- a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.lock
+++ b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.lock
@@ -73,9 +73,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -86,9 +86,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -97,13 +97,13 @@ dependencies = [
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "zerovec-derive"
-version = "0.11.6"
+version = "0.11.7"
dependencies = [
"bincode",
"proc-macro2",
diff --git a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml
index e07f10fe262..ac416f717a6 100644
--- a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml
+++ b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml
@@ -11,8 +11,9 @@
[package]
edition = "2021"
+rust-version = "1.83"
name = "zerovec-derive"
-version = "0.11.6"
+version = "0.11.7"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
build = false
autolib = false
diff --git a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml.orig b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml.orig
index d4a37fbc140..5018839ebcb 100644
--- a/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml.orig
+++ b/deps/crates/vendor/zerovec-derive-v0_11/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "zerovec-derive"
description = "Custom derive for the zerovec crate"
-version = "0.11.6"
+version = "0.11.7"
authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
categories = ["rust-patterns", "memory-management", "caching", "no-std", "data-structures"]
keywords = ["macros", "derive", "serialization", "zero-copy"]
@@ -13,6 +13,7 @@ keywords = ["macros", "derive", "serialization", "zero-copy"]
edition = "2021"
license.workspace = true
repository.workspace = true
+rust-version = "1.83"
[package.metadata.workspaces]
independent = true
diff --git a/deps/crates/vendor/zerovec-derive-v0_11/src/varule.rs b/deps/crates/vendor/zerovec-derive-v0_11/src/varule.rs
index 58ccf58fd0e..b4da7e4a464 100644
--- a/deps/crates/vendor/zerovec-derive-v0_11/src/varule.rs
+++ b/deps/crates/vendor/zerovec-derive-v0_11/src/varule.rs
@@ -112,7 +112,18 @@ pub fn derive_impl(
Ok(())
}
#[inline]
+ #[allow(clippy::transmute_undefined_repr, reason = "This is the only way to do this until ptr metadata stabilizes")]
unsafe fn from_bytes_unchecked(bytes: &[u8]) -> &Self {
+ #[repr(C)]
+ struct FatPtr{
+ ptr: usize,
+ metadata: usize
+ }
+ const {
+ assert!(::core::mem::size_of::<FatPtr>() == ::core::mem::size_of::<&#unsized_field>());
+ assert!(::core::mem::align_of::<FatPtr>() == ::core::mem::align_of::<&#unsized_field>());
+ }
+
// just the unsized part
// Safety: The invariants of this function allow us to assume bytes is valid, and
// having at least #ule_size bytes is a validity constraint for the ULE type.
@@ -120,7 +131,7 @@ pub fn derive_impl(
let unsized_ref = <#unsized_field as zerovec::ule::VarULE>::from_bytes_unchecked(unsized_bytes);
// We should use the pointer metadata APIs here when they are stable: https://github.com/rust-lang/rust/issues/81513
// For now we rely on all DST metadata being a usize to extract it via a fake slice pointer
- let (_ptr, metadata) = ::core::mem::transmute::<&#unsized_field, (usize, usize)>(unsized_ref);
+ let FatPtr{metadata, ..} = ::core::mem::transmute::<&#unsized_field, FatPtr>(unsized_ref);
let entire_struct_as_slice: *const [u8] = ::core::ptr::slice_from_raw_parts(bytes.as_ptr(), metadata);
&*(entire_struct_as_slice as *const Self)
}
diff --git a/deps/crates/vendor/zerovec-v0_11/.cargo_vcs_info.json b/deps/crates/vendor/zerovec-v0_11/.cargo_vcs_info.json
index b1271c28daa..4784f75481c 100644
--- a/deps/crates/vendor/zerovec-v0_11/.cargo_vcs_info.json
+++ b/deps/crates/vendor/zerovec-v0_11/.cargo_vcs_info.json
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "c56bbb5a7b47409759113903764c456f13b418e5"
+ "sha1": "031d9e89f6a3fd26a14491e090729d46094328fd"
},
"path_in_vcs": "utils/zerovec"
}
\ No newline at end of file
diff --git a/deps/crates/vendor/zerovec-v0_11/Cargo.lock b/deps/crates/vendor/zerovec-v0_11/Cargo.lock
index a3c761fbd56..974092e476d 100644
--- a/deps/crates/vendor/zerovec-v0_11/Cargo.lock
+++ b/deps/crates/vendor/zerovec-v0_11/Cargo.lock
@@ -40,9 +40,9 @@ dependencies = [
[[package]]
name = "bitflags"
-version = "2.13.1"
+version = "2.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
[[package]]
name = "bumpalo"
@@ -64,9 +64,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "ciborium"
@@ -97,18 +97,18 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
dependencies = [
"anstyle",
"clap_lex",
@@ -116,9 +116,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "0e78417baa3b3114dc0e95e7357389a249c4da97c3c2b540700079db6171bfd7"
[[package]]
name = "cobs"
@@ -131,9 +131,9 @@ dependencies = [
[[package]]
name = "console"
-version = "0.16.4"
+version = "0.16.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fe5f465a4f6fee88fad41b85d990f84c835335e85b5d9e6e63e0d06d28cba7c"
+checksum = "e96a4956774c13c126a8b5af4daa79384f4d826534c95a02d76afb39e2ab64e3"
dependencies = [
"encode_unicode",
"libc",
@@ -178,9 +178,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.7"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
dependencies = [
"crossbeam-epoch",
"crossbeam-utils",
@@ -188,18 +188,18 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.20"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.22"
+version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
[[package]]
name = "crunchy"
@@ -220,13 +220,13 @@ dependencies = [
[[package]]
name = "databake-derive"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b537745234cbf0e296a3bd836d70a614dff4cb522b14e2680ef006bb1ed5ff"
+checksum = "495503291b258422ea2bb9863d9f4e31eadbc5bcbdbe8b721769fa2c98dc4d41"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
@@ -238,9 +238,9 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
[[package]]
name = "either"
-version = "1.17.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
[[package]]
name = "embedded-io"
@@ -302,9 +302,9 @@ dependencies = [
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
[[package]]
name = "iai"
@@ -314,9 +314,9 @@ checksum = "71a816c97c42258aa5834d07590b718b4c9a598944cd39a52dc25b351185d678"
[[package]]
name = "insta"
-version = "1.48.0"
+version = "1.49.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86f0f8fee8c926415c58d6ae43a08523a26faccb2323f5e6b644fe7dd4ef6b82"
+checksum = "b67d3d2e287e4b86c10b3f3b641033d1f89b74bdb39d05f34952e2b9a6fe21cd"
dependencies = [
"console",
"once_cell",
@@ -363,9 +363,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.189"
+version = "0.2.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
[[package]]
name = "libm"
@@ -556,22 +556,22 @@ dependencies = [
[[package]]
name = "ref-cast"
-version = "1.0.26"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "216e8f773d7923bcba9ceb86a86c93cabb3903a11872fc3f138c49630e50b96d"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
dependencies = [
"ref-cast-impl",
]
[[package]]
name = "ref-cast-impl"
-version = "1.0.26"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
@@ -627,9 +627,9 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.1.4"
+version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
dependencies = [
"bitflags",
"errno",
@@ -655,9 +655,9 @@ dependencies = [
[[package]]
name = "schemars"
-version = "1.2.2"
+version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
+checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e"
dependencies = [
"dyn-clone",
"ref-cast",
@@ -692,14 +692,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
name = "serde_json"
-version = "1.0.151"
+version = "1.0.154"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
dependencies = [
"itoa",
"memchr",
@@ -733,9 +733,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "3.0.3"
+version = "3.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
dependencies = [
"proc-macro2",
"quote",
@@ -744,13 +744,13 @@ dependencies = [
[[package]]
name = "synstructure"
-version = "0.13.2"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
]
[[package]]
@@ -783,7 +783,7 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
@@ -798,15 +798,15 @@ dependencies = [
[[package]]
name = "twox-hash"
-version = "2.1.3"
+version = "2.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8464ec13c3691491391d9fce00f6416c9a48e46972f72d7865688be2080192c9"
+checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2"
[[package]]
name = "unicode-ident"
-version = "1.0.24"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
[[package]]
name = "walkdir"
@@ -914,9 +914,9 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "yoke"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -925,30 +925,30 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.2"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "zerocopy"
-version = "0.8.56"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.56"
+version = "0.8.63"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
dependencies = [
"proc-macro2",
"quote",
@@ -966,19 +966,19 @@ dependencies = [
[[package]]
name = "zerofrom-derive"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.119",
+ "syn 3.0.9",
"synstructure",
]
[[package]]
name = "zerovec"
-version = "0.11.8"
+version = "0.11.9"
dependencies = [
"bincode",
"criterion",
@@ -1002,13 +1002,13 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.5"
+version = "0.11.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f212a141d820099d57ffafb9569be9617a6f27d3dc881fbee8fb56642f917a9"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
dependencies = [
"proc-macro2",
"quote",
- "syn 3.0.3",
+ "syn 3.0.9",
]
[[package]]
diff --git a/deps/crates/vendor/zerovec-v0_11/Cargo.toml b/deps/crates/vendor/zerovec-v0_11/Cargo.toml
index a99a3e4e6f6..1746eb61313 100644
--- a/deps/crates/vendor/zerovec-v0_11/Cargo.toml
+++ b/deps/crates/vendor/zerovec-v0_11/Cargo.toml
@@ -13,7 +13,7 @@
edition = "2021"
rust-version = "1.83"
name = "zerovec"
-version = "0.11.8"
+version = "0.11.9"
authors = ["The ICU4X Project Developers"]
build = false
include = [
@@ -140,7 +140,7 @@ optional = true
default-features = false
[dependencies.yoke]
-version = "0.8.3"
+version = "0.8.4"
optional = true
default-features = false
@@ -149,7 +149,7 @@ version = "0.1.6"
default-features = false
[dependencies.zerovec-derive]
-version = "0.11.5"
+version = "0.11.7"
optional = true
default-features = false
@@ -193,7 +193,7 @@ default-features = false
version = "1.0.45"
[dev-dependencies.yoke]
-version = "0.8.3"
+version = "0.8.4"
features = ["derive"]
default-features = false
diff --git a/deps/crates/vendor/zerovec-v0_11/Cargo.toml.orig b/deps/crates/vendor/zerovec-v0_11/Cargo.toml.orig
index 9f0fb7ebc3a..8d1cc0fa39d 100644
--- a/deps/crates/vendor/zerovec-v0_11/Cargo.toml.orig
+++ b/deps/crates/vendor/zerovec-v0_11/Cargo.toml.orig
@@ -5,7 +5,7 @@
[package]
name = "zerovec"
description = "Zero-copy vector backed by a byte array"
-version = "0.11.8"
+version = "0.11.9"
categories = ["rust-patterns", "memory-management", "caching", "no-std", "data-structures"]
keywords = ["zero-copy", "serialization", "memory-efficiency", "serde"]
diff --git a/deps/crates/vendor/zerovec-v0_11/src/lib.rs b/deps/crates/vendor/zerovec-v0_11/src/lib.rs
index 5e9865bf400..d710e8c0b7b 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/lib.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/lib.rs
@@ -576,7 +576,7 @@ mod tests {
#[test]
fn test_miri_repro_eyepatch_hack_truncate() {
let slice: &[u16] = &[1, 2, 3, 4];
- let zv: ZeroVec<u16> = ZeroVec::try_from_slice(slice).unwrap();
+ let zv: ZeroVec<u16> = ZeroVec::from_slice_or_alloc(slice);
let _truncated = zv.truncated(2);
}
diff --git a/deps/crates/vendor/zerovec-v0_11/src/map2d/map.rs b/deps/crates/vendor/zerovec-v0_11/src/map2d/map.rs
index cf5f253a130..60c8398982b 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/map2d/map.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/map2d/map.rs
@@ -20,9 +20,9 @@ use crate::map::{MutableZeroVecLike, ZeroVecLike};
/// This is an extension of [`ZeroMap`] that supports two layers of keys. For example,
/// to map a pair of an integer and a string to a buffer, you can write:
///
-/// ```no_run
+/// ```
/// # use zerovec::ZeroMap2d;
-/// let _: ZeroMap2d<u32, str, [u8]> = unimplemented!();
+/// ZeroMap2d::<u32, str, [u8]>::new();
/// ```
///
/// Internally, `ZeroMap2d` stores four zero-copy vectors, one for each type argument plus
diff --git a/deps/crates/vendor/zerovec-v0_11/src/ule/custom.rs b/deps/crates/vendor/zerovec-v0_11/src/ule/custom.rs
index 2862d9e0528..c8118ca78ec 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/ule/custom.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/ule/custom.rs
@@ -123,8 +123,8 @@
//! where
//! D: serde::Deserializer<'de>,
//! {
-//! let mut foo = Foo::deserialize(deserializer)?;
-//! Ok(encode_varule_to_box(&foo))
+//! let deserialized = Foo::deserialize(deserializer)?;
+//! Ok(encode_varule_to_box(&deserialized))
//! }
//! }
//!
diff --git a/deps/crates/vendor/zerovec-v0_11/src/ule/mod.rs b/deps/crates/vendor/zerovec-v0_11/src/ule/mod.rs
index b4c86d777d5..49978f2a665 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/ule/mod.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/ule/mod.rs
@@ -246,8 +246,8 @@ where
/// If you need to implement this trait, consider using [`#[make_varule]`](crate::make_varule) or
/// [`#[derive(VarULE)]`](macro@VarULE) instead.
///
-/// This trait is mostly for unsized types like `str` and `[T]`. It can be implemented on sized types;
-/// however, it is much more preferable to use [`ULE`] for that purpose. The [`custom`] module contains
+/// This trait is for unsized types like `str` and `[T]`. For sized types use [`ULE`] instead.
+/// The [`custom`] module contains
/// additional documentation on how this type can be implemented on custom types.
///
/// If deserialization with `VarZeroVec` is desired is recommended to implement `Deserialize` for
@@ -271,6 +271,8 @@ where
/// 6. All other methods *must* be left with their default impl, or else implemented according to
/// their respective safety guidelines.
/// 7. Acknowledge the following note about the equality invariant.
+/// 8. The type **must** be a unsized, slice like type. Specifically this trait requires that a fat
+/// pointer to this type is represented by the pointer to the first element and the number of elements.
///
/// If the ULE type is a struct only containing other ULE/VarULE types (or other types which satisfy invariants 1 and 2,
/// like `[u8; N]`), invariants 1 and 2 can be achieved via `#[repr(C, packed)]` or `#[repr(transparent)]`.
@@ -445,6 +447,13 @@ impl UleError {
impl core::error::Error for UleError {}
+#[cfg(feature = "alloc")]
+#[repr(C)]
+struct DstMetadata<Ptr> {
+ ptr: Ptr,
+ metadata: usize,
+}
+
#[cfg(feature = "alloc")]
/// Reconstructs a `Box<T>` from a `Box<[u8]>` while preserving unique pointer provenance
/// and correctly resolving DST metadata.
@@ -469,20 +478,30 @@ impl core::error::Error for UleError {}
/// - `T::from_bytes_unchecked` must be safe to call on the slice behind bytes
pub(crate) unsafe fn cast_box<T: VarULE + ?Sized>(bytes: Box<[u8]>) -> Box<T> {
use core::alloc::Layout;
+
+ const {
+ assert!(size_of::<&T>() == size_of::<DstMetadata<*const u8>>());
+ assert!(size_of::<&T>() == size_of::<DstMetadata<*mut u8>>());
+ let expected_layout = Layout::new::<&[u8]>();
+ let actual_layout = Layout::new::<&T>();
+ assert!(expected_layout.size() == actual_layout.size());
+ assert!(expected_layout.align() == actual_layout.align());
+ }
let raw = Box::into_raw(bytes);
// SAFETY: we just produced `raw`; it is valid
let slice: &[u8] = unsafe { &*raw };
// SAFETY: caller guarantees `from_bytes_unchecked` is safe.
let ref_t: &T = unsafe { T::from_bytes_unchecked(slice) };
-
// Extract metadata from ref_t.
- debug_assert_eq!(size_of::<&T>(), size_of::<(*const u8, usize)>());
- let (_, metadata) = unsafe { core::mem::transmute_copy::<&T, (*const u8, usize)>(&ref_t) };
+ let DstMetadata { metadata, .. } =
+ unsafe { core::mem::transmute_copy::<&T, DstMetadata<*const u8>>(&ref_t) };
// Construct *mut T from (raw_data_ptr, metadata).
- debug_assert_eq!(size_of::<*mut T>(), size_of::<(*mut u8, usize)>());
let ptr: *mut T = unsafe {
- core::mem::transmute_copy::<(*mut u8, usize), *mut T>(&(raw.cast::<u8>(), metadata))
+ core::mem::transmute_copy::<DstMetadata<*mut u8>, *mut T>(&DstMetadata {
+ ptr: raw.cast::<u8>(),
+ metadata,
+ })
};
let expected_layout = Layout::for_value(slice);
diff --git a/deps/crates/vendor/zerovec-v0_11/src/ule/slices.rs b/deps/crates/vendor/zerovec-v0_11/src/ule/slices.rs
index 51ea1a542b7..16164d3716f 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/ule/slices.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/ule/slices.rs
@@ -70,18 +70,18 @@ unsafe impl VarULE for str {
/// Note: [`VarULE`] is well-defined for all `[T] where T: ULE`, but [`ZeroSlice`] is more ergonomic
/// when `T` is a low-level ULE type. For example:
///
-/// ```no_run
+/// ```
/// # use zerovec::ZeroSlice;
/// # use zerovec::VarZeroVec;
/// # use zerovec::ule::AsULE;
/// // OK: [u8] is a useful type
-/// let _: VarZeroVec<[u8]> = unimplemented!();
+/// VarZeroVec::<[u8]>::new();
///
/// // Technically works, but [u32::ULE] is not very useful
-/// let _: VarZeroVec<[<u32 as AsULE>::ULE]> = unimplemented!();
+/// VarZeroVec::<[<u32 as AsULE>::ULE]>::new();
///
/// // Better: ZeroSlice<u32>
-/// let _: VarZeroVec<ZeroSlice<u32>> = unimplemented!();
+/// VarZeroVec::<ZeroSlice<u32>>::new();
/// ```
///
/// [`ZeroSlice`]: crate::ZeroSlice
diff --git a/deps/crates/vendor/zerovec-v0_11/src/varzerovec/owned.rs b/deps/crates/vendor/zerovec-v0_11/src/varzerovec/owned.rs
index 1a2a15bdb88..44be5d865c6 100644
--- a/deps/crates/vendor/zerovec-v0_11/src/varzerovec/owned.rs
+++ b/deps/crates/vendor/zerovec-v0_11/src/varzerovec/owned.rs
@@ -494,21 +494,36 @@ impl<T: VarULE + ?Sized, F: VarZeroVecFormat> VarZeroVecOwned<T, F> {
}
let value_len = element.encode_var_ule_len();
+ assert!(value_len < F::Index::MAX_VALUE as usize);
if len == 0 {
let header_len = F::Len::SIZE; // Index array is size 0 for len = 1
let cap = header_len + value_len;
- self.entire_slice.resize(cap, 0);
- self.entire_slice[0] = 1; // set length
- element.encode_var_ule_write(&mut self.entire_slice[header_len..]);
+ let guard = ClearOnPanic(self);
+ guard.0.entire_slice.resize(cap, 0);
+ guard.0.entire_slice[0] = 1; // set length
+ element.encode_var_ule_write(&mut guard.0.entire_slice[header_len..]);
+ debug_assert_eq!(
+ T::validate_bytes(&guard.0.entire_slice[header_len..]),
+ Ok(())
+ );
+ core::mem::forget(guard);
return;
}
- assert!(value_len < F::Index::MAX_VALUE as usize);
+ let guard = ClearOnPanic(self);
+ // SAFETY:
+ // - `index <= self.len()` is checked above (`ShiftType::Insert` allows `index == self.len()`).
+ // - `value_len < F::Index::MAX_VALUE` is asserted above, and `shift` checks that the
+ // total grown slice length fits within `F::Index::MAX_VALUE`.
+ // - `guard` clears `entire_slice` if `shift` or `encode_var_ule_write` panics,
+ // preventing partially-mutated state from being observed after unwinding.
unsafe {
- let place = self.shift(index, value_len, ShiftType::Insert);
+ let place = guard.0.shift(index, value_len, ShiftType::Insert);
element.encode_var_ule_write(place);
+ debug_assert_eq!(T::validate_bytes(place), Ok(()));
}
+ core::mem::forget(guard);
}
/// Remove the element at index `idx`
@@ -522,9 +537,15 @@ impl<T: VarULE + ?Sized, F: VarZeroVecFormat> VarZeroVecOwned<T, F> {
self.entire_slice.clear();
return;
}
+ let guard = ClearOnPanic(self);
+ // SAFETY:
+ // - `index < self.len()` is checked above.
+ // - `new_size` is 0, so the data segment does not grow.
+ // - `guard` clears `entire_slice` if `shift` panics.
unsafe {
- self.shift(index, 0, ShiftType::Remove);
+ guard.0.shift(index, 0, ShiftType::Remove);
}
+ core::mem::forget(guard);
}
/// Replace the element at index `idx` with another
@@ -537,10 +558,30 @@ impl<T: VarULE + ?Sized, F: VarZeroVecFormat> VarZeroVecOwned<T, F> {
let value_len = element.encode_var_ule_len();
assert!(value_len < F::Index::MAX_VALUE as usize);
+ let guard = ClearOnPanic(self);
+ // SAFETY:
+ // - `index < self.len()` is checked above.
+ // - `value_len < F::Index::MAX_VALUE` is asserted above, and `shift` checks that the
+ // total grown slice length fits within `F::Index::MAX_VALUE`.
+ // - `guard` clears `entire_slice` if `shift` or `encode_var_ule_write` panics,
+ // preventing partially-mutated state from being observed after unwinding.
unsafe {
- let place = self.shift(index, value_len, ShiftType::Replace);
+ let place = guard.0.shift(index, value_len, ShiftType::Replace);
element.encode_var_ule_write(place);
+ debug_assert_eq!(T::validate_bytes(place), Ok(()));
}
+ core::mem::forget(guard);
+ }
+}
+
+/// Drop guard that clears `entire_slice` if a panic occurs during an in-place
+/// mutation (e.g. inside `shift` or a user-provided `EncodeAsVarULE::encode_var_ule_write`),
+/// restoring the safety invariant that `entire_slice` is a valid (empty) `VarZeroVecComponents`.
+struct ClearOnPanic<'a, T: ?Sized, F>(&'a mut VarZeroVecOwned<T, F>);
+
+impl<T: ?Sized, F> Drop for ClearOnPanic<'_, T, F> {
+ fn drop(&mut self) {
+ self.0.entire_slice.clear();
}
}
@@ -720,4 +761,66 @@ mod test {
fn test_replace_past_end() {
VarZeroVecOwned::<str>::new().replace(0, "");
}
+
+ #[test]
+ #[cfg(feature = "std")]
+ fn test_panic_safety() {
+ use crate::ule::EncodeAsVarULE;
+ use std::panic::{catch_unwind, AssertUnwindSafe};
+
+ struct PanicAfterWrite {
+ invalid: &'static [u8],
+ }
+
+ // SAFETY: `encode_var_ule_write` always panics and never returns normally,
+ // so callers must not observe the invalid bytes written before unwinding.
+ unsafe impl EncodeAsVarULE<str> for PanicAfterWrite {
+ fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R {
+ cb(&[self.invalid])
+ }
+
+ fn encode_var_ule_len(&self) -> usize {
+ self.invalid.len()
+ }
+
+ fn encode_var_ule_write(&self, dst: &mut [u8]) {
+ dst.copy_from_slice(self.invalid);
+ panic!("encode_var_ule_write panicked after writing invalid bytes");
+ }
+ }
+
+ let panicker = PanicAfterWrite {
+ invalid: &[0x80, 0xC0, 0xFF],
+ };
+
+ // 1. `replace` on non-empty vector
+ let mut v = VarZeroVecOwned::<str>::try_from_elements(&["hello"]).unwrap();
+ let res = catch_unwind(AssertUnwindSafe(|| {
+ v.replace(0, &panicker);
+ }));
+ assert!(res.is_err());
+ assert!(v.is_empty());
+ assert_eq!(v.get(0), None);
+ assert!(v.verify_integrity());
+
+ // 2. `insert` into empty vector (`len == 0` fast-path)
+ let mut v = VarZeroVecOwned::<str>::new();
+ let res = catch_unwind(AssertUnwindSafe(|| {
+ v.insert(0, &panicker);
+ }));
+ assert!(res.is_err());
+ assert!(v.is_empty());
+ assert_eq!(v.get(0), None);
+ assert!(v.verify_integrity());
+
+ // 3. `insert` into non-empty vector (`len > 0` shift path)
+ let mut v = VarZeroVecOwned::<str>::try_from_elements(&["hello", "world"]).unwrap();
+ let res = catch_unwind(AssertUnwindSafe(|| {
+ v.insert(1, &panicker);
+ }));
+ assert!(res.is_err());
+ assert!(v.is_empty());
+ assert_eq!(v.get(0), None);
+ assert!(v.verify_integrity());
+ }
}