Skip to content

Commit 7d1531f

Browse files
fmt data_race.rs and intrinsics.rs
1 parent e29f137 commit 7d1531f

File tree

2 files changed

+205
-98
lines changed

2 files changed

+205
-98
lines changed

src/data_race.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl MemoryCellClocks {
263263
atomic_ops: None,
264264
}
265265
}
266-
266+
267267
/// Load the internal atomic memory cells if they exist.
268268
#[inline]
269269
fn atomic(&self) -> Option<&AtomicMemoryCellClocks> {
@@ -323,7 +323,7 @@ impl MemoryCellClocks {
323323
/// store relaxed semantics.
324324
fn store_relaxed(&mut self, clocks: &ThreadClockSet, index: VectorIdx) -> Result<(), DataRace> {
325325
self.atomic_write_detect(clocks, index)?;
326-
326+
327327
// The handling of release sequences was changed in C++20 and so
328328
// the code here is different to the paper since now all relaxed
329329
// stores block release sequences. The exception for same-thread
@@ -678,7 +678,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
678678
// Either Release | AcqRel | SeqCst
679679
clocks.apply_release_fence();
680680
}
681-
681+
682682
// Increment timestamp in case of release semantics.
683683
Ok(atomic != AtomicFenceOp::Acquire)
684684
})

0 commit comments

Comments
 (0)