]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoCargo fmt
infrandomness [Sun, 26 Jun 2022 23:22:13 +0000 (01:22 +0200)]
Cargo fmt

2 years agoAddress code review
infrandomness [Sun, 26 Jun 2022 23:13:13 +0000 (01:13 +0200)]
Address code review

- Merge pthread_attr_getstack shim to unix/foreign_items.rs

2 years agoonly test a few tests on FreeBSD
Ralf Jung [Sun, 26 Jun 2022 20:20:37 +0000 (16:20 -0400)]
only test a few tests on FreeBSD

2 years agoAdd `pthread_attr_get_np` shim
infrandomness [Sun, 12 Jun 2022 09:47:59 +0000 (11:47 +0200)]
Add `pthread_attr_get_np` shim

2 years agoAdd `pthread_attr_getstack` shim
infrandomness [Sun, 12 Jun 2022 09:47:43 +0000 (11:47 +0200)]
Add `pthread_attr_getstack` shim

2 years agoFix panicking ui_tests framework
infrandomness [Fri, 10 Jun 2022 10:12:20 +0000 (12:12 +0200)]
Fix panicking ui_tests framework

2 years agoFix pending reviews
infrandomness [Thu, 9 Jun 2022 14:50:34 +0000 (16:50 +0200)]
Fix pending reviews

2 years agoInitial freebsd work
infrandomness [Thu, 9 Jun 2022 14:06:07 +0000 (16:06 +0200)]
Initial freebsd work

2 years agoAuto merge of #2274 - RalfJung:trophy, r=RalfJung
bors [Sun, 26 Jun 2022 23:00:18 +0000 (23:00 +0000)]
Auto merge of #2274 - RalfJung:trophy, r=RalfJung

trophy case: add the data race in thread::scope

2 years agotrophy case: add the data race in thread::scope
Ralf Jung [Sun, 26 Jun 2022 22:59:48 +0000 (18:59 -0400)]
trophy case: add the data race in thread::scope

2 years agoAuto merge of #2272 - RalfJung:progress, r=RalfJung
bors [Sun, 26 Jun 2022 18:39:38 +0000 (18:39 +0000)]
Auto merge of #2272 - RalfJung:progress, r=RalfJung

add -Zmiri-report-progress to regularly print a stacktrace of what we are executing

Fixes https://github.com/rust-lang/miri/issues/910

The stacktrace is printed every N basic blocks. I picked the default (1 million) to take a few seconds on my machine, but it can be adjusted by the user.

2 years agoadd -Zmiri-report-progress to regularly print a stacktrace of what we are executing
Ralf Jung [Sun, 26 Jun 2022 16:31:53 +0000 (12:31 -0400)]
add -Zmiri-report-progress to regularly print a stacktrace of what we are executing

2 years agoAuto merge of #2270 - RalfJung:futex-ordering, r=RalfJung
bors [Sun, 26 Jun 2022 03:54:43 +0000 (03:54 +0000)]
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. :)

2 years agotest that futexes induce appropriate synchronization
Ralf Jung [Sun, 26 Jun 2022 03:22:42 +0000 (23:22 -0400)]
test that futexes induce appropriate synchronization

2 years agoAuto merge of #2269 - RalfJung:fmt, r=RalfJung
bors [Sun, 26 Jun 2022 03:31:57 +0000 (03:31 +0000)]
Auto merge of #2269 - RalfJung:fmt, r=RalfJung

make a bunch of tests look more like how they did before rustfmt

2 years agomake a bunch of tests look more like how they did before rustfmt
Ralf Jung [Sun, 26 Jun 2022 03:30:29 +0000 (23:30 -0400)]
make a bunch of tests look more like how they did before rustfmt

2 years agoAuto merge of #2245 - saethlin:color-always, r=RalfJung
bors [Sun, 26 Jun 2022 00:11:30 +0000 (00:11 +0000)]
Auto merge of #2245 - saethlin:color-always, r=RalfJung

Actually pass through the request for --color=always

https://github.com/rust-lang/miri/pull/2243 actually doesn't work :joy:

The suggestion to split on `,` was good but `arg` is actually the whole `--json=diagnostic-rendered-ansi,artifacts,future-incompat
`, and of course I didn't test that change locally and we have no test for this in CI.

Therefore, I would like some guidance on making a test for this because I'm going to rely on this working.

