From 4f32a2d8540cc7534270be3a0aa33b830534a67b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 19 Aug 2013 17:24:04 -0700 Subject: librustc: Fix merge fallout. --- src/libsyntax/parse/mod.rs | 48 +++------------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) (limited to 'src/libsyntax/parse') 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 -- cgit 1.4.1-3-g733a5