rust/src/etc
bors 5958f5e08f Auto merge of #123317 - RalfJung:test-in-miri, r=m-ou-se,saethlin,onur-ozkan
Support running library tests in Miri

This adds a new bootstrap subcommand `./x.py miri` which can test libraries in Miri. This is in preparation for eventually doing that as part of bors CI, but this PR only adds the infrastructure, and doesn't enable it yet.

`@rust-lang/bootstrap` should this be `x.py test --miri library/core` or `x.py miri library/core`? The flag has the advantage that we don't have to copy all the arguments from `Subcommand::Test`. It has the disadvantage that most test steps just ignore `--miri` and still run tests the regular way. For clippy you went the route of making it a separate subcommand. ~~I went with a flag now as that seemed easier, but I can change this.~~ I made it a new subcommand. Note however that the regular cargo invocation would be `cargo miri test ...`, so `x.py` is still going to be different in that the `test` is omitted. That said, we could also make it `./x.py miri-test` to make that difference smaller -- that's in fact more consistent with the internal name of the command when bootstrap invokes cargo.

`@rust-lang/libs` ~~unfortunately this PR does some unholy things to the `lib.rs` files of our library crates.~~
`@m-ou-se` found a way that entirely avoids library-level hacks, except for some new small `lib.miri.rs` files that hopefully you will never have to touch. There's a new hack in cargo-miri but there it is in good company...
2024-04-05 13:17:09 +00:00
..
completions Auto merge of #123317 - RalfJung:test-in-miri, r=m-ou-se,saethlin,onur-ozkan 2024-04-05 13:17:09 +00:00
installer Raise minimum supported macOS to 10.12 2023-09-23 19:14:25 -05:00
natvis Try fixing debuginfo test. 2024-03-14 17:34:58 +01:00
test-float-parse Add two lockfiles 2023-10-10 12:47:26 +00:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
cat-and-grep.sh simplify 2022-09-26 21:56:08 +08:00
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
cpu-usage-over-time-plot.sh Fix a bunch of typo 2022-08-31 18:24:55 +08:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
dec2flt_table.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_load_rust_pretty_printers.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_lookup.py Rewrite gdb pretty-printer registration 2023-10-20 10:35:28 -06:00
gdb_providers.py Fix StdNonZeroNumberProvider for gdb. 2024-03-14 17:34:59 +01:00
generate-deriving-span-tests.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
generate-keyword-tests.py remove unnecessary import statement 2020-02-08 00:03:51 -05:00
htmldocck.py Improve htmldocck error a bit by providing line where error occurred 2023-07-19 14:34:06 +02:00
indenter fix some python3 incompatibilities 2017-11-16 13:34:13 -05:00
lldb_batchmode.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
lldb_commands Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00
lldb_lookup.py Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00
lldb_providers.py Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00
pre-push.sh User may want to skip tidy check sometimes 2023-06-30 15:37:10 +08:00
rust-gdb Typo fix in src/etc/rust-gdb 2023-04-14 19:07:13 -07:00
rust-gdbgui rust-gdbgui: remove excessive quotes 2023-08-22 09:09:00 -04:00
rust-lldb Fix loading pretty-printers in rust-lldb script 2020-08-28 09:29:45 +03:00
rust-windbg.cmd Remove licenses 2018-12-25 21:08:33 -07:00
rust_analyzer_settings.json Increase vscode git.detectSubmodulesLimit 2024-01-19 23:46:17 +04:00
rust_types.py Add rust-lldb pretty printing for Path and PathBuf 2024-03-29 18:02:26 -06:00