rustc: slice substs in ty::print instead of passing the full ones.

This commit is contained in:
Eduard-Mihai Burtescu 2019-01-29 07:21:11 +02:00
parent 9df7c3f48f
commit 8619edede1
10 changed files with 77 additions and 86 deletions

View file

@ -4322,7 +4322,7 @@ pub fn get_path_for_type(
}
let names = AbsolutePathPrinter { tcx: tcx.global_tcx() }
.print_def_path(def_id, None)
.print_def_path(def_id, &[])
.unwrap();
hir::Path {