Skip to content

Commit 82f9a01

Browse files
authored
Merge pull request #672 from rust-lang/update
Update to rustc nightly
2 parents ac61d29 + 9a0eaf6 commit 82f9a01

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2019-03-29
1+
nightly-2019-04-03

src/fn_call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
270270
let mut args = this.frame().mir.args_iter();
271271

272272
let arg_local = args.next().ok_or_else(||
273-
EvalErrorKind::AbiViolation(
273+
InterpError::AbiViolation(
274274
"Argument to __rust_maybe_catch_panic does not take enough arguments."
275275
.to_owned(),
276276
),
@@ -529,7 +529,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
529529
// This is `libc::pthread_key_t`.
530530
let key_type = args[0].layout.ty
531531
.builtin_deref(true)
532-
.ok_or_else(|| EvalErrorKind::AbiViolation("wrong signature used for `pthread_key_create`: first argument must be a raw pointer.".to_owned()))?
532+
.ok_or_else(|| InterpError::AbiViolation("wrong signature used for `pthread_key_create`: first argument must be a raw pointer.".to_owned()))?
533533
.ty;
534534
let key_layout = this.layout_of(key_type)?;
535535

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
3939
})
4040
.ok_or_else(|| {
4141
let path = path.iter().map(|&s| s.to_owned()).collect();
42-
EvalErrorKind::PathNotFound(path).into()
42+
InterpError::PathNotFound(path).into()
4343
})
4444
}
4545

src/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'a, 'mir, '
325325
let pointee_size = self.layout_of(pointee_ty)?.size.bytes() as i64;
326326
let offset = offset
327327
.checked_mul(pointee_size)
328-
.ok_or_else(|| EvalErrorKind::Overflow(mir::BinOp::Mul))?;
328+
.ok_or_else(|| InterpError::Overflow(mir::BinOp::Mul))?;
329329
// Now let's see what kind of pointer this is.
330330
if let Scalar::Ptr(ptr) = ptr {
331331
// Both old and new pointer must be in-bounds of a *live* allocation.

src/stacked_borrows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use rustc::hir::{Mutability, MutMutable, MutImmutable};
77
use rustc::mir::RetagKind;
88

99
use crate::{
10-
EvalResult, EvalErrorKind, MiriEvalContext, HelpersEvalContextExt, Evaluator, MutValueVisitor,
10+
EvalResult, InterpError, MiriEvalContext, HelpersEvalContextExt, Evaluator, MutValueVisitor,
1111
MemoryKind, MiriMemoryKind, RangeMap, AllocId, Allocation, AllocationExtra,
1212
Pointer, Immediate, ImmTy, PlaceTy, MPlaceTy,
1313
};
@@ -380,7 +380,7 @@ impl<'tcx> Stacks {
380380
ptr.tag, kind, ptr, size.bytes());
381381
let stacks = self.stacks.borrow();
382382
for stack in stacks.iter(ptr.offset, size) {
383-
stack.deref(ptr.tag, kind).map_err(EvalErrorKind::MachineError)?;
383+
stack.deref(ptr.tag, kind).map_err(InterpError::MachineError)?;
384384
}
385385
Ok(())
386386
}
@@ -435,7 +435,7 @@ impl<'tcx> Stacks {
435435
let mut stacks = self.stacks.borrow_mut();
436436
for stack in stacks.iter_mut(ptr.offset, size) {
437437
// Access source `ptr`, create new ref.
438-
let ptr_idx = stack.deref(ptr.tag, new_kind).map_err(EvalErrorKind::MachineError)?;
438+
let ptr_idx = stack.deref(ptr.tag, new_kind).map_err(InterpError::MachineError)?;
439439
// If we can deref the new tag already, and if that tag lives higher on
440440
// the stack than the one we come from, just use that.
441441
// That is, we check if `new_bor` *already* is "derived from" `ptr.tag`.

src/tls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc_target::abi::LayoutOf;
44
use rustc::{ty, ty::layout::HasDataLayout, mir};
55

66
use crate::{
7-
EvalResult, EvalErrorKind, StackPopCleanup,
7+
EvalResult, InterpError, StackPopCleanup,
88
MPlaceTy, Scalar, Borrow,
99
};
1010

@@ -149,7 +149,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
149149
StackPopCleanup::None { cleanup: true },
150150
)?;
151151
let arg_local = this.frame().mir.args_iter().next().ok_or_else(
152-
|| EvalErrorKind::AbiViolation("TLS dtor does not take enough arguments.".to_owned()),
152+
|| InterpError::AbiViolation("TLS dtor does not take enough arguments.".to_owned()),
153153
)?;
154154
let dest = this.eval_place(&mir::Place::Base(mir::PlaceBase::Local(arg_local)))?;
155155
this.write_scalar(ptr, dest)?;

0 commit comments

Comments
 (0)