about summary refs log tree commit diff
path: root/src/tools/miri
AgeCommit message (Collapse)AuthorLines
2024-03-24desperate hack: hard-code bash path on WindowsRalf Jung-1/+10
2024-03-24try to fix many-seeds tests on WindowsRalf Jung-1/+2
2024-03-24Auto merge of #3398 - tiif:add_libc_fs_test, r=RalfJungbors-5/+71
Add libc direct test for shims and update CONTRIBUTING.md Add more ``libc`` direct test for shims as mentioned in #3179. Changes: - Added ``libc`` direct tests for ``rename`` and ``ftruncate64`` - Added the command for running ``pass-dep`` test in ``CONTRIBUTING.md``
2024-03-24Add libc test for rename and ftruncatetiif-5/+71
2024-03-24miri-script/toolchain: make new_commit logic easier to followRalf Jung-3/+3
2024-03-24many-seeds: propagate failure properlyRalf Jung-2/+2
2024-03-24CI tweaks and show which stable Rust we are usingRalf Jung-3/+9
2024-03-24miri script: build with stable toolchainRalf Jung-2/+2
2024-03-24Merge from rustcRalf Jung-0/+78
2024-03-24Preparing for merge from rustcRalf Jung-1/+1
2024-03-23Rollup merge of #122762 - RoboSchmied:RoboSchmied-typo, r=workingjubileeJubilee-4/+4
fix typo of endianness fix typo endianess -> endianness
2024-03-23also rename the SIMD intrinsicRalf Jung-3/+3
2024-03-23Auto merge of #122952 - RalfJung:miri, r=RalfJungbors-120/+376
Miri subtree update r? `@ghost`
2024-03-23disable RUST_BACKTRACE in CI, set it inside the test harness insteadRalf Jung-5/+9
2024-03-23when a test fails, repeat the target after the failure reportRalf Jung-0/+2
2024-03-23Auto merge of #3385 - Zoxc:read-types, r=RalfJungbors-89/+202
Report retags as distinct from real memory accesses for data races This changes the error reporting for data races such that reference invariants are no longer reported as real read and writes. Before: ``` Data race detected between (1) non-atomic write on thread `unnamed-6` and (2) non-atomic read on thread `unnamed-5` at alloc1034971+0x10c. (2) just happened here ``` After: ``` Data race detected between (1) non-atomic write on thread `unnamed-8` and (2) shared reference invariant on thread `unnamed-6` at alloc1018329+0x190. (2) just happened here ``` Non-atomic read accesses from the *other* thread don't have this information tracked so those are called `some potential non-atomic read access` here.
2024-03-23Report retags as distinct from real memory accesses for data racesJohn Kåre Alsaker-89/+202
2024-03-23Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obkbors-0/+78
Let codegen decide when to `mem::swap` with immediates Making `libcore` decide this is silly; the backend has so much better information about when it's a good idea. Thus this PR introduces a new `typed_swap` intrinsic with a fallback body, and replaces that fallback implementation when swapping immediates or scalar pairs. r? oli-obk Replaces #111744, and means we'll never need more libs PRs like #111803 or #107140
2024-03-23rename ptr::from_exposed_addr -> ptr::with_exposed_provenanceRalf Jung-30/+30
2024-03-23add support for missing SIMD float intrinsicsRalf Jung-7/+55
2024-03-23fmtThe Miri Cronjob Bot-4/+2
2024-03-23Merge from rustcThe Miri Cronjob Bot-7/+8
2024-03-23Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-03-23Auto merge of #119552 - krtab:dead_code_priv_mod_pub_field, r=cjgillot,saethlinbors-0/+2
Replace visibility test with reachability test in dead code detection Fixes https://github.com/rust-lang/rust/issues/119545 Also included is a fix for an error now flagged by the lint
2024-03-22And the tools tooMichael Goulet-4/+3
2024-03-22Programmatically convert some of the pat ctorsMichael Goulet-1/+1
2024-03-22Eagerly convert some ctors to use their specialized ctorsMichael Goulet-2/+2
2024-03-22Preparing for merge from rustcRalf Jung-1/+1
2024-03-22Codegen const panic messages as function callsMark Rousskov-2/+10
This skips emitting extra arguments at every callsite (of which there can be many). For a librustc_driver build with overflow checks enabled, this cuts 0.7MB from the resulting binary.
2024-03-21Allow `llvm.x86.sse2.pause` instrinsic to be called without SSE2Eduardo Sánchez Muñoz-6/+43
The instrinsic is compiled to a `pause` instruction, which behaves like a no-op when SSE2 is not available. https://www.felixcloutier.com/x86/pause.html
2024-03-20Update target.rs alloc.rs event.rs simd.rsRoboSchmied-4/+4
fix typos
2024-03-20run full mono-item collection on all MIRI_BE_RUSTC=target buildsRalf Jung-4/+42
this fixes compile_fail doctests with post-mono errors
2024-03-19remove duplicate testRalf Jung-5/+0
2024-03-19Merge from rustcThe Miri Cronjob Bot-74/+16
2024-03-19Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-03-18Rollup merge of #122060 - clubby789:stabilize-imported-main, r=lcnrMatthias Krüger-6/+0
Stabilize `imported_main` FCP: https://github.com/rust-lang/rust/issues/28937#issuecomment-1977822831 Docs: https://github.com/rust-lang/reference/pull/1461
2024-03-18Rollup merge of #122647 - RalfJung:box-to-raw-retag, r=oli-obkMatthias Krüger-65/+13
add_retag: ensure box-to-raw-ptr casts are preserved for Miri In https://github.com/rust-lang/rust/pull/122233 I added `retag_box_to_raw` not realizing that we can already do `addr_of_mut!(*bx)` to turn a box into a raw pointer without an intermediate reference. We just need to ensure this information is preserved past the ElaborateBoxDerefs pass. r? ``@oli-obk``
2024-03-18Avoid various uses of `Option<Span>` in favor of using `DUMMY_SP` in the few ↵Oli Scherer-3/+3
cases that used `None`
2024-03-18remove retag_box_to_raw, it is no longer neededRalf Jung-53/+1
2024-03-18add_retag: ensure box-to-raw-ptr casts are preserved for MiriRalf Jung-12/+12
2024-03-18Auto merge of #3387 - RalfJung:bench, r=RalfJungbors-3/+4
make 'invalidate' benchmark shorter This is currently by far the slowest benchmark in our suite, taking >9s, when the second slowest takes 2.7s. So let's speed this up to 2.3s, making it still the second-slowest in the benchmark suite. `@saethlin` any objections? Also, why is this called "invalidate"? It got added in https://github.com/rust-lang/miri/pull/3083 but I can't figure out the point of that name even after looking at the PR.^^ There should be a comment in the benchmark explaining what it is testing.
2024-03-18rename 'invalidate' bench to something more clearRalf Jung-2/+3
2024-03-18add exposed-provenance example where we miss UBRalf Jung-0/+26
2024-03-17MIRI tests to confirm it's typedScott McMurray-0/+78
2024-03-17Print a backtrace in const eval if interruptedBen Kimock-15/+8
2024-03-17make 'invalidate' benchmark shorterRalf Jung-1/+1
2024-03-17fix Zulip topic for PR-creation messageRalf Jung-1/+1
2024-03-17Merge from rustcThe Miri Cronjob Bot-4/+4
2024-03-17Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-03-17Auto merge of #121885 - reitermarkus:generic-nonzero-inner, ↵bors-4/+4
r=oli-obk,wesleywiser Move generic `NonZero` `rustc_layout_scalar_valid_range_start` attribute to inner type. Tracking issue: https://github.com/rust-lang/rust/issues/120257 r? `@dtolnay`