]> git.lizzy.rs Git - rust.git/log
rust.git
23 months agoAuto merge of #2350 - RalfJung:remove-deprecated, r=oli-obk
bors [Tue, 19 Jul 2022 12:29:29 +0000 (12:29 +0000)]
Auto merge of #2350 - RalfJung:remove-deprecated, r=oli-obk

remove deprecated options

These have been deprecated a month ago and nobody said they need them. Is that enough time? We can also let this PR sit a little.

Cc https://github.com/rust-lang/miri/issues/2187 https://github.com/rust-lang/miri/issues/2188
(keeping them open to track removing their supporting infrastructure in the core interpreter)

23 months agoAuto merge of #2388 - RalfJung:rustup, r=RalfJung
bors [Tue, 19 Jul 2022 12:04:07 +0000 (12:04 +0000)]
Auto merge of #2388 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/99461

23 months agorustup
Ralf Jung [Tue, 19 Jul 2022 12:03:39 +0000 (08:03 -0400)]
rustup

23 months agoAuto merge of #2386 - RalfJung:xargo-atomic, r=RalfJung
bors [Tue, 19 Jul 2022 11:17:12 +0000 (11:17 +0000)]
Auto merge of #2386 - RalfJung:xargo-atomic, r=RalfJung

cargo-miri: write the Xargo project files atomically

`@matthiaskrgr` this should fix https://github.com/rust-lang/miri/issues/2340. Any chance you could test this before we land it?

23 months agoAuto merge of #2387 - RalfJung:ui-readme, r=oli-obk
bors [Tue, 19 Jul 2022 09:26:14 +0000 (09:26 +0000)]
Auto merge of #2387 - RalfJung:ui-readme, r=oli-obk

update ui_test readme

I forgot to do that when changing the ignore/only syntax.

23 months agoupdate ui_test readme
Ralf Jung [Tue, 19 Jul 2022 01:42:50 +0000 (21:42 -0400)]
update ui_test readme

23 months agocargo-miri: write the Xargo project files atomically
Ralf Jung [Mon, 18 Jul 2022 23:50:03 +0000 (19:50 -0400)]
cargo-miri: write the Xargo project files atomically

23 months agoAuto merge of #2385 - RalfJung:dev, r=RalfJung
bors [Mon, 18 Jul 2022 21:49:32 +0000 (21:49 +0000)]
Auto merge of #2385 - RalfJung:dev, r=RalfJung

use env vars, not Cargo.toml, to configure out dev profile

This should fix the cargo warnings we are seeing in rustc.

23 months agouse env vars, not Cargo.toml, to configure out dev profile
Ralf Jung [Mon, 18 Jul 2022 21:47:32 +0000 (17:47 -0400)]
use env vars, not Cargo.toml, to configure out dev profile

23 months agoAuto merge of #2382 - RalfJung:atomic, r=RalfJung
bors [Mon, 18 Jul 2022 12:56:44 +0000 (12:56 +0000)]
Auto merge of #2382 - RalfJung:atomic, r=RalfJung

add support for new RMW orders

Implements support for https://github.com/rust-lang/rust/pull/98383.

Also restructure intrinsic shims a bit so we have atomic and SIMD intrinsics in their own file, and refactor atomic intrinsic name parsing.

23 months agorefactor atomic intrinsic handling to actually parse the intrinsic name
Ralf Jung [Mon, 18 Jul 2022 12:55:50 +0000 (08:55 -0400)]
refactor atomic intrinsic handling to actually parse the intrinsic name

23 months agomake atomic intrinsic impl details private
Ralf Jung [Mon, 18 Jul 2022 12:22:27 +0000 (08:22 -0400)]
make atomic intrinsic impl details private

23 months agoadd support for new RMW orders
Ralf Jung [Mon, 18 Jul 2022 12:20:06 +0000 (08:20 -0400)]
add support for new RMW orders

23 months agoremove ret param from foreign_item hierarchy
Ralf Jung [Mon, 18 Jul 2022 12:05:46 +0000 (08:05 -0400)]
remove ret param from foreign_item hierarchy

23 months agomove simd intrinsics to their own file
Ralf Jung [Mon, 18 Jul 2022 12:00:36 +0000 (08:00 -0400)]
move simd intrinsics to their own file

23 months agomove atomic intrinsics to their own file
Ralf Jung [Mon, 18 Jul 2022 11:55:11 +0000 (07:55 -0400)]
move atomic intrinsics to their own file

23 months agoAuto merge of #2379 - RalfJung:ui-test-target-filter, r=oli-obk
bors [Mon, 18 Jul 2022 07:26:49 +0000 (07:26 +0000)]
Auto merge of #2379 - RalfJung:ui-test-target-filter, r=oli-obk

ui_test: more robust syntax for target filtering

Implicit fallbacks are always fragile and prone to typos, so let's be explicit.

23 months agoAuto merge of #2380 - RalfJung:isatty, r=RalfJung
bors [Mon, 18 Jul 2022 02:32:04 +0000 (02:32 +0000)]
Auto merge of #2380 - RalfJung:isatty, r=RalfJung

isatty tweaks

`@saethlin` I realized we need to gate this behind the isolation flag, sorry. :/  The point of isolated mode is that it is 100% deterministic, so we cannot call host functions that might give different answers on different runs.

23 months agolibc test: also call isatty on an actual file
Ralf Jung [Mon, 18 Jul 2022 01:51:52 +0000 (21:51 -0400)]
libc test: also call isatty on an actual file

23 months agomake an expect into proper error reporting
Ralf Jung [Mon, 18 Jul 2022 01:57:56 +0000 (21:57 -0400)]
make an expect into proper error reporting

23 months agoui_test: more robust syntax for target filtering
Ralf Jung [Mon, 18 Jul 2022 01:54:10 +0000 (21:54 -0400)]
ui_test: more robust syntax for target filtering

23 months agowith isolation we want to be fully deterministic
Ralf Jung [Mon, 18 Jul 2022 01:50:10 +0000 (21:50 -0400)]
with isolation we want to be fully deterministic

23 months agoAuto merge of #2349 - saethlin:isatty, r=RalfJung
bors [Mon, 18 Jul 2022 01:37:38 +0000 (01:37 +0000)]
Auto merge of #2349 - saethlin:isatty, r=RalfJung

Improve isatty support

Per https://github.com/rust-lang/miri/issues/2292#issuecomment-1171858283, this is an attempt at

> do something more clever with Miri's `isatty` shim

Since Unix -> Unix is very simple, I'm starting with a patch that just does that. Happy to augment/rewrite this based on feedback.

The linked file in libtest specifically only supports stdout. If we're doing this to support terminal applications, I think it would be strange to support one but not all 3 of the standard streams.

The `atty` crate contains a bunch of extra logic that libtest does not contain, in order to support MSYS terminals: https://github.com/softprops/atty/commit/db8d55f88eabfcc22cde39533c2b1d688d1cdfc6 so I think if we're going to do Windows support, we should probably access all that logic somehow. I think it's pretty clear that the implementation is not going to change, so I think if we want to, pasting the contents of the `atty` crate into Miri is on the table, instead of taking a dependency.

23 months agoTest that isatty doesn't crash
Ben Kimock [Mon, 18 Jul 2022 01:13:59 +0000 (21:13 -0400)]
Test that isatty doesn't crash

23 months agoPass through isatty if the host is also unix
Ben Kimock [Fri, 8 Jul 2022 18:48:26 +0000 (14:48 -0400)]
Pass through isatty if the host is also unix

23 months agoAuto merge of #2378 - RalfJung:sb, r=RalfJung
bors [Sun, 17 Jul 2022 14:40:37 +0000 (14:40 +0000)]
Auto merge of #2378 - RalfJung:sb, r=RalfJung

