Revert "Use the HIR instead of mir_keys for determining whether something will have a MIR body."
This reverts commit e5cba17b84bf7bf755686e8bb36aa3775ef53f77.
This commit is contained in:
parent
2b6a34273d
commit
72cbb8bd94
@ -211,7 +211,7 @@ fn remap_mir_for_const_eval_select<'tcx>(
|
||||
}
|
||||
|
||||
fn is_mir_available(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
||||
tcx.hir().maybe_body_owned_by(def_id).is_some()
|
||||
tcx.mir_keys(()).contains(&def_id)
|
||||
}
|
||||
|
||||
/// Finds the full set of `DefId`s within the current crate that have
|
||||
|
Loading…
x
Reference in New Issue
Block a user