about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-10 08:28:02 -0700
committerbors <bors@rust-lang.org>2013-04-10 08:28:02 -0700
commitac9dc69bf3c0e4c46fadeab76229ba35f61d8158 (patch)
tree7583fe26dbee8952573b38dff904ccda2c7ec566 /src/rustllvm/RustWrapper.cpp
parent5d01f649b4cda55cb6ec358d0e2685c9901f62a1 (diff)
parent5606fc0c90461db40faeca16d7bffd9e61c2be73 (diff)
downloadrust-ac9dc69bf3c0e4c46fadeab76229ba35f61d8158.tar.gz
rust-ac9dc69bf3c0e4c46fadeab76229ba35f61d8158.zip
auto merge of #5796 : nikomatsakis/rust/issue-5656-fix-map-iteration, r=nikomatsakis
Revert map.each to something which takes two parameters rather than a tuple.  The current setup iterates over `BaseIter<(&'self K, &'self V)>` where 'self is a lifetime declared *in the `each()` method*.  You can't place such a type in the impl declaration.  The compiler currently allows it, but this will not be legal under #5656 and I'm pretty sure it's not sound now.  It's too bad that maps can't implement `BaseIter` (at least not over a tuple as they do here) but I think it has to be this way for the time being.

r? @thestinger
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions