rust/src/liballoc
Dylan DPC 5e9b3720e5
Rollup merge of #70733 - yoshuawuyts:arc-increment-refcount, r=Mark-Simulacrum
Add Arc::{incr,decr}_strong_count

This adds two `unsafe` methods to `Arc`: `incr_strong_count` and `decr_strong_count`. A suggestion to add methods to change the strong count in `Arc` came up in during review in https://github.com/rust-lang/rust/pull/68700#discussion_r396169064, and from asking a few people this seemed like generally useful to have.

References:
- [Motivation from #68700](https://github.com/rust-lang/rust/pull/68700#discussion_r396169064)
- [Real world example in an executor](https://docs.rs/extreme/666.666.666666/src/extreme/lib.rs.html#13)
2020-05-07 21:46:06 +02:00
..
alloc Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
benches Introduce BTreeMap benches of iter itself 2020-04-25 00:05:10 +02:00
collections Rollup merge of #71510 - ssomers:btreemap_iter_intertwined, r=Mark-Simulacrum 2020-05-06 13:22:05 +02:00
prelude Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
raw_vec Remove alignment from MemoryBlock 2020-03-26 17:14:12 +01:00
rc Format the world 2019-12-22 17:42:47 -05:00
sync Format the world 2019-12-22 17:42:47 -05:00
tests Rollup merge of #71485 - arlopurcell:binary_heap_retain, r=Amanieu 2020-04-25 01:35:59 +02:00
alloc.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
boxed.rs Rollup merge of #71421 - elichai:2020-04-boxed-slice, r=sfackler 2020-04-26 21:02:32 +02:00
Cargo.toml bump rand to fix Miri failures 2019-08-04 14:50:26 +02:00
fmt.rs grammar: dealing-with 2020-05-06 19:01:27 -04:00
lib.rs Auto merge of #71556 - Dylan-DPC:rollup-9ll4shr, r=Dylan-DPC 2020-04-25 17:49:00 +00:00
macros.rs make vec![,] uncompilable 2020-04-14 10:27:55 +03:00
raw_vec.rs rename-unique: Rename Unique::empty() to Unique::dangling() 2020-04-30 11:00:45 +02:00
rc.rs Auto merge of #71556 - Dylan-DPC:rollup-9ll4shr, r=Dylan-DPC 2020-04-25 17:49:00 +00:00
slice.rs Explain why we shouldn't add inline attr to into_vec 2020-04-19 01:03:43 +09:00
str.rs Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
string.rs More diagnostic items for Clippy usage 2020-04-22 07:57:56 +02:00
sync.rs Rollup merge of #70733 - yoshuawuyts:arc-increment-refcount, r=Mark-Simulacrum 2020-05-07 21:46:06 +02:00
task.rs Add Arc::{incr,decr}_strong_count 2020-05-07 17:18:25 +02:00
tests.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
vec.rs Rollup merge of #71148 - bluss:vec-drop-raw-slice, r=RalfJung 2020-04-30 15:23:08 -07:00