@@ -458,13 +458,13 @@ impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
458458
459459 src_hash. hash_stable ( hcx, hasher) ;
460460
461- // We only hash the relative position within this filemap
461+ // We only hash the relative position within this source_file
462462 lines. len ( ) . hash_stable ( hcx, hasher) ;
463463 for & line in lines. iter ( ) {
464464 stable_byte_pos ( line, start_pos) . hash_stable ( hcx, hasher) ;
465465 }
466466
467- // We only hash the relative position within this filemap
467+ // We only hash the relative position within this source_file
468468 multibyte_chars. len ( ) . hash_stable ( hcx, hasher) ;
469469 for & char_pos in multibyte_chars. iter ( ) {
470470 stable_multibyte_char ( char_pos, start_pos) . hash_stable ( hcx, hasher) ;
@@ -478,29 +478,29 @@ impl<'a> HashStable<StableHashingContext<'a>> for SourceFile {
478478}
479479
480480fn stable_byte_pos ( pos : :: syntax_pos:: BytePos ,
481- filemap_start : :: syntax_pos:: BytePos )
481+ source_file_start : :: syntax_pos:: BytePos )
482482 -> u32 {
483- pos. 0 - filemap_start . 0
483+ pos. 0 - source_file_start . 0
484484}
485485
486486fn stable_multibyte_char ( mbc : :: syntax_pos:: MultiByteChar ,
487- filemap_start : :: syntax_pos:: BytePos )
487+ source_file_start : :: syntax_pos:: BytePos )
488488 -> ( u32 , u32 ) {
489489 let :: syntax_pos:: MultiByteChar {
490490 pos,
491491 bytes,
492492 } = mbc;
493493
494- ( pos. 0 - filemap_start . 0 , bytes as u32 )
494+ ( pos. 0 - source_file_start . 0 , bytes as u32 )
495495}
496496
497497fn stable_non_narrow_char ( swc : :: syntax_pos:: NonNarrowChar ,
498- filemap_start : :: syntax_pos:: BytePos )
498+ source_file_start : :: syntax_pos:: BytePos )
499499 -> ( u32 , u32 ) {
500500 let pos = swc. pos ( ) ;
501501 let width = swc. width ( ) ;
502502
503- ( pos. 0 - filemap_start . 0 , width as u32 )
503+ ( pos. 0 - source_file_start . 0 , width as u32 )
504504}
505505
506506
0 commit comments