File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ impl JsonRenderer<'_> {
33
33
id : from_def_id ( def_id) ,
34
34
crate_id : def_id. krate . as_u32 ( ) ,
35
35
name : name. map ( |sym| sym. to_string ( ) ) ,
36
- source : self . convert_span ( span) ,
36
+ span : self . convert_span ( span) ,
37
37
visibility : self . convert_visibility ( visibility) ,
38
38
docs : attrs. collapsed_doc_value ( ) ,
39
39
links : attrs
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl JsonRenderer<'tcx> {
109
109
. map ( Clone :: clone) ,
110
110
visibility : types:: Visibility :: Public ,
111
111
inner : types:: ItemEnum :: Trait ( trait_item. clone ( ) . into ( ) ) ,
112
- source : None ,
112
+ span : None ,
113
113
docs : Default :: default ( ) ,
114
114
links : Default :: default ( ) ,
115
115
attrs : Default :: default ( ) ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pub struct Item {
64
64
pub name : Option < String > ,
65
65
/// The source location of this item (absent if it came from a macro expansion or inline
66
66
/// assembly).
67
- pub source : Option < Span > ,
67
+ pub span : Option < Span > ,
68
68
/// By default all documented items are public, but you can tell rustdoc to output private items
69
69
/// so this field is needed to differentiate.
70
70
pub visibility : Visibility ,
You can’t perform that action at this time.
0 commit comments