You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZSTs should not be dropped as we may depend on their side-effects. Bumpalo does not drop ZSTs. If we add data to the type it is also not dropped.
use allocator_api2::alloc::Global;typeBump = bump_scope::Bump<Global,1,false>;// type Bump = bumpalo::Bump;#[test]fnmytest(){structDropEmit;implDropforDropEmit{fndrop(&mutself){println!("=== DROPEMIT DROPPED === SHOULD NOT HAPPEN");}}let store = Bump::new();println!("Allocating");let dropemit = store.alloc(DropEmit);println!("Right after allocation");
dropemit.into_raw();}
The text was updated successfully, but these errors were encountered:
ZSTs should not be dropped as we may depend on their side-effects. Bumpalo does not drop ZSTs. If we add data to the type it is also not dropped.
The text was updated successfully, but these errors were encountered: