]> git.lizzy.rs Git - rust.git/commit
bug fixes for issues 30018 and 30822.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 11 Jan 2016 17:23:22 +0000 (18:23 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 13 Jan 2016 13:02:06 +0000 (14:02 +0100)
commitf251ff4081dc89b984000547ec0903e845f14201
tree1d4a6e63b7424e89315577d5535477da382e04c3
parentcec7280bf367be9da472e02eba59b5440b5336c9
bug fixes for issues 30018 and 30822.

includes bugfixes pointed out during review:

 * Only `call_lifetime_start` for an alloca if the function entry does
   not itself initialize it to "dropped."

 * Remove `schedule_lifetime_end` after writing an *element* into a
   borrowed slice. (As explained by [dotdash][irc], "the lifetime end
   that is being removed was for an element in the slice, which is not
   an alloca of its own and has no lifetime start of its own")

[irc]: https://botbot.me/mozilla/rust-internals/2016-01-13/?msg=57844504&page=3
src/librustc_trans/trans/tvec.rs