File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments