Stream: general

Topic: Destructor not called / compiler bug?

Diggory Blake (May 03 2020 at 14:34, on Zulip):

I found this strange behaviour where a local variable is not dropped when a destructor in the same scope panics: e362a94ef720b4e46c4393ec5db74b8e49c8ac589f254d4c408c9f3f4a3bd22bf21636e35b79752376326e895a448e5e9f4aedef3c4056c4a38911ed

Diggory Blake (May 03 2020 at 14:36, on Zulip):

it seems to only happen if the local will be returned from the function

Diggory Blake (May 03 2020 at 14:42, on Zulip):

ah there's already an issue

Last update: Jun 05 2020 at 22:35UTC