Derive Eq and Hash for types used in Miri's evaluator
This commit is contained in:
parent
b3b04b8cc6
commit
0d0e021b1c
@ -36,7 +36,7 @@ use ty::codec::TyDecoder;
|
||||
use std::sync::atomic::{AtomicU32, Ordering};
|
||||
use std::num::NonZeroU32;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, RustcEncodable, RustcDecodable)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)]
|
||||
pub enum Lock {
|
||||
NoLock,
|
||||
WriteLock(DynamicLifetime),
|
||||
|
@ -1624,7 +1624,7 @@ impl Debug for ValidationOp {
|
||||
}
|
||||
|
||||
// This is generic so that it can be reused by miri
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable)]
|
||||
#[derive(Clone, Hash, PartialEq, Eq, RustcEncodable, RustcDecodable)]
|
||||
pub struct ValidationOperand<'tcx, T> {
|
||||
pub place: T,
|
||||
pub ty: Ty<'tcx>,
|
||||
|
Loading…
Reference in New Issue
Block a user