Auto merge of #109333 - Zoxc:erase-query-cache-values, r=cjgillot

Erase query cache values

This replaces most concrete query values `V` with `MaybeUninit<[u8; { size_of::<V>() }]>` without introducing dynamic dispatch like https://github.com/rust-lang/rust/pull/108638 does. This is split out of https://github.com/rust-lang/rust/pull/108638 so the performance impact of only this change can be measured.

r? `@cjgillot`
This commit is contained in:
bors 2023-04-06 16:29:36 +00:00
commit f5b8f44e5d
11 changed files with 465 additions and 61 deletions

View file

@ -7,6 +7,7 @@
use crate::ty::{self, print::describe_as_module, TyCtxt};
use rustc_span::def_id::LOCAL_CRATE;
pub mod erase;
mod keys;
pub use keys::{AsLocalKey, Key, LocalCrate};