@@ -50,7 +50,6 @@ use codemap::{Span, Spanned, DUMMY_SP, ExpnId};
50
50
use abi:: Abi ;
51
51
use ext:: base;
52
52
use ext:: tt:: macro_parser;
53
- use owned_slice:: OwnedSlice ;
54
53
use parse:: token:: { InternedString , str_to_ident} ;
55
54
use parse:: token;
56
55
use parse:: lexer;
@@ -261,8 +260,8 @@ impl PathParameters {
261
260
pub fn none ( ) -> PathParameters {
262
261
AngleBracketedParameters ( AngleBracketedParameterData {
263
262
lifetimes : Vec :: new ( ) ,
264
- types : OwnedSlice :: empty ( ) ,
265
- bindings : OwnedSlice :: empty ( ) ,
263
+ types : P :: empty ( ) ,
264
+ bindings : P :: empty ( ) ,
266
265
} )
267
266
}
268
267
@@ -334,10 +333,10 @@ pub struct AngleBracketedParameterData {
334
333
/// The lifetime parameters for this path segment.
335
334
pub lifetimes : Vec < Lifetime > ,
336
335
/// The type parameters for this path segment, if present.
337
- pub types : OwnedSlice < P < Ty > > ,
336
+ pub types : P < [ P < Ty > ] > ,
338
337
/// Bindings (equality constraints) on associated types, if present.
339
338
/// E.g., `Foo<A=Bar>`.
340
- pub bindings : OwnedSlice < P < TypeBinding > > ,
339
+ pub bindings : P < [ P < TypeBinding > ] > ,
341
340
}
342
341
343
342
impl AngleBracketedParameterData {
@@ -394,7 +393,7 @@ pub enum TraitBoundModifier {
394
393
Maybe ,
395
394
}
396
395
397
- pub type TyParamBounds = OwnedSlice < TyParamBound > ;
396
+ pub type TyParamBounds = P < [ TyParamBound ] > ;
398
397
399
398
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
400
399
pub struct TyParam {
@@ -410,7 +409,7 @@ pub struct TyParam {
410
409
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Debug ) ]
411
410
pub struct Generics {
412
411
pub lifetimes : Vec < LifetimeDef > ,
413
- pub ty_params : OwnedSlice < TyParam > ,
412
+ pub ty_params : P < [ TyParam ] > ,
414
413
pub where_clause : WhereClause ,
415
414
}
416
415
@@ -430,7 +429,7 @@ impl Default for Generics {
430
429
fn default ( ) -> Generics {
431
430
Generics {
432
431
lifetimes : Vec :: new ( ) ,
433
- ty_params : OwnedSlice :: empty ( ) ,
432
+ ty_params : P :: empty ( ) ,
434
433
where_clause : WhereClause {
435
434
id : DUMMY_NODE_ID ,
436
435
predicates : Vec :: new ( ) ,
@@ -466,7 +465,7 @@ pub struct WhereBoundPredicate {
466
465
/// The type being bounded
467
466
pub bounded_ty : P < Ty > ,
468
467
/// Trait and lifetime bounds (`Clone+Send+'static`)
469
- pub bounds : OwnedSlice < TyParamBound > ,
468
+ pub bounds : TyParamBounds ,
470
469
}
471
470
472
471
/// A lifetime predicate, e.g. `'a: 'b+'c`
0 commit comments