Structural changes for associated constants

Introduces new variants and types in syntax::ast, middle::ty, and middle::def.
This commit is contained in:
Sean Patrick Santos
2015-03-14 12:05:00 -06:00
parent 21f278a687
commit b5499775d6
40 changed files with 418 additions and 245 deletions

View File

@@ -1236,6 +1236,7 @@ pub struct TraitItem {
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
pub enum TraitItem_ {
ConstTraitItem(P<Ty>, Option<P<Expr>>),
MethodTraitItem(MethodSig, Option<P<Block>>),
TypeTraitItem(TyParamBounds, Option<P<Ty>>),
}
@@ -1252,6 +1253,7 @@ pub struct ImplItem {
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
pub enum ImplItem_ {
ConstImplItem(P<Ty>, P<Expr>),
MethodImplItem(MethodSig, P<Block>),
TypeImplItem(P<Ty>),
MacImplItem(Mac),