Replace (Body, DefId) with Body where possible
A `Body` now contains its `MirSource`, which in turn contains the `DefId` of the item associated with the `Body`.
This commit is contained in:
@@ -153,7 +153,7 @@ fn dump_matched_mir_node<'tcx, F>(
|
||||
let mut file =
|
||||
create_dump_file(tcx, "html", pass_num, pass_name, disambiguator, body.source)?;
|
||||
if body.source.def_id().is_local() {
|
||||
write_mir_fn_spanview(tcx, body.source.def_id(), body, spanview, &mut file)?;
|
||||
write_mir_fn_spanview(tcx, body, spanview, &mut file)?;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user