diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-08-19 17:24:04 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-08-27 18:47:57 -0700 |
| commit | 4f32a2d8540cc7534270be3a0aa33b830534a67b (patch) | |
| tree | 5eb9fcf39e8d43b19ab1ee030fb4802800d62d76 /src/libsyntax/parse/mod.rs | |
| parent | 5c9f5ec3975d54b59d3d4813063f87fb3f41d3f6 (diff) | |
| download | rust-4f32a2d8540cc7534270be3a0aa33b830534a67b.tar.gz rust-4f32a2d8540cc7534270be3a0aa33b830534a67b.zip | |
librustc: Fix merge fallout.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -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 |
