about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-14 05:55:10 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-11-19 06:20:20 -0500
commit2477bc4451dc93b9e89c3e1e1621b4333675d94b (patch)
treeba2b7fe188d382f570c2cee6212fa4620f01543d /src/rustllvm/RustWrapper.cpp
parent0b6ec701974096b68e666693b8a750fb6a5d65c6 (diff)
downloadrust-2477bc4451dc93b9e89c3e1e1621b4333675d94b.tar.gz
rust-2477bc4451dc93b9e89c3e1e1621b4333675d94b.zip
Update libcollections tests to pass the new type rules. They used to return a pointer to the value they were modifying, but this should not have been legal, since that pointer would have to outlive the closure, and the closure continues to modify the value during the execution. This return value was just passed to `black_box` so as to convince llvm that the value was live, so rather than returning a pointer, modify to just call `black_box` directly inside the fn.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions