We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68aed4a commit 78f6386Copy full SHA for 78f6386
src/tools/miri/tests/fail/tree_borrows/reservedim_spurious_write.rs
@@ -41,8 +41,9 @@ macro_rules! synchronized {
41
}
42
43
fn main() {
44
- // The conflict occurs one one single location but the example involves
45
- // lazily initialized permissions.
+ // The conflict occurs on one single location but the example involves
+ // lazily initialized permissions. We will use `&mut Cell<()>` references
46
+ // to `data` to achieve this.
47
let mut data = 0u8;
48
let ptr = SendPtr(std::ptr::addr_of_mut!(data));
49
let barrier = Arc::new(Barrier::new(2));
0 commit comments