Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crates/oxc_allocator/src/bump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ impl<const MIN_ALIGN: usize> Bump<MIN_ALIGN> {
pub fn iter_allocated_chunks(&mut self) -> ChunkIter<'_, MIN_ALIGN> {
// Safety: Ensured by mutable borrow of `self`.
let raw = unsafe { self.iter_allocated_chunks_raw() };
ChunkIter { raw, bump: PhantomData }
ChunkIter { raw }
}

/// Returns an iterator over raw pointers to chunks of allocated memory that
Expand Down Expand Up @@ -2441,7 +2441,6 @@ impl<const MIN_ALIGN: usize> Bump<MIN_ALIGN> {
#[derive(Debug)]
pub struct ChunkIter<'a, const MIN_ALIGN: usize = 1> {
raw: ChunkRawIter<'a, MIN_ALIGN>,
bump: PhantomData<&'a mut Bump>,
}

impl<'a, const MIN_ALIGN: usize> Iterator for ChunkIter<'a, MIN_ALIGN> {
Expand Down
Loading