Allow LocalDefId as the argument to def_path_str
This commit is contained in:
@@ -494,7 +494,7 @@ fn check_item_type(tcx: TyCtxt<'_>, id: hir::ItemId) {
|
||||
debug!(
|
||||
"check_item_type(it.def_id={:?}, it.name={})",
|
||||
id.owner_id,
|
||||
tcx.def_path_str(id.owner_id.to_def_id())
|
||||
tcx.def_path_str(id.owner_id)
|
||||
);
|
||||
let _indenter = indenter();
|
||||
match tcx.def_kind(id.owner_id) {
|
||||
|
||||
Reference in New Issue
Block a user