Skip to content

Commit edf8154

Browse files
committed
nits
1 parent a3bd578 commit edf8154

File tree

1 file changed

+2
-2
lines changed
  • src/tools/miri/src/stacked_borrows

1 file changed

+2
-2
lines changed

src/tools/miri/src/stacked_borrows/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
913913
})?;
914914
drop(global);
915915
if let Some(access) = access {
916-
assert!(access == AccessKind::Read);
916+
assert_eq!(access, AccessKind::Read);
917917
// Make sure the data race model also knows about this.
918918
if let Some(data_race) = alloc_extra.data_race.as_ref() {
919919
data_race.read(alloc_id, range, &this.machine)?;
@@ -949,7 +949,7 @@ trait EvalContextPrivExt<'mir: 'ecx, 'tcx: 'mir, 'ecx>: crate::MiriInterpCxExt<'
949949
})?;
950950
drop(global);
951951
if let Some(access) = access {
952-
assert!(access == AccessKind::Write);
952+
assert_eq!(access, AccessKind::Write);
953953
// Make sure the data race model also knows about this.
954954
if let Some(data_race) = alloc_extra.data_race.as_mut() {
955955
data_race.write(alloc_id, range, machine)?;

0 commit comments

Comments
 (0)