]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax_ext/deriving/generic/ty.rs
Auto merge of #30457 - Manishearth:rollup, r=Manishearth
[rust.git] / src / libsyntax_ext / deriving / generic / ty.rs
index 0c4a81361aef2568e3705b795d4bba9ae55149fa..10564b5f6985b7c407b2c05a9b4b9b758ed288f5 100644 (file)
@@ -19,7 +19,6 @@
 use syntax::ext::base::ExtCtxt;
 use syntax::ext::build::AstBuilder;
 use syntax::codemap::{Span,respan};
-use syntax::owned_slice::OwnedSlice;
 use syntax::parse::token::special_idents;
 use syntax::ptr::P;
 
@@ -209,7 +208,7 @@ fn mk_generics(lifetimes: Vec<ast::LifetimeDef>, ty_params: Vec<ast::TyParam>)
                -> Generics {
     Generics {
         lifetimes: lifetimes,
-        ty_params: OwnedSlice::from_vec(ty_params),
+        ty_params: P::from_vec(ty_params),
         where_clause: ast::WhereClause {
             id: ast::DUMMY_NODE_ID,
             predicates: Vec::new(),