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.
1 parent e59b08e commit b929f72Copy full SHA for b929f72
src/librustc_middle/ty/print/pretty.rs
@@ -393,7 +393,7 @@ pub trait PrettyPrinter<'tcx>:
393
.tcx()
394
.item_children(visible_parent)
395
.iter()
396
- .find(|child| child.res.def_id() == def_id)
+ .find(|child| child.res.opt_def_id() == Some(def_id))
397
.map(|child| child.ident.name);
398
if let Some(reexport) = reexport {
399
*name = reexport;
0 commit comments