Skip to content

Commit d0b79cf

Browse files
authored
Merge pull request #514 from solson/rustup
bump rust
2 parents 0e9e0f2 + a05ba90 commit d0b79cf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2018-11-05
1+
nightly-2018-11-07

src/intrinsic.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'a, 'mir, '
8787

8888
_ if intrinsic_name.starts_with("atomic_cxchg") => {
8989
let ptr = self.ref_to_mplace(self.read_immediate(args[0])?)?;
90-
let expect_old = self.read_immediate(args[1])?; // read as value for the sake of `binary_op_val()`
90+
let expect_old = self.read_immediate(args[1])?; // read as value for the sake of `binary_op_imm()`
9191
let new = self.read_scalar(args[2])?;
92-
let old = self.read_immediate(ptr.into())?; // read as value for the sake of `binary_op_val()`
93-
// binary_op_val will bail if either of them is not a scalar
94-
let (eq, _) = self.binary_op_val(mir::BinOp::Eq, old, expect_old)?;
92+
let old = self.read_immediate(ptr.into())?; // read as value for the sake of `binary_op_imm()`
93+
// binary_op_imm will bail if either of them is not a scalar
94+
let (eq, _) = self.binary_op_imm(mir::BinOp::Eq, old, expect_old)?;
9595
let res = Immediate::ScalarPair(old.to_scalar_or_undef(), eq.into());
9696
self.write_immediate(res, dest)?; // old value is returned
9797
// update ptr depending on comparison
@@ -234,7 +234,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'a, 'mir, '
234234
let a = self.read_immediate(args[0])?;
235235
let b = self.read_immediate(args[1])?;
236236
// check x % y != 0
237-
if self.binary_op_val(mir::BinOp::Rem, a, b)?.0.to_bytes()? != 0 {
237+
if self.binary_op_imm(mir::BinOp::Rem, a, b)?.0.to_bytes()? != 0 {
238238
return err!(ValidationFailure(format!("exact_div: {:?} cannot be divided by {:?}", a, b)));
239239
}
240240
self.binop_ignore_overflow(mir::BinOp::Div, a, b, dest)?;

tests/run-pass/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// FIXME: Validation disabled due to https://github.com/rust-lang/rust/issues/54908
2-
// compile-flags: -Zmiri-disable-validation
1+
// FIXME: Disabled due to https://github.com/rust-lang/rust/issues/55747
2+
// ignore-test
33

44
use std::cell::RefCell;
55
use std::rc::Rc;

0 commit comments

Comments
 (0)