@@ -561,14 +561,14 @@ impl<'a> fmt::Display for HRef<'a> {
561
561
}
562
562
}
563
563
564
- fn fmt_type ( t : & clean:: Type , f : & mut fmt:: Formatter , full_path : bool ) -> fmt:: Result {
564
+ fn fmt_type ( t : & clean:: Type , f : & mut fmt:: Formatter , use_absolute : bool ) -> fmt:: Result {
565
565
match * t {
566
566
clean:: Generic ( ref name) => {
567
567
f. write_str ( name)
568
568
}
569
569
clean:: ResolvedPath { did, ref typarams, ref path, is_generic } => {
570
570
// Paths like T::Output and Self::Output should be rendered with all segments
571
- resolved_path ( f, did, path, is_generic, full_path ) ?;
571
+ resolved_path ( f, did, path, is_generic, use_absolute ) ?;
572
572
tybounds ( f, typarams)
573
573
}
574
574
clean:: Infer => write ! ( f, "_" ) ,
@@ -727,7 +727,7 @@ fn fmt_type(t: &clean::Type, f: &mut fmt::Formatter, full_path: bool) -> fmt::Re
727
727
write ! ( f, "{}::" , self_type) ?;
728
728
}
729
729
let path = clean:: Path :: singleton ( name. clone ( ) ) ;
730
- resolved_path ( f, did, & path, true , full_path ) ?;
730
+ resolved_path ( f, did, & path, true , use_absolute ) ?;
731
731
732
732
// FIXME: `typarams` are not rendered, and this seems bad?
733
733
drop ( typarams) ;
@@ -752,7 +752,10 @@ impl fmt::Display for clean::Type {
752
752
}
753
753
}
754
754
755
- fn fmt_impl ( i : & clean:: Impl , f : & mut fmt:: Formatter , link_trait : bool , full : bool ) -> fmt:: Result {
755
+ fn fmt_impl ( i : & clean:: Impl ,
756
+ f : & mut fmt:: Formatter ,
757
+ link_trait : bool ,
758
+ use_absolute : bool ) -> fmt:: Result {
756
759
let mut plain = String :: new ( ) ;
757
760
758
761
if f. alternate ( ) {
@@ -786,7 +789,7 @@ fn fmt_impl(i: &clean::Impl, f: &mut fmt::Formatter, link_trait: bool, full: boo
786
789
plain. push_str ( " for " ) ;
787
790
}
788
791
789
- fmt_type ( & i. for_ , f, full ) ?;
792
+ fmt_type ( & i. for_ , f, use_absolute ) ?;
790
793
plain. push_str ( & format ! ( "{:#}" , i. for_) ) ;
791
794
792
795
fmt:: Display :: fmt ( & WhereClause ( & i. generics , plain. len ( ) + 1 ) , f) ?;
@@ -802,8 +805,8 @@ impl fmt::Display for clean::Impl {
802
805
// The difference from above is that trait is not hyperlinked.
803
806
pub fn fmt_impl_for_trait_page ( i : & clean:: Impl ,
804
807
f : & mut fmt:: Formatter ,
805
- disambiguate : bool ) -> fmt:: Result {
806
- fmt_impl ( i, f, false , disambiguate )
808
+ use_absolute : bool ) -> fmt:: Result {
809
+ fmt_impl ( i, f, false , use_absolute )
807
810
}
808
811
809
812
impl fmt:: Display for clean:: Arguments {
0 commit comments