diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-01-30 10:09:44 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-02-24 14:14:16 +0200 |
| commit | 004df413aa35b3d610faf231682cfbae5d4eeb46 (patch) | |
| tree | d78c535eed44d9f6056b7fc8775becf7fd896802 /src/libsyntax/parse/parser.rs | |
| parent | a817c69297dc2bfac4029410cc055d32022cea95 (diff) | |
| download | rust-004df413aa35b3d610faf231682cfbae5d4eeb46.tar.gz rust-004df413aa35b3d610faf231682cfbae5d4eeb46.zip | |
syntax: don't use TraitRef in QPath.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index bcef7238d7f..b2f59725855 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1525,13 +1525,13 @@ impl<'a> Parser<'a> { // QUALIFIED PATH `<TYPE as TRAIT_REF>::item` let self_type = self.parse_ty_sum(); self.expect_keyword(keywords::As); - let trait_ref = self.parse_trait_ref(); + let trait_path = self.parse_path(LifetimeAndTypesWithoutColons); self.expect(&token::Gt); self.expect(&token::ModSep); let item_name = self.parse_ident(); TyQPath(P(QPath { self_type: self_type, - trait_ref: P(trait_ref), + trait_path: trait_path, item_path: ast::PathSegment { identifier: item_name, parameters: ast::PathParameters::none() @@ -2220,7 +2220,7 @@ impl<'a> Parser<'a> { // QUALIFIED PATH `<TYPE as TRAIT_REF>::item::<'a, T>` let self_type = self.parse_ty_sum(); self.expect_keyword(keywords::As); - let trait_ref = self.parse_trait_ref(); + let trait_path = self.parse_path(LifetimeAndTypesWithoutColons); self.expect(&token::Gt); self.expect(&token::ModSep); let item_name = self.parse_ident(); @@ -2240,7 +2240,7 @@ impl<'a> Parser<'a> { let hi = self.span.hi; return self.mk_expr(lo, hi, ExprQPath(P(QPath { self_type: self_type, - trait_ref: P(trait_ref), + trait_path: trait_path, item_path: ast::PathSegment { identifier: item_name, parameters: parameters |
