about summary refs log tree commit diff
path: root/src/tools/miri
AgeCommit message (Collapse)AuthorLines
2024-12-19Implement blocking unnamed_sockettiif-114/+391
2024-12-18add more tests for SC access/fence consistencyRalf Jung-204/+355
2024-12-18make no-variant types a dedicated Variants variantRalf Jung-1/+1
2024-12-18Merge from rustcThe Miri Cronjob Bot-2/+2
2024-12-18Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-16rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structuresJonathan Dönszelmann-2/+2
2024-12-15Merge from rustcThe Miri Cronjob Bot-17/+9
2024-12-15Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-14Rollup merge of #134191 - willcrichton:dev, r=RalfJung,lqdMatthias Krüger-2/+6
Make some types and methods related to Polonius + Miri public We have a tool, [Aquascope](https://github.com/cognitive-engineering-lab/aquascope/), which uses Polonius and Miri to visualize the compile-time and run-time semantics of a Rust program. Changes in the last few months to both APIs have hidden away details we depend upon. This PR re-exposes some of those details, specifically: **Polonius:** - `BorrowSet` and `BorrowData` are added to `rustc_borrowck::consumers`, and their fields are made `pub` instead of `pub(crate)`. We need this to interpret the `BorrowIndex`es generated by Polonius. - `BorrowSet::build` is now `pub`. We need this because the borrowck API doesn't provide access to the `BorrowSet` constructed during checking. - `PoloniusRegionVid` is added to `rustc_borrowck::consumers`. We need this because it's also contained in the Polonius facts. **Miri:** - `InterpCx::local_to_op` is now a special case of `local_at_frame_to_op`, which allows querying locals in any frame. We need this because we walk the whole stack at each step to collect the state of memory. - `InterpCx::layout_of_local` is now `pub`. We need this because we need to know the layout of every local at each step. If these changes go against some design goal for keeping certain types private, please let me know so we can hash out a better solution. Additionally, if there's a better way to document that it's important that certain types stay public, also let me know. For example, `BorrowSet` was previously public but was hidden in 6676cec, breaking our build. cc ```@RalfJung``` ```@nnethercote``` ```@gavinleroy```
2024-12-14Merge pull request #4036 from Mandragorian/clapRalf Jung-335/+254
Use clap in miri-script
2024-12-14fix 'rustc-push' and adjust help textsRalf Jung-32/+60
2024-12-14address commentsKonstantin Andrikopoulos-4/+4
2024-12-14Update miri-script/src/main.rsKostis Andrikopoulos-0/+2
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-12-14experiment with using clapKonstantin Andrikopoulos-305/+194
2024-12-14Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obkMatthias Krüger-3/+2
A bunch of cleanups (part 2) Just like https://github.com/rust-lang/rust/pull/133567 these were all found while looking at the respective code, but are not blocking any other changes I want to make in the short term.
2024-12-14Rollup merge of #134181 - estebank:trim-render, r=oli-obkMatthias Krüger-12/+1
Tweak multispan rendering to reduce output length Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments. We do that check not only on the first 4 lines of the multispan, but now also on the previous to last line as well.
2024-12-13Fix miri testsEsteban Küber-12/+1
2024-12-13Make dependency_formats an FxIndexMap rather than a list of tuplesbjorn3-3/+2
It is treated as a map already. This is using FxIndexMap rather than UnordMap because the latter doesn't provide an api to pick a single value iff all values are equal, which each_linked_rlib depends on.
2024-12-13Merge from rustcThe Miri Cronjob Bot-4/+4
2024-12-13Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-13Stabilize async closuresMichael Goulet-4/+4
2024-12-12Make BorrowSet/BorrowData fields accessible via public gettersWill Crichton-2/+6
2024-12-12fix use of this.allocate_bytesRalf Jung-8/+1
2024-12-12Merge from rustcRalf Jung-104/+3
2024-12-12Preparing for merge from rustcRalf Jung-1/+1
2024-12-12Merge pull request #4069 from shamb0/string_deduplication_for_localtime_rRalf Jung-20/+233
localtime_r: deduplicate timezone name allocation
2024-12-12Improve timezone handling in 'localtime_r()' using 'allocate_bytes()'shamb0-20/+233
Signed-off-by: shamb0 <r.raajey@gmail.com>
2024-12-12Merge pull request #4091 from RalfJung/bench-bumpRalf Jung-75/+138
bench-cargo-miri: bump lockfiles
2024-12-12bench-cargo-miri: bump lockfilesRalf Jung-75/+138
2024-12-12Merge pull request #4068 from devnexen/solarish_stat2Ralf Jung-31/+62
solarish stat following-up, supports for readdir.
2024-12-12./miri bench: add a flag to skip the install stepRalf Jung-8/+18
2024-12-12ci TEST_BENCH: show outputRalf Jung-1/+1
2024-12-12solarish stat following-up, supports for readdir.David Carlier-31/+62
2024-12-11./miri bench: set toolchain explicitlyRalf Jung-1/+2
2024-12-11Merge pull request #4008 from JoJoDeveloping/tb-access-state-based-skippingRalf Jung-1/+88
[TB Optimization] Skip subtrees based on the subtree's root node's permissions
2024-12-10TB: optimize accesses on large trees by ignoring subtrees if the access ↵Johannes Hostert-7/+34
would mostly be a NOP
2024-12-09Rollup merge of #134055 - RalfJung:interpret-alloc-dedup, r=oli-obkLeón Orell Valerian Liehr-104/+3
interpret: clean up deduplicating allocation functions The "align" and "kind" arguments would be largely ignored in the "dedup" case, so let's move that to entirely separate function. Let's also remove support for old-style miri_resolve_frame while we are at it. The docs have already said for a while that this must be set to 1.
2024-12-09interpret: clean up deduplicating allocation functionsRalf Jung-104/+3
2024-12-09Enable `[bot-pull-requests]` triagebot featureJakub Beránek-0/+3
2024-12-09Merge from rustcRalf Jung-1/+2
2024-12-09Preparing for merge from rustcRalf Jung-1/+1
2024-12-09Rollup merge of #134050 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-1163/+1755
Miri subtree update r? `@ghost`
2024-12-09Rollup merge of #133567 - bjorn3:various_cleanups, r=cjgillotMatthias Krüger-1/+2
A bunch of cleanups These are all extracted from a branch I have to get rid of driver queries. Most of the commits are not directly necessary for this, but were found in the process of implementing the removal of driver queries. Previous PR: https://github.com/rust-lang/rust/pull/132410
2024-12-08fix buildRalf Jung-2/+2
2024-12-08Merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-08Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-07add weak memory consistency test for mixing SC accesses and fencesRalf Jung-0/+30
2024-12-07Auto merge of #133978 - matthiaskrgr:rollup-6gh1iho, r=matthiaskrgrbors-1/+1
Rollup of 7 pull requests Successful merges: - #130209 (Stabilize `std::io::ErrorKind::CrossesDevices`) - #130254 (Stabilize `std::io::ErrorKind::QuotaExceeded`) - #132187 (Add Extend impls for tuples of arity 1 through 12) - #133875 (handle `--json-output` properly) - #133934 (Do not implement unsafe auto traits for types with unsafe fields) - #133954 (Hide errors whose suggestions would contain error constants or types) - #133960 (rustdoc: remove eq for clean::Attributes) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-07fmtThe Miri Cronjob Bot-15/+10
2024-12-07Merge from rustcThe Miri Cronjob Bot-57/+370