]> git.lizzy.rs Git - rust.git/commit
Added new kind of drop-glue that just drops the type's contents,
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 22 Apr 2015 09:52:08 +0000 (11:52 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 24 Apr 2015 07:38:55 +0000 (09:38 +0200)
commit8f987956b4d173c9af26fbf2aafcc661abcc14cb
treec7997f7c21c7d314d3e53f45bc90116c736bcc85
parentf7d9b439720fed4434a532244f0eb873cf14eb91
Added new kind of drop-glue that just drops the type's contents,
without invoking the Drop::drop implementation.

This is necessary for dealing with an enum that switches own `self` to
a different variant while running its destructor.

Fix #23611.
src/librustc_trans/trans/_match.rs
src/librustc_trans/trans/cleanup.rs
src/librustc_trans/trans/context.rs
src/librustc_trans/trans/glue.rs