rust/compiler/rustc_macros/src
bors e21f4cd98f Auto merge of #119478 - bjorn3:no_serialize_specialization, r=wesleywiser
Avoid specialization in the metadata serialization code

With the exception of a perf-only specialization for byte slices and byte vectors.

This uses the same trick of introducing a new trait and having the Encodable and Decodable derives add a bound to it as used for TyEncoder/TyDecoder. The new code is clearer about which encoder/decoder uses which impl and it reduces the dependency of rustc on specialization, making it easier to remove support for specialization entirely or turn it into a construct that is only allowed for perf optimizations if we decide to do this.
2024-01-06 09:56:00 +00:00
..
diagnostics Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
symbols Fix symbols::tests::test_symbols 2023-10-26 02:02:22 -07:00
current_version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00
hash_stable.rs remove redundant imports 2023-12-10 10:56:22 +08:00
lib.rs Avoid specialization for the Span Encodable and Decodable impls 2023-12-31 20:42:17 +00:00
lift.rs remove redundant imports 2023-12-10 10:56:22 +08:00
query.rs Stash and cancel cycle errors for auto trait leakage in opaques 2023-10-26 17:58:02 +00:00
serialize.rs Avoid specialization for the Span Encodable and Decodable impls 2023-12-31 20:42:17 +00:00
symbols.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
type_foldable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00
type_visitable.rs migrate rustc_macros to syn 2.0 2023-04-06 04:55:58 +00:00