@@ -42,7 +42,6 @@ use syntax::abi::Abi;
42
42
use syntax:: ast:: { Name , Ident , NodeId , DUMMY_NODE_ID , TokenTree , AsmDialect } ;
43
43
use syntax:: ast:: { Attribute , Lit , StrStyle , FloatTy , IntTy , UintTy , MetaItem } ;
44
44
use syntax:: attr:: ThinAttributes ;
45
- use syntax:: owned_slice:: OwnedSlice ;
46
45
use syntax:: parse:: token:: InternedString ;
47
46
use syntax:: ptr:: P ;
48
47
@@ -52,7 +51,7 @@ use util;
52
51
use std:: fmt;
53
52
use serialize:: { Encodable , Encoder , Decoder } ;
54
53
55
- pub type Vec < T > = OwnedSlice < T > ;
54
+ pub type Vec < T > = P < [ T ] > ;
56
55
57
56
macro_rules! hir_vec {
58
57
( $elem: expr; $n: expr) => (
@@ -139,8 +138,8 @@ impl PathParameters {
139
138
pub fn none ( ) -> PathParameters {
140
139
AngleBracketedParameters ( AngleBracketedParameterData {
141
140
lifetimes : Vec :: new ( ) ,
142
- types : OwnedSlice :: new ( ) ,
143
- bindings : OwnedSlice :: new ( ) ,
141
+ types : Vec :: new ( ) ,
142
+ bindings : Vec :: new ( ) ,
144
143
} )
145
144
}
146
145
@@ -213,10 +212,10 @@ pub struct AngleBracketedParameterData {
213
212
/// The lifetime parameters for this path segment.
214
213
pub lifetimes : Vec < Lifetime > ,
215
214
/// The type parameters for this path segment, if present.
216
- pub types : OwnedSlice < P < Ty > > ,
215
+ pub types : Vec < P < Ty > > ,
217
216
/// Bindings (equality constraints) on associated types, if present.
218
217
/// E.g., `Foo<A=Bar>`.
219
- pub bindings : OwnedSlice < TypeBinding > ,
218
+ pub bindings : Vec < TypeBinding > ,
220
219
}
221
220
222
221
impl AngleBracketedParameterData {
@@ -256,7 +255,7 @@ pub enum TraitBoundModifier {
256
255
Maybe ,
257
256
}
258
257
259
- pub type TyParamBounds = OwnedSlice < TyParamBound > ;
258
+ pub type TyParamBounds = Vec < TyParamBound > ;
260
259
261
260
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
262
261
pub struct TyParam {
@@ -272,7 +271,7 @@ pub struct TyParam {
272
271
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
273
272
pub struct Generics {
274
273
pub lifetimes : Vec < LifetimeDef > ,
275
- pub ty_params : OwnedSlice < TyParam > ,
274
+ pub ty_params : Vec < TyParam > ,
276
275
pub where_clause : WhereClause ,
277
276
}
278
277
@@ -315,7 +314,7 @@ pub struct WhereBoundPredicate {
315
314
/// The type being bounded
316
315
pub bounded_ty : P < Ty > ,
317
316
/// Trait and lifetime bounds (`Clone+Send+'static`)
318
- pub bounds : OwnedSlice < TyParamBound > ,
317
+ pub bounds : TyParamBounds ,
319
318
}
320
319
321
320
/// A lifetime predicate, e.g. `'a: 'b+'c`
0 commit comments