rustc: pass Option<&Substs> and Namespace around in ty::item_path.
This commit is contained in:
parent
ed2be6fa89
commit
3e1cef7007
26 changed files with 159 additions and 94 deletions
|
|
@ -18,7 +18,7 @@ use rustc::middle::lang_items;
|
|||
use rustc::middle::stability;
|
||||
use rustc::mir::interpret::GlobalId;
|
||||
use rustc::hir::{self, GenericArg, HirVec};
|
||||
use rustc::hir::def::{self, Def, CtorKind};
|
||||
use rustc::hir::def::{self, Def, CtorKind, Namespace};
|
||||
use rustc::hir::def_id::{CrateNum, DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
|
||||
use rustc::ty::subst::{InternalSubsts, SubstsRef};
|
||||
use rustc::ty::{self, TyCtxt, Region, RegionVid, Ty, AdtKind};
|
||||
|
|
@ -4249,7 +4249,8 @@ where F: Fn(DefId) -> Def {
|
|||
}
|
||||
}
|
||||
|
||||
let names = PrintCx::new(tcx, AbsolutePathPrinter).print_item_path(def_id);
|
||||
let names = PrintCx::new(tcx, AbsolutePathPrinter)
|
||||
.print_item_path(def_id, None, Namespace::TypeNS);
|
||||
|
||||
hir::Path {
|
||||
span: DUMMY_SP,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue