rust/tests/pass/concurrency
bors 7fafbde038 Auto merge of #2275 - RalfJung:permissive-provenance-for-all, r=RalfJung
Enable permissive provenance by default

This completes the plan laid out in https://github.com/rust-lang/miri/issues/2133:
- We use permissive provenance with wildcard pointers by default.
- We print a warning on int2ptr casts. `-Zmiri-permissive-provenance` suppresses the warning; `-Zmiri-strict-provenance` turns it into a hard error.
- Raw pointer tagging is now always enabled, so we remove the `-Zmiri-tag-raw-pointers` flag and the code for untagged pointers. (Passing the flag still works, for compatibility -- but we just ignore it, with a warning.)

We also fix an intptrcast issue:
- Only live allocations are considered when computing the AllocId from an address.

So, finally, Miri has a good story for ptr2int2ptr roundtrips *and* no weird false negatives when doing raw pointer stuff with Stacked Borrows. :-) 🎉   Thanks a lot to everyone who helped with this, in particular `@carbotaniuman` who convinced me this is even possible.

Fixes https://github.com/rust-lang/miri/issues/2133
Fixes https://github.com/rust-lang/miri/issues/1866
Fixes https://github.com/rust-lang/miri/issues/1993
2022-06-28 01:20:40 +00:00
..
channels.rs rustup 2022-06-16 11:18:09 -07:00
concurrent_caller_location.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
data_race.rs make a bunch of tests look more like how they did before rustfmt 2022-06-25 23:31:24 -04:00
disable_data_race_detector.rs
issue1643.rs
libc_pthread_cond.rs
linux-futex.rs test that futexes induce appropriate synchronization 2022-06-25 23:40:58 -04:00
mutex_leak.rs test for forgetting locked mutex 2022-06-25 16:01:00 -04:00
simple.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
simple.stderr bless tests 2022-06-06 20:17:39 -04:00
spin_loop.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
spin_loops_nopreempt.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
spin_loops.stderr Update experimental threading warning 2022-06-06 19:15:59 +01:00
sync_nopreempt.rs make sure a thread is joined 2022-06-27 11:44:45 -04:00
sync_singlethread.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
sync.rs join all the threads 2022-06-25 15:46:47 -04:00
sync.stdout
thread_locals.rs
tls_lib_drop_single_thread.rs
tls_lib_drop_single_thread.stderr
tls_lib_drop.rs Format tests with rustfmt (51-100 of 300) 2022-06-20 15:39:46 -07:00
tls_lib_drop.stdout
tls_pthread_drop_order.rs make permissive provenance and raw-ptr tagging the default 2022-06-26 21:14:42 -04:00