about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlexis Beingessner <a.beingessner@gmail.com>2015-08-12 12:00:46 -0700
committerAlexis Beingessner <a.beingessner@gmail.com>2015-08-19 15:52:12 -0700
commit635f7360b6e76d46fb60da18f37401d33dc651ce (patch)
tree68b1b7beed603728706a54525f41d840ae9dc96d /src/rustllvm/RustWrapper.cpp
parentaca2057ed5fb7af3f8905b2bc01f72fa001c35c8 (diff)
downloadrust-635f7360b6e76d46fb60da18f37401d33dc651ce.tar.gz
rust-635f7360b6e76d46fb60da18f37401d33dc651ce.zip
Rework Rc for FCP of #27718
* Add `Rc::would_unwrap(&Self) -> bool` to introspect whether try_unwrap would succeed,
  because it's destructive (unlike get_mut).
* Move `rc.downgrade()` to `Rc::downgrade(&Self)` per conventions.
* Deprecate `Rc::weak_count` and `Rc::strong_count` for questionable utility.
* Deprecate `Rc::is_unique` for questionable semantics (there are two kinds of
  uniqueness with Weak pointers in play).
* Rename `rc.make_unique()` to `Rc::make_mut(&mut Self)` per conventions, to
  avoid uniqueness terminology, and to clarify the relation to `Rc::get_mut`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions