]> git.lizzy.rs Git - rust.git/commit
Auto merge of #91924 - Aaron1011:serialize-adt-def, r=michaelwoerister
authorbors <bors@rust-lang.org>
Mon, 20 Dec 2021 10:35:48 +0000 (10:35 +0000)
committerbors <bors@rust-lang.org>
Mon, 20 Dec 2021 10:35:48 +0000 (10:35 +0000)
commit84f962a89bac3948ed116f1ad04c2f4793fb69ea
treed1475e91627525d0278296204551d21df84a0be8
parent60f3bd78eeac87ad474916d36d29ed7e5084b25b
parent00ce6dc7187a1d572c19d3939fa5876ea6bbcbb1
Auto merge of #91924 - Aaron1011:serialize-adt-def, r=michaelwoerister

Fully serialize AdtDef

This avoids needing to invoke the `adt_def` query during
the decoding of another query's result.

Split out from https://github.com/rust-lang/rust/pull/91919
See https://github.com/rust-lang/rust/issues/91696#issuecomment-993043710
compiler/rustc_middle/src/query/mod.rs
compiler/rustc_middle/src/ty/codec.rs
compiler/rustc_middle/src/ty/context.rs
compiler/rustc_middle/src/ty/mod.rs