diff --git a/Cargo.toml b/Cargo.toml index 768870529..8c29cfc5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ rayon = "1.0" fnv = "1.0.7" serde_test = "1.0" doc-comment = "0.3.1" -bumpalo = "3.6.0" +bumpalo = { version = "3.13.0", features = ["allocator-api2"] } rkyv = { version = "0.7.42", features = ["validation"] } [features] diff --git a/src/map.rs b/src/map.rs index 27caef811..548ca0f9e 100644 --- a/src/map.rs +++ b/src/map.rs @@ -345,8 +345,6 @@ impl HashMap { /// # Examples /// /// ``` - /// # #[cfg(feature = "nightly")] - /// # fn test() { /// use hashbrown::HashMap; /// use bumpalo::Bump; /// @@ -365,11 +363,6 @@ impl HashMap { /// assert_eq!(map.len(), 1); /// // And it also allocates some capacity /// assert!(map.capacity() > 1); - /// # } - /// # fn main() { - /// # #[cfg(feature = "nightly")] - /// # test() - /// # } /// ``` #[cfg_attr(feature = "inline-more", inline)] pub fn new_in(alloc: A) -> Self { @@ -396,8 +389,6 @@ impl HashMap { /// # Examples /// /// ``` - /// # #[cfg(feature = "nightly")] - /// # fn test() { /// use hashbrown::HashMap; /// use bumpalo::Bump; /// @@ -421,11 +412,6 @@ impl HashMap { /// assert_eq!(map.len(), 5); /// // But its capacity isn't changed /// assert_eq!(map.capacity(), empty_map_capacity) - /// # } - /// # fn main() { - /// # #[cfg(feature = "nightly")] - /// # test() - /// # } /// ``` #[cfg_attr(feature = "inline-more", inline)] pub fn with_capacity_in(capacity: usize, alloc: A) -> Self {