bors 49ba513c78 auto merge of #12299 : sfackler/rust/limit-return, r=alexcrichton
This is useful in contexts like this:

```rust
let size = rdr.read_be_i32() as uint;
let mut limit = LimitReader::new(rdr.by_ref(), size);
let thing = read_a_thing(&mut limit);
assert!(limit.limit() == 0);
```
2014-02-15 18:56:29 -08:00
..
2014-02-14 23:49:22 -08:00
2014-02-14 23:49:22 -08:00
2014-02-11 20:18:34 -08:00
2014-02-15 12:11:41 -05:00