@@ -256,7 +256,7 @@ impl Clean<Item> for doctree::Module<'_> {
256256
257257 // determine if we should display the inner contents or
258258 // the outer `mod` item for the source code.
259- let whence = {
259+ let span = {
260260 let sm = cx. sess ( ) . source_map ( ) ;
261261 let outer = sm. lookup_char_pos ( self . where_outer . lo ( ) ) ;
262262 let inner = sm. lookup_char_pos ( self . where_inner . lo ( ) ) ;
@@ -272,7 +272,7 @@ impl Clean<Item> for doctree::Module<'_> {
272272 Item {
273273 name : Some ( name) ,
274274 attrs,
275- source : whence . clean ( cx) ,
275+ source : span . clean ( cx) ,
276276 visibility : self . vis . clean ( cx) ,
277277 stability : cx. stability ( self . id ) . clean ( cx) ,
278278 deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -912,7 +912,7 @@ impl Clean<Item> for doctree::Function<'_> {
912912 Item {
913913 name : Some ( self . name . clean ( cx) ) ,
914914 attrs : self . attrs . clean ( cx) ,
915- source : self . whence . clean ( cx) ,
915+ source : self . span . clean ( cx) ,
916916 visibility : self . vis . clean ( cx) ,
917917 stability : cx. stability ( self . id ) . clean ( cx) ,
918918 deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -1020,7 +1020,7 @@ impl Clean<Item> for doctree::Trait<'_> {
10201020 Item {
10211021 name : Some ( self . name . clean ( cx) ) ,
10221022 attrs,
1023- source : self . whence . clean ( cx) ,
1023+ source : self . span . clean ( cx) ,
10241024 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
10251025 visibility : self . vis . clean ( cx) ,
10261026 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1044,7 +1044,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
10441044 Item {
10451045 name : Some ( self . name . clean ( cx) ) ,
10461046 attrs,
1047- source : self . whence . clean ( cx) ,
1047+ source : self . span . clean ( cx) ,
10481048 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
10491049 visibility : self . vis . clean ( cx) ,
10501050 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1830,7 +1830,7 @@ impl Clean<Item> for doctree::Struct<'_> {
18301830 Item {
18311831 name : Some ( self . name . clean ( cx) ) ,
18321832 attrs : self . attrs . clean ( cx) ,
1833- source : self . whence . clean ( cx) ,
1833+ source : self . span . clean ( cx) ,
18341834 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
18351835 visibility : self . vis . clean ( cx) ,
18361836 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1850,7 +1850,7 @@ impl Clean<Item> for doctree::Union<'_> {
18501850 Item {
18511851 name : Some ( self . name . clean ( cx) ) ,
18521852 attrs : self . attrs . clean ( cx) ,
1853- source : self . whence . clean ( cx) ,
1853+ source : self . span . clean ( cx) ,
18541854 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
18551855 visibility : self . vis . clean ( cx) ,
18561856 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1880,7 +1880,7 @@ impl Clean<Item> for doctree::Enum<'_> {
18801880 Item {
18811881 name : Some ( self . name . clean ( cx) ) ,
18821882 attrs : self . attrs . clean ( cx) ,
1883- source : self . whence . clean ( cx) ,
1883+ source : self . span . clean ( cx) ,
18841884 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
18851885 visibility : self . vis . clean ( cx) ,
18861886 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1899,7 +1899,7 @@ impl Clean<Item> for doctree::Variant<'_> {
18991899 Item {
19001900 name : Some ( self . name . clean ( cx) ) ,
19011901 attrs : self . attrs . clean ( cx) ,
1902- source : self . whence . clean ( cx) ,
1902+ source : self . span . clean ( cx) ,
19031903 visibility : Inherited ,
19041904 stability : cx. stability ( self . id ) . clean ( cx) ,
19051905 deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -2047,7 +2047,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
20472047 Item {
20482048 name : Some ( self . name . clean ( cx) ) ,
20492049 attrs : self . attrs . clean ( cx) ,
2050- source : self . whence . clean ( cx) ,
2050+ source : self . span . clean ( cx) ,
20512051 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
20522052 visibility : self . vis . clean ( cx) ,
20532053 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2062,7 +2062,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
20622062 Item {
20632063 name : Some ( self . name . clean ( cx) ) ,
20642064 attrs : self . attrs . clean ( cx) ,
2065- source : self . whence . clean ( cx) ,
2065+ source : self . span . clean ( cx) ,
20662066 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
20672067 visibility : self . vis . clean ( cx) ,
20682068 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2093,7 +2093,7 @@ impl Clean<Item> for doctree::Static<'_> {
20932093 Item {
20942094 name : Some ( self . name . clean ( cx) ) ,
20952095 attrs : self . attrs . clean ( cx) ,
2096- source : self . whence . clean ( cx) ,
2096+ source : self . span . clean ( cx) ,
20972097 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
20982098 visibility : self . vis . clean ( cx) ,
20992099 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2114,7 +2114,7 @@ impl Clean<Item> for doctree::Constant<'_> {
21142114 Item {
21152115 name : Some ( self . name . clean ( cx) ) ,
21162116 attrs : self . attrs . clean ( cx) ,
2117- source : self . whence . clean ( cx) ,
2117+ source : self . span . clean ( cx) ,
21182118 def_id : def_id. to_def_id ( ) ,
21192119 visibility : self . vis . clean ( cx) ,
21202120 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2168,7 +2168,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
21682168 let make_item = |trait_ : Option < Type > , for_ : Type , items : Vec < Item > | Item {
21692169 name : None ,
21702170 attrs : self . attrs . clean ( cx) ,
2171- source : self . whence . clean ( cx) ,
2171+ source : self . span . clean ( cx) ,
21722172 def_id : def_id. to_def_id ( ) ,
21732173 visibility : self . vis . clean ( cx) ,
21742174 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2219,7 +2219,7 @@ impl Clean<Vec<Item>> for doctree::ExternCrate<'_> {
22192219 vec ! [ Item {
22202220 name: None ,
22212221 attrs: self . attrs. clean( cx) ,
2222- source: self . whence . clean( cx) ,
2222+ source: self . span . clean( cx) ,
22232223 def_id: DefId { krate: self . cnum, index: CRATE_DEF_INDEX } ,
22242224 visibility: self . vis. clean( cx) ,
22252225 stability: None ,
@@ -2284,7 +2284,7 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
22842284 vec ! [ Item {
22852285 name: None ,
22862286 attrs: self . attrs. clean( cx) ,
2287- source: self . whence . clean( cx) ,
2287+ source: self . span . clean( cx) ,
22882288 def_id: DefId :: local( CRATE_DEF_INDEX ) ,
22892289 visibility: self . vis. clean( cx) ,
22902290 stability: None ,
@@ -2326,7 +2326,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
23262326 Item {
23272327 name : Some ( self . name . clean ( cx) ) ,
23282328 attrs : self . attrs . clean ( cx) ,
2329- source : self . whence . clean ( cx) ,
2329+ source : self . span . clean ( cx) ,
23302330 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
23312331 visibility : self . vis . clean ( cx) ,
23322332 stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2342,7 +2342,7 @@ impl Clean<Item> for doctree::Macro<'_> {
23422342 Item {
23432343 name : Some ( name. clone ( ) ) ,
23442344 attrs : self . attrs . clean ( cx) ,
2345- source : self . whence . clean ( cx) ,
2345+ source : self . span . clean ( cx) ,
23462346 visibility : Public ,
23472347 stability : cx. stability ( self . hid ) . clean ( cx) ,
23482348 deprecation : cx. deprecation ( self . hid ) . clean ( cx) ,
@@ -2367,7 +2367,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
23672367 Item {
23682368 name : Some ( self . name . clean ( cx) ) ,
23692369 attrs : self . attrs . clean ( cx) ,
2370- source : self . whence . clean ( cx) ,
2370+ source : self . span . clean ( cx) ,
23712371 visibility : Public ,
23722372 stability : cx. stability ( self . id ) . clean ( cx) ,
23732373 deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
0 commit comments