mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Use the HIR instead of mir_keys for determining whether something will have a MIR body.
This commit is contained in:
parent
53e3c3271f
commit
e5cba17b84
@ -211,7 +211,7 @@ fn remap_mir_for_const_eval_select<'tcx>(
|
||||
}
|
||||
|
||||
fn is_mir_available(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
||||
tcx.mir_keys(()).contains(&def_id)
|
||||
tcx.hir().maybe_body_owned_by(def_id).is_some()
|
||||
}
|
||||
|
||||
/// Finds the full set of `DefId`s within the current crate that have
|
||||
|
Loading…
Reference in New Issue
Block a user