Skip to content

Commit 6d1dfa5

Browse files
committed
Auto merge of #2639 - RalfJung:rustup, r=RalfJung
Rustup
2 parents 7138140 + e604e3e commit 6d1dfa5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

miri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ toolchain)
121121
rustc-pull)
122122
cd "$MIRIDIR"
123123
git fetch http://localhost:8000/rust-lang/rust.git$JOSH_FILTER.git master
124-
git merge FETCH_HEAD
124+
git merge FETCH_HEAD --no-ff -m "Merge from rustc"
125125
exit 0
126126
;;
127127
rustc-push)

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
607878d069267e1402ad792c9331b426e4c6d0f9
1+
b03502b35d111bef0399a66ab3cc765f0802e8ba

src/stacked_borrows/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use rustc_middle::ty::{
1616
layout::{HasParamEnv, LayoutOf},
1717
Ty,
1818
};
19-
use rustc_span::DUMMY_SP;
2019
use rustc_target::abi::Abi;
2120
use rustc_target::abi::Size;
2221
use smallvec::SmallVec;
@@ -714,12 +713,12 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
714713
let mut kind_str = format!("{kind}");
715714
match kind {
716715
RefKind::Unique { two_phase: false }
717-
if !ty.is_unpin(this.tcx.at(DUMMY_SP), this.param_env()) =>
716+
if !ty.is_unpin(*this.tcx, this.param_env()) =>
718717
{
719718
write!(kind_str, " (!Unpin pointee type {ty})").unwrap()
720719
},
721720
RefKind::Shared
722-
if !ty.is_freeze(this.tcx.at(DUMMY_SP), this.param_env()) =>
721+
if !ty.is_freeze(*this.tcx, this.param_env()) =>
723722
{
724723
write!(kind_str, " (!Freeze pointee type {ty})").unwrap()
725724
},
@@ -834,7 +833,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
834833
// There could be existing unique pointers reborrowed from them that should remain valid!
835834
let perm = match kind {
836835
RefKind::Unique { two_phase: false }
837-
if place.layout.ty.is_unpin(this.tcx.at(DUMMY_SP), this.param_env()) =>
836+
if place.layout.ty.is_unpin(*this.tcx, this.param_env()) =>
838837
{
839838
// Only if the type is unpin do we actually enforce uniqueness
840839
Permission::Unique

0 commit comments

Comments
 (0)