Skip to content

Commit ef00ebf

Browse files
committed
Remove is_ctfe_mir_available query
It isn't called anywhere anymore.
1 parent 930ecbc commit ef00ebf

4 files changed

Lines changed: 0 additions & 11 deletions

File tree

compiler/rustc_metadata/src/rmeta/decoder.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,10 +1298,6 @@ impl<'a> CrateMetadataRef<'a> {
12981298
}
12991299
}
13001300

1301-
fn is_ctfe_mir_available(self, tcx: TyCtxt<'_>, id: DefIndex) -> bool {
1302-
self.root.tables.mir_for_ctfe.get((self, tcx), id).is_some()
1303-
}
1304-
13051301
fn is_item_mir_available(self, tcx: TyCtxt<'_>, id: DefIndex) -> bool {
13061302
self.root.tables.optimized_mir.get((self, tcx), id).is_some()
13071303
}

compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ provide! { tcx, def_id, other, cdata,
324324
inherent_impls => { cdata.get_inherent_implementations_for_type(tcx, def_id.index) }
325325
attrs_for_def => { tcx.arena.alloc_from_iter(cdata.get_item_attrs(tcx, def_id.index)) }
326326
is_mir_available => { cdata.is_item_mir_available(tcx, def_id.index) }
327-
is_ctfe_mir_available => { cdata.is_ctfe_mir_available(tcx, def_id.index) }
328327
cross_crate_inlinable => { table_direct }
329328

330329
dylib_dependency_formats => { cdata.get_dylib_dependency_formats(tcx) }

compiler/rustc_middle/src/queries.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,11 +1588,6 @@ rustc_queries! {
15881588
separate_provide_extern
15891589
}
15901590

1591-
query is_ctfe_mir_available(key: DefId) -> bool {
1592-
desc { |tcx| "checking if item has CTFE MIR available: `{}`", tcx.def_path_str(key) }
1593-
cache_on_disk_if { key.is_local() }
1594-
separate_provide_extern
1595-
}
15961591
query is_mir_available(key: DefId) -> bool {
15971592
desc { |tcx| "checking if item has MIR available: `{}`", tcx.def_path_str(key) }
15981593
cache_on_disk_if { key.is_local() }

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ pub fn provide(providers: &mut Providers) {
231231
optimized_mir,
232232
check_liveness: liveness::check_liveness,
233233
is_mir_available,
234-
is_ctfe_mir_available: is_mir_available,
235234
mir_callgraph_cyclic: inline::cycle::mir_callgraph_cyclic,
236235
mir_inliner_callees: inline::cycle::mir_inliner_callees,
237236
promoted_mir,

0 commit comments

Comments
 (0)