-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update Miri #113151
update Miri #113151
Conversation
- reorganize tests/ structure: {stacked,tree,both}_borrows - UnsafeCell transmutation (the one that should fail, i.e. transmute & -> UnsafeCell then try to write) - select TB pass tests from existing SB fail tests (and a version that fails TB) - many fail tests now shared * extra test for TB that parent write invalidates child reads * buggy_* tests now shared * tests for deep retagging (pass_invalid_shr_*) now shared * extra TB test that shared references are read-only * aliasing_mut{1,2,3,4} adapted to fail both * extra TB test that write to raw parent invalidates shared children * mut_exclusive_violation2 now shared * issue-miri-1050-2 revisions fix - deduplications
TB: more fail tests (mostly shared with SB) Although it was not in the tests, `mem::transmute` works for `UnsafeCell -> &` as well. Draft: will also introduce more test cases for cases that fail. Draft: depends on the new error messages from rust-lang#2888
use as_os_str_bytes Make use of the new operations recently added (tracking issue: rust-lang#111544). At least the "host OsStr to target bytes" direction now works even for non-utf-8 strings on all hosts!
Remove rustc-workspace-hack The `rustc-workspace-hack` dependency was removed in rust-lang#109133 and should no longer be needed.
TB: improve error messages (distinguish between accesses and reborrows) I don't remember where, but there was a complaint that while SB's error messages distinguish between "invalidated by an access" and "invalidated by a reborrow", TB's error messages do not.
Also punctuation
Revert error in doc comment Also punctuation
TB: `box_exclusive_violation1` moved to `both_borrows` `box_noalias_violation` was already shared, it makes sense to test `box_exclusive_violation` with TB too.
Dereference pointers in shims as correct types Currently, shims will dereference pointers as the type written by the user. This can cause false positives, incorrect behavior such as rust-lang#2136, and even ICEs if a field is not present. This PR fixes this by having shims dereference pointers with types from `std` or `libc` that we can rely on the layout and field names of instead of with whatever the user passed in. Fixes rust-lang#1123
add tests for panicky drop in thread_local destructor Adds a test for rust-lang#112285
comment tweaks
The Miri subtree was changed cc @rust-lang/miri |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
@bors r+ p=1 |
@bors r- tests are failing due to
that's a ui_test failure, huh. I'll check what's up |
download-ci-llvm is broken... this is gonna take a bit |
src/tools/miri/tests/compiletest.rs
Outdated
@@ -88,6 +88,7 @@ fn test_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) -> | |||
mode, | |||
program, | |||
output_conflict_handling, | |||
out_dir: std::env::var_os("CARGO_TARGET_DIR").unwrap().into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this put random files into the out_dir? Maybe it should be a miri
subdir of that folder, or so.
Why does this work in Miri CI, is there some kind of default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea there's a default. I need to fix this in ui_test specifically (should always append ui
or sth)
@bors r=RalfJung,oli-obk |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e69c730): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 661.411s -> 662.766s (0.20%) |
r? @ghost