Skip to content

Commit bb6d3e8

Browse files
committed
Use bumpalo in tests, blink-alloc's MSRV is 1.65
But only with nightly feature now
1 parent 33a0882 commit bb6d3e8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ rayon = "1.0"
3535
fnv = "1.0.7"
3636
serde_test = "1.0"
3737
doc-comment = "0.3.1"
38-
blink-alloc = "0.3.0"
38+
bumpalo = "3.6.0"
3939

4040
[features]
4141
default = ["ahash", "inline-more", "allocator-api2"]
4242

4343
nightly-base = [] # non-public feature to use nightly features without depending on `allocator-api2`
4444

45-
nightly = ["allocator-api2/nightly", "nightly-base", "blink-alloc/nightly"]
45+
nightly = ["allocator-api2/nightly", "nightly-base", "bumpalo/allocator_api"]
4646

4747
rustc-internal-api = []
4848
rustc-dep-of-std = [

src/map.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,13 @@ impl<K, V, A: Allocator + Clone> HashMap<K, V, DefaultHashBuilder, A> {
368368
/// # Examples
369369
///
370370
/// ```
371-
/// # #[cfg(feature = "allocator-api2")]
371+
/// # #[cfg(feature = "nightly")]
372372
/// # fn test() {
373373
/// use hashbrown::HashMap;
374-
/// use blink_alloc::BlinkAlloc;
374+
/// use bumpalo::Bump;
375375
///
376-
/// let blink = BlinkAlloc::new();
377-
/// let mut map = HashMap::new_in(&blink);
376+
/// let bump = Bump::new();
377+
/// let mut map = HashMap::new_in(&bump);
378378
///
379379
/// // The created HashMap holds none elements
380380
/// assert_eq!(map.len(), 0);
@@ -419,13 +419,13 @@ impl<K, V, A: Allocator + Clone> HashMap<K, V, DefaultHashBuilder, A> {
419419
/// # Examples
420420
///
421421
/// ```
422-
/// # #[cfg(feature = "allocator-api2")]
422+
/// # #[cfg(feature = "nightly")]
423423
/// # fn test() {
424424
/// use hashbrown::HashMap;
425-
/// use blink_alloc::BlinkAlloc;
425+
/// use bumpalo::Bump;
426426
///
427-
/// let blink = BlinkAlloc::new();
428-
/// let mut map = HashMap::with_capacity_in(5, &blink);
427+
/// let bump = Bump::new();
428+
/// let mut map = HashMap::with_capacity_in(5, &bump);
429429
///
430430
/// // The created HashMap holds none elements
431431
/// assert_eq!(map.len(), 0);
@@ -446,7 +446,7 @@ impl<K, V, A: Allocator + Clone> HashMap<K, V, DefaultHashBuilder, A> {
446446
/// assert_eq!(map.capacity(), empty_map_capacity)
447447
/// # }
448448
/// # fn main() {
449-
/// # #[cfg(feature = "allocator-api2")]
449+
/// # #[cfg(feature = "nightly")]
450450
/// # test()
451451
/// # }
452452
/// ```

0 commit comments

Comments
 (0)