use PlaceTy visitor and dedup sime retagging code

I benchmarked this and as far as I can see the difference to the old code is totally within noise. And this makes the code a lot simpler and removes duplication so yay. :)

23 months agoremove a fastpath that does not seem to actually help
Ralf Jung [Sun, 17 Jul 2022 14:32:03 +0000 (10:32 -0400)]
remove a fastpath that does not seem to actually help

23 months agouse PlaceTy visitor
Ralf Jung [Sun, 17 Jul 2022 14:19:29 +0000 (10:19 -0400)]
use PlaceTy visitor

23 months agoAuto merge of #2376 - RalfJung:rustup, r=RalfJung
bors [Sun, 17 Jul 2022 12:19:31 +0000 (12:19 +0000)]
Auto merge of #2376 - RalfJung:rustup, r=RalfJung

rustup

23 months agomake unused flags work like they used to
Ralf Jung [Sun, 17 Jul 2022 03:44:37 +0000 (23:44 -0400)]
make unused flags work like they used to

23 months agoAuto merge of #2377 - rust-lang:only-on-host, r=oli-obk
bors [Sun, 17 Jul 2022 11:00:55 +0000 (11:00 +0000)]
Auto merge of #2377 - rust-lang:only-on-host, r=oli-obk

Add test flag for running a test only on the host

23 months agoclippy
Oli Scherer [Sun, 17 Jul 2022 08:07:26 +0000 (08:07 +0000)]
clippy

23 months agoAdd test flag for running a test only on the host
Oli Scherer [Sun, 17 Jul 2022 07:56:57 +0000 (07:56 +0000)]
Add test flag for running a test only on the host

23 months agoRemove `--offline` from `./miri install` as otherwise we can't add more dependencies...
Oli Scherer [Sun, 17 Jul 2022 07:46:02 +0000 (07:46 +0000)]
Remove `--offline` from `./miri install` as otherwise we can't add more dependencies to miri as CI will fail.

if you want this locally, pass it to your invocation.

23 months agorustup
Ralf Jung [Sun, 17 Jul 2022 03:40:36 +0000 (23:40 -0400)]
rustup

23 months agoAuto merge of #2368 - RalfJung:debug, r=oli-obk
bors [Fri, 15 Jul 2022 15:54:47 +0000 (15:54 +0000)]
Auto merge of #2368 - RalfJung:debug, r=oli-obk

Make "./miri {build,run,test}" use debug assertions but "./miri install" not

This makes `./miri run`/`./miri test` use the full set of debug assertions (including the rather expensive ones that check consistency of the Stacked Borrows cache), but `./miri install` installs a Miri *without* those debug assertions.

That's the same behavior as cargo, and helps catch Miri bugs with the test suite while making installed Miri usable for larger runs.

23 months agoAuto merge of #2375 - RalfJung:rustup, r=RalfJung
bors [Fri, 15 Jul 2022 13:39:11 +0000 (13:39 +0000)]
Auto merge of #2375 - RalfJung:rustup, r=RalfJung

Rustup

23 months agorustup
Ralf Jung [Fri, 15 Jul 2022 12:09:43 +0000 (08:09 -0400)]
rustup

23 months agoclarify how to run the manually installed Miri
Ralf Jung [Fri, 15 Jul 2022 12:02:13 +0000 (08:02 -0400)]
clarify how to run the manually installed Miri

23 months agoensure that RangeMap panics on OOB
Ralf Jung [Thu, 14 Jul 2022 18:27:24 +0000 (14:27 -0400)]
ensure that RangeMap panics on OOB

23 months agomake some debug assertions in RangeObjectMap be full assertions
Ralf Jung [Thu, 14 Jul 2022 17:23:35 +0000 (13:23 -0400)]
make some debug assertions in RangeObjectMap be full assertions

