Restructure AST so that the associated type definition carries

bounds like any other "type parameter".
This commit is contained in:
Niko Matsakis 2014-10-28 14:48:52 -04:00
parent 01b81c0ebb
commit 319d778ed3
13 changed files with 105 additions and 98 deletions

View file

@ -861,10 +861,8 @@ pub enum ImplItem {
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
pub struct AssociatedType {
pub id: NodeId,
pub span: Span,
pub ident: Ident,
pub attrs: Vec<Attribute>,
pub ty_param: TyParam,
}
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]