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 4f10f67 commit 191e5b0Copy full SHA for 191e5b0
src/librustdoc/clean/mod.rs
@@ -854,6 +854,13 @@ impl Clean<Attributes> for [ast::Attribute] {
854
link.trim()
855
};
856
857
+ // avoid resolving things (i.e. regular links) which aren't like paths
858
+ // FIXME(Manishearth) given that most links have slashes in them might be worth
859
+ // doing a check for slashes first
860
+ if path_str.contains(|ch: char| !(ch.is_alphanumeric() || ch == ':' || ch == '_')) {
861
+ continue;
862
+ }
863
+
864
let resolve = |is_val| {
865
// In case we're in a module, try to resolve the relative
866
// path
0 commit comments