about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/interface.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-06 09:56:00 +0000
committerbors <bors@rust-lang.org>2024-01-06 09:56:00 +0000
commite21f4cd98fcf03fb7895f13421699f58132e4beb (patch)
tree335591df79611c47f490696a7da548e097b77e38 /compiler/rustc_interface/src/interface.rs
parent5cb2e7dfc362662b0036faad3bab88d73027fd05 (diff)
parent8fb8e6eefb27313523be937ff9de557dd3bcf4fe (diff)
downloadrust-e21f4cd98fcf03fb7895f13421699f58132e4beb.tar.gz
rust-e21f4cd98fcf03fb7895f13421699f58132e4beb.zip
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.
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
0 files changed, 0 insertions, 0 deletions