File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -848,21 +848,21 @@ impl Clean<Attributes> for [ast::Attribute] {
848
848
"trait" , "union" ] . iter ( )
849
849
. find ( |p| link. starts_with ( * * p) ) {
850
850
kind = PathKind :: Type ;
851
- link. trim_left_matches ( prefix) . trim ( )
851
+ link. trim_left_matches ( prefix) . trim_left_matches ( '@' )
852
852
} else if let Some ( prefix) =
853
853
[ "const" , "static" ] . iter ( )
854
854
. find ( |p| link. starts_with ( * * p) ) {
855
855
kind = PathKind :: Value ;
856
- link. trim_left_matches ( prefix) . trim ( )
856
+ link. trim_left_matches ( prefix) . trim_left_matches ( '@' )
857
857
} else if link. ends_with ( "()" ) {
858
858
kind = PathKind :: Value ;
859
- link. trim_right_matches ( "()" ) . trim ( )
859
+ link. trim_right_matches ( "()" )
860
860
} else if link. ends_with ( '!' ) {
861
861
kind = PathKind :: Macro ;
862
- link. trim_right_matches ( '!' ) . trim ( )
862
+ link. trim_right_matches ( '!' )
863
863
} else {
864
- link. trim ( )
865
- } ;
864
+ & link[ .. ]
865
+ } . trim ( ) ;
866
866
867
867
// avoid resolving things (i.e. regular links) which aren't like paths
868
868
// FIXME(Manishearth) given that most links have slashes in them might be worth
You can’t perform that action at this time.
0 commit comments