Ralf Jung
c1eddbc7fe
show int2ptr warning once for each span (but don't duplicate the long help)
2022-06-27 20:50:45 -04:00
Ralf Jung
67e89b53e2
fix warning text
2022-06-27 20:04:46 -04:00
Ralf Jung
294ef15adb
more int2ptr cast tests, and fix casting of addresses inside dead allocations
2022-06-26 22:19:56 -04:00
Ralf Jung
13d425daeb
make permissive provenance and raw-ptr tagging the default
2022-06-26 21:14:42 -04:00
bors
ab88ba4299
Auto merge of #2270 - RalfJung:futex-ordering, r=RalfJung
...
test that futexes induce appropriate synchronization
This fails when I remove the `validate_lock_acquire` or `validate_lock_release` from `futex_wake`. So finally we got those code paths actually covered in tests. :)
2022-06-26 03:54:43 +00:00
Ralf Jung
e667ccb459
test that futexes induce appropriate synchronization
2022-06-25 23:40:58 -04:00
Ralf Jung
5aeba7f86b
make a bunch of tests look more like how they did before rustfmt
2022-06-25 23:31:24 -04:00
Ralf Jung
d3ca71ba37
test that &mut !Unpin references are protected
2022-06-25 19:15:11 -04:00
Ralf Jung
7c025a8f0e
test for forgetting locked mutex
2022-06-25 16:01:00 -04:00
Ralf Jung
e5022bf48a
join all the threads
2022-06-25 15:46:47 -04:00
Ralf Jung
58c79c5b6f
tweaks and feedback
2022-06-24 22:02:17 -04:00
Ralf Jung
4fbb284a99
implement 'delimited' expose tracking so we still detect some UB
2022-06-24 20:05:56 -04:00
Ralf Jung
8d6fdaa024
make the tests pass
...
(and some formatting)
2022-06-24 18:03:02 -04:00
Ralf Jung
2deb9e5dae
add exposed_only_ro test
2022-06-24 16:21:47 -04:00
carbotaniuman
57ce47b728
Handle wildcard pointers in SB
2022-06-24 16:10:23 -04:00
David Tolnay
e5f40ca9cb
Bless stderr files after rustfmt
2022-06-23 13:08:52 -07:00
David Tolnay
8833197a62
Manual adjustments
2022-06-23 13:08:52 -07:00
David Tolnay
a23eb46b5b
Format late arrivals with rustfmt
2022-06-23 13:08:52 -07:00
bors
c38e1e9d62
Auto merge of #2250 - rust-lang:gesundheit, r=oli-obk
...
Require local annotations for local diagnostics
if/when we get flaky diagnostics we can revisit and add more helpers for those
2022-06-23 13:49:56 +00:00
Oli Scherer
c4ffe680e3
Require local annotations for local diagnostics
2022-06-23 13:49:02 +00:00
bors
655eed35b7
Auto merge of #2248 - RalfJung:arc-drop-fix, r=RalfJung
...
do not protect SRW items
This is the Miri version of https://github.com/rust-lang/rust/pull/98017 .
2022-06-22 21:39:41 +00:00
bors
3d1d345f8f
Auto merge of #2255 - dtolnay-contrib:rustfmt7, r=oli-obk
...
Format tests with rustfmt (288-299 of 299)
Extracted from #2097 .
I'll make a separate PR to enable checking the `tests` directory's formatting in CI. I'll need to rebase that after both this and #2254 have landed, and if any new non-rustfmt-formatted files appear in the meantime, we can include formatting those in the same PR that enables the CI.
2022-06-22 10:04:08 +00:00
bors
5e584d25ef
Auto merge of #2252 - dtolnay-contrib:rustfmt5, r=oli-obk
...
Format tests with rustfmt (225-275 of 300)
Extracted from #2097 .
These cases all involve a line comment at the end of a block that rustfmt has chosen to wrap.
```diff
- unsafe { (*ptr).set(20); } //~ ERROR does not exist in the borrow stack
+ unsafe {
+ (*ptr).set(20);
+ } //~ ERROR does not exist in the borrow stack
```
I have moved all of those comments back onto the same line as the content of the block instead, as was indicated being `@RalfJung's` preference in https://github.com/rust-lang/miri/pull/2097#discussion_r862436672 .
```diff
+ unsafe {
+ (*ptr).set(20); //~ ERROR does not exist in the borrow stack
+ }
```
2022-06-22 09:04:44 +00:00
David Tolnay
274085cebd
Manual adjustments
2022-06-21 23:52:24 -07:00
David Tolnay
05893d9026
Bless stderr files after rustfmt
2022-06-21 23:21:37 -07:00
David Tolnay
639f660dde
Manual adjustments
2022-06-21 23:21:12 -07:00
David Tolnay
ba23d37b70
Format tests with rustfmt (288-299 of 299)
2022-06-21 22:58:00 -07:00
David Tolnay
7d09004aee
Format tests with rustfmt (276-287 of 299)
2022-06-21 22:57:47 -07:00
bors
7a1b08e46e
Auto merge of #2251 - dtolnay-contrib:rustfmt4, r=RalfJung
...
Format tests with rustfmt (201-224 of 300)
Extracted from #2097 . Last of the easy cases which do not involve moving around a comment.
2022-06-22 04:27:04 +00:00
Ralf Jung
f992099820
fix ICE when const refers to extern static
2022-06-21 21:03:40 -07:00
David Tolnay
f1044d2f77
Bless stderr files after rustfmt
2022-06-21 11:46:10 -07:00
David Tolnay
7326da7ce3
Manual adjustments
2022-06-21 11:46:09 -07:00
David Tolnay
6827ac2f37
Format tests with rustfmt (225-275 of 300)
2022-06-21 11:46:09 -07:00
David Tolnay
7d40530c52
Bless stderr files after rustfmt
2022-06-21 11:32:15 -07:00
David Tolnay
b3a689e008
Manual adjustments
2022-06-21 11:32:14 -07:00
David Tolnay
5490e775df
Format tests with rustfmt (201-224 of 300)
2022-06-21 11:32:06 -07:00
Ralf Jung
1b214a0d12
do not protect SRW items
2022-06-21 09:32:58 -07:00
Ralf Jung
b5bc4e1b0c
add tests that fail due to SRW protectors
...
also do more iterations of weak mem consistency, since now that is no longer the slowest test ;)
2022-06-21 09:32:58 -07:00
Ralf Jung
3348869f42
move nopreempt sync tests to their own file
2022-06-21 09:30:19 -07:00
bors
cbb649adfe
Auto merge of #2249 - dtolnay-contrib:rustfmt3, r=oli-obk
...
Format tests with rustfmt (151-200 of 300)
Extracted from #2097 .
This PR is still only doing the easy cases with no comments involved.
In the next PRs after this, I'll start grouping by common comment patterns, e.g. all the cases resembling https://github.com/rust-lang/miri/pull/2097#discussion_r862436672 together in one PR.
2022-06-21 07:39:16 +00:00
bors
332f2894ed
Auto merge of #2246 - dtolnay-contrib:rustfmt1, r=oli-obk
...
Format tests with rustfmt (51-100 of 300)
Extracted from #2097 .
Like #2244 , this is intended to be "easy" cases which don't involve comments in the vicinity.
2022-06-21 06:57:41 +00:00
David Tolnay
1c66163871
Bless stderr files after rustfmt
2022-06-20 23:50:49 -07:00
David Tolnay
30376ba709
Manual adjustments
2022-06-20 23:50:45 -07:00
David Tolnay
069f5b6615
Format tests with rustfmt (151-200 of 300)
2022-06-20 23:50:40 -07:00
David Tolnay
8efc049a9f
Manual adjustments
2022-06-20 21:36:11 -07:00
bors
bdf2a8a78c
Auto merge of #2247 - dtolnay-contrib:rustfmt2, r=RalfJung
...
Format tests with rustfmt (101-150 of 300)
Extracted from #2097 .
Like https://github.com/rust-lang/miri/pull/2244 , these are "easy" cases that do not involve moving around comments.
2022-06-21 04:12:42 +00:00
David Tolnay
6b8c371f06
Manual adjustments
2022-06-20 16:09:49 -07:00
David Tolnay
df8d8b655b
Format tests with rustfmt (101-150 of 300)
2022-06-20 16:09:45 -07:00
David Tolnay
fafeccaef7
Bless stdout files after rustfmt
2022-06-20 15:39:50 -07:00
David Tolnay
619813500b
Format tests with rustfmt (51-100 of 300)
2022-06-20 15:39:46 -07:00