diff options
| author | Sunjay Varma <varma.sunjay@gmail.com> | 2017-11-09 18:15:02 -0500 |
|---|---|---|
| committer | Sunjay Varma <varma.sunjay@gmail.com> | 2017-12-01 01:24:53 -0500 |
| commit | 6bd8ea1a6b88545e59442a3603f1b235cf57e3ba (patch) | |
| tree | 97cf4d058762be2c18b6aff64d481b23620edbb1 /src/libsyntax/parse/parser.rs | |
| parent | 19e25b61d10e359ab1ef0778eb12c33b3f3437fb (diff) | |
| download | rust-6bd8ea1a6b88545e59442a3603f1b235cf57e3ba.tar.gz rust-6bd8ea1a6b88545e59442a3603f1b235cf57e3ba.zip | |
Added run-pass tests for associated generic types
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index ad7d0d22f81..077e547e052 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4444,7 +4444,7 @@ impl<'a> Parser<'a> { } fn parse_trait_item_assoc_ty(&mut self, preceding_attrs: Vec<Attribute>) - -> PResult<'a, (Generics, TyParam)> { + -> PResult<'a, (ast::Generics, TyParam)> { let span = self.span; let ident = self.parse_ident()?; let mut generics = self.parse_generics()?; @@ -4463,7 +4463,7 @@ impl<'a> Parser<'a> { }; generics.where_clause = self.parse_where_clause()?; - Ok((Generics, TyParam { + Ok((generics, TyParam { attrs: preceding_attrs.into(), ident, id: ast::DUMMY_NODE_ID, |
