diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-05-19 00:54:23 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-05-19 00:54:23 +0200 |
commit | 85d52f3db69126ad9d374f03e32c22fded058570 (patch) | |
tree | e5b496ca74d01d0b3e56853181009549b1b76b0f /src/system_alloc.rs | |
parent | acafb83a63b4f99b3340b84d8e1ea3ba267bd80a (diff) | |
download | neco-85d52f3db69126ad9d374f03e32c22fded058570.tar neco-85d52f3db69126ad9d374f03e32c22fded058570.zip |
Fix --all-targets build
Diffstat (limited to 'src/system_alloc.rs')
-rw-r--r-- | src/system_alloc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/system_alloc.rs b/src/system_alloc.rs index ad1afcb..7c0bac9 100644 --- a/src/system_alloc.rs +++ b/src/system_alloc.rs @@ -15,6 +15,7 @@ unsafe impl alloc::alloc::GlobalAlloc for System { #[global_allocator] static SYSTEM_ALLOC: System = System; +#[cfg(not(test))] #[alloc_error_handler] fn alloc_error(_: core::alloc::Layout) -> ! { panic!("allocation failure"); |