Currently, miri reports a memory leak for a static with heap allocated data. This is somewhat expected, as statics don't run destructors and indeed leak memory. However, this is not error, and ideally shouldn't be reported by miri as such.
See matklad/once_cell@327f4e2 for an example.
Currently, miri reports a memory leak for a
staticwith heap allocated data. This is somewhat expected, as statics don't run destructors and indeed leak memory. However, this is not error, and ideally shouldn't be reported by miri as such.See matklad/once_cell@327f4e2 for an example.