nits
This commit is contained in:
parent
a3bd57823f
commit
edf8154695
1 changed files with 2 additions and 2 deletions
|
|
@ -913,7 +913,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
|
|||
})?;
|
||||
drop(global);
|
||||
if let Some(access) = access {
|
||||
assert!(access == AccessKind::Read);
|
||||
assert_eq!(access, AccessKind::Read);
|
||||
// Make sure the data race model also knows about this.
|
||||
if let Some(data_race) = alloc_extra.data_race.as_ref() {
|
||||
data_race.read(alloc_id, range, &this.machine)?;
|
||||
|
|
@ -949,7 +949,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
|
|||
})?;
|
||||
drop(global);
|
||||
if let Some(access) = access {
|
||||
assert!(access == AccessKind::Write);
|
||||
assert_eq!(access, AccessKind::Write);
|
||||
// Make sure the data race model also knows about this.
|
||||
if let Some(data_race) = alloc_extra.data_race.as_mut() {
|
||||
data_race.write(alloc_id, range, machine)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue