X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=compiler%2Frustc_mir_transform%2Fsrc%2Fcoverage%2Fmod.rs;fp=compiler%2Frustc_mir_transform%2Fsrc%2Fcoverage%2Fmod.rs;h=5ecb2d6a6313e4565b9660841ecbf751d9b029c8;hb=353b0b1106c09291d3c691e2bd6290fdf14b6691;hp=9a617159813caeca77f5342ffebcf714a5b9643b;hpb=9ffffee422eedc489e3035cb88b0dab8dc9ea408;p=rustc.git diff --git a/compiler/rustc_mir_transform/src/coverage/mod.rs b/compiler/rustc_mir_transform/src/coverage/mod.rs index 9a61715981..5ecb2d6a63 100644 --- a/compiler/rustc_mir_transform/src/coverage/mod.rs +++ b/compiler/rustc_mir_transform/src/coverage/mod.rs @@ -577,5 +577,5 @@ fn get_body_span<'tcx>( fn hash_mir_source<'tcx>(tcx: TyCtxt<'tcx>, hir_body: &'tcx rustc_hir::Body<'tcx>) -> u64 { // FIXME(cjgillot) Stop hashing HIR manually here. let owner = hir_body.id().hir_id.owner; - tcx.hir_owner_nodes(owner).unwrap().hash_including_bodies.to_smaller_hash() + tcx.hir_owner_nodes(owner).unwrap().opt_hash_including_bodies.unwrap().to_smaller_hash() }