From: bors Date: Sun, 16 Feb 2014 02:56:29 +0000 (-0800) Subject: auto merge of #12299 : sfackler/rust/limit-return, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=49ba513c78e6430e55e5478f478a157e085a639a;p=rust.git 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); ``` --- 49ba513c78e6430e55e5478f478a157e085a639a