2 years agodon't assert the same thing twice
Ralf Jung [Sun, 26 Jun 2022 00:01:36 +0000 (20:01 -0400)]
don't assert the same thing twice

2 years agoAuto merge of #2268 - RalfJung:not-unpin-protected, r=RalfJung
bors [Sat, 25 Jun 2022 23:52:34 +0000 (23:52 +0000)]
Auto merge of #2268 - RalfJung:not-unpin-protected, r=RalfJung

test that &mut !Unpin references are protected

2 years agotest that &mut !Unpin references are protected
Ralf Jung [Sat, 25 Jun 2022 23:15:11 +0000 (19:15 -0400)]
test that &mut !Unpin references are protected

2 years agoAuto merge of #2267 - RalfJung:rustup, r=RalfJung
bors [Sat, 25 Jun 2022 20:01:49 +0000 (20:01 +0000)]
Auto merge of #2267 - RalfJung:rustup, r=RalfJung

rustup

I cannot reproduce https://github.com/rust-lang/rust/issues/98493 so let's see what CI says.

2 years agotest for forgetting locked mutex
Ralf Jung [Sat, 25 Jun 2022 19:45:45 +0000 (15:45 -0400)]
test for forgetting locked mutex

2 years agojoin all the threads
Ralf Jung [Sat, 25 Jun 2022 19:17:37 +0000 (15:17 -0400)]
join all the threads

2 years agorustup
Ralf Jung [Sat, 25 Jun 2022 19:06:53 +0000 (15:06 -0400)]
rustup

2 years agoAuto merge of #2265 - RalfJung:readme, r=RalfJung
bors [Sat, 25 Jun 2022 16:29:38 +0000 (16:29 +0000)]
Auto merge of #2265 - RalfJung:readme, r=RalfJung

README: multi-seed loop: also test the 0 seed

2 years agoREADME: multi-seed loop: also test the 0 seed
Ralf Jung [Sat, 25 Jun 2022 16:27:50 +0000 (12:27 -0400)]
README: multi-seed loop: also test the 0 seed

2 years agoAuto merge of #2264 - RalfJung:not-a-fixme, r=RalfJung
bors [Sat, 25 Jun 2022 15:54:31 +0000 (15:54 +0000)]
Auto merge of #2264 - RalfJung:not-a-fixme, r=RalfJung

remove a FIXME that is not actually a bug

2 years agoremove a FIXME that is not actually a bug
Ralf Jung [Sat, 25 Jun 2022 15:52:29 +0000 (11:52 -0400)]
remove a FIXME that is not actually a bug

2 years agoActually pass through the request for --color=always
Ben Kimock [Mon, 20 Jun 2022 19:16:32 +0000 (15:16 -0400)]
Actually pass through the request for --color=always

2 years agoAuto merge of #2196 - carbotaniuman:permissive-stacked-borrows, r=RalfJung
bors [Sat, 25 Jun 2022 02:05:18 +0000 (02:05 +0000)]
Auto merge of #2196 - carbotaniuman:permissive-stacked-borrows, r=RalfJung

Handle wildcard pointers in SB

This uses an permissive `Unknown` implementation, where a wildcard pointer (and any SRW derived from a wildcard pointer) can access any previously-exposed SB tag. This is missing any meaningful test-cases, and all of the edge-cases have not yet been worked through.

I think there's also some bugs here with differing Unknowns in different ranges and having things behave really weirdly too, alongside some issues with retagging to `SRO` or `Unique`.

2 years agotweaks and feedback
Ralf Jung [Sat, 25 Jun 2022 02:02:17 +0000 (22:02 -0400)]
tweaks and feedback

2 years agoimplement 'delimited' expose tracking so we still detect some UB
Ralf Jung [Fri, 24 Jun 2022 23:45:35 +0000 (19:45 -0400)]
implement 'delimited' expose tracking so we still detect some UB

2 years agoAuto merge of #2263 - wesleywiser:update_measureme, r=RalfJung
bors [Fri, 24 Jun 2022 23:24:57 +0000 (23:24 +0000)]
Auto merge of #2263 - wesleywiser:update_measureme, r=RalfJung

Update measureme to the latest version

The major version number is different due to changes to the on-disk recording format but the core API is the same and miri continues to build on the latest version.

2 years agoUpdate measureme to the latest version
Wesley Wiser [Fri, 24 Jun 2022 23:04:50 +0000 (19:04 -0400)]
Update measureme to the latest version

