diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 1a7fc558dcd..81113f24329 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -372,7 +372,7 @@ mod test { ast::PathSegment { identifier: str_to_ident("a"), lifetime: None, - types: ~[], + types: opt_vec::Empty, } ], }), @@ -391,12 +391,12 @@ mod test { ast::PathSegment { identifier: str_to_ident("a"), lifetime: None, - types: ~[], + types: opt_vec::Empty, }, ast::PathSegment { identifier: str_to_ident("b"), lifetime: None, - types: ~[], + types: opt_vec::Empty, } ] }), @@ -509,48 +509,6 @@ mod test { parser_done(parser); } - #[test] fn parse_arg () { - let parser = string_to_parser(@"b : int"); - assert_eq!(parser.parse_arg_general(true), - ast::arg{ - is_mutbl: false, - ty: ast::Ty{id:3, // fixme - node: ast::ty_path(ast::Path{ - span:sp(4,4), // this is bizarre... - // check this in the original parser? - global:false, - segments: ~[ - ast::PathSegment { - identifier: - str_to_ident("int"), - lifetime: None, - types: opt_vec::Empty, - } - ], - }, None, 2), - span:sp(4,7)}, - pat: @ast::pat{id:1, - node: ast::pat_ident( - ast::bind_infer, - ast::Path { - span:sp(0,1), - global:false, - segments: ~[ - ast::PathSegment { - identifier: - str_to_ident("b"), - lifetime: None, - types: opt_vec::Empty, - } - ], - }, - None // no idea - ), - span: sp(0,1)}, - id: 4 // fixme - }) - } - // check the contents of the tt manually: #[test] fn parse_fundecl () { // this test depends on the intern order of "fn" and "int", and on the |
