Allow LocalDefId as the argument to def_path_str
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user