Skip to content

Commit eeeb021

Browse files
committedFeb 17, 2024
Auto merge of #121232 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
·
1.88.01.78.0
2 parents ba824a2 + fd5a84b commit eeeb021

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2116
-265
lines changed
 

‎Cargo.lock

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,14 +2524,12 @@ dependencies = [
25242524
"aes",
25252525
"colored",
25262526
"ctrlc",
2527-
"env_logger 0.10.2",
25282527
"getrandom",
25292528
"jemalloc-sys",
25302529
"lazy_static",
25312530
"libc",
25322531
"libffi",
25332532
"libloading",
2534-
"log",
25352533
"measureme",
25362534
"rand",
25372535
"regex",

‎src/tools/miri/CONTRIBUTING.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ custom target file, you might have to set `MIRI_NO_STD=1`.
7878
base directory, e.g. `./miri test fail` will run all compile-fail tests). These filters are passed
7979
to `cargo test`, so for multiple filers you need to use `./miri test -- FILTER1 FILTER2`.
8080

81+
#### Fine grained logging
82+
8183
You can get a trace of which MIR statements are being executed by setting the
8284
`MIRI_LOG` environment variable. For example:
8385

@@ -94,9 +96,16 @@ stacked borrows implementation:
9496
MIRI_LOG=rustc_mir::interpret=info,miri::stacked_borrows ./miri run tests/pass/vec.rs
9597
```
9698

97-
In addition, you can set `MIRI_BACKTRACE=1` to get a backtrace of where an
99+
Note that you will only get `info`, `warn` or `error` messages if you use a prebuilt compiler.
100+
In order to get `debug` and `trace` level messages, you need to build miri with a locally built
101+
compiler that has `debug=true` set in `config.toml`.
102+
103+
#### Debugging error messages
104+
105+
You can set `MIRI_BACKTRACE=1` to get a backtrace of where an
98106
evaluation error was originally raised.
99107

108+
100109
### UI testing
101110

102111
We use ui-testing in Miri, meaning we generate `.stderr` and `.stdout` files for the output

0 commit comments

Comments
 (0)
Please sign in to comment.