2 years agomake the tests pass
Ralf Jung [Fri, 24 Jun 2022 22:02:25 +0000 (18:02 -0400)]
make the tests pass

(and some formatting)

2 years agoreorganize exposure code a bit
Ralf Jung [Fri, 24 Jun 2022 20:45:22 +0000 (16:45 -0400)]
reorganize exposure code a bit

2 years agoadd exposed_only_ro test
Ralf Jung [Fri, 24 Jun 2022 20:21:47 +0000 (16:21 -0400)]
add exposed_only_ro test

2 years agoTry fix stuff
carbotaniuman [Thu, 16 Jun 2022 01:55:54 +0000 (20:55 -0500)]
Try fix stuff

2 years agoMaybe this wil work
carbotaniuman [Thu, 16 Jun 2022 01:53:44 +0000 (20:53 -0500)]
Maybe this wil work

2 years agoHandle wildcard pointers in SB
carbotaniuman [Wed, 15 Jun 2022 19:55:21 +0000 (14:55 -0500)]
Handle wildcard pointers in SB

2 years agoAuto merge of #2262 - RalfJung:zulip, r=RalfJung
bors [Fri, 24 Jun 2022 13:15:20 +0000 (13:15 +0000)]
Auto merge of #2262 - RalfJung:zulip, r=RalfJung

only one Zulip cron job topic per month

2 years agoonly one Zulip cron job topic per month
Ralf Jung [Fri, 24 Jun 2022 13:13:36 +0000 (09:13 -0400)]
only one Zulip cron job topic per month

2 years agoAuto merge of #2257 - dtolnay-contrib:rustfmt9, r=RalfJung
bors [Thu, 23 Jun 2022 20:15:27 +0000 (20:15 +0000)]
Auto merge of #2257 - dtolnay-contrib:rustfmt9, r=RalfJung

Add `./miri fmt` and check in CI

2 years agoBless stderr files after rustfmt
David Tolnay [Thu, 23 Jun 2022 20:08:12 +0000 (13:08 -0700)]
Bless stderr files after rustfmt

2 years agoManual adjustments
David Tolnay [Thu, 23 Jun 2022 19:51:40 +0000 (12:51 -0700)]
Manual adjustments

2 years agoFormat late arrivals with rustfmt
David Tolnay [Thu, 23 Jun 2022 19:50:44 +0000 (12:50 -0700)]
Format late arrivals with rustfmt

2 years agoAdd './miri fmt' and use it in CI
David Tolnay [Wed, 22 Jun 2022 12:00:07 +0000 (05:00 -0700)]
Add './miri fmt' and use it in CI

2 years agoAuto merge of #2261 - RalfJung:fmt, r=oli-obk
bors [Thu, 23 Jun 2022 18:53:37 +0000 (18:53 +0000)]
Auto merge of #2261 - RalfJung:fmt, r=oli-obk

make rustfmt mandatory and used pinned toolchain

Looks like this is what most people prefer/expect, and using a pinned toolchain for formatting avoids some (rare and so far mostly hypothetical) formatting inconsistency issues.

2 years agomake rustfmt mandatory and used pinned toolchain
Ralf Jung [Thu, 23 Jun 2022 17:57:27 +0000 (13:57 -0400)]
make rustfmt mandatory and used pinned toolchain

2 years agoAuto merge of #2250 - rust-lang:gesundheit, r=oli-obk
bors [Thu, 23 Jun 2022 13:49:56 +0000 (13:49 +0000)]
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

2 years agoRequire local annotations for local diagnostics
Oli Scherer [Tue, 21 Jun 2022 16:30:45 +0000 (16:30 +0000)]
Require local annotations for local diagnostics

2 years agoAuto merge of #2248 - RalfJung:arc-drop-fix, r=RalfJung
bors [Wed, 22 Jun 2022 21:39:41 +0000 (21:39 +0000)]
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.

2 years agoAuto merge of #2259 - RalfJung:cargo-rustc, r=RalfJung
bors [Wed, 22 Jun 2022 17:05:03 +0000 (17:05 +0000)]
Auto merge of #2259 - RalfJung:cargo-rustc, r=RalfJung

avoid setting both RUSTC and RUSTC_WRAPPER

Fixes https://github.com/rust-lang/miri/issues/2238

2 years agoavoid setting both RUSTC and RUSTC_WRAPPER
Ralf Jung [Wed, 22 Jun 2022 17:02:33 +0000 (10:02 -0700)]
avoid setting both RUSTC and RUSTC_WRAPPER

