Skip to content

Commit dbfc72d

Browse files
committed
Auto merge of #117011 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents c111936 + 87ce1b1 commit dbfc72d

34 files changed

+1481
-182
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
with:
189189
fetch-depth: 256 # get a bit more of the history
190190
- name: install josh-proxy
191-
run: cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22.12.06
191+
run: RUSTFLAGS="--cap-lints warn" cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22.12.06
192192
- name: setup bot git name and email
193193
run: |
194194
git config --global user.name 'The Miri Conjob Bot'
@@ -208,7 +208,7 @@ jobs:
208208
git push -u origin $BRANCH
209209
- name: Create Pull Request
210210
run: |
211-
PR=$(gh pr create -B master --title 'Automatic sync from rustc' --body '')
211+
PR=$(gh pr create -B master --title 'Automatic Rustup' --body '')
212212
~/.local/bin/zulip-send --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com \
213213
--stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
214214
--message "A PR doing a rustc-pull [has been automatically created]($PR) for your convenience."

Cargo.lock

Lines changed: 74 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env_logger = "0.10"
2323
log = "0.4"
2424
rand = "0.8"
2525
smallvec = "1.7"
26+
aes = { version = "0.8.3", features = ["hazmat"] }
2627

2728
measureme = "10.0.0"
2829
ctrlc = "3.2.5"

cargo-miri/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

miri-script/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4ea5190026dbc1302b644d938e68bc6843cb8b24
1+
249624b5043013d18c00f0401ca431c1a6baa8cd

src/borrow_tracker/tree_borrows/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
206206
// Make sure the new permission makes sense as the initial permission of a fresh tag.
207207
assert!(new_perm.initial_state.is_initial());
208208
// Ensure we bail out if the pointer goes out-of-bounds (see miri#1050).
209-
this.check_ptr_access(
210-
place.ptr(),
211-
ptr_size,
212-
CheckInAllocMsg::InboundsTest,
213-
)?;
209+
this.check_ptr_access(place.ptr(), ptr_size, CheckInAllocMsg::InboundsTest)?;
214210

215211
// It is crucial that this gets called on all code paths, to ensure we track tag creation.
216212
let log_creation = |this: &MiriInterpCx<'mir, 'tcx>,

src/concurrency/data_race.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: MiriInterpCxExt<'mir, 'tcx> {
10171017
// even if the type they wrap would be less aligned (e.g. AtomicU64 on 32bit must
10181018
// be 8-aligned).
10191019
let align = Align::from_bytes(place.layout.size.bytes()).unwrap();
1020-
this.check_ptr_align(
1021-
place.ptr(),
1022-
align,
1023-
)?;
1020+
this.check_ptr_align(place.ptr(), align)?;
10241021
// Ensure the allocation is mutable. Even failing (read-only) compare_exchange need mutable
10251022
// memory on many targets (i.e., they segfault if taht memory is mapped read-only), and
10261023
// atomic loads can be implemented via compare_exchange on some targets. There could

src/helpers.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
868868
let size2 = Size::from_bytes(2);
869869
let this = self.eval_context_mut();
870870
this.check_ptr_align(ptr, Align::from_bytes(2).unwrap())?;
871-
let mut alloc = this
872-
.get_ptr_alloc_mut(ptr, size2 * string_length)?
873-
.unwrap(); // not a ZST, so we will get a result
871+
let mut alloc = this.get_ptr_alloc_mut(ptr, size2 * string_length)?.unwrap(); // not a ZST, so we will get a result
874872
for (offset, wchar) in wide_str.iter().copied().chain(iter::once(0x0000)).enumerate() {
875873
let offset = u64::try_from(offset).unwrap();
876874
alloc.write_scalar(alloc_range(size2 * offset, size2), Scalar::from_u16(wchar))?;

0 commit comments

Comments
 (0)