Closed
Description
@nils-ohlmeier mentioned a leak coming from vec![f()?]
but not vec![f()?; 1]
here, I think I tracked this down to the use of box
in vec!
when given a comma-separated list.
I've made a smallish test that demonstrates it with stats_alloc
, if it gets much simpler than this then the leak doesn't occur when built with --release.
I'm testing on rustc 1.37.0-nightly (0af8e87 2019-06-30) nightly-x86_64-pc-windows-msvc, targeting x86_64-pc-windows-msvc.