@@ -42,7 +42,6 @@ use syntax::abi::Abi;
4242use syntax:: ast:: { Name , Ident , NodeId , DUMMY_NODE_ID , TokenTree , AsmDialect } ;
4343use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy , MetaItem } ;
4444use syntax:: attr:: ThinAttributes ;
45- use syntax:: owned_slice:: OwnedSlice ;
4645use syntax:: parse:: token:: InternedString ;
4746use syntax:: ptr:: P ;
4847
@@ -52,7 +51,7 @@ use util;
5251use std:: fmt;
5352use serialize:: { Encodable , Encoder , Decoder } ;
5453
55- pub type Vec < T > = OwnedSlice < T > ;
54+ pub type Vec < T > = P < [ T ] > ;
5655
5756macro_rules! hir_vec {
5857 ( $elem: expr; $n: expr) => (
@@ -139,8 +138,8 @@ impl PathParameters {
139138 pub fn none ( ) -> PathParameters {
140139 AngleBracketedParameters ( AngleBracketedParameterData {
141140 lifetimes : Vec :: new ( ) ,
142- types : OwnedSlice :: new ( ) ,
143- bindings : OwnedSlice :: new ( ) ,
141+ types : Vec :: new ( ) ,
142+ bindings : Vec :: new ( ) ,
144143 } )
145144 }
146145
@@ -213,10 +212,10 @@ pub struct AngleBracketedParameterData {
213212 /// The lifetime parameters for this path segment.
214213 pub lifetimes : Vec < Lifetime > ,
215214 /// The type parameters for this path segment, if present.
216- pub types : OwnedSlice < P < Ty > > ,
215+ pub types : Vec < P < Ty > > ,
217216 /// Bindings (equality constraints) on associated types, if present.
218217 /// E.g., `Foo<A=Bar>`.
219- pub bindings : OwnedSlice < TypeBinding > ,
218+ pub bindings : Vec < TypeBinding > ,
220219}
221220
222221impl AngleBracketedParameterData {
@@ -256,7 +255,7 @@ pub enum TraitBoundModifier {
256255 Maybe ,
257256}
258257
259- pub type TyParamBounds = OwnedSlice < TyParamBound > ;
258+ pub type TyParamBounds = Vec < TyParamBound > ;
260259
261260#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
262261pub struct TyParam {
@@ -272,7 +271,7 @@ pub struct TyParam {
272271#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
273272pub struct Generics {
274273 pub lifetimes : Vec < LifetimeDef > ,
275- pub ty_params : OwnedSlice < TyParam > ,
274+ pub ty_params : Vec < TyParam > ,
276275 pub where_clause : WhereClause ,
277276}
278277
@@ -315,7 +314,7 @@ pub struct WhereBoundPredicate {
315314 /// The type being bounded
316315 pub bounded_ty : P < Ty > ,
317316 /// Trait and lifetime bounds (`Clone+Send+'static`)
318- pub bounds : OwnedSlice < TyParamBound > ,
317+ pub bounds : TyParamBounds ,
319318}
320319
321320/// A lifetime predicate, e.g. `'a: 'b+'c`
0 commit comments