Fix try_print_visible_def_path_recur for opt_def_id usage
This to fix #74081.
This commit is contained in:
parent
e59b08e62e
commit
b929f72119
@ -393,7 +393,7 @@ pub trait PrettyPrinter<'tcx>:
|
||||
.tcx()
|
||||
.item_children(visible_parent)
|
||||
.iter()
|
||||
.find(|child| child.res.def_id() == def_id)
|
||||
.find(|child| child.res.opt_def_id() == Some(def_id))
|
||||
.map(|child| child.ident.name);
|
||||
if let Some(reexport) = reexport {
|
||||
*name = reexport;
|
||||
|
Loading…
x
Reference in New Issue
Block a user