@@ -569,19 +569,18 @@ mod test {
569
569
let parser = string_to_parser(@~" b : int");
570
570
assert_eq!(parser.parse_arg_general(true),
571
571
ast::arg{
572
- mode: ast::infer(1),
573
572
is_mutbl: false,
574
- ty: @ast::Ty{id:4 , // fixme
573
+ ty: @ast::Ty{id:3 , // fixme
575
574
node: ast::ty_path(@ast::Path{
576
575
span:sp(4,4), // this is bizarre...
577
576
// check this in the original parser?
578
577
global:false,
579
578
idents:~[mk_ident(105)],
580
579
rp: None,
581
580
types: ~[]},
582
- 3 ),
581
+ 2 ),
583
582
span:sp(4,7)},
584
- pat: @ast::pat{id:2 ,
583
+ pat: @ast::pat{id:1 ,
585
584
node: ast::pat_ident(ast::bind_by_copy,
586
585
@ast::Path{
587
586
span:sp(0,1),
@@ -592,7 +591,7 @@ mod test {
592
591
None // no idea
593
592
),
594
593
span: sp(0,3)}, // really?
595
- id: 5 // fixme
594
+ id: 4 // fixme
596
595
})
597
596
}
598
597
@@ -604,21 +603,20 @@ mod test {
604
603
Some(
605
604
@ast::item{ident:mk_ident(100),
606
605
attrs:~[],
607
- id: 11 , // fixme
606
+ id: 10 , // fixme
608
607
node: ast::item_fn(ast::fn_decl{
609
608
inputs: ~[ast::arg{
610
- mode: ast::infer(1),
611
609
is_mutbl: false,
612
- ty: @ast::Ty{id:4 , // fixme
610
+ ty: @ast::Ty{id:3 , // fixme
613
611
node: ast::ty_path(@ast::Path{
614
612
span:sp(10,13),
615
613
global:false,
616
614
idents:~[mk_ident(106)],
617
615
rp: None,
618
616
types: ~[]},
619
- 3 ),
617
+ 2 ),
620
618
span:sp(10,13)},
621
- pat: @ast::pat{id:2 , // fixme
619
+ pat: @ast::pat{id:1 , // fixme
622
620
node: ast::pat_ident(
623
621
ast::bind_by_copy,
624
622
@ast::Path{
@@ -630,9 +628,9 @@ mod test {
630
628
None // no idea
631
629
),
632
630
span: sp(6,9)}, // bleah.
633
- id: 5 // fixme
631
+ id: 4 // fixme
634
632
}],
635
- output: @ast::Ty{id:6 , // fixme
633
+ output: @ast::Ty{id:5 , // fixme
636
634
node: ast::ty_nil,
637
635
span:sp(15,15)}, // not sure
638
636
cf: ast::return_val
@@ -649,8 +647,8 @@ mod test {
649
647
view_items: ~[],
650
648
stmts: ~[@spanned{
651
649
node: ast::stmt_semi(@ast::expr{
652
- id: 7 ,
653
- callee_id: 8 ,
650
+ id: 6 ,
651
+ callee_id: 7 ,
654
652
node: ast::expr_path(
655
653
@ast::Path{
656
654
span:sp(17,18),
@@ -659,10 +657,10 @@ mod test {
659
657
rp:None,
660
658
types: ~[]}),
661
659
span: sp(17,18)},
662
- 9 ), // fixme
660
+ 8 ), // fixme
663
661
span: sp(17,18)}],
664
662
expr: None,
665
- id: 10 , // fixme
663
+ id: 9 , // fixme
666
664
rules: ast::default_blk // no idea
667
665
}}),
668
666
vis: ast::inherited,
0 commit comments