1
Fork 0

Remove instance_def_size_estimate query.

It doesn't seem worthwhile now that `MonoItem::size_estimate` is called
much less often.
This commit is contained in:
Nicholas Nethercote 2023-07-14 17:38:11 +10:00
parent 87c509da95
commit 005a70e303
3 changed files with 12 additions and 28 deletions

View file

@ -2080,12 +2080,6 @@ rustc_queries! {
desc { "looking up supported target features" }
}
/// Get an estimate of the size of an InstanceDef based on its MIR for CGU partitioning.
query instance_def_size_estimate(def: ty::InstanceDef<'tcx>)
-> usize {
desc { |tcx| "estimating size for `{}`", tcx.def_path_str(def.def_id()) }
}
query features_query(_: ()) -> &'tcx rustc_feature::Features {
feedable
desc { "looking up enabled feature gates" }