rust/src/liballoc
Manish Goregaokar aef2ca6681
Rollup merge of #74025 - tmiasko:try-unwrap, r=Amanieu
Remove unnecessary release from Arc::try_unwrap

The thread that recovers the unique access to Arc inner value (e.g., drop
when ref-count strong reaches zero, successful try_unwrap), ensures that
other operations on Arc inner value happened before by synchronizing
with release operations performed when decrementing the reference counter.

When try_unwrap succeeds, the current thread recovers the unique access
to Arc inner value, so release is unnecessary.

r? @Amanieu
2020-07-05 16:07:32 -07:00
..
alloc liballoc tests: Miri supports threads now 2020-05-01 11:16:38 +02:00
benches disable collectionbenches for android 2020-06-25 11:14:16 -07:00
collections Shortcuts for min/max on ordinary BTreeMap/BTreeSet iterators 2020-06-26 10:05:21 +02:00
prelude Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
raw_vec Remove blank line 2020-06-26 06:22:35 -07:00
rc Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
sync Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
tests disable BTree min_max test in Miri for now 2020-07-02 10:26:37 +02:00
alloc.rs Apply suggestions from code review 2020-06-19 13:47:04 +02:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
boxed.rs Rollup merge of #73678 - Keno:patch-1, r=LukasKalbertodt 2020-07-01 07:42:42 -07:00
Cargo.toml Ensure std benchmarks get tested. 2020-06-18 09:11:15 -07:00
fmt.rs grammar: dealing-with 2020-05-06 19:01:27 -04:00
lib.rs Rollup merge of #73845 - CAD97:weak-as-unsized-ptr, r=RalfJung 2020-07-03 17:16:56 -07:00
macros.rs make vec![,] uncompilable 2020-04-14 10:27:55 +03:00
raw_vec.rs Auto merge of #73882 - nnethercote:avoid-unwrap_or_else-in-allocate_in, r=Amanieu 2020-07-03 03:18:28 +00:00
rc.rs Note Weak.ptr never dangles sooner 2020-07-02 17:08:37 -04:00
slice.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
str.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
string.rs Rollup merge of #72688 - djugei:master, r=Amanieu 2020-07-05 16:07:19 -07:00
sync.rs Remove unnecessary release from Arc::try_unwrap 2020-07-04 11:40:27 +02:00
task.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
tests.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
vec.rs Auto merge of #73391 - pickfire:liballoc-panic-doc, r=Mark-Simulacrum 2020-06-29 12:00:31 +00:00