We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c23ab commit 3071685Copy full SHA for 3071685
src/librustdoc/clean/types.rs
@@ -1852,6 +1852,10 @@ impl Span {
1852
self.0
1853
}
1854
1855
+ crate fn is_dummy(&self) -> bool {
1856
+ self.0.is_dummy()
1857
+ }
1858
+
1859
crate fn filename(&self, sess: &Session) -> FileName {
1860
sess.source_map().span_to_filename(self.0)
1861
src/librustdoc/html/render/mod.rs
@@ -1638,6 +1638,9 @@ impl Context<'_> {
1638
/// may happen, for example, with externally inlined items where the source
1639
/// of their crate documentation isn't known.
1640
fn src_href(&self, item: &clean::Item) -> Option<String> {
1641
+ if item.source.is_dummy() {
1642
+ return None;
1643
1644
let mut root = self.root_path();
1645
let mut path = String::new();
1646
let cnum = item.source.cnum(self.sess());
0 commit comments