Skip to content

Commit 2ec2db4

Browse files
committed
Auto merge of #2864 - RalfJung:rustup, r=RalfJung
Rustup My previous rustup PR was broken. I didn't realize that "nothing to commit, working tree clean" meant "I didn't actually do the full pull properly, stop and inspect manually"...
2 parents e602174 + 798e6e1 commit 2ec2db4

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

miri

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ rustc-pull)
121121
# Update rust-version file. As a separate commit, since making it part of
122122
# the merge has confused the heck out of josh in the past.
123123
echo "$FETCH_COMMIT" > rust-version
124-
git commit rust-version -m "Preparing for merge from rustc"
124+
git commit rust-version -m "Preparing for merge from rustc" || (echo "FAILED to commit rust-version file, something went wrong"; exit 1)
125125
# Fetch given rustc commit and note down which one that was
126-
git fetch http://localhost:8000/rust-lang/rust.git@$FETCH_COMMIT$JOSH_FILTER.git
127-
git merge FETCH_HEAD --no-ff -m "Merge from rustc"
126+
git fetch http://localhost:8000/rust-lang/rust.git@$FETCH_COMMIT$JOSH_FILTER.git || (echo "FAILED to fetch new commits, something went wrong"; exit 1)
127+
git merge FETCH_HEAD --no-ff -m "Merge from rustc" || (echo "FAILED to merge new commits, something went wrong"; exit 1)
128128
exit 0
129129
;;
130130
rustc-push)

src/operator.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@ impl<'mir, 'tcx> EvalContextExt<'tcx> for super::MiriInterpCx<'mir, 'tcx> {
5353
(Scalar::from_bool(res), false, self.tcx.types.bool)
5454
}
5555

56-
Offset => {
57-
assert!(left.layout.ty.is_unsafe_ptr());
58-
let ptr = left.to_scalar().to_pointer(self)?;
59-
let offset = right.to_scalar().to_target_isize(self)?;
60-
61-
let pointee_ty =
62-
left.layout.ty.builtin_deref(true).expect("Offset called on non-ptr type").ty;
63-
let ptr = self.ptr_offset_inbounds(ptr, pointee_ty, offset)?;
64-
(Scalar::from_maybe_pointer(ptr, self), false, left.layout.ty)
65-
}
66-
6756
// Some more operations are possible with atomics.
6857
// The return value always has the provenance of the *left* operand.
6958
Add | Sub | BitOr | BitAnd | BitXor => {

0 commit comments

Comments
 (0)