rust-assert-no-alloc icon indicating copy to clipboard operation
rust-assert-no-alloc copied to clipboard

Fix nested assert_no_alloc and permit_alloc

Open robbert-vdh opened this issue 2 years ago • 0 comments

It should be possible to compose the functions so that assert_no_alloc(|| permit_alloc(|| assert_no_alloc(|| ...))) causes allocations in the ... part to trigger a panic.

robbert-vdh avatar Mar 03 '23 15:03 robbert-vdh