Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion crates/core/src/alloc/try_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ impl_try_clone_via_clone! {
std::hash::RandomState
}

#[cfg(not(feature = "std"))]
impl_try_clone_via_clone! {
hashbrown::DefaultHashBuilder
}
2 changes: 2 additions & 0 deletions crates/environ/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ mod ref_bits;
mod scopevec;
mod stack_map;
mod stack_switching;
mod string_pool;
mod trap_encoding;
mod tunables;
mod types;
Expand All @@ -57,6 +58,7 @@ pub use crate::ref_bits::*;
pub use crate::scopevec::ScopeVec;
pub use crate::stack_map::*;
pub use crate::stack_switching::*;
pub use crate::string_pool::{Atom, StringPool};
pub use crate::trap_encoding::*;
pub use crate::tunables::*;
pub use crate::types::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
//! Simple string interning.

use crate::{error::OutOfMemory, prelude::*};
use crate::{
collections::{HashMap, String, Vec},
error::OutOfMemory,
prelude::*,
};
use core::{fmt, mem, num::NonZeroU32};
use wasmtime_core::alloc::TryClone;
use wasmtime_environ::collections::{HashMap, String, Vec};

/// A pool of interned strings.
///
Expand Down
1 change: 0 additions & 1 deletion crates/wasmtime/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ pub(crate) mod module;
pub(crate) mod native_debug;
pub(crate) mod resources;
pub(crate) mod store;
pub(crate) mod string_pool;
pub(crate) mod trampoline;
pub(crate) mod trap;
pub(crate) mod type_registry;
Expand Down
3 changes: 1 addition & 2 deletions crates/wasmtime/src/runtime/linker.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::error::OutOfMemory;
use crate::func::HostFunc;
use crate::instance::InstancePre;
use crate::runtime::string_pool::{Atom, StringPool};
use crate::store::StoreOpaque;
use crate::{
AsContext, AsContextMut, Caller, Engine, Extern, ExternType, Func, FuncType, ImportType,
Expand All @@ -15,7 +14,7 @@ use core::marker;
use core::mem::MaybeUninit;
use log::warn;
use wasmtime_environ::{
PanicOnOom as _,
Atom, PanicOnOom as _, StringPool,
collections::{HashMap, TryClone},
};

Expand Down