allocator-api2 icon indicating copy to clipboard operation
allocator-api2 copied to clipboard

Allow non-`Global` allocators in `vec![in Alloc; 1, 2, 3]`

Open jcallen opened this issue 1 year ago • 0 comments

Currently, the vec! macro effectively requires that the allocator always be Global when using the vec![in Alloc; 1, 2, 3] form, because it ends up calling Box::<[_]>::into_vec() (which is Box::<[_], Global>::into_vec()) instead of Box::<[_], _>::into_vec().

jcallen avatar Aug 30 '24 14:08 jcallen