@@ -686,7 +686,7 @@ mod test {
686686 fn t7 ( ) {
687687 // Test span_to_lines for a span ending at the end of filemap
688688 let cm = init_code_map ( ) ;
689- let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_info : None } ;
689+ let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_id : NO_EXPANSION } ;
690690 let file_lines = cm. span_to_lines ( span) ;
691691
692692 assert_eq ! ( file_lines. file. name, "blork.rs" . to_string( ) ) ;
@@ -698,7 +698,7 @@ mod test {
698698 fn t8 ( ) {
699699 // Test span_to_snippet for a span ending at the end of filemap
700700 let cm = init_code_map ( ) ;
701- let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_info : None } ;
701+ let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_id : NO_EXPANSION } ;
702702 let snippet = cm. span_to_snippet ( span) ;
703703
704704 assert_eq ! ( snippet, Some ( "second line" . to_string( ) ) ) ;
@@ -708,7 +708,7 @@ mod test {
708708 fn t9 ( ) {
709709 // Test span_to_str for a span ending at the end of filemap
710710 let cm = init_code_map ( ) ;
711- let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_info : None } ;
711+ let span = Span { lo : BytePos ( 12 ) , hi : BytePos ( 23 ) , expn_id : NO_EXPANSION } ;
712712 let sstr = cm. span_to_string ( span) ;
713713
714714 assert_eq ! ( sstr, "blork.rs:2:1: 2:12" . to_string( ) ) ;
0 commit comments