make clean::Item::span return option instead of dummy span
This commit is contained in:
parent
569788e47e
commit
752b0e0672
7 changed files with 40 additions and 30 deletions
|
@ -59,7 +59,7 @@ impl JsonRenderer<'_> {
|
|||
id: from_item_id_with_name(item_id, self.tcx, name),
|
||||
crate_id: item_id.krate().as_u32(),
|
||||
name: name.map(|sym| sym.to_string()),
|
||||
span: self.convert_span(span),
|
||||
span: span.and_then(|span| self.convert_span(span)),
|
||||
visibility: self.convert_visibility(visibility),
|
||||
docs,
|
||||
attrs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue