mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
e21f4cd98f
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. |
||
---|---|---|
.. | ||
attr | ||
expand | ||
util | ||
ast_traits.rs | ||
ast.rs | ||
entry.rs | ||
format.rs | ||
lib.rs | ||
mut_visit.rs | ||
node_id.rs | ||
ptr.rs | ||
token.rs | ||
tokenstream.rs | ||
visit.rs |