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 {
18521852 self . 0
18531853 }
18541854
1855+ crate fn is_dummy ( & self ) -> bool {
1856+ self . 0 . is_dummy ( )
1857+ }
1858+
18551859 crate fn filename ( & self , sess : & Session ) -> FileName {
18561860 sess. source_map ( ) . span_to_filename ( self . 0 )
18571861 }
Original file line number Diff line number Diff line change @@ -1638,6 +1638,9 @@ impl Context<'_> {
16381638 /// may happen, for example, with externally inlined items where the source
16391639 /// of their crate documentation isn't known.
16401640 fn src_href ( & self , item : & clean:: Item ) -> Option < String > {
1641+ if item. source . is_dummy ( ) {
1642+ return None ;
1643+ }
16411644 let mut root = self . root_path ( ) ;
16421645 let mut path = String :: new ( ) ;
16431646 let cnum = item. source . cnum ( self . sess ( ) ) ;
You can’t perform that action at this time.
0 commit comments