Skip to content

Commit 789e34b

Browse files
authored
Bump to version 3.18.0 (#276)
* Fix rustc warning * Bump to version 3.18.0
1 parent b425081 commit 789e34b

4 files changed

Lines changed: 30 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,33 @@ Released YYYY-MM-DD.
2828

2929
--------------------------------------------------------------------------------
3030

31+
## 3.18.0
32+
33+
Released 2025-06-05.
34+
35+
### Added
36+
37+
* Added support for enforcing a minimum alignment on all allocations inside a
38+
`Bump` arena, which can provide speed ups when allocating objects whose
39+
alignment is less than or equal to that minimum.
40+
* Added `serde` serialization support for `bumpalo::collections::String`.
41+
* Added some missing fallible slice allocation function variants.
42+
43+
### Changed
44+
45+
* Replaced `extend_from_slice` implementation with a formally-verified version
46+
that is also faster and more-optimizable for LLVM.
47+
* Updated `allocator-api2` support to version `0.3.*`, which is semver
48+
compatible with the previous `0.2.*` version.
49+
50+
### Fixed
51+
52+
* Fixed a bug where the `allocated_bytes` metrics helper was accidentally
53+
including the size of `bumpalo`'s footer, rather than just reporting the
54+
user-allocated bytes.
55+
56+
--------------------------------------------------------------------------------
57+
3158
## 3.17.0
3259

3360
Released 2025-01-28.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "bumpalo"
1010
readme = "README.md"
1111
repository = "https://github.com/fitzgen/bumpalo"
1212
rust-version = "1.71.1"
13-
version = "3.17.0"
13+
version = "3.18.0"
1414

1515
[package.metadata.docs.rs]
1616
all-features = true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ and boxed values.
159159

160160
```toml
161161
[dependencies]
162-
bumpalo = { version = "3.9", features = ["collections", "boxed", "serde"] }
162+
bumpalo = { version = "3.18", features = ["collections", "boxed", "serde"] }
163163
```
164164

165165
```rust,ignore

src/collections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ impl<'bump, T: 'bump> Vec<'bump, T> {
15171517
/// Appends elements to `Self` from other buffer.
15181518
#[inline]
15191519
unsafe fn append_elements(&mut self, other: *const [T]) {
1520-
let count = (*other).len();
1520+
let count = (&(*other)).len();
15211521
self.reserve(count);
15221522
let len = self.len();
15231523
ptr::copy_nonoverlapping(other as *const T, self.as_mut_ptr().add(len), count);

0 commit comments

Comments
 (0)