1
Fork 0

rustc: move ty::print::PrintConfig's fields to FmtPrinter.

This commit is contained in:
Eduard-Mihai Burtescu 2019-01-20 19:46:47 +02:00
parent 1a0f3a2856
commit 381fa7aa18
8 changed files with 185 additions and 190 deletions

View file

@ -4312,9 +4312,9 @@ where F: Fn(DefId) -> Def {
}
}
let names = PrintCx::with(tcx, AbsolutePathPrinter, |cx| {
cx.print_def_path(def_id, None, iter::empty()).unwrap()
});
let names = PrintCx::new(tcx, AbsolutePathPrinter)
.print_def_path(def_id, None, iter::empty())
.unwrap();
hir::Path {
span: DUMMY_SP,