File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 185
185
- [ rand] ( library-features/rand.md )
186
186
- [ range_contains] ( library-features/range-contains.md )
187
187
- [ raw] ( library-features/raw.md )
188
- - [ rc_would_unwrap] ( library-features/rc-would-unwrap.md )
189
188
- [ retain_hash_collection] ( library-features/retain-hash-collection.md )
190
189
- [ reverse_cmp_key] ( library-features/reverse-cmp-key.md )
191
190
- [ rt] ( library-features/rt.md )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -341,19 +341,6 @@ impl<T> Rc<T> {
341
341
}
342
342
}
343
343
344
- /// Checks whether [`Rc::try_unwrap`][try_unwrap] would return
345
- /// [`Ok`].
346
- ///
347
- /// [try_unwrap]: struct.Rc.html#method.try_unwrap
348
- /// [`Ok`]: ../../std/result/enum.Result.html#variant.Ok
349
- #[ unstable( feature = "rc_would_unwrap" ,
350
- reason = "just added for niche usecase" ,
351
- issue = "28356" ) ]
352
- #[ rustc_deprecated( since = "1.15.0" , reason = "too niche; use `strong_count` instead" ) ]
353
- pub fn would_unwrap ( this : & Self ) -> bool {
354
- Rc :: strong_count ( & this) == 1
355
- }
356
-
357
344
/// Consumes the `Rc`, returning the wrapped pointer.
358
345
///
359
346
/// To avoid a memory leak the pointer must be converted back to an `Rc` using
You can’t perform that action at this time.
0 commit comments