Skip to content

Commit ae86b4e

Browse files
committed
Limit the stable allocator shims to internal use
1 parent bbcdf7c commit ae86b4e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/raw/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pub use self::inner::*;
1+
pub(crate) use self::inner::{do_alloc, Allocator, Global};
22

33
#[cfg(feature = "nightly")]
44
mod inner {
55
use crate::alloc::alloc::Layout;
6-
pub use crate::alloc::alloc::{AllocError, Allocator, Global};
6+
pub use crate::alloc::alloc::{Allocator, Global};
77
use core::ptr::NonNull;
88

99
#[allow(clippy::map_err_ignore)]

src/raw/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cfg_if! {
3232
}
3333

3434
mod alloc;
35-
pub use self::alloc::{do_alloc, AllocError, Allocator, Global};
35+
pub(crate) use self::alloc::{do_alloc, Allocator, Global};
3636

3737
mod bitmask;
3838

0 commit comments

Comments
 (0)