23 months agouse the cargo default for debug/release builds
Ralf Jung [Thu, 14 Jul 2022 17:08:09 +0000 (13:08 -0400)]
use the cargo default for debug/release builds

23 months agomake cache consistency checks into regular debug assertions
Ralf Jung [Thu, 14 Jul 2022 12:06:37 +0000 (08:06 -0400)]
make cache consistency checks into regular debug assertions

23 months agodon't forcefully enable debug assertions, but make -debug mode usable
Ralf Jung [Wed, 13 Jul 2022 23:22:22 +0000 (19:22 -0400)]
don't forcefully enable debug assertions, but make -debug mode usable

still set those flags on CI though, we want to catch overflow there

23 months agoAuto merge of #2372 - RalfJung:rustup, r=RalfJung
bors [Thu, 14 Jul 2022 13:55:40 +0000 (13:55 +0000)]
Auto merge of #2372 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/99224

23 months agorustup
Ralf Jung [Thu, 14 Jul 2022 13:54:20 +0000 (09:54 -0400)]
rustup

23 months agoAuto merge of #2370 - RalfJung:weak-mem-test, r=RalfJung
bors [Thu, 14 Jul 2022 12:23:47 +0000 (12:23 +0000)]
Auto merge of #2370 - RalfJung:weak-mem-test, r=RalfJung

add another weak mem consistency test

`@cbeuw` your code seems to do this correctly? :D

23 months agotest that we can see this weak behavior
Ralf Jung [Thu, 14 Jul 2022 12:23:04 +0000 (08:23 -0400)]
test that we can see this weak behavior

23 months agoreplace a macro by a function
Ralf Jung [Thu, 14 Jul 2022 12:13:24 +0000 (08:13 -0400)]
replace a macro by a function

23 months agoadd work-around for #2164
Ralf Jung [Thu, 14 Jul 2022 12:07:59 +0000 (08:07 -0400)]
add work-around for #2164

23 months agoAuto merge of #2371 - RalfJung:rustup, r=RalfJung
bors [Thu, 14 Jul 2022 11:59:46 +0000 (11:59 +0000)]
Auto merge of #2371 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/99224

23 months agofix a missing thread join
Ralf Jung [Thu, 14 Jul 2022 11:29:20 +0000 (07:29 -0400)]
fix a missing thread join

23 months agorustup
Ralf Jung [Thu, 14 Jul 2022 02:35:45 +0000 (22:35 -0400)]
rustup

23 months agoadd another weak mem consistency test
Ralf Jung [Thu, 14 Jul 2022 00:18:45 +0000 (20:18 -0400)]
add another weak mem consistency test

23 months agoAuto merge of #2328 - RalfJung:perf, r=RalfJung
bors [Thu, 14 Jul 2022 00:34:00 +0000 (00:34 +0000)]
Auto merge of #2328 - RalfJung:perf, r=RalfJung

move checking ptr tracking on item pop into cold helper function

Before:
```
Benchmark 1: cargo miri run --manifest-path bench-cargo-miri/serde1/Cargo.toml
  Time (mean ± σ):      6.729 s ±  0.050 s    [User: 6.608 s, System: 0.124 s]
  Range (min … max):    6.665 s …  6.799 s    5 runs

Benchmark 2: cargo miri run --manifest-path bench-cargo-miri/unicode/Cargo.toml
  Time (mean ± σ):     20.923 s ±  0.271 s    [User: 20.386 s, System: 0.537 s]
  Range (min … max):   20.580 s … 21.165 s    5 runs
```
After:
```
Benchmark 1: cargo miri run --manifest-path bench-cargo-miri/serde1/Cargo.toml
  Time (mean ± σ):      6.562 s ±  0.023 s    [User: 6.430 s, System: 0.135 s]
  Range (min … max):    6.544 s …  6.594 s    5 runs

Benchmark 2: cargo miri run --manifest-path bench-cargo-miri/unicode/Cargo.toml
  Time (mean ± σ):     20.375 s ±  0.228 s    [User: 19.964 s, System: 0.413 s]
  Range (min … max):   20.201 s … 20.736 s    5 runs
```
Nothing major, but we'll take it I guess. :shrug:

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

