File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1852,6 +1852,10 @@ impl Span {
1852
1852
self . 0
1853
1853
}
1854
1854
1855
+ crate fn is_dummy ( & self ) -> bool {
1856
+ self . 0 . is_dummy ( )
1857
+ }
1858
+
1855
1859
crate fn filename ( & self , sess : & Session ) -> FileName {
1856
1860
sess. source_map ( ) . span_to_filename ( self . 0 )
1857
1861
}
Original file line number Diff line number Diff line change @@ -1638,6 +1638,9 @@ impl Context<'_> {
1638
1638
/// may happen, for example, with externally inlined items where the source
1639
1639
/// of their crate documentation isn't known.
1640
1640
fn src_href ( & self , item : & clean:: Item ) -> Option < String > {
1641
+ if item. source . is_dummy ( ) {
1642
+ return None ;
1643
+ }
1641
1644
let mut root = self . root_path ( ) ;
1642
1645
let mut path = String :: new ( ) ;
1643
1646
let cnum = item. source . cnum ( self . sess ( ) ) ;
You can’t perform that action at this time.
0 commit comments