rustc: move <...>-less impl path special-case to pretty_path_qualified.

This commit is contained in:
Eduard-Mihai Burtescu 2018-12-21 17:31:33 +02:00
parent a15bfc6f48
commit aec5a48481
4 changed files with 43 additions and 46 deletions

View file

@ -4239,6 +4239,7 @@ where F: Fn(DefId) -> Def {
self: &mut PrintCx<'_, '_, 'tcx, Self>,
self_ty: Ty<'tcx>,
trait_ref: Option<ty::TraitRef<'tcx>>,
_ns: Namespace,
) -> Self::Path {
// This shouldn't ever be needed, but just in case:
if let Some(trait_ref) = trait_ref {
@ -4247,9 +4248,6 @@ where F: Fn(DefId) -> Def {
vec![format!("<{}>", self_ty)]
}
}
fn path_impl(self: &mut PrintCx<'_, '_, '_, Self>, text: &str) -> Self::Path {
vec![text.to_string()]
}
fn path_append(
self: &mut PrintCx<'_, '_, '_, Self>,
mut path: Self::Path,