Commit graph

2907 commits

Author SHA1 Message Date
Ralf Jung
118be4182c add './miri doc' command 2024-08-10 12:59:18 +02:00
Ralf Jung
d2e0970bde update suggested RA config; the './miri cargo' command is not needed any more 2024-08-10 12:59:18 +02:00
Ralf Jung
f7c938aaf0 miri-script: use --remap-path-prefix to print errors relative to the right root 2024-08-10 12:59:18 +02:00
Ralf Jung
dc54f1dccd miri_print_borrow_state: show error when AllocId is invalid 2024-08-09 10:54:07 +02:00
Zachary S
21f91750ab Don't panic on miri_print_borrow_state() under -Zmiri-disable-stacked-borrows. 2024-08-08 21:06:12 -05:00
Ralf Jung
d4809545ee allow all code to call getuid() 2024-08-07 15:26:59 +02:00
bors
2f405ebc45 Auto merge of #3747 - RalfJung:sse-cleanup, r=RalfJung
remove some SSE/SSE2 intrinsics that are no longer used by stdarch

Fixes https://github.com/rust-lang/miri/issues/3691
2024-08-07 09:53:36 +00:00
Ralf Jung
deeccf9d3e remove some SSE/SSE2 intrinsics that are no longer used by stdarch 2024-08-07 11:36:43 +02:00
The Miri Cronjob Bot
630ad88772 Merge from rustc 2024-08-07 05:04:50 +00:00
The Miri Cronjob Bot
0475bddae2 Preparing for merge from rustc 2024-08-07 04:57:07 +00:00
Ralf Jung
5783e73f46 make some Frame fields more private 2024-08-06 11:08:14 +02:00
Ralf Jung
522af10ccc interpret: refactor function call handling to be better-abstracted 2024-08-06 11:08:12 +02:00
bors
c755314d78 Auto merge of #3792 - RalfJung:test-typo, r=RalfJung
add and fix return-place-protection tests
2024-08-06 09:03:03 +00:00
Ralf Jung
7d066c4edd add return-place-protection tail-call test, and fix previous test 2024-08-06 11:00:18 +02:00
The Miri Cronjob Bot
ac3e349110 Merge from rustc 2024-08-06 05:05:14 +00:00
The Miri Cronjob Bot
2431949e2a Preparing for merge from rustc 2024-08-06 04:57:39 +00:00
bors
b586701f78 Auto merge of #128707 - matthiaskrgr:rollup-63klywk, r=matthiaskrgr
Rollup of 5 pull requests

Successful merges:

 - #122049 (Promote riscv64gc-unknown-linux-musl to tier 2)
 - #128580 (Use `ParamEnv::reveal_all` in CFI)
 - #128688 (custom MIR: add support for tail calls)
 - #128694 (Normalize when equating `dyn` tails in MIR borrowck)
 - #128697 (interpret: move nullary-op evaluation into operator.rs)

r? `@ghost`
`@rustbot` modify labels: rollup
2024-08-05 22:53:14 +00:00
Ralf Jung
46896d6f66 interpret: move nullary-op evaluation into operator.rs 2024-08-05 22:42:34 +02:00
bors
a554f4d715 Auto merge of #3789 - RalfJung:deps, r=RalfJung
bump dependencies

In particular pick up https://github.com/RalfJung/rustc-build-sysroot/pull/22 to fix the fallout from https://github.com/rust-lang/rust/pull/128534.
2024-08-05 17:54:48 +00:00
Ralf Jung
014fdb56b4 bump dependencies 2024-08-05 19:29:37 +02:00
Ralf Jung
b113bbec4f use a Miri-specific folder for ui tests 2024-08-05 19:25:56 +02:00
Ralf Jung
9213c6c93f bump rustc-build-sysroot dependency 2024-08-05 19:00:29 +02:00
Ralf Jung
61463fd042 fmt 2024-08-05 11:06:36 +02:00
Ralf Jung
34aa09aa53 Merge from rustc 2024-08-05 11:06:36 +02:00
Ralf Jung
d28083728d Preparing for merge from rustc 2024-08-05 10:49:01 +02:00
Ralf Jung
21c02517c3 Miri: add a flag to do recursive validity checking 2024-08-03 10:33:58 +02:00
The Miri Cronjob Bot
62e2800ee4 Merge from rustc 2024-08-03 05:11:07 +00:00
The Miri Cronjob Bot
6aab319def Preparing for merge from rustc 2024-08-03 05:03:34 +00:00
bors
5852b24490 Auto merge of #3769 - primoly:miri-start, r=RalfJung
Add `miri_start` support