23 months agoAuto merge of #2369 - RalfJung:reborrow, r=RalfJung
bors [Thu, 14 Jul 2022 00:04:40 +0000 (00:04 +0000)]
Auto merge of #2369 - RalfJung:reborrow, r=RalfJung

reborrow error: clarify that we are reborrowing *from* that tag

`@saethlin` I found the current message not entirely clear, so what do you think about this?

23 months agoreborrow error: clarify that we are reborrowing *from* that tag
Ralf Jung [Wed, 13 Jul 2022 23:40:53 +0000 (19:40 -0400)]
reborrow error: clarify that we are reborrowing *from* that tag

23 months agomove stacked_borrows.rs together with the other files of its module
Ralf Jung [Wed, 13 Jul 2022 23:37:41 +0000 (19:37 -0400)]
move stacked_borrows.rs together with the other files of its module

23 months agoAuto merge of #2367 - RalfJung:ui-test-regex, r=RalfJung
bors [Wed, 13 Jul 2022 23:00:23 +0000 (23:00 +0000)]
Auto merge of #2367 - RalfJung:ui-test-regex, r=RalfJung

use ui_test regex capabilities

We can have more precise patterns now, so use them for some of the tests where that makes sense. :)

23 months agouse ui_test regex capabilities
Ralf Jung [Wed, 13 Jul 2022 22:59:33 +0000 (18:59 -0400)]
use ui_test regex capabilities

23 months agomove checking ptr tracking on item pop into cold helper function
Ralf Jung [Mon, 4 Jul 2022 18:53:54 +0000 (14:53 -0400)]
move checking ptr tracking on item pop into cold helper function

23 months agoAuto merge of #2364 - rust-lang:regex_error_annotations, r=RalfJung
bors [Wed, 13 Jul 2022 16:53:38 +0000 (16:53 +0000)]
Auto merge of #2364 - rust-lang:regex_error_annotations, r=RalfJung

Error patterns can be regexes

fixes #2362

23 months agoError patterns can be regexes
Oli Scherer [Wed, 13 Jul 2022 13:09:23 +0000 (13:09 +0000)]
Error patterns can be regexes

23 months agoAuto merge of #2352 - saethlin:new-benchmark, r=RalfJung
bors [Wed, 13 Jul 2022 14:24:14 +0000 (14:24 +0000)]
Auto merge of #2352 - saethlin:new-benchmark, r=RalfJung

Add a benchmark of the hang-on-test-failure code path

This is the code pattern that produces the performance problem in https://github.com/rust-lang/miri/issues/2273

I figured out what I was stuck on in https://github.com/rust-lang/miri/pull/2315#discussion_r916387919. For a while I was just doing `let x: &[u8] = &[0u8; 4096];` but that doesn't produce the runtime inside `Stack::item_popped` that I was looking for, I think because this allocation is never deallocated. But with `Vec`, I get the profile I'm looking for.

23 months agoAdd a benchmark of the hang-on-test-failure code path
Ben Kimock [Sat, 9 Jul 2022 23:53:21 +0000 (19:53 -0400)]
Add a benchmark of the hang-on-test-failure code path

23 months agoAuto merge of #2315 - saethlin:shrink-item, r=saethlin
bors [Wed, 13 Jul 2022 01:44:01 +0000 (01:44 +0000)]
Auto merge of #2315 - saethlin:shrink-item, r=saethlin

Optimizing Stacked Borrows (part 2): Shrink Item

This moves protectors out of `Item`, storing them both in a global `HashSet` which contains all currently-protected tags as well as a `Vec<SbTag>` on each `Frame` so that when we return from a function we know which tags to remove from the protected set.