2 years agoAuto merge of #2258 - RalfJung:fmt, r=RalfJung
bors [Wed, 22 Jun 2022 15:53:15 +0000 (15:53 +0000)]
Auto merge of #2258 - RalfJung:fmt, r=RalfJung

fmt

2 years agofmt
Ralf Jung [Wed, 22 Jun 2022 15:52:48 +0000 (08:52 -0700)]
fmt

2 years agoAuto merge of #2255 - dtolnay-contrib:rustfmt7, r=oli-obk
bors [Wed, 22 Jun 2022 10:04:08 +0000 (10:04 +0000)]
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.

2 years agoAuto merge of #2253 - RalfJung:only-bits, r=oli-obk
bors [Wed, 22 Jun 2022 09:26:44 +0000 (09:26 +0000)]
Auto merge of #2253 - RalfJung:only-bits, r=oli-obk

fix behavior of only-Nbits comments

Fixes https://github.com/rust-lang/miri/issues/2206

2 years agoAuto merge of #2252 - dtolnay-contrib:rustfmt5, r=oli-obk
bors [Wed, 22 Jun 2022 09:04:44 +0000 (09:04 +0000)]
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
+ }
```

2 years agoAuto merge of #2254 - dtolnay-contrib:rustfmt6, r=oli-obk
bors [Wed, 22 Jun 2022 08:43:33 +0000 (08:43 +0000)]
Auto merge of #2254 - dtolnay-contrib:rustfmt6, r=oli-obk

Format tests with rustfmt (276-287 of 299)

Extracted from #2097.

This is one half of the last 24 files (left for last because they require more unique attention than the first 275 "easy" files).

I'll comment below to call attention to cases where I exercised my own judgement in how to format the test.

https://github.com/rust-lang/rustfmt/issues/3255 is especially annoying: rustfmt does not like `…( //` and `…{ //`.

2 years agoManual adjustments
David Tolnay [Wed, 22 Jun 2022 06:48:09 +0000 (23:48 -0700)]
Manual adjustments

2 years agoBless stderr files after rustfmt
David Tolnay [Wed, 22 Jun 2022 06:21:37 +0000 (23:21 -0700)]
Bless stderr files after rustfmt

2 years agoManual adjustments
David Tolnay [Wed, 22 Jun 2022 06:03:34 +0000 (23:03 -0700)]
Manual adjustments

2 years agoFormat tests with rustfmt (288-299 of 299)
David Tolnay [Wed, 22 Jun 2022 05:57:06 +0000 (22:57 -0700)]
Format tests with rustfmt (288-299 of 299)

2 years agoFormat tests with rustfmt (276-287 of 299)
David Tolnay [Wed, 22 Jun 2022 05:56:50 +0000 (22:56 -0700)]
Format tests with rustfmt (276-287 of 299)

2 years agoui_test: fix behavior of only-Nbits comments
Ralf Jung [Wed, 22 Jun 2022 05:24:18 +0000 (22:24 -0700)]
ui_test: fix behavior of only-Nbits comments

2 years agoAuto merge of #2251 - dtolnay-contrib:rustfmt4, r=RalfJung
bors [Wed, 22 Jun 2022 04:27:04 +0000 (04:27 +0000)]
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.

2 years agoAuto merge of #2241 - RalfJung:extern_static_in_const, r=RalfJung
bors [Wed, 22 Jun 2022 04:04:37 +0000 (04:04 +0000)]
Auto merge of #2241 - RalfJung:extern_static_in_const, r=RalfJung

fix ICE when const refers to extern static

Fixes https://github.com/rust-lang/miri/issues/2234
Needs https://github.com/rust-lang/rust/pull/98099

2 years agorustup
Ralf Jung [Wed, 22 Jun 2022 04:03:52 +0000 (21:03 -0700)]
rustup

2 years agofix ICE when const refers to extern static
Ralf Jung [Sun, 19 Jun 2022 16:45:05 +0000 (09:45 -0700)]
fix ICE when const refers to extern static

2 years agocheck that tag_alloc_base_pointer is not called on the wrong things
Ralf Jung [Tue, 14 Jun 2022 16:45:02 +0000 (09:45 -0700)]
check that tag_alloc_base_pointer is not called on the wrong things

2 years agoBless stderr files after rustfmt
David Tolnay [Tue, 21 Jun 2022 18:42:19 +0000 (11:42 -0700)]
Bless stderr files after rustfmt

2 years agoManual adjustments
David Tolnay [Tue, 21 Jun 2022 18:40:02 +0000 (11:40 -0700)]
Manual adjustments

2 years agoFormat tests with rustfmt (225-275 of 300)
David Tolnay [Tue, 21 Jun 2022 18:38:02 +0000 (11:38 -0700)]
Format tests with rustfmt (225-275 of 300)

2 years agoBless stderr files after rustfmt
David Tolnay [Tue, 21 Jun 2022 18:28:24 +0000 (11:28 -0700)]
Bless stderr files after rustfmt

2 years agoManual adjustments
David Tolnay [Tue, 21 Jun 2022 18:28:00 +0000 (11:28 -0700)]
Manual adjustments

2 years agoFormat tests with rustfmt (201-224 of 300)
David Tolnay [Tue, 21 Jun 2022 18:27:44 +0000 (11:27 -0700)]
Format tests with rustfmt (201-224 of 300)

2 years agodo not protect SRW items
Ralf Jung [Tue, 21 Jun 2022 05:12:05 +0000 (22:12 -0700)]
do not protect SRW items

2 years agoadd tests that fail due to SRW protectors
Ralf Jung [Tue, 21 Jun 2022 05:02:02 +0000 (22:02 -0700)]
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 ;)

