diff --git a/cranelift/bforest/src/map.rs b/cranelift/bforest/src/map.rs index fb7d4d9ddf..7d7e456623 100644 --- a/cranelift/bforest/src/map.rs +++ b/cranelift/bforest/src/map.rs @@ -6,7 +6,7 @@ use crate::packed_option::PackedOption; use core::fmt; use core::marker::PhantomData; #[cfg(test)] -use std::string::String; +use alloc::string::String; /// Tag type defining forest types for a map. struct MapTypes(PhantomData<(K, V)>);