This also bit-packs the 64-bit tag and the 2-bit permission together when they are stored in memory. This means we theoretically run out of tags sooner, but I doubt that limit will ever be hit.

Together these optimizations reduce the memory footprint of Miri when executing programs which stress Stacked Borrows by ~66%. For example, running a test with isolation off which only panics currently peaks at ~19 GB, with this PR it peaks at ~6.2 GB.

To-do
- [x] Enforce the 62-bit limit
- [x] Decide if there is a better order to pack the tag and permission in
- [x] Wait for `UnsafeCell` to become infectious, or express offsets + tags in the global protector set

Benchmarks before:
```
Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/backtraces/Cargo.toml
  Time (mean ± σ):      8.948 s ±  0.253 s    [User: 8.752 s, System: 0.158 s]
  Range (min … max):    8.619 s …  9.279 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/mse/Cargo.toml
  Time (mean ± σ):      2.129 s ±  0.037 s    [User: 1.849 s, System: 0.248 s]
  Range (min … max):    2.086 s …  2.176 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/serde1/Cargo.toml
  Time (mean ± σ):      3.334 s ±  0.017 s    [User: 3.211 s, System: 0.103 s]
  Range (min … max):    3.315 s …  3.352 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/serde2/Cargo.toml
  Time (mean ± σ):      3.316 s ±  0.038 s    [User: 3.207 s, System: 0.095 s]
  Range (min … max):    3.282 s …  3.375 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/unicode/Cargo.toml
  Time (mean ± σ):      6.391 s ±  0.323 s    [User: 5.928 s, System: 0.412 s]
  Range (min … max):    6.090 s …  6.917 s    5 runs
 ```
 After:
 ```
Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/backtraces/Cargo.toml
  Time (mean ± σ):      6.955 s ±  0.051 s    [User: 6.807 s, System: 0.132 s]
  Range (min … max):    6.900 s …  7.038 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/mse/Cargo.toml
  Time (mean ± σ):      1.784 s ±  0.012 s    [User: 1.627 s, System: 0.156 s]
  Range (min … max):    1.772 s …  1.797 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/serde1/Cargo.toml
  Time (mean ± σ):      2.505 s ±  0.095 s    [User: 2.311 s, System: 0.096 s]
  Range (min … max):    2.405 s …  2.603 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/serde2/Cargo.toml
  Time (mean ± σ):      2.449 s ±  0.031 s    [User: 2.306 s, System: 0.100 s]
  Range (min … max):    2.395 s …  2.467 s    5 runs

Benchmark 1: cargo +miri miri run --manifest-path bench-cargo-miri/unicode/Cargo.toml
  Time (mean ± σ):      3.667 s ±  0.110 s    [User: 3.498 s, System: 0.140 s]
  Range (min … max):    3.564 s …  3.814 s    5 runs
 ```
 The decrease in system time is probably due to spending less time in the page fault handler.

23 months agoRearrange and document the new implementation
Ben Kimock [Tue, 12 Jul 2022 00:54:31 +0000 (20:54 -0400)]
Rearrange and document the new implementation

stacked_borrow now has an item module, and its own FrameExtra. These
serve to protect the implementation of Item (which is a bunch of
bit-packing tricks) from the primary logic of Stacked Borrows, and the
FrameExtra we have separates Stacked Borrows more cleanly from the
interpreter itself.

The new strategy for checking protectors also makes some subtle
performance tradeoffs, so they are now documented in Stack::item_popped
because that function primarily benefits from them, and it also touches
every aspect of them.

Also separating the actual CallId that is protecting a Tag from the Tag
makes it inconvienent to reproduce exactly the same protector errors, so
this also takes the opportunity to use some slightly cleaner English in
those errors. We need to make some change, might as well make it good.

23 months agoStore protectors outside Item, pack Tag and Perm
Ben Kimock [Sat, 2 Jul 2022 18:38:23 +0000 (14:38 -0400)]
Store protectors outside Item, pack Tag and Perm

Previously, Item was a struct of a NonZeroU64, an Option which was
usually unset or irrelevant, and a 4-variant enum. So collectively, the
size of an Item was 24 bytes, but only 8 bytes were used for the most
part.

So this takes advantage of the fact that it is probably impossible to
exhaust the total space of SbTags, and steals 3 bits from it to pack the
whole struct into a single u64. This bit-packing means that we reduce
peak memory usage when Miri goes memory-bound by ~3x. We also get CPU
performance improvements of varying size, because not only are we simply
accessing less memory, we can now compare a Vec<Item> using a memcmp
because it does not have any padding.

23 months agoAuto merge of #2361 - RalfJung:uninit, r=RalfJung
bors [Tue, 12 Jul 2022 13:56:49 +0000 (13:56 +0000)]
Auto merge of #2361 - RalfJung:uninit, r=RalfJung

test that we also find bad uses of mem::uninitialized

Also we really don't need to separately test signed and unsigned integers... our test suite is big enough as it is. ;)

23 months agotest that we also find bad uses of mem::uninitialized
Ralf Jung [Tue, 12 Jul 2022 13:49:11 +0000 (09:49 -0400)]
test that we also find bad uses of mem::uninitialized

23 months agoAuto merge of #2359 - RalfJung:triagebot, r=RalfJung
bors [Tue, 12 Jul 2022 02:56:24 +0000 (02:56 +0000)]
Auto merge of #2359 - RalfJung:triagebot, r=RalfJung

set up triagebot

`@Mark-Simulacrum` does this look like a sensible configuration?

23 months agoallow some relabeling as well
Ralf Jung [Tue, 12 Jul 2022 02:55:59 +0000 (22:55 -0400)]
allow some relabeling as well

23 months agoremove deprecated options
Ralf Jung [Sat, 9 Jul 2022 14:13:19 +0000 (10:13 -0400)]
remove deprecated options

23 months agoset up triagebot
Ralf Jung [Tue, 12 Jul 2022 01:27:05 +0000 (21:27 -0400)]
set up triagebot

23 months agoAuto merge of #2356 - rust-lang:slash_slash_at, r=RalfJung
bors [Mon, 11 Jul 2022 20:13:00 +0000 (20:13 +0000)]
Auto merge of #2356 - rust-lang:slash_slash_at, r=RalfJung

require level and colon in `//~` style comments

implements https://github.com/rust-lang/miri/pull/2348#issuecomment-1179551953

23 months agoDocument require-annotations-for-level
Oli Scherer [Mon, 11 Jul 2022 17:25:56 +0000 (17:25 +0000)]
Document require-annotations-for-level

23 months agoFix annotation filtering with revisions
Oli Scherer [Mon, 11 Jul 2022 17:19:10 +0000 (17:19 +0000)]
Fix annotation filtering with revisions

23 months agoPacify clippy
Oli Scherer [Mon, 11 Jul 2022 12:21:02 +0000 (12:21 +0000)]
Pacify clippy

23 months agoRemove error annotations stderr
Oli Scherer [Mon, 11 Jul 2022 11:50:33 +0000 (11:50 +0000)]
Remove error annotations stderr

they still showed up in multiline messages

23 months agorequire level and colon in `//~` style comments
Oli Scherer [Mon, 11 Jul 2022 11:44:55 +0000 (11:44 +0000)]
require level and colon in `//~` style comments

23 months agoAuto merge of #2354 - Techie-Pi:patch-1, r=RalfJung
bors [Mon, 11 Jul 2022 00:47:16 +0000 (00:47 +0000)]
Auto merge of #2354 - Techie-Pi:patch-1, r=RalfJung

Fix README typo

"behaivours" -> "behaviours".
Just something I noticed while reading