2 years agomove nopreempt sync tests to their own file
Ralf Jung [Tue, 21 Jun 2022 04:24:06 +0000 (21:24 -0700)]
move nopreempt sync tests to their own file

2 years agoAuto merge of #2249 - dtolnay-contrib:rustfmt3, r=oli-obk
bors [Tue, 21 Jun 2022 07:39:16 +0000 (07:39 +0000)]
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.

2 years agoAuto merge of #2246 - dtolnay-contrib:rustfmt1, r=oli-obk
bors [Tue, 21 Jun 2022 06:57:41 +0000 (06:57 +0000)]
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.

2 years agoBless stderr files after rustfmt
David Tolnay [Tue, 21 Jun 2022 06:49:55 +0000 (23:49 -0700)]
Bless stderr files after rustfmt

2 years agoManual adjustments
David Tolnay [Tue, 21 Jun 2022 06:45:49 +0000 (23:45 -0700)]
Manual adjustments

2 years agoFormat tests with rustfmt (151-200 of 300)
David Tolnay [Tue, 21 Jun 2022 06:40:39 +0000 (23:40 -0700)]
Format tests with rustfmt (151-200 of 300)

2 years agoManual adjustments
David Tolnay [Mon, 20 Jun 2022 22:43:42 +0000 (15:43 -0700)]
Manual adjustments

2 years agoAuto merge of #2247 - dtolnay-contrib:rustfmt2, r=RalfJung
bors [Tue, 21 Jun 2022 04:12:42 +0000 (04:12 +0000)]
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.

2 years agoAuto merge of #2244 - dtolnay-contrib:rustfmt0, r=RalfJung
bors [Tue, 21 Jun 2022 02:51:35 +0000 (02:51 +0000)]
Auto merge of #2244 - dtolnay-contrib:rustfmt0, r=RalfJung

Format tests and benches with rustfmt (1-50 of 300)

Extracted from #2097.

I filtered this PR to contain exclusively "easy" cases to start off with, i.e. where there is no compiletest_rs (or other) comment in the vicinity that might need to get manually repositioned.

2 years agoManual adjustments
David Tolnay [Mon, 20 Jun 2022 23:08:00 +0000 (16:08 -0700)]
Manual adjustments

2 years agoFormat tests with rustfmt (101-150 of 300)
David Tolnay [Mon, 20 Jun 2022 23:00:37 +0000 (16:00 -0700)]
Format tests with rustfmt (101-150 of 300)

2 years agoBless stdout files after rustfmt
David Tolnay [Mon, 20 Jun 2022 22:39:27 +0000 (15:39 -0700)]
Bless stdout files after rustfmt

2 years agoFormat tests with rustfmt (51-100 of 300)
David Tolnay [Mon, 20 Jun 2022 22:30:34 +0000 (15:30 -0700)]
Format tests with rustfmt (51-100 of 300)

2 years agoAdd rustfmt CI for currently formatted directories
David Tolnay [Mon, 20 Jun 2022 09:43:13 +0000 (02:43 -0700)]
Add rustfmt CI for currently formatted directories

