1
Fork 0
rust/compiler/rustc_codegen_llvm/src/coverageinfo
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
..
ffi.rs coverage: Store expression data in function coverage info 2023-10-18 23:44:34 +11:00
map_data.rs coverage: Consistently remove unused counter IDs from expressions/mappings 2023-10-28 09:33:48 +11:00
mapgen.rs Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
mod.rs coverage: Split FunctionCoverage into distinct collector/finished phases 2023-10-22 20:11:45 +11:00