]> git.lizzy.rs Git - rust.git/commit
drive-by fix: scheduled drops are executed in reverse order.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 27 Apr 2015 14:08:30 +0000 (16:08 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 27 Apr 2015 14:08:30 +0000 (16:08 +0200)
commit24f213d0231c04c2bde1ca65bb5dc93df7c4aaa7
tree8283751cb3e9d53a0a55e0574db7d251d2f47508
parentb0a4808757fda7ae4d047e570f0936b969eb6e42
drive-by fix: scheduled drops are executed in reverse order.

That is, scheduled drops are executed in reverse order, so for
correctness, we *schedule* the lifetime end before we schedule the
drop, so that when they are executed, the drop will be executed
*before* the lifetime end.
src/librustc_trans/trans/_match.rs