diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-03 15:29:29 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-03 15:55:58 -0800 |
| commit | eb793616dcf0b1e4cc416dea3bec0ef5b80834a9 (patch) | |
| tree | 5f05f6f406b139dc8b58271b806d0f4811e47d10 /src/libsyntax/parse | |
| parent | 8494368d568da3303179cf2d523fc673067540d4 (diff) | |
| parent | 3c84e317210d0eaa9014179c9a998449571ad8aa (diff) | |
| download | rust-eb793616dcf0b1e4cc416dea3bec0ef5b80834a9.tar.gz rust-eb793616dcf0b1e4cc416dea3bec0ef5b80834a9.zip | |
rollup merge of #18506 : nikomatsakis/assoc-type-bounds
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 5e18c6bae48..37b9a0793b4 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1229,16 +1229,13 @@ impl<'a> Parser<'a> { /// Parses `type Foo;` in a trait declaration only. The `type` keyword has /// already been parsed. fn parse_associated_type(&mut self, attrs: Vec<Attribute>) - -> AssociatedType { - let lo = self.span.lo; - let ident = self.parse_ident(); - let hi = self.span.hi; + -> AssociatedType + { + let ty_param = self.parse_ty_param(); self.expect(&token::Semi); AssociatedType { - id: ast::DUMMY_NODE_ID, - span: mk_sp(lo, hi), - ident: ident, attrs: attrs, + ty_param: ty_param, } } |
