@@ -685,7 +685,6 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
685
685
continue ;
686
686
}
687
687
688
- //let had_backticks = ori_link.contains("`");
689
688
let link = ori_link. replace ( "`" , "" ) ;
690
689
let parts = link. split ( '#' ) . collect :: < Vec < _ > > ( ) ;
691
690
let ( link, extra_fragment) = if parts. len ( ) > 2 {
@@ -1053,7 +1052,7 @@ impl Disambiguator {
1053
1052
}
1054
1053
1055
1054
/// 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 ) {
1057
1056
const PREFIX : & str = "prefix with the item kind" ;
1058
1057
const FUNCTION : & str = "add parentheses" ;
1059
1058
const MACRO : & str = "add an exclamation mark" ;
@@ -1308,7 +1307,7 @@ fn suggest_disambiguator(
1308
1307
sp : Option < rustc_span:: Span > ,
1309
1308
link_range : & Option < Range < usize > > ,
1310
1309
) {
1311
- let ( action, mut suggestion) = disambiguator. display_for ( path_str) ;
1310
+ let ( action, mut suggestion) = disambiguator. suggestion_for ( path_str) ;
1312
1311
let help = format ! ( "to link to the {}, {}" , disambiguator. descr( ) , action) ;
1313
1312
1314
1313
if let Some ( sp) = sp {
0 commit comments