@@ -685,7 +685,6 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
685685 continue ;
686686 }
687687
688- //let had_backticks = ori_link.contains("`");
689688 let link = ori_link. replace ( "`" , "" ) ;
690689 let parts = link. split ( '#' ) . collect :: < Vec < _ > > ( ) ;
691690 let ( link, extra_fragment) = if parts. len ( ) > 2 {
@@ -1053,7 +1052,7 @@ impl Disambiguator {
10531052 }
10541053
10551054 /// Return (description of the change, suggestion)
1056- fn display_for ( self , path_str : & str ) -> ( & ' static str , String ) {
1055+ fn suggestion_for ( self , path_str : & str ) -> ( & ' static str , String ) {
10571056 const PREFIX : & str = "prefix with the item kind" ;
10581057 const FUNCTION : & str = "add parentheses" ;
10591058 const MACRO : & str = "add an exclamation mark" ;
@@ -1308,7 +1307,7 @@ fn suggest_disambiguator(
13081307 sp : Option < rustc_span:: Span > ,
13091308 link_range : & Option < Range < usize > > ,
13101309) {
1311- let ( action, mut suggestion) = disambiguator. display_for ( path_str) ;
1310+ let ( action, mut suggestion) = disambiguator. suggestion_for ( path_str) ;
13121311 let help = format ! ( "to link to the {}, {}" , disambiguator. descr( ) , action) ;
13131312
13141313 if let Some ( sp) = sp {
0 commit comments