We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
opt_def_id
1 parent cfd75fe commit df71d38Copy full SHA for df71d38
src/librustc/ty/print/pretty.rs
@@ -383,7 +383,7 @@ pub trait PrettyPrinter<'tcx>:
383
.tcx()
384
.item_children(visible_parent)
385
.iter()
386
- .find(|child| child.res.def_id() == def_id)
+ .find(|child| child.res.opt_def_id() == Some(def_id))
387
.map(|child| child.ident.name);
388
if let Some(reexport) = reexport {
389
*name = reexport;
0 commit comments