diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-12-19 13:25:31 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-03-15 13:25:10 +0200 |
| commit | 9f8aaa04e02c74209e3ea355d8888cbc59a8fb64 (patch) | |
| tree | 3be028f8146429f1d5772abf9fee70e873bf62e0 /src/librustdoc | |
| parent | e0c75ff40def45bbf39bfed5766a1a8a56f2409f (diff) | |
| download | rust-9f8aaa04e02c74209e3ea355d8888cbc59a8fb64.tar.gz rust-9f8aaa04e02c74209e3ea355d8888cbc59a8fb64.zip | |
rustc: move the contents of ty::item_path to ty::print.
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 08d165b82b1..6cf8a9896d5 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -4225,12 +4225,11 @@ pub fn path_to_def(tcx: &TyCtxt<'_, '_, '_>, path: &[&str]) -> Option<DefId> { pub fn get_path_for_type<F>(tcx: TyCtxt<'_, '_, '_>, def_id: DefId, def_ctor: F) -> hir::Path where F: Fn(DefId) -> Def { - use rustc::ty::item_path::ItemPathPrinter; - use rustc::ty::print::PrintCx; + use rustc::ty::print::{PrintCx, Printer}; struct AbsolutePathPrinter; - impl ItemPathPrinter for AbsolutePathPrinter { + impl Printer for AbsolutePathPrinter { type Path = Vec<String>; fn path_crate(self: &mut PrintCx<'_, '_, '_, Self>, cnum: CrateNum) -> Self::Path { |
