]> git.lizzy.rs Git - rust.git/commit
rustc: Fix an LLVM assertion that tripped when borrowing a by-val method receiver.
authorPatrick Walton <pcwalton@mimiga.net>
Mon, 3 Sep 2012 22:56:57 +0000 (15:56 -0700)
committerPatrick Walton <pcwalton@mimiga.net>
Mon, 3 Sep 2012 22:59:10 +0000 (15:59 -0700)
commit5573ad723fc73197889f5890dc9846ba107757d9
treead26e83a045d6948f568961e8e1979f469fe5948
parente767011b77c654d0a926e752de216661bc5b2c22
rustc: Fix an LLVM assertion that tripped when borrowing a by-val method receiver.

In certain lvalue code paths, the type of the borrowed value was not
being used to generate temporary spills. I'm a bit surprised we didn't
hit this sooner.
src/rustc/middle/trans/base.rs
src/test/run-pass/borrow-by-val-method-receiver.rs [new file with mode: 0644]