rust/library/core/tests
Guillaume Gomez 4755173cf6
Rollup merge of #96935 - thomcc:atomicptr-strict-prov, r=dtolnay
Allow arithmetic and certain bitwise ops on AtomicPtr

This is mainly to support migrating from `AtomicUsize`, for the strict provenance experiment.

This is a pretty dubious set of APIs, but it should be sufficient to allow code that's using `AtomicUsize` to manipulate a tagged pointer atomically. It's under a new feature gate, `#![feature(strict_provenance_atomic_ptr)]`, but I'm not sure if it needs its own tracking issue. I'm happy to make one, but it's not clear that it's needed.

I'm unsure if it needs changes in the various non-LLVM backends. Because we just cast things to integers anyway (and were already doing so), I doubt it.

API change proposal: https://github.com/rust-lang/libs-team/issues/60

Fixes #95492
2022-07-06 20:43:23 +02:00
..
fmt
hash libcore tests: avoid int2ptr casts 2022-06-27 13:30:44 -04:00
iter Add Iterator::next_chunk 2022-06-21 08:57:02 +02:00
num Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
ops
alloc.rs libcore tests: avoid int2ptr casts 2022-06-27 13:30:44 -04:00
any.rs Add some more tests 2022-06-06 12:10:14 +01:00
array.rs Stabilize core::array::from_fn 2022-05-20 11:04:13 -03:00
ascii.rs
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
atomic.rs Rename AtomicPtr::fetch_{add,sub}{,_bytes} 2022-07-01 06:21:19 -07:00
bool.rs
cell.rs Fix Display for cell::{Ref,RefMut} 2022-05-20 11:16:30 -07:00
char.rs
clone.rs Use Box::new() instead of box syntax in core tests 2022-05-29 01:44:11 +02:00
cmp.rs
const_ptr.rs
convert.rs
future.rs
intrinsics.rs
lazy.rs Move/rename lazy::{OnceCell, Lazy} to cell::{OnceCell, LazyCell} 2022-06-16 19:53:59 +04:00
lib.rs Allow arithmetic and certain bitwise ops on AtomicPtr 2022-07-01 06:21:18 -07:00
macros.rs
manually_drop.rs
mem.rs
nonzero.rs
ops.rs
option.rs Use Box::new() instead of box syntax in core tests 2022-05-29 01:44:11 +02:00
pattern.rs
pin_macro.rs
pin.rs
ptr.rs Rollup merge of #97712 - RalfJung:untyped, r=scottmcm 2022-07-05 16:04:31 +05:30
result.rs Use Box::new() instead of box syntax in core tests 2022-05-29 01:44:11 +02:00
simd.rs
slice.rs Stage-step cfgs 2022-05-18 12:29:35 -04:00
str_lossy.rs
str.rs
task.rs
time.rs
tuple.rs
unicode.rs
waker.rs libcore tests: avoid int2ptr casts 2022-06-27 13:30:44 -04:00