@@ -315,10 +315,10 @@ fn literal_span() {
315
315
316
316
#[ cfg( span_locations) ]
317
317
{
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 ) ;
322
322
assert_eq ! ( subspan. unwrap( ) . source_text( ) . unwrap( ) , "." ) ;
323
323
}
324
324
@@ -416,11 +416,11 @@ testing 123
416
416
#[ test]
417
417
fn default_span ( ) {
418
418
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 ) ;
421
421
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 ) ;
424
424
let source_file = Span :: call_site ( ) . source_file ( ) ;
425
425
assert_eq ! ( source_file. path( ) . to_string_lossy( ) , "<unspecified>" ) ;
426
426
assert ! ( !source_file. is_real( ) ) ;
@@ -453,10 +453,10 @@ fn span_join() {
453
453
454
454
let start = joined1. unwrap ( ) . start ( ) ;
455
455
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 ) ;
460
460
461
461
assert_eq ! (
462
462
joined1. unwrap( ) . source_file( ) ,
@@ -701,12 +701,12 @@ fn check_spans_internal(ts: TokenStream, lines: &mut &[(usize, usize, usize, usi
701
701
* lines = rest;
702
702
703
703
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) ;
706
706
707
707
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) ;
710
710
711
711
if let TokenTree :: Group ( g) = i {
712
712
check_spans_internal ( g. stream ( ) . clone ( ) , lines) ;
0 commit comments