2 years agoManual adjustments
David Tolnay [Mon, 20 Jun 2022 09:43:06 +0000 (02:43 -0700)]
Manual adjustments

2 years agoAuto merge of #2243 - saethlin:color-always, r=oli-obk
bors [Mon, 20 Jun 2022 15:12:55 +0000 (15:12 +0000)]
Auto merge of #2243 - saethlin:color-always, r=oli-obk

Pass --color=always through cargo-miri

Closes https://github.com/rust-lang/miri/issues/2037

I just implemented the fix suggested in that issue and it seems to work without issue.

2 years agoPass --color=always through cargo-miri
Ben Kimock [Mon, 20 Jun 2022 02:57:10 +0000 (22:57 -0400)]
Pass --color=always through cargo-miri

2 years agoBless stderr files after rustfmt
David Tolnay [Mon, 20 Jun 2022 03:43:35 +0000 (20:43 -0700)]
Bless stderr files after rustfmt

2 years agoFormat tests and benches with rustfmt (1-50 of 300)
David Tolnay [Mon, 20 Jun 2022 03:33:59 +0000 (20:33 -0700)]
Format tests and benches with rustfmt (1-50 of 300)

2 years agoAuto merge of #2242 - dtolnay-contrib:rustfmtskip, r=RalfJung
bors [Mon, 20 Jun 2022 05:23:46 +0000 (05:23 +0000)]
Auto merge of #2242 - dtolnay-contrib:rustfmtskip, r=RalfJung

Add rustfmt::skip to some files

Extracted from https://github.com/rust-lang/miri/pull/2097.

Five of the files being skipped here are because rustfmt is buggy (https://github.com/rust-lang/rustfmt/issues/5391; see the error messages below). The other two have clearly preferable manual formatting.

```console
error[internal]: left behind trailing whitespace
  --> tests/fail/validity/transmute_through_ptr.rs:18:18:1
   |
18 |
   | ^^^^
   |

warning: rustfmt has failed to format. See previous 1 errors.

error[internal]: left behind trailing whitespace
  --> tests/fail/stacked_borrows/illegal_read2.rs:10:10:1
   |
10 |
   | ^^^^
   |

warning: rustfmt has failed to format. See previous 1 errors.

error[internal]: left behind trailing whitespace
  --> tests/fail/stacked_borrows/illegal_read5.rs:15:15:1
   |
15 |
   | ^^^^
   |

warning: rustfmt has failed to format. See previous 1 errors.

error[internal]: left behind trailing whitespace
  --> tests/fail/stacked_borrows/illegal_read1.rs:10:10:1
   |
10 |
   | ^^^^
   |

warning: rustfmt has failed to format. See previous 1 errors.

error[internal]: left behind trailing whitespace
 --> /git/miri/tests/fail/erroneous_const2.rs:9:9:1
  |
9 |
  | ^^^^
  |

warning: rustfmt has failed to format. See previous 1 errors.
```

2 years agoAdd rustfmt::skip to some files
David Tolnay [Sat, 30 Apr 2022 18:07:36 +0000 (11:07 -0700)]
Add rustfmt::skip to some files

Five of the files being skipped here are because rustfmt is buggy (see
the error messages below). The others have clearly preferable manual
formatting.

    error[internal]: left behind trailing whitespace
      --> tests/fail/validity/transmute_through_ptr.rs:18:18:1
       |
    18 |
       | ^^^^
       |

    warning: rustfmt has failed to format. See previous 1 errors.

    error[internal]: left behind trailing whitespace
      --> tests/fail/stacked_borrows/illegal_read2.rs:10:10:1
       |
    10 |
       | ^^^^
       |

    warning: rustfmt has failed to format. See previous 1 errors.

    error[internal]: left behind trailing whitespace
      --> tests/fail/stacked_borrows/illegal_read5.rs:15:15:1
       |
    15 |
       | ^^^^
       |

    warning: rustfmt has failed to format. See previous 1 errors.

    error[internal]: left behind trailing whitespace
      --> tests/fail/stacked_borrows/illegal_read1.rs:10:10:1
       |
    10 |
       | ^^^^
       |

    warning: rustfmt has failed to format. See previous 1 errors.

    error[internal]: left behind trailing whitespace
     --> tests/fail/erroneous_const2.rs:9:9:1
      |
    9 |
      | ^^^^
      |

    warning: rustfmt has failed to format. See previous 1 errors.