rust/compiler
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
..
rustc
rustc_abi Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_arena
rustc_ast Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_ast_lowering Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_ast_passes Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_ast_pretty Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_attr Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_baked_icu_data
rustc_borrowck Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_builtin_macros Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_codegen_cranelift
rustc_codegen_gcc Pass TyCtxt by value 2023-11-19 14:04:40 -05:00
rustc_codegen_llvm Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_codegen_ssa Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_const_eval Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_data_structures Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_driver
rustc_driver_impl Auto merge of #118002 - nnethercote:unify-input-no-input, r=bjorn3 2023-11-18 16:43:47 +00:00
rustc_error_codes
rustc_error_messages
rustc_errors Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_expand Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_hir_analysis Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_hir_pretty Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_hir_typeck Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_incremental Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_index Begin nightly-ifying rustc_type_ir 2023-11-18 00:20:00 +00:00
rustc_index_macros Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_infer Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_interface Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_lexer
rustc_lint Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_lint_defs Remove --check-cfg checking of --cfg args 2023-11-18 12:21:58 +01:00
rustc_llvm
rustc_log
rustc_macros Unify HashStable implementations 2023-11-21 05:49:45 +00:00
rustc_metadata Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_middle Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_mir_build Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_mir_dataflow Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_mir_transform Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_monomorphize Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_parse Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_parse_format
rustc_passes Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_privacy Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_query_impl Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_query_system Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_resolve Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_serialize
rustc_session Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_smir Auto merge of #118152 - matthiaskrgr:rollup-bqcck4w, r=matthiaskrgr 2023-11-22 00:30:56 +00:00
rustc_span Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_symbol_mangling Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_target Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_trait_selection Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
rustc_traits Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
rustc_transmute Update itertools to 0.11. 2023-11-22 08:13:21 +11:00
rustc_ty_utils Auto merge of #117928 - nnethercote:rustc_ast_pretty, r=fee1-dead 2023-11-22 05:09:33 +00:00
rustc_type_ir Replace custom_encodable with encodable. 2023-11-22 18:37:14 +11:00
stable_mir Auto merge of #118152 - matthiaskrgr:rollup-bqcck4w, r=matthiaskrgr 2023-11-22 00:30:56 +00:00