mirror of
https://github.com/urbit/ares.git
synced 2024-12-24 13:55:23 +03:00
main: make assert_no_alloc actually assert
This commit is contained in:
parent
c26fd83e27
commit
0f6d574526
@ -13,6 +13,12 @@ use std::mem;
|
||||
use std::ptr::copy_nonoverlapping;
|
||||
use std::ptr::write_bytes;
|
||||
|
||||
use assert_no_alloc::*;
|
||||
|
||||
#[cfg(debug_assertions)] // required when disable_release is set (default)
|
||||
#[global_allocator]
|
||||
static A: AllocDisabler = AllocDisabler;
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
let filename = env::args().nth(1).expect("Must provide input filename");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user