We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d17346 commit e8381deCopy full SHA for e8381de
compiler/rustc_mir_build/src/build/coverageinfo.rs
@@ -69,8 +69,6 @@ fn fn_sig_and_body(
69
tcx: TyCtxt<'_>,
70
def_id: LocalDefId,
71
) -> (Option<&rustc_hir::FnSig<'_>>, &rustc_hir::Body<'_>) {
72
- // FIXME(#79625): Consider improving MIR to provide the information needed, to avoid going back
73
- // to HIR for it.
74
let hir_node = tcx.hir().get_by_def_id(def_id);
75
let (_, fn_body_id) =
76
hir::map::associated_body(hir_node).expect("HIR node is a function with body");
@@ -106,7 +104,6 @@ fn get_body_span<'tcx>(
106
104
}
107
105
108
fn hash_mir_source<'tcx>(tcx: TyCtxt<'tcx>, hir_body: &'tcx rustc_hir::Body<'tcx>) -> u64 {
109
- // FIXME(cjgillot) Stop hashing HIR manually here.
110
let owner = hir_body.id().hir_id.owner;
111
tcx.hir_owner_nodes(owner)
112
.unwrap()
0 commit comments