This PR uses a function with the exported symbol `miri_start` as a drop-in alternative to `#[start]`. So the signature stays the same as suggested in [this comment](https://github.com/rust-lang/miri/issues/3498#issuecomment-2088560526). <del>I’ve also removed Miri’s restriction  to only work on bin crates as I don’t think this is necessary anymore.</del>

Closes #3758
2024-08-02 12:17:59 +00:00
Ralf Jung
6bb119764b docs 2024-08-02 14:16:36 +02:00
primoly
c4b7417754 Add miri_start support 2024-08-02 14:02:34 +02:00
The Miri Cronjob Bot
fc260e163a fmt 2024-08-02 05:05:50 +00:00
The Miri Cronjob Bot
85ed3fe55d Merge from rustc 2024-08-02 05:04:35 +00:00
The Miri Cronjob Bot
7d7c4db474 Preparing for merge from rustc 2024-08-02 04:56:48 +00:00
Matthias Krüger
67fcb58347
Rollup merge of #128453 - RalfJung:raw_eq, r=saethlin
raw_eq: using it on bytes with provenance is not UB (outside const-eval)

The current behavior of raw_eq violates provenance monotonicity. See https://github.com/rust-lang/rust/pull/124921 for an explanation of provenance monotonicity. It is violated in raw_eq because comparing bytes without provenance is well-defined, but adding provenance makes the operation UB.

So remove the no-provenance requirement from raw_eq. However, the requirement stays in-place for compile-time invocations of raw_eq, that indeed cannot deal with provenance.

Cc `@rust-lang/opsem`
2024-08-02 06:43:43 +02:00
Ralf Jung
5d5c97aad7 interpret: simplify pointer arithmetic logic 2024-08-01 14:25:19 +02:00
Ralf Jung
de78cb56b2 on a signed deref check, mention the right pointer in the error 2024-08-01 14:25:19 +02:00
bors
9de5630c1c Auto merge of #3782 - RalfJung:josh-roundtrip-error, r=RalfJung
when josh-proxy screws up the roundtrip, say what the involved commits are
2024-08-01 10:29:45 +00:00
Ralf Jung
91175463e4 when josh-proxy screws up the roundtrip, say what the involved commits are 2024-08-01 12:26:32 +02:00
Ralf Jung
5af27e4617 flock: a bit of cleanup 2024-08-01 11:29:40 +02:00
Ralf Jung
f97aba2271 raw_eq: using it on bytes with provenance is not UB (outside const-eval) 2024-07-31 20:26:20 +02:00
Ralf Jung
6f48edfd09 FD table: rename dup to get_ref 2024-07-31 07:53:11 +02:00
Matthias Krüger
49327a04a2
Rollup merge of #128382 - RalfJung:cargo-miri-assert, r=oli-obk
cargo-miri: better error when we seem to run inside bootstrap but something is wrong

Cc https://github.com/rust-lang/miri/issues/3775
2024-07-30 22:51:40 +02:00
Ralf Jung
6283c4dae6 FD: refactor API names a little 2024-07-30 22:32:33 +02:00
bors
f8060d282d Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68
Bump bootstrap compiler to new beta

https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2024-07-30 17:49:08 +00:00
Oli Scherer
6fc1b69993 Use Scalar consistently in foreign item emulation 2024-07-30 13:32:54 +00:00
Ralf Jung
cc7e7bc096 cargo-miri: better error when we seem to run inside bootstrap but something is wrong 2024-07-30 12:13:04 +02:00
bors
cf63c16269 Auto merge of #3770 - oli-obk:duplicator, r=oli-obk
Some FileDescriptor/FileDescription refactorings

follow-up to https://github.com/rust-lang/miri/pull/3763#discussion_r1694866428

I opted not to change the method names, as I think they are already pretty good (and the common one is the short name), and the docs should explain what they actually do, but if you feel like the names you proposed would be better, I'll just do that.
2024-07-30 06:24:44 +00:00
bors
37e7688992 Auto merge of #3759 - newpavlov:flock, r=oli-obk
Add `flock` shim
2024-07-30 06:00:12 +00:00
The Miri Cronjob Bot
8f712b5728 Merge from rustc 2024-07-30 05:11:47 +00:00