Allow LocalDefId
as the argument to def_path_str
This commit is contained in:
parent
e18d1f8d2e
commit
1ce80e210d
18 changed files with 68 additions and 54 deletions
|
@ -13,7 +13,7 @@ pub(crate) fn mir_callgraph_reachable<'tcx>(
|
|||
tcx: TyCtxt<'tcx>,
|
||||
(root, target): (ty::Instance<'tcx>, LocalDefId),
|
||||
) -> bool {
|
||||
trace!(%root, target = %tcx.def_path_str(target.to_def_id()));
|
||||
trace!(%root, target = %tcx.def_path_str(target));
|
||||
let param_env = tcx.param_env_reveal_all_normalized(target);
|
||||
assert_ne!(
|
||||
root.def_id().expect_local(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue