Files
Brent WestbrookandAlex Waygood bfedc614b7 Use workspace rand and rust-version in ruff_unicode_names2 (#29261)
Summary
--

This updates `ruff_unicode_names2` and `ruff_unicode_names2_generator`
to use our workspace `rand` dependency and `rust-version`, prompted by
#29257 and #29359. Bumping the Rust version also introduces a handful of
Clippy diagnostic that Clippy was also able to fix automatically. I
originally pinned both of these to stay closer to the upstream version,
but we've already diverged a bit, and the required changes were quite
small anyway, so this seems like the better way to go.

This also allows us to drop the `std` feature on `rand`, a transitive
dependency on `zerocopy`, and the accompanying allowlist entry for its
build script.

While I was here, I also switched to our workspace edition, removed
unused feature-gated code and unnecessary suppressions, enabled
formatting and typo checks, and enabled doctests.

These are the changes from `rand` for reference:

- https://rust-random.github.io/book/update-0.10.html
- https://rust-random.github.io/book/update-0.9.html

Test Plan
--

Existing tests

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2026-10-14 15:56:00 +00:00
..