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 37c6f28 commit 27ca250Copy full SHA for 27ca250
src/librustdoc/html/render.rs
@@ -1489,9 +1489,11 @@ impl<'a> Item<'a> {
1489
true, |component| {
1490
path.push(component.to_string());
1491
});
1492
+
1493
// If the span points into an external macro the
1494
// source-file will be bogus, i.e `<foo macros>`
- if Path::new(&self.item.source.filename).is_file() {
1495
+ let filename = &self.item.source.filename;
1496
+ if !(filename.starts_with("<") && filename.ends_with("macros>")) {
1497
Some(format!("{root}src/{krate}/{path}.html#{href}",
1498
root = self.cx.root_path,
1499
krate = self.cx.layout.krate,
0 commit comments