@@ -431,7 +431,7 @@ pub fn str_lit(lit: &str) -> String {
431
431
/// Eat everything up to a non-whitespace
432
432
fn eat < ' a > ( it : & mut iter:: Peekable < ( uint , char ) , str:: CharOffsets < ' a > > ) {
433
433
loop {
434
- match it. peek ( ) . map ( |x| x. val1 ( ) ) {
434
+ match it. peek ( ) . map ( |x| x. 1 ) {
435
435
Some ( ' ' ) | Some ( '\n' ) | Some ( '\r' ) | Some ( '\t' ) => {
436
436
it. next ( ) ;
437
437
} ,
@@ -448,15 +448,15 @@ pub fn str_lit(lit: &str) -> String {
448
448
'\\' => {
449
449
let ch = chars. peek ( ) . unwrap_or_else ( || {
450
450
panic ! ( "{}" , error( i) . as_slice( ) )
451
- } ) . val1 ( ) ;
451
+ } ) . 1 ;
452
452
453
453
if ch == '\n' {
454
454
eat ( & mut chars) ;
455
455
} else if ch == '\r' {
456
456
chars. next ( ) ;
457
457
let ch = chars. peek ( ) . unwrap_or_else ( || {
458
458
panic ! ( "{}" , error( i) . as_slice( ) )
459
- } ) . val1 ( ) ;
459
+ } ) . 1 ;
460
460
461
461
if ch != '\n' {
462
462
panic ! ( "lexer accepted bare CR" ) ;
@@ -474,7 +474,7 @@ pub fn str_lit(lit: &str) -> String {
474
474
'\r' => {
475
475
let ch = chars. peek ( ) . unwrap_or_else ( || {
476
476
panic ! ( "{}" , error( i) . as_slice( ) )
477
- } ) . val1 ( ) ;
477
+ } ) . 1 ;
478
478
479
479
if ch != '\n' {
480
480
panic ! ( "lexer accepted bare CR" ) ;
@@ -600,7 +600,7 @@ pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
600
600
/// Eat everything up to a non-whitespace
601
601
fn eat < ' a , I : Iterator < ( uint , u8 ) > > ( it : & mut iter:: Peekable < ( uint , u8 ) , I > ) {
602
602
loop {
603
- match it. peek ( ) . map ( |x| x. val1 ( ) ) {
603
+ match it. peek ( ) . map ( |x| x. 1 ) {
604
604
Some ( b' ' ) | Some ( b'\n' ) | Some ( b'\r' ) | Some ( b'\t' ) => {
605
605
it. next ( ) ;
606
606
} ,
@@ -615,11 +615,11 @@ pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
615
615
match chars. next ( ) {
616
616
Some ( ( i, b'\\' ) ) => {
617
617
let em = error ( i) ;
618
- match chars. peek ( ) . expect ( em. as_slice ( ) ) . val1 ( ) {
618
+ match chars. peek ( ) . expect ( em. as_slice ( ) ) . 1 {
619
619
b'\n' => eat ( & mut chars) ,
620
620
b'\r' => {
621
621
chars. next ( ) ;
622
- if chars. peek ( ) . expect ( em. as_slice ( ) ) . val1 ( ) != b'\n' {
622
+ if chars. peek ( ) . expect ( em. as_slice ( ) ) . 1 != b'\n' {
623
623
panic ! ( "lexer accepted bare CR" ) ;
624
624
}
625
625
eat ( & mut chars) ;
@@ -637,7 +637,7 @@ pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
637
637
} ,
638
638
Some ( ( i, b'\r' ) ) => {
639
639
let em = error ( i) ;
640
- if chars. peek ( ) . expect ( em. as_slice ( ) ) . val1 ( ) != b'\n' {
640
+ if chars. peek ( ) . expect ( em. as_slice ( ) ) . 1 != b'\n' {
641
641
panic ! ( "lexer accepted bare CR" ) ;
642
642
}
643
643
chars. next ( ) ;
0 commit comments