@@ -256,7 +256,7 @@ impl Clean<Item> for doctree::Module<'_> {
256
256
257
257
// determine if we should display the inner contents or
258
258
// the outer `mod` item for the source code.
259
- let whence = {
259
+ let span = {
260
260
let sm = cx. sess ( ) . source_map ( ) ;
261
261
let outer = sm. lookup_char_pos ( self . where_outer . lo ( ) ) ;
262
262
let inner = sm. lookup_char_pos ( self . where_inner . lo ( ) ) ;
@@ -272,7 +272,7 @@ impl Clean<Item> for doctree::Module<'_> {
272
272
Item {
273
273
name : Some ( name) ,
274
274
attrs,
275
- source : whence . clean ( cx) ,
275
+ source : span . clean ( cx) ,
276
276
visibility : self . vis . clean ( cx) ,
277
277
stability : cx. stability ( self . id ) . clean ( cx) ,
278
278
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -912,7 +912,7 @@ impl Clean<Item> for doctree::Function<'_> {
912
912
Item {
913
913
name : Some ( self . name . clean ( cx) ) ,
914
914
attrs : self . attrs . clean ( cx) ,
915
- source : self . whence . clean ( cx) ,
915
+ source : self . span . clean ( cx) ,
916
916
visibility : self . vis . clean ( cx) ,
917
917
stability : cx. stability ( self . id ) . clean ( cx) ,
918
918
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -1020,7 +1020,7 @@ impl Clean<Item> for doctree::Trait<'_> {
1020
1020
Item {
1021
1021
name : Some ( self . name . clean ( cx) ) ,
1022
1022
attrs,
1023
- source : self . whence . clean ( cx) ,
1023
+ source : self . span . clean ( cx) ,
1024
1024
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1025
1025
visibility : self . vis . clean ( cx) ,
1026
1026
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1044,7 +1044,7 @@ impl Clean<Item> for doctree::TraitAlias<'_> {
1044
1044
Item {
1045
1045
name : Some ( self . name . clean ( cx) ) ,
1046
1046
attrs,
1047
- source : self . whence . clean ( cx) ,
1047
+ source : self . span . clean ( cx) ,
1048
1048
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1049
1049
visibility : self . vis . clean ( cx) ,
1050
1050
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1830,7 +1830,7 @@ impl Clean<Item> for doctree::Struct<'_> {
1830
1830
Item {
1831
1831
name : Some ( self . name . clean ( cx) ) ,
1832
1832
attrs : self . attrs . clean ( cx) ,
1833
- source : self . whence . clean ( cx) ,
1833
+ source : self . span . clean ( cx) ,
1834
1834
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1835
1835
visibility : self . vis . clean ( cx) ,
1836
1836
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1850,7 +1850,7 @@ impl Clean<Item> for doctree::Union<'_> {
1850
1850
Item {
1851
1851
name : Some ( self . name . clean ( cx) ) ,
1852
1852
attrs : self . attrs . clean ( cx) ,
1853
- source : self . whence . clean ( cx) ,
1853
+ source : self . span . clean ( cx) ,
1854
1854
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1855
1855
visibility : self . vis . clean ( cx) ,
1856
1856
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1880,7 +1880,7 @@ impl Clean<Item> for doctree::Enum<'_> {
1880
1880
Item {
1881
1881
name : Some ( self . name . clean ( cx) ) ,
1882
1882
attrs : self . attrs . clean ( cx) ,
1883
- source : self . whence . clean ( cx) ,
1883
+ source : self . span . clean ( cx) ,
1884
1884
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
1885
1885
visibility : self . vis . clean ( cx) ,
1886
1886
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -1899,7 +1899,7 @@ impl Clean<Item> for doctree::Variant<'_> {
1899
1899
Item {
1900
1900
name : Some ( self . name . clean ( cx) ) ,
1901
1901
attrs : self . attrs . clean ( cx) ,
1902
- source : self . whence . clean ( cx) ,
1902
+ source : self . span . clean ( cx) ,
1903
1903
visibility : Inherited ,
1904
1904
stability : cx. stability ( self . id ) . clean ( cx) ,
1905
1905
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
@@ -2047,7 +2047,7 @@ impl Clean<Item> for doctree::Typedef<'_> {
2047
2047
Item {
2048
2048
name : Some ( self . name . clean ( cx) ) ,
2049
2049
attrs : self . attrs . clean ( cx) ,
2050
- source : self . whence . clean ( cx) ,
2050
+ source : self . span . clean ( cx) ,
2051
2051
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2052
2052
visibility : self . vis . clean ( cx) ,
2053
2053
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2062,7 +2062,7 @@ impl Clean<Item> for doctree::OpaqueTy<'_> {
2062
2062
Item {
2063
2063
name : Some ( self . name . clean ( cx) ) ,
2064
2064
attrs : self . attrs . clean ( cx) ,
2065
- source : self . whence . clean ( cx) ,
2065
+ source : self . span . clean ( cx) ,
2066
2066
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2067
2067
visibility : self . vis . clean ( cx) ,
2068
2068
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2093,7 +2093,7 @@ impl Clean<Item> for doctree::Static<'_> {
2093
2093
Item {
2094
2094
name : Some ( self . name . clean ( cx) ) ,
2095
2095
attrs : self . attrs . clean ( cx) ,
2096
- source : self . whence . clean ( cx) ,
2096
+ source : self . span . clean ( cx) ,
2097
2097
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2098
2098
visibility : self . vis . clean ( cx) ,
2099
2099
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2114,7 +2114,7 @@ impl Clean<Item> for doctree::Constant<'_> {
2114
2114
Item {
2115
2115
name : Some ( self . name . clean ( cx) ) ,
2116
2116
attrs : self . attrs . clean ( cx) ,
2117
- source : self . whence . clean ( cx) ,
2117
+ source : self . span . clean ( cx) ,
2118
2118
def_id : def_id. to_def_id ( ) ,
2119
2119
visibility : self . vis . clean ( cx) ,
2120
2120
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2168,7 +2168,7 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
2168
2168
let make_item = |trait_ : Option < Type > , for_ : Type , items : Vec < Item > | Item {
2169
2169
name : None ,
2170
2170
attrs : self . attrs . clean ( cx) ,
2171
- source : self . whence . clean ( cx) ,
2171
+ source : self . span . clean ( cx) ,
2172
2172
def_id : def_id. to_def_id ( ) ,
2173
2173
visibility : self . vis . clean ( cx) ,
2174
2174
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2219,7 +2219,7 @@ impl Clean<Vec<Item>> for doctree::ExternCrate<'_> {
2219
2219
vec ! [ Item {
2220
2220
name: None ,
2221
2221
attrs: self . attrs. clean( cx) ,
2222
- source: self . whence . clean( cx) ,
2222
+ source: self . span . clean( cx) ,
2223
2223
def_id: DefId { krate: self . cnum, index: CRATE_DEF_INDEX } ,
2224
2224
visibility: self . vis. clean( cx) ,
2225
2225
stability: None ,
@@ -2284,7 +2284,7 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2284
2284
vec ! [ Item {
2285
2285
name: None ,
2286
2286
attrs: self . attrs. clean( cx) ,
2287
- source: self . whence . clean( cx) ,
2287
+ source: self . span . clean( cx) ,
2288
2288
def_id: DefId :: local( CRATE_DEF_INDEX ) ,
2289
2289
visibility: self . vis. clean( cx) ,
2290
2290
stability: None ,
@@ -2326,7 +2326,7 @@ impl Clean<Item> for doctree::ForeignItem<'_> {
2326
2326
Item {
2327
2327
name : Some ( self . name . clean ( cx) ) ,
2328
2328
attrs : self . attrs . clean ( cx) ,
2329
- source : self . whence . clean ( cx) ,
2329
+ source : self . span . clean ( cx) ,
2330
2330
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) . to_def_id ( ) ,
2331
2331
visibility : self . vis . clean ( cx) ,
2332
2332
stability : cx. stability ( self . id ) . clean ( cx) ,
@@ -2342,7 +2342,7 @@ impl Clean<Item> for doctree::Macro<'_> {
2342
2342
Item {
2343
2343
name : Some ( name. clone ( ) ) ,
2344
2344
attrs : self . attrs . clean ( cx) ,
2345
- source : self . whence . clean ( cx) ,
2345
+ source : self . span . clean ( cx) ,
2346
2346
visibility : Public ,
2347
2347
stability : cx. stability ( self . hid ) . clean ( cx) ,
2348
2348
deprecation : cx. deprecation ( self . hid ) . clean ( cx) ,
@@ -2367,7 +2367,7 @@ impl Clean<Item> for doctree::ProcMacro<'_> {
2367
2367
Item {
2368
2368
name : Some ( self . name . clean ( cx) ) ,
2369
2369
attrs : self . attrs . clean ( cx) ,
2370
- source : self . whence . clean ( cx) ,
2370
+ source : self . span . clean ( cx) ,
2371
2371
visibility : Public ,
2372
2372
stability : cx. stability ( self . id ) . clean ( cx) ,
2373
2373
deprecation : cx. deprecation ( self . id ) . clean ( cx) ,
0 commit comments