Commit 1dad80a9 authored by Jorge Aparicio's avatar Jorge Aparicio Committed by ticki
Browse files

fix the build (#42)

* 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
parent 8523d5df
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment