mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
80ba06d9a2
Pure refactor. Rename `bump.rs` to `arena.rs`, and rename `bump` tests directory to `arena` - in line with renaming `Bump` to `Arena` (#21394). No substantive changes, only renaming.
8 lines
219 B
Rust
8 lines
219 B
Rust
use oxc_allocator::arena::Arena;
|
|
|
|
#[test]
|
|
fn try_with_capacity_too_large() {
|
|
// Shouldn't panic even though the capacity is too large for a `Layout`.
|
|
let _ = Arena::try_with_capacity(isize::MAX as usize + 1);
|
|
}
|