Refactor QPath to take an ast::TraitRef

This commit is contained in:
Niko Matsakis
2014-11-08 06:59:10 -05:00
parent cf7df1e638
commit b64c7b83dd
16 changed files with 119 additions and 187 deletions

View File

@@ -706,11 +706,11 @@ pub enum Expr_ {
///
/// <Vec<T> as SomeTrait>::SomeAssociatedItem
/// ^~~~~ ^~~~~~~~~ ^~~~~~~~~~~~~~~~~~
/// for_type trait_name item_name
/// self_type trait_name item_name
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
pub struct QPath {
pub for_type: P<Ty>,
pub trait_name: Path,
pub self_type: P<Ty>,
pub trait_ref: P<TraitRef>,
pub item_name: Ident,
}