Skip to content

Commit 1244dca

Browse files
committed
Auto merge of #3275 - rust-lang:rustup-2024-01-24, r=RalfJung
Automatic Rustup
2 parents 482e4cc + 9c9cc68 commit 1244dca

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

ci/ci.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ case $HOST_TARGET in
121121
MIRI_TEST_TARGET=aarch64-apple-darwin run_tests
122122
MIRI_TEST_TARGET=i686-pc-windows-gnu run_tests
123123
# Some targets are only partially supported.
124-
MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthread-threadname libc-getentropy libc-getrandom libc-misc libc-fs atomic env align
125-
MIRI_TEST_TARGET=i686-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthread-threadname libc-getentropy libc-getrandom libc-misc libc-fs atomic env align
124+
# FIXME: freeBSD disabled due to https://github.com/rust-lang/miri/issues/3276
125+
#MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthread-threadname libc-getentropy libc-getrandom libc-misc libc-fs atomic env align
126+
#MIRI_TEST_TARGET=i686-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthread-threadname libc-getentropy libc-getrandom libc-misc libc-fs atomic env align
126127
MIRI_TEST_TARGET=aarch64-linux-android run_tests_minimal hello integer vec panic/panic
127128
MIRI_TEST_TARGET=wasm32-wasi run_tests_minimal no_std integer strings wasm
128129
MIRI_TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std integer strings wasm

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0011fac90d2846ea3c04506238ff6e4ed3ce0efe
1+
f6ee4bf3847277d6d6e2007ff664f8ea0895b11b

src/borrow_tracker/stacked_borrows/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,9 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
830830
let new_prov = this.sb_reborrow(place, size, new_perm, new_tag, info)?;
831831

832832
// Adjust place.
833-
Ok(place.clone().map_provenance(|_| new_prov))
833+
// (If the closure gets called, that means the old provenance was `Some`, and hence the new
834+
// one must also be `Some`.)
835+
Ok(place.clone().map_provenance(|_| new_prov.unwrap()))
834836
}
835837

836838
/// Retags an individual pointer, returning the retagged version.

src/borrow_tracker/tree_borrows/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
351351
let new_prov = this.tb_reborrow(place, reborrow_size, new_perm, new_tag)?;
352352

353353
// Adjust place.
354-
Ok(place.clone().map_provenance(|_| new_prov))
354+
// (If the closure gets called, that means the old provenance was `Some`, and hence the new
355+
// one must also be `Some`.)
356+
Ok(place.clone().map_provenance(|_| new_prov.unwrap()))
355357
}
356358

357359
/// Retags an individual pointer, returning the retagged version.

0 commit comments

Comments
 (0)