From: bors Date: Fri, 4 Apr 2014 15:41:50 +0000 (-0700) Subject: auto merge of #13301 : erickt/rust/remove-refcell-get, r=huonw X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=eae265271089011c309ce6b8386bdd98f29f2aaf;p=rust.git auto merge of #13301 : erickt/rust/remove-refcell-get, r=huonw `RefCell::get` can be a bit surprising, because it actually clones the wrapped value. This removes `RefCell::get` and replaces all the users with `RefCell::borrow()` when it can, and `RefCell::borrow().clone()` when it can't. It removes `RefCell::set` for consistency. This closes #13182. It also fixes an infinite loop in a test when debugging is on. --- eae265271089011c309ce6b8386bdd98f29f2aaf