1
Fork 0

Make unsizing_params_for_adt into a query

This commit is contained in:
Michael Goulet 2023-01-21 05:43:37 +00:00
parent d6f0642827
commit 32bf8c767f
3 changed files with 71 additions and 44 deletions

View file

@ -183,6 +183,15 @@ rustc_queries! {
separate_provide_extern
}
query unsizing_params_for_adt(key: DefId) -> rustc_index::bit_set::BitSet<u32>
{
arena_cache
desc { |tcx|
"determining what parameters of `{}` can participate in unsizing",
tcx.def_path_str(key),
}
}
query analysis(key: ()) -> Result<(), ErrorGuaranteed> {
eval_always
desc { "running analysis passes on this crate" }