]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #6903 : dotdash/rust/self_by_value, r=catamorphism
authorbors <bors@rust-lang.org>
Mon, 3 Jun 2013 05:31:36 +0000 (22:31 -0700)
committerbors <bors@rust-lang.org>
Mon, 3 Jun 2013 05:31:36 +0000 (22:31 -0700)
For types that are passed by value, we can't just cast the value to a
pointer, but have to use an alloca and copy the value there. This
handling is already present for all other arguments, but was missing
for "self".

Fixes #6682 #4850 #4878


Trivial merge