We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e3c32 commit e5cba17Copy full SHA for e5cba17
compiler/rustc_mir_transform/src/lib.rs
@@ -211,7 +211,7 @@ fn remap_mir_for_const_eval_select<'tcx>(
211
}
212
213
fn is_mir_available(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
214
- tcx.mir_keys(()).contains(&def_id)
+ tcx.hir().maybe_body_owned_by(def_id).is_some()
215
216
217
/// Finds the full set of `DefId`s within the current crate that have
0 commit comments