From be9c30902dd76bc373a67d3d687de2617c73052c Mon Sep 17 00:00:00 2001 From: Zakarum Date: Thu, 11 Dec 2025 13:23:35 +0100 Subject: [PATCH 1/3] Update allocator-api2 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6f2578d..ba72cfe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ harness = false # This dependency provides a version of the unstable nightly Rust `Allocator` # trait on stable Rust. Enabling this feature means that `bumpalo` will # implement its `Allocator` trait. -allocator-api2 = { version = "0.2.8", default-features = false, optional = true } +allocator-api2 = { version = "0.4.0", default-features = false, optional = true } # This dependency is here to allow integration with Serde, if the `serde` feature is enabled serde = { version = "1.0.171", optional = true } From 30d65d191e895189e366d5c8af42c115771daaec Mon Sep 17 00:00:00 2001 From: Zakarum Date: Thu, 11 Dec 2025 14:06:00 +0100 Subject: [PATCH 2/3] Fix method resolution error --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ed674bb..b816fbe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2471,9 +2471,9 @@ unsafe impl<'a, const MIN_ALIGN: usize> alloc::Alloc for &'a Bump { let new_layout = layout_from_size_align(new_size, layout.align())?; if new_size <= old_size { - self.shrink(ptr, layout, new_layout) + Bump::::shrink(self, ptr, layout, new_layout) } else { - self.grow(ptr, layout, new_layout) + Bump::::grow(self, ptr, layout, new_layout) } } } From 0139e24a1969e1229e0ec6965ea030d7d0222ca8 Mon Sep 17 00:00:00 2001 From: Zakarum Date: Thu, 11 Dec 2025 14:20:39 +0100 Subject: [PATCH 3/3] Update blink-alloc dependency to version 0.4 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ba72cfe..ad9f240 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ criterion = "0.3.6" rand = "0.8.5" serde = { version = "1.0.197", features = ["derive"] } serde_json = "1.0.115" -blink-alloc = { version = "=0.3.1" } +blink-alloc = { version = "=0.4" } # Make sure that criterion pulls in a rayon that supports our MSRV. rayon = { version = "=1.10.0" }