We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1a449 commit 869dd91Copy full SHA for 869dd91
src/librustdoc/clean/mod.rs
@@ -862,13 +862,17 @@ impl Clean<Attributes> for [ast::Attribute] {
862
kind = PathKind::Type;
863
link.trim_left_matches(prefix)
864
} else if let Some(prefix) =
865
- ["const@", "static@"].iter()
866
- .find(|p| link.starts_with(**p)) {
+ ["const@", "static@",
+ "value@", "function@"].iter()
867
+ .find(|p| link.starts_with(**p)) {
868
kind = PathKind::Value;
869
870
} else if link.ends_with("()") {
871
872
link.trim_right_matches("()")
873
+ } else if link.starts_with("macro@") {
874
+ kind = PathKind::Macro;
875
+ link.trim_left_matches("macro@")
876
} else if link.ends_with('!') {
877
kind = PathKind::Macro;
878
link.trim_right_matches('!')
0 commit comments