diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-14 17:38:11 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-17 08:44:48 +1000 |
| commit | 005a70e3034eb84798760d3ccbf46eda65b40075 (patch) | |
| tree | c14ab1a17c9dc4f39d7e742ef823bf39ae88a1f8 /compiler/rustc_middle/src/query/mod.rs | |
| parent | 87c509da95f3d837b3351ee3d706f7fe1d317a93 (diff) | |
| download | rust-005a70e3034eb84798760d3ccbf46eda65b40075.tar.gz rust-005a70e3034eb84798760d3ccbf46eda65b40075.zip | |
Remove `instance_def_size_estimate` query.
It doesn't seem worthwhile now that `MonoItem::size_estimate` is called much less often.
Diffstat (limited to 'compiler/rustc_middle/src/query/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 45fa82ba68a..c304245ca39 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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" } |
