Re: [PATCH 07/18] rust: proc-macro2: remove `unicode_ident` dependency

From: Alice Ryhl
Date: Mon Nov 10 2025 - 05:52:10 EST


On Mon, Nov 10, 2025 at 10:50:12AM +0100, Miguel Ojeda wrote:
> The `proc-macro2` crate depends on the `unicode-ident` crate to determine
> whether characters have the XID_Start or XID_Continue properties according
> to Unicode Standard Annex #31.
>
> However, we only need ASCII identifiers in the kernel, thus we can
> simplify the check and remove completely that dependency.
>
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

Verified that these match exactly for ascii characters.

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>