Add a FIXME relating to using ast::Name
This commit is contained in:
@@ -36,6 +36,7 @@ pub enum Def {
|
|||||||
// A partially resolved path to an associated type `T::U` where `T` is a concrete
|
// 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 (indicated by the DefId) which implements a trait which has an associated
|
||||||
// type `U` (indicated by the Ident).
|
// type `U` (indicated by the Ident).
|
||||||
|
// FIXME(#20301) -- should use Name
|
||||||
DefAssociatedPath(TyParamProvenance, ast::Ident),
|
DefAssociatedPath(TyParamProvenance, ast::Ident),
|
||||||
DefTrait(ast::DefId),
|
DefTrait(ast::DefId),
|
||||||
DefPrimTy(ast::PrimTy),
|
DefPrimTy(ast::PrimTy),
|
||||||
|
|||||||
@@ -992,7 +992,7 @@ fn qpath_to_ty<'tcx,AC,RS>(this: &AC,
|
|||||||
|
|
||||||
return this.projected_ty(ast_ty.span,
|
return this.projected_ty(ast_ty.span,
|
||||||
trait_ref,
|
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
|
// 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
|
this.tcx().types.err
|
||||||
}
|
}
|
||||||
def::DefAssociatedPath(provenance, assoc_ident) => {
|
def::DefAssociatedPath(provenance, assoc_ident) => {
|
||||||
// TODO update DefAssociatedPath to use name
|
|
||||||
associated_path_def_to_ty(this, ast_ty, provenance, assoc_ident.name)
|
associated_path_def_to_ty(this, ast_ty, provenance, assoc_ident.name)
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
@@ -764,7 +764,7 @@ pub enum Expr_ {
|
|||||||
pub struct QPath {
|
pub struct QPath {
|
||||||
pub self_type: P<Ty>,
|
pub self_type: P<Ty>,
|
||||||
pub trait_ref: P<TraitRef>,
|
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)]
|
#[deriving(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Show, Copy)]
|
||||||
|
|||||||
Reference in New Issue
Block a user