@@ -14,8 +14,7 @@ use std::{
1414 slice:: SliceIndex ,
1515} ;
1616
17- use allocator_api2:: vec:: Vec as InnerVec ;
18- use bumpalo:: Bump ;
17+ use crate :: vec2:: Vec as InnerVec ;
1918#[ cfg( any( feature = "serialize" , test) ) ]
2019use oxc_estree:: { ESTree , Serializer as ESTreeSerializer } ;
2120#[ cfg( any( feature = "serialize" , test) ) ]
@@ -36,7 +35,7 @@ use crate::{Allocator, Box};
3635/// Static checks make this impossible to do. [`Vec::new_in`] and all other methods which create
3736/// a [`Vec`] will refuse to compile if called with a [`Drop`] type.
3837#[ derive( PartialEq , Eq ) ]
39- pub struct Vec < ' alloc , T > ( pub ( crate ) ManuallyDrop < InnerVec < T , & ' alloc Bump > > ) ;
38+ pub struct Vec < ' alloc , T > ( pub ( crate ) ManuallyDrop < InnerVec < ' alloc , T > > ) ;
4039
4140/// SAFETY: Not actually safe, but for enabling `Send` for downstream crates.
4241unsafe impl < T > Send for Vec < ' _ , T > { }
@@ -169,7 +168,7 @@ impl<'alloc, T> Vec<'alloc, T> {
169168}
170169
171170impl < ' alloc , T > ops:: Deref for Vec < ' alloc , T > {
172- type Target = InnerVec < T , & ' alloc Bump > ;
171+ type Target = InnerVec < ' alloc , T > ;
173172
174173 #[ inline]
175174 fn deref ( & self ) -> & Self :: Target {
@@ -179,13 +178,13 @@ impl<'alloc, T> ops::Deref for Vec<'alloc, T> {
179178
180179impl < ' alloc , T > ops:: DerefMut for Vec < ' alloc , T > {
181180 #[ inline]
182- fn deref_mut ( & mut self ) -> & mut InnerVec < T , & ' alloc Bump > {
181+ fn deref_mut ( & mut self ) -> & mut InnerVec < ' alloc , T > {
183182 & mut self . 0
184183 }
185184}
186185
187186impl < ' alloc , T > IntoIterator for Vec < ' alloc , T > {
188- type IntoIter = <InnerVec < T , & ' alloc Bump > as IntoIterator >:: IntoIter ;
187+ type IntoIter = <InnerVec < ' alloc , T > as IntoIterator >:: IntoIter ;
189188 type Item = T ;
190189
191190 #[ inline( always) ]
0 commit comments