Skip to content

Commit 547f49c

Browse files
authored
Merge pull request rust-lang#288 from RalfJung/mir-validate
Re-do memory locking
2 parents a98a68b + 847396e commit 547f49c

File tree

6 files changed

+384
-162
lines changed

6 files changed

+384
-162
lines changed

src/librustc_mir/interpret/error.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc::mir;
55
use rustc::ty::{FnSig, Ty, layout};
66

77
use super::{
8-
MemoryPointer, LockInfo, AccessKind
8+
MemoryPointer, Lock, AccessKind
99
};
1010

1111
use rustc_const_math::ConstMathErr;
@@ -84,23 +84,23 @@ pub enum EvalErrorKind<'tcx> {
8484
len: u64,
8585
frame: usize,
8686
access: AccessKind,
87-
lock: LockInfo,
87+
lock: Lock,
8888
},
8989
MemoryAcquireConflict {
9090
ptr: MemoryPointer,
9191
len: u64,
9292
kind: AccessKind,
93-
lock: LockInfo,
93+
lock: Lock,
9494
},
9595
InvalidMemoryLockRelease {
9696
ptr: MemoryPointer,
9797
len: u64,
9898
frame: usize,
99-
lock: LockInfo,
99+
lock: Lock,
100100
},
101101
DeallocatedLockedMemory {
102102
ptr: MemoryPointer,
103-
lock: LockInfo,
103+
lock: Lock,
104104
},
105105
ValidationFailure(String),
106106
CalledClosureAsFunction,

0 commit comments

Comments
 (0)