Skip to content

Commit e190983

Browse files
committed
Rename rustdoc_json_types::Item.source to span
1 parent 7dd475e commit e190983

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustdoc/json/conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl JsonRenderer<'_> {
3333
id: from_def_id(def_id),
3434
crate_id: def_id.krate.as_u32(),
3535
name: name.map(|sym| sym.to_string()),
36-
source: self.convert_span(span),
36+
span: self.convert_span(span),
3737
visibility: self.convert_visibility(visibility),
3838
docs: attrs.collapsed_doc_value(),
3939
links: attrs

src/librustdoc/json/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl JsonRenderer<'tcx> {
109109
.map(Clone::clone),
110110
visibility: types::Visibility::Public,
111111
inner: types::ItemEnum::Trait(trait_item.clone().into()),
112-
source: None,
112+
span: None,
113113
docs: Default::default(),
114114
links: Default::default(),
115115
attrs: Default::default(),

src/rustdoc-json-types/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub struct Item {
6464
pub name: Option<String>,
6565
/// The source location of this item (absent if it came from a macro expansion or inline
6666
/// assembly).
67-
pub source: Option<Span>,
67+
pub span: Option<Span>,
6868
/// By default all documented items are public, but you can tell rustdoc to output private items
6969
/// so this field is needed to differentiate.
7070
pub visibility: Visibility,

0 commit comments

Comments
 (0)