@@ -331,10 +331,10 @@ fn literal_span() {
331
331
332
332
#[ cfg( span_locations) ]
333
333
{
334
- assert_eq ! ( positive. span( ) . start( ) . column, 0 ) ;
335
- assert_eq ! ( positive. span( ) . end( ) . column, 3 ) ;
336
- assert_eq ! ( negative. span( ) . start( ) . column, 0 ) ;
337
- assert_eq ! ( negative. span( ) . end( ) . column, 4 ) ;
334
+ assert_eq ! ( positive. span( ) . start( ) . column( ) , 0 ) ;
335
+ assert_eq ! ( positive. span( ) . end( ) . column( ) , 3 ) ;
336
+ assert_eq ! ( negative. span( ) . start( ) . column( ) , 0 ) ;
337
+ assert_eq ! ( negative. span( ) . end( ) . column( ) , 4 ) ;
338
338
assert_eq ! ( subspan. unwrap( ) . source_text( ) . unwrap( ) , "." ) ;
339
339
}
340
340
@@ -432,11 +432,11 @@ testing 123
432
432
#[ test]
433
433
fn default_span ( ) {
434
434
let start = Span :: call_site ( ) . start ( ) ;
435
- assert_eq ! ( start. line, 1 ) ;
436
- assert_eq ! ( start. column, 0 ) ;
435
+ assert_eq ! ( start. line( ) , 1 ) ;
436
+ assert_eq ! ( start. column( ) , 0 ) ;
437
437
let end = Span :: call_site ( ) . end ( ) ;
438
- assert_eq ! ( end. line, 1 ) ;
439
- assert_eq ! ( end. column, 0 ) ;
438
+ assert_eq ! ( end. line( ) , 1 ) ;
439
+ assert_eq ! ( end. column( ) , 0 ) ;
440
440
let source_file = Span :: call_site ( ) . source_file ( ) ;
441
441
assert_eq ! ( source_file. path( ) . to_string_lossy( ) , "<unspecified>" ) ;
442
442
assert ! ( !source_file. is_real( ) ) ;
@@ -469,10 +469,10 @@ fn span_join() {
469
469
470
470
let start = joined1. unwrap ( ) . start ( ) ;
471
471
let end = joined1. unwrap ( ) . end ( ) ;
472
- assert_eq ! ( start. line, 1 ) ;
473
- assert_eq ! ( start. column, 0 ) ;
474
- assert_eq ! ( end. line, 2 ) ;
475
- assert_eq ! ( end. column, 3 ) ;
472
+ assert_eq ! ( start. line( ) , 1 ) ;
473
+ assert_eq ! ( start. column( ) , 0 ) ;
474
+ assert_eq ! ( end. line( ) , 2 ) ;
475
+ assert_eq ! ( end. column( ) , 3 ) ;
476
476
477
477
assert_eq ! (
478
478
joined1. unwrap( ) . source_file( ) ,
@@ -717,12 +717,12 @@ fn check_spans_internal(ts: TokenStream, lines: &mut &[(usize, usize, usize, usi
717
717
* lines = rest;
718
718
719
719
let start = i. span ( ) . start ( ) ;
720
- assert_eq ! ( start. line, sline, "sline did not match for {}" , i) ;
721
- assert_eq ! ( start. column, scol, "scol did not match for {}" , i) ;
720
+ assert_eq ! ( start. line( ) , sline, "sline did not match for {}" , i) ;
721
+ assert_eq ! ( start. column( ) , scol, "scol did not match for {}" , i) ;
722
722
723
723
let end = i. span ( ) . end ( ) ;
724
- assert_eq ! ( end. line, eline, "eline did not match for {}" , i) ;
725
- assert_eq ! ( end. column, ecol, "ecol did not match for {}" , i) ;
724
+ assert_eq ! ( end. line( ) , eline, "eline did not match for {}" , i) ;
725
+ assert_eq ! ( end. column( ) , ecol, "ecol did not match for {}" , i) ;
726
726
727
727
if let TokenTree :: Group ( g) = i {
728
728
check_spans_internal ( g. stream ( ) . clone ( ) , lines) ;
0 commit comments