mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
Remove is_ctfe_mir_available query
It isn't called anywhere anymore.
This commit is contained in:
@@ -1298,10 +1298,6 @@ fn get_ambig_module_children(
|
||||
}
|
||||
}
|
||||
|
||||
fn is_ctfe_mir_available(self, tcx: TyCtxt<'_>, id: DefIndex) -> bool {
|
||||
self.root.tables.mir_for_ctfe.get((self, tcx), id).is_some()
|
||||
}
|
||||
|
||||
fn is_item_mir_available(self, tcx: TyCtxt<'_>, id: DefIndex) -> bool {
|
||||
self.root.tables.optimized_mir.get((self, tcx), id).is_some()
|
||||
}
|
||||
|
||||
@@ -324,7 +324,6 @@ fn into_args(self) -> (DefId, SimplifiedType) {
|
||||
inherent_impls => { cdata.get_inherent_implementations_for_type(tcx, def_id.index) }
|
||||
attrs_for_def => { tcx.arena.alloc_from_iter(cdata.get_item_attrs(tcx, def_id.index)) }
|
||||
is_mir_available => { cdata.is_item_mir_available(tcx, def_id.index) }
|
||||
is_ctfe_mir_available => { cdata.is_ctfe_mir_available(tcx, def_id.index) }
|
||||
cross_crate_inlinable => { table_direct }
|
||||
|
||||
dylib_dependency_formats => { cdata.get_dylib_dependency_formats(tcx) }
|
||||
|
||||
@@ -1588,11 +1588,6 @@
|
||||
separate_provide_extern
|
||||
}
|
||||
|
||||
query is_ctfe_mir_available(key: DefId) -> bool {
|
||||
desc { |tcx| "checking if item has CTFE MIR available: `{}`", tcx.def_path_str(key) }
|
||||
cache_on_disk_if { key.is_local() }
|
||||
separate_provide_extern
|
||||
}
|
||||
query is_mir_available(key: DefId) -> bool {
|
||||
desc { |tcx| "checking if item has MIR available: `{}`", tcx.def_path_str(key) }
|
||||
cache_on_disk_if { key.is_local() }
|
||||
|
||||
@@ -231,7 +231,6 @@ pub fn provide(providers: &mut Providers) {
|
||||
optimized_mir,
|
||||
check_liveness: liveness::check_liveness,
|
||||
is_mir_available,
|
||||
is_ctfe_mir_available: is_mir_available,
|
||||
mir_callgraph_cyclic: inline::cycle::mir_callgraph_cyclic,
|
||||
mir_inliner_callees: inline::cycle::mir_inliner_callees,
|
||||
promoted_mir,
|
||||
|
||||
Reference in New Issue
Block a user