Skip to content

Commit e0ee455

Browse files
authored
Move wasmtime_environ::collections::Vec to wasmtime_core::alloc::Vec (#12448)
1 parent c3c2ee2 commit e0ee455

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/core/src/alloc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
mod arc;
44
mod boxed;
55
mod try_new;
6+
mod vec;
67

78
pub use boxed::{BoxedSliceFromIterError, new_boxed_slice_from_iter};
89
pub use try_new::{TryNew, try_new};
10+
pub use vec::Vec;
911

1012
use crate::error::OutOfMemory;
1113
use core::{alloc::Layout, ptr::NonNull};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::error::OutOfMemory;
2-
use alloc::vec::Vec as StdVec;
32
use core::{
43
fmt,
54
ops::{Deref, DerefMut, Index, IndexMut},
65
};
6+
use std_alloc::vec::Vec as StdVec;
77

88
/// Like `std::vec::Vec` but all methods that allocate force handling allocation
99
/// failure.

crates/environ/src/collections.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
33
mod entity_set;
44
mod primary_map;
5-
mod vec;
65

76
pub use entity_set::EntitySet;
87
pub use primary_map::PrimaryMap;
9-
pub use vec::Vec;
10-
pub use wasmtime_core::alloc::{TryNew, try_new};
8+
pub use wasmtime_core::alloc::{TryNew, Vec, try_new};

0 commit comments

Comments
 (0)