about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-04-07 22:32:49 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2014-04-09 09:57:49 +1000
commitd3c831ba4a4a2284f73e4f9147aa4900cab56815 (patch)
treebfd1846f8959003af8cec15f0275bebe62750221 /src/rustllvm/RustWrapper.cpp
parent8801d891c4674f335fcdc67cb34237902d89a5ec (diff)
downloadrust-d3c831ba4a4a2284f73e4f9147aa4900cab56815.tar.gz
rust-d3c831ba4a4a2284f73e4f9147aa4900cab56815.zip
std: use a `match` in `assert_eq!` to extend the lifetime of the args.
This enables

    assert_eq!(foo.collect::<Vec<...>>().as_slice(), &[1,2,3,4]);

to work, by extending the lifetime of the .as_slice() rvalue.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions