Mara Bos
5d6f1a1e32
Move use align_of in atomic.rs into the places where it is used.
2020-09-21 20:44:45 +02:00
Mara Bos
7a04ff6c33
Gate Atomic::from_mut on cfg(target_has_atomic_equal_alignment).
...
Instead of a few hardcoded cfg(target_arch = ..) like before.
2020-09-21 20:43:44 +02:00
Mara Bos
668225d157
Revert "Revert adding Atomic::from_mut."
...
This reverts commit 5ef1db3622 .
2020-09-21 20:43:44 +02:00
Ralf Jung
b0c2eab66a
Rollup merge of #76967 - fusion-engineering-forks:revert-atomic-from-mut, r=kodrAus
...
Revert adding Atomic::from_mut.
This reverts #74532 , which made too many assumptions about platforms, breaking some things.
Will need to be added later with a better way of gating on proper alignment, without hardcoding cfg(target_arch)s.
---
To be merged if fixing from_mut (#76965 ) takes too long.
r? @ghost
2020-09-21 15:30:41 +02:00
Daniel Henry-Mantilla
5886c38112
Replace unneeded unsafe calls to .get() with calls to .get_mut()
2020-09-20 18:06:03 +02:00
Mara Bos
5ef1db3622
Revert adding Atomic::from_mut.
...
This made too many assumptions about platforms, breaking some things.
Will need to be added later with a better way of gating on proper
alignment, without hardcoding cfg(target_arch)s.
2020-09-20 12:54:37 +02:00
Mara Bos
9914c3beed
Supress unused_macros error on architectures with no atomics.
2020-09-13 18:34:27 +02:00
Mara Bos
3be40b22c8
Fix AtomicPtr::from_mut align check: Avoid generic arg in const expr.
...
See #76200 .
2020-09-13 14:09:10 +02:00
Mara Bos
458aaba084
Add Atomic*::from_mut.
...
The atomic equivalent of Cell::from_mut.
2020-09-13 14:08:52 +02:00
Alexis Bourget
6b75e3d11b
Move to Arc::clone(&x) over x.clone() in library/core
2020-08-30 22:14:17 +02:00
Denis Vasilik
c7571e6040
Use intra-doc links for bool
2020-08-28 17:30:05 +02:00
Denis Vasilik
4bbed52320
Use intra-doc links
2020-08-28 17:24:47 +02:00
Ralf Jung
897149a883
fence docs: fix example Mutex
2020-07-29 15:45:42 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00