about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-25 22:50:58 +0000
committerbors <bors@rust-lang.org>2024-07-25 22:50:58 +0000
commit2f26b2a99ab976c43d12cf57ef4a3a2c82ede286 (patch)
treea27dd17e47496490ed6ded4f102554b7cad92158 /src
parent7120fdac7a6e55a5e4b606256042890b36067052 (diff)
parent59f88d3db92cddc209b15a4edf26216f5ec9daaa (diff)
downloadrust-2f26b2a99ab976c43d12cf57ef4a3a2c82ede286.tar.gz
rust-2f26b2a99ab976c43d12cf57ef4a3a2c82ede286.zip
Auto merge of #127042 - GrigorenkoPV:derivative, r=compiler-errors
Switch from `derivative` to `derive-where`

This is a part of the effort to get rid of `syn 1.*` in compiler's dependencies: #109302

Derivative has not been maintained in nearly 3 years[^1]. It also depends on `syn 1.*`.

This PR replaces `derivative` with `derive-where`[^2], a not dead alternative, which uses `syn 2.*`.

A couple of `Debug` formats have changed around the skipped fields[^3], but I doubt this is an issue.

[^1]: https://github.com/mcarton/rust-derivative/issues/117
[^2]: https://lib.rs/crates/derive-where
[^3]: See the changes in `tests/ui`
Diffstat (limited to 'src')
-rw-r--r--src/tools/tidy/src/deps.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/deps.rs b/src/tools/tidy/src/deps.rs
index 6d61e0dd3ef..499e735b1df 100644
--- a/src/tools/tidy/src/deps.rs
+++ b/src/tools/tidy/src/deps.rs
@@ -269,7 +269,7 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
     "darling_macro",
     "datafrog",
     "deranged",
-    "derivative",
+    "derive-where",
     "derive_more",
     "derive_setters",
     "digest",