23 months agoAuto merge of #2355 - RalfJung:rustup, r=RalfJung
bors [Mon, 11 Jul 2022 00:21:38 +0000 (00:21 +0000)]
Auto merge of #2355 - RalfJung:rustup, r=RalfJung

make a test deterministic

23 months agomake more tests deterministic
Ralf Jung [Mon, 11 Jul 2022 00:19:41 +0000 (20:19 -0400)]
make more tests deterministic

23 months agomake a test deterministic
Ralf Jung [Mon, 11 Jul 2022 00:15:35 +0000 (20:15 -0400)]
make a test deterministic

23 months agoFix README typo
TechiePi [Sun, 10 Jul 2022 21:41:35 +0000 (23:41 +0200)]
Fix README typo

"behaivours" -> "behaviours".
Just something I noticed while reading

23 months agoAuto merge of #2351 - RalfJung:readlink, r=RalfJung
bors [Sat, 9 Jul 2022 16:50:00 +0000 (16:50 +0000)]
Auto merge of #2351 - RalfJung:readlink, r=RalfJung

extend a comment in readlink

23 months agoextend a comment in readlink
Ralf Jung [Sat, 9 Jul 2022 16:49:37 +0000 (12:49 -0400)]
extend a comment in readlink

23 months agoAuto merge of #2348 - RalfJung:ui-test, r=RalfJung
bors [Sat, 9 Jul 2022 11:51:32 +0000 (11:51 +0000)]
Auto merge of #2348 - RalfJung:ui-test, r=RalfJung

ui_test: require colon after command

Turns out we already use colons everywhere properly.

Also rename ui_test::comments to parser. I think that better describes its contents. :)

23 months agotypo
Ralf Jung [Sat, 9 Jul 2022 11:51:06 +0000 (07:51 -0400)]
typo

Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
23 months agorename ui_test::comments → parser
Ralf Jung [Fri, 8 Jul 2022 21:18:17 +0000 (17:18 -0400)]
rename ui_test::comments → parser

23 months agoui_test: require colon after command
Ralf Jung [Fri, 8 Jul 2022 21:17:44 +0000 (17:17 -0400)]
ui_test: require colon after command

23 months agoAuto merge of #2332 - rust-lang:slash_slash_at, r=oli-obk
bors [Fri, 8 Jul 2022 16:09:06 +0000 (16:09 +0000)]
Auto merge of #2332 - rust-lang:slash_slash_at, r=oli-obk

More robust comment parsing

fixes #2170

I haven't ported the entire test suite yet. Once we've done that, I will remove the old parsing system (or in fact, turn them into errors so that accidental usage of old-style comments will be detected)

23 months agoPort all tests
Oli Scherer [Fri, 8 Jul 2022 16:08:32 +0000 (16:08 +0000)]
Port all tests

23 months agoHide regular backtrace information from user-facing errors
Oli Scherer [Fri, 8 Jul 2022 15:20:28 +0000 (15:20 +0000)]
Hide regular backtrace information from user-facing errors

23 months agoDocumentation
Oli Scherer [Fri, 8 Jul 2022 15:16:16 +0000 (15:16 +0000)]
Documentation

23 months agoAdd FIXME
Oli Scherer [Fri, 8 Jul 2022 15:14:25 +0000 (15:14 +0000)]
Add FIXME

23 months agoRustfmt
Oli Scherer [Thu, 7 Jul 2022 09:20:48 +0000 (09:20 +0000)]
Rustfmt

23 months agoCreate a proper normalization regex parser
Oli Scherer [Thu, 7 Jul 2022 08:55:24 +0000 (08:55 +0000)]
Create a proper normalization regex parser

23 months agoExplain `tests::init` function
Oli Scherer [Thu, 7 Jul 2022 08:15:21 +0000 (08:15 +0000)]
Explain `tests::init` function

23 months agoAdd some comments
Oli Scherer [Thu, 7 Jul 2022 08:13:24 +0000 (08:13 +0000)]
Add some comments