Add a FIXME relating to using ast::Name

This commit is contained in:
Niko Matsakis 2014-12-29 11:00:56 -05:00
parent 7836c72eba
commit adca15a151
3 changed files with 3 additions and 3 deletions

View File

@ -36,6 +36,7 @@ pub enum Def {
// A partially resolved path to an associated type `T::U` where `T` is a concrete
// type (indicated by the DefId) which implements a trait which has an associated
// type `U` (indicated by the Ident).
// FIXME(#20301) -- should use Name
DefAssociatedPath(TyParamProvenance, ast::Ident),
DefTrait(ast::DefId),
DefPrimTy(ast::PrimTy),

View File

@ -992,7 +992,7 @@ fn qpath_to_ty<'tcx,AC,RS>(this: &AC,
return this.projected_ty(ast_ty.span,
trait_ref,
qpath.item_name.name); // TODO change qpath to use name
qpath.item_name.name);
}
// Parses the programmer's textual representation of a type into our
@ -1155,7 +1155,6 @@ pub fn ast_ty_to_ty<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(
this.tcx().types.err
}
def::DefAssociatedPath(provenance, assoc_ident) => {
// TODO update DefAssociatedPath to use name
associated_path_def_to_ty(this, ast_ty, provenance, assoc_ident.name)
}
_ => {

View File

@ -764,7 +764,7 @@ pub enum Expr_ {
pub struct QPath {
pub self_type: P<Ty>,
pub trait_ref: P<TraitRef>,
pub item_name: Ident,
pub item_name: Ident, // FIXME(#20301) -- should use Name
}
#[deriving(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Show, Copy)]