Skip to content

Commit 53d9194

Browse files
committed
Fix rebase fallout.
1 parent 0d2cee3 commit 53d9194

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/librustc/ty/print/pretty.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use middle::region;
66
use ty::{self, DefIdTree, Ty, TyCtxt, TypeFoldable};
77
use ty::subst::{Kind, Subst, Substs, UnpackedKind};
88
use middle::cstore::{ExternCrate, ExternCrateSource};
9-
use syntax::ast;
109
use syntax::symbol::{keywords, Symbol};
1110

1211
use rustc_target::spec::abi::Abi;
@@ -353,14 +352,11 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>:
353352
// `visible_parent_map`), looking for the specific child we currently have and then
354353
// have access to the re-exported name.
355354
DefPathData::Module(actual_name) |
356-
DefPathData::TypeNs(actual_name) if visible_parent != actual_parent => {
357-
visible_parent
358-
.and_then(|parent| {
359-
self.tcx().item_children(parent)
360-
.iter()
361-
.find(|child| child.def.def_id() == cur_def)
362-
.map(|child| child.ident.as_str())
363-
})
355+
DefPathData::TypeNs(actual_name) if Some(visible_parent) != actual_parent => {
356+
self.tcx().item_children(visible_parent)
357+
.iter()
358+
.find(|child| child.def.def_id() == def_id)
359+
.map(|child| child.ident.as_str())
364360
.unwrap_or_else(|| actual_name.as_str())
365361
}
366362
_ => {

0 commit comments

Comments
 (0)