@@ -315,10 +315,10 @@ fn literal_span() {
315315
316316 #[ cfg( span_locations) ]
317317 {
318- assert_eq ! ( positive. span( ) . start( ) . column, 0 ) ;
319- assert_eq ! ( positive. span( ) . end( ) . column, 3 ) ;
320- assert_eq ! ( negative. span( ) . start( ) . column, 0 ) ;
321- assert_eq ! ( negative. span( ) . end( ) . column, 4 ) ;
318+ assert_eq ! ( positive. span( ) . start( ) . column( ) , 0 ) ;
319+ assert_eq ! ( positive. span( ) . end( ) . column( ) , 3 ) ;
320+ assert_eq ! ( negative. span( ) . start( ) . column( ) , 0 ) ;
321+ assert_eq ! ( negative. span( ) . end( ) . column( ) , 4 ) ;
322322 assert_eq ! ( subspan. unwrap( ) . source_text( ) . unwrap( ) , "." ) ;
323323 }
324324
@@ -416,11 +416,11 @@ testing 123
416416#[ test]
417417fn default_span ( ) {
418418 let start = Span :: call_site ( ) . start ( ) ;
419- assert_eq ! ( start. line, 1 ) ;
420- assert_eq ! ( start. column, 0 ) ;
419+ assert_eq ! ( start. line( ) , 1 ) ;
420+ assert_eq ! ( start. column( ) , 0 ) ;
421421 let end = Span :: call_site ( ) . end ( ) ;
422- assert_eq ! ( end. line, 1 ) ;
423- assert_eq ! ( end. column, 0 ) ;
422+ assert_eq ! ( end. line( ) , 1 ) ;
423+ assert_eq ! ( end. column( ) , 0 ) ;
424424 let source_file = Span :: call_site ( ) . source_file ( ) ;
425425 assert_eq ! ( source_file. path( ) . to_string_lossy( ) , "<unspecified>" ) ;
426426 assert ! ( !source_file. is_real( ) ) ;
@@ -453,10 +453,10 @@ fn span_join() {
453453
454454 let start = joined1. unwrap ( ) . start ( ) ;
455455 let end = joined1. unwrap ( ) . end ( ) ;
456- assert_eq ! ( start. line, 1 ) ;
457- assert_eq ! ( start. column, 0 ) ;
458- assert_eq ! ( end. line, 2 ) ;
459- assert_eq ! ( end. column, 3 ) ;
456+ assert_eq ! ( start. line( ) , 1 ) ;
457+ assert_eq ! ( start. column( ) , 0 ) ;
458+ assert_eq ! ( end. line( ) , 2 ) ;
459+ assert_eq ! ( end. column( ) , 3 ) ;
460460
461461 assert_eq ! (
462462 joined1. unwrap( ) . source_file( ) ,
@@ -701,12 +701,12 @@ fn check_spans_internal(ts: TokenStream, lines: &mut &[(usize, usize, usize, usi
701701 * lines = rest;
702702
703703 let start = i. span ( ) . start ( ) ;
704- assert_eq ! ( start. line, sline, "sline did not match for {}" , i) ;
705- assert_eq ! ( start. column, scol, "scol did not match for {}" , i) ;
704+ assert_eq ! ( start. line( ) , sline, "sline did not match for {}" , i) ;
705+ assert_eq ! ( start. column( ) , scol, "scol did not match for {}" , i) ;
706706
707707 let end = i. span ( ) . end ( ) ;
708- assert_eq ! ( end. line, eline, "eline did not match for {}" , i) ;
709- assert_eq ! ( end. column, ecol, "ecol did not match for {}" , i) ;
708+ assert_eq ! ( end. line( ) , eline, "eline did not match for {}" , i) ;
709+ assert_eq ! ( end. column( ) , ecol, "ecol did not match for {}" , i) ;
710710
711711 if let TokenTree :: Group ( g) = i {
712712 check_spans_internal ( g. stream ( ) . clone ( ) , lines) ;
0 commit comments