From 6bd8ea1a6b88545e59442a3603f1b235cf57e3ba Mon Sep 17 00:00:00 2001 From: Sunjay Varma Date: Thu, 9 Nov 2017 18:15:02 -0500 Subject: Added run-pass tests for associated generic types --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') 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) - -> 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, -- cgit 1.4.1-3-g733a5