about summary refs log tree commit diff
path: root/src/tools/miri
AgeCommit message (Collapse)AuthorLines
2024-08-05interpret: move nullary-op evaluation into operator.rsRalf Jung-1/+1
2024-08-05Auto merge of #3789 - RalfJung:deps, r=RalfJungbors-310/+300
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-05bump dependenciesRalf Jung-307/+297
2024-08-05use a Miri-specific folder for ui testsRalf Jung-1/+1
2024-08-05bump rustc-build-sysroot dependencyRalf Jung-3/+3
2024-08-05fmtRalf Jung-1/+4
2024-08-05Merge from rustcRalf Jung-29/+58
2024-08-05Preparing for merge from rustcRalf Jung-1/+1
2024-08-03Promote aarch64-apple-darwin to Tier 1Evelyn Harthbrooke-2/+1
Per rust-lang/rfcs#3671.
2024-08-03Miri: add a flag to do recursive validity checkingRalf Jung-29/+57
2024-08-03Merge from rustcThe Miri Cronjob Bot-25/+0
2024-08-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-02Auto merge of #3769 - primoly:miri-start, r=RalfJungbors-11/+140
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-02docsRalf Jung-9/+24
2024-08-02Add `miri_start` supportprimoly-11/+125
2024-08-02fmtThe Miri Cronjob Bot-3/+6
2024-08-02Merge from rustcThe Miri Cronjob Bot-103/+97
2024-08-02Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-02Rollup merge of #128453 - RalfJung:raw_eq, r=saethlinMatthias Krüger-25/+0
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-01bless miri testsjoboet-4/+4
2024-08-01interpret: simplify pointer arithmetic logicRalf Jung-58/+40
2024-08-01on a signed deref check, mention the right pointer in the errorRalf Jung-43/+53
2024-08-01Auto merge of #3782 - RalfJung:josh-roundtrip-error, r=RalfJungbors-1/+4
when josh-proxy screws up the roundtrip, say what the involved commits are
2024-08-01when josh-proxy screws up the roundtrip, say what the involved commits areRalf Jung-1/+4
2024-08-01flock: a bit of cleanupRalf Jung-10/+9
2024-07-31raw_eq: using it on bytes with provenance is not UB (outside const-eval)Ralf Jung-25/+0
2024-07-31FD table: rename dup to get_refRalf Jung-6/+6
2024-07-30Rollup merge of #128382 - RalfJung:cargo-miri-assert, r=oli-obkMatthias Krüger-1/+4
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-30FD: refactor API names a littleRalf Jung-17/+17
2024-07-30Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68bors-1/+0
Bump bootstrap compiler to new beta https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2024-07-30Use Scalar consistently in foreign item emulationOli Scherer-245/+239
2024-07-30cargo-miri: better error when we seem to run inside bootstrap but something ↵Ralf Jung-1/+4
is wrong
2024-07-30Auto merge of #3770 - oli-obk:duplicator, r=oli-obkbors-33/+37
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-30Auto merge of #3759 - newpavlov:flock, r=oli-obkbors-2/+230
Add `flock` shim
2024-07-30Merge from rustcThe Miri Cronjob Bot-88/+100
2024-07-30Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-07-29Rename all `file_descriptor` variables to `file_description` to match the ↵Oli Scherer-24/+24
naming scheme of the types
2024-07-29Rename `FileDescriptor` to `FileDescriptionRef`Oli Scherer-8/+8
2024-07-29Split out actual `FileDescriptor` creationOli Scherer-4/+8
2024-07-29Make field private. It is not used outside the module and it should not be ↵Oli Scherer-1/+1
directly accessed anyway
2024-07-29Rollup merge of #128333 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-204/+807
Miri subtree update r? `@ghost`
2024-07-28step cfg(bootstrap)Mark Rousskov-1/+0
2024-07-27improve dangling/oob errors and make them more uniformRalf Jung-84/+86
2024-07-27miri: fix offset_from behavior on wildcard pointersRalf Jung-6/+16
2024-07-27fix clippyRalf Jung-1/+1
2024-07-27Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-07-26Add `flock` shimАртём Павлов [Artyom Pavlov]-2/+230
2024-07-26Auto merge of #3763 - tiif:global-fd-id, r=oli-obkbors-34/+24
Insert FileDescription instead of FileDescriptor in ``insert_fd`` This PR moves the creation of ``FileDescriptor`` inside ``insert_fd``, and ``insert_fd`` now takes in ``FileDescription`` instead of ``FileDescriptor``. This change is needed by #3712.
2024-07-26Let insert_fd takes in FileDescription instead of FileDescriptortiif-34/+24
2024-07-26Auto merge of #3766 - RalfJung:tree-borrows-int2ptr, r=RalfJungbors-138/+201
better diagnostics for Tree Borrows + int2ptr casts - Entirely reject `-Zmiri-permissive-provenance -Zmiri-tree-borrows` since that combination just doesn't work - In the int2ptr cast warning, when Tree Borrows is enabled, do not recommend `-Zmiri-permissive-provenance`, instead note that Tree Borrows does not support int2ptr casts Fixes https://github.com/rust-lang/miri/issues/3764