File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -862,13 +862,17 @@ impl Clean<Attributes> for [ast::Attribute] {
862
862
kind = PathKind :: Type ;
863
863
link. trim_left_matches ( prefix)
864
864
} else if let Some ( prefix) =
865
- [ "const@" , "static@" ] . iter ( )
866
- . find ( |p| link. starts_with ( * * p) ) {
865
+ [ "const@" , "static@" ,
866
+ "value@" , "function@" ] . iter ( )
867
+ . find ( |p| link. starts_with ( * * p) ) {
867
868
kind = PathKind :: Value ;
868
869
link. trim_left_matches ( prefix)
869
870
} else if link. ends_with ( "()" ) {
870
871
kind = PathKind :: Value ;
871
872
link. trim_right_matches ( "()" )
873
+ } else if link. starts_with ( "macro@" ) {
874
+ kind = PathKind :: Macro ;
875
+ link. trim_left_matches ( "macro@" )
872
876
} else if link. ends_with ( '!' ) {
873
877
kind = PathKind :: Macro ;
874
878
link. trim_right_matches ( '!' )
You can’t perform that action at this time.
0 commit comments