* fix the build the `unborrow!` macro is need in the block and bookkeeper modules * cfg(tls) away impl LocalAllocator as the struct LocalAllocator is not available when the tls feature is disabled
@@ -203,6 +203,7 @@ pub struct LocalAllocator {
inner: Bookkeeper,
}
+#[cfg(feature = "tls")]
impl LocalAllocator {
/// Initialize the local allocator.
#[cfg(feature = "tls")]
@@ -33,6 +33,9 @@ mod tls;
#[cfg(feature = "allocator")]
mod symbols;
+#[macro_use]
+mod unborrow;
+
mod allocator;
mod block;
mod bookkeeper;
@@ -44,7 +47,6 @@ mod leak;
mod prelude;
mod ptr;
mod sync;
-mod unborrow;
mod vec;
pub use allocator::{alloc, free, realloc, realloc_inplace};
@@ -37,7 +37,6 @@
///
/// # }
/// ```
-#[macro_export]
macro_rules! unborrow {
// =========================================================================================================
// PRIVATE RULES