1
Fork 0

make clean::Item::span return option instead of dummy span

This commit is contained in:
Michael Goulet 2022-08-09 02:48:01 +00:00
parent 569788e47e
commit 752b0e0672
7 changed files with 40 additions and 30 deletions

View file

@ -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,