rust/compiler/rustc_query_system/src
Nicholas Nethercote 3ef9d4d0ed Replace custom_encodable with encodable.
By default, `newtype_index!` types get a default `Encodable`/`Decodable`
impl. You can opt out of this with `custom_encodable`. Opting out is the
opposite to how Rust normally works with autogenerated (derived) impls.

This commit inverts the behaviour, replacing `custom_encodable` with
`encodable` which opts into the default `Encodable`/`Decodable` impl.
Only 23 of the 59 `newtype_index!` occurrences need `encodable`.

Even better, there were eight crates with a dependency on
`rustc_serialize` just from unused default `Encodable`/`Decodable`
impls. This commit removes that dependency from those eight crates.
2023-11-22 18:37:14 +11:00
..
dep_graph Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
ich Add HashStable_NoContext to simplify HashStable implementations in rustc_type_ir 2023-11-21 05:49:44 +00:00
query Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
cache.rs Remove a fishy Clone impl 2023-04-04 09:01:44 +00:00
error.rs Stash and cancel cycle errors for auto trait leakage in opaques 2023-10-26 17:58:02 +00:00
lib.rs Remove unused features. 2023-11-15 15:40:57 +11:00
values.rs Move DepKind to rustc_query_system and define it as u16 2023-09-21 17:06:14 +02:00