@@ -42,7 +42,6 @@ use syntax::abi::Abi;
4242use syntax:: ast:: { Name , NodeId , DUMMY_NODE_ID , TokenTree , AsmDialect } ;
4343use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy , CrateConfig } ;
4444use syntax:: attr:: ThinAttributes ;
45- use syntax:: owned_slice:: OwnedSlice ;
4645use syntax:: parse:: token:: InternedString ;
4746use syntax:: ptr:: P ;
4847
@@ -193,8 +192,8 @@ impl PathParameters {
193192 pub fn none ( ) -> PathParameters {
194193 AngleBracketedParameters ( AngleBracketedParameterData {
195194 lifetimes : Vec :: new ( ) ,
196- types : OwnedSlice :: empty ( ) ,
197- bindings : OwnedSlice :: empty ( ) ,
195+ types : P :: empty ( ) ,
196+ bindings : P :: empty ( ) ,
198197 } )
199198 }
200199
@@ -267,10 +266,10 @@ pub struct AngleBracketedParameterData {
267266 /// The lifetime parameters for this path segment.
268267 pub lifetimes : Vec < Lifetime > ,
269268 /// The type parameters for this path segment, if present.
270- pub types : OwnedSlice < P < Ty > > ,
269+ pub types : P < [ P < Ty > ] > ,
271270 /// Bindings (equality constraints) on associated types, if present.
272271 /// E.g., `Foo<A=Bar>`.
273- pub bindings : OwnedSlice < TypeBinding > ,
272+ pub bindings : P < [ TypeBinding ] > ,
274273}
275274
276275impl AngleBracketedParameterData {
@@ -310,7 +309,7 @@ pub enum TraitBoundModifier {
310309 Maybe ,
311310}
312311
313- pub type TyParamBounds = OwnedSlice < TyParamBound > ;
312+ pub type TyParamBounds = P < [ TyParamBound ] > ;
314313
315314#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
316315pub struct TyParam {
@@ -326,7 +325,7 @@ pub struct TyParam {
326325#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
327326pub struct Generics {
328327 pub lifetimes : Vec < LifetimeDef > ,
329- pub ty_params : OwnedSlice < TyParam > ,
328+ pub ty_params : P < [ TyParam ] > ,
330329 pub where_clause : WhereClause ,
331330}
332331
@@ -369,7 +368,7 @@ pub struct WhereBoundPredicate {
369368 /// The type being bounded
370369 pub bounded_ty : P < Ty > ,
371370 /// Trait and lifetime bounds (`Clone+Send+'static`)
372- pub bounds : OwnedSlice < TyParamBound > ,
371+ pub bounds : TyParamBounds ,
373372}
374373
375374/// A lifetime predicate, e.g. `'a: 'b+'c`
0 commit comments