mirror of
https://github.com/bspeice/qadapt
synced 2025-07-01 05:46:16 -04:00
Final cleanup, time to commit
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
extern crate qadapt;
|
||||
|
||||
use qadapt::QADAPT;
|
||||
use qadapt::allocate_panic;
|
||||
use qadapt::QADAPT;
|
||||
|
||||
#[global_allocator]
|
||||
static Q: QADAPT = QADAPT;
|
||||
@ -9,7 +9,8 @@ static Q: QADAPT = QADAPT;
|
||||
#[allocate_panic]
|
||||
fn allocates() {
|
||||
assert_eq!(::qadapt::protection_level(), 1);
|
||||
let mut v = Vec::new();
|
||||
// Without boxing, release profile can actually optimize out the allocation
|
||||
let mut v = Box::new(Vec::new());
|
||||
v.push(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user