fitzgen / bumpalo

A fast bump allocation arena for Rust
https://docs.rs/bumpalo
Apache License 2.0
1.36k stars 111 forks source link

`alloc::AllocErr` is not exported #139

Closed konsumlamm closed 2 years ago

konsumlamm commented 2 years ago

AllocErr itself is marked public, but the module it's in (alloc) isn't, so it isn't exported. However, AllocErr is used in a lot of places, e.g. AllocOrInitError::Alloc and Bump::try_alloc. This also breaks a bunch of links in the documentation.

AllocErr is just a unit struct that has no information attached, but it's still weird having a type in a pubic API that is not exported.