You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/fail/data_race/alloc_write_race.stderr
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,10 @@
1
-
error: Undefined Behavior: Data race detected between Write on thread `<unnamed>` and Allocate on thread `<unnamed>` at ALLOC
1
+
error: Undefined Behavior: Data race detected between Write on thread `<unnamed>` and Allocate on thread `<unnamed>` at ALLOC. The Write is here
2
2
--> $DIR/alloc_write_race.rs:LL:CC
3
3
|
4
4
LL | *pointer.load(Ordering::Relaxed) = 2;
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Write on thread `<unnamed>` and Allocate on thread `<unnamed>` at ALLOC
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Write on thread `<unnamed>` and Allocate on thread `<unnamed>` at ALLOC. The Write is here
6
6
|
7
-
help: The Write on thread `<unnamed>` is here
8
-
--> $DIR/alloc_write_race.rs:LL:CC
9
-
|
10
-
LL | ... *pointer.load(Ordering::Relaxed) = 2;
11
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
-
help: The Allocate on thread `<unnamed>` is here
7
+
help: and Allocate on thread `<unnamed>`, which is here
13
8
--> $DIR/alloc_write_race.rs:LL:CC
14
9
|
15
10
LL | .store(Box::into_raw(Box::<usize>::new_uninit()) as *mut usize, Ordering::Relaxed);
Copy file name to clipboardExpand all lines: tests/fail/data_race/atomic_read_na_write_race1.stderr
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,10 @@
1
-
error: Undefined Behavior: Data race detected between Atomic Load on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC
1
+
error: Undefined Behavior: Data race detected between Atomic Load on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC. The Atomic Load is here
2
2
--> $DIR/atomic_read_na_write_race1.rs:LL:CC
3
3
|
4
4
LL | (&*c.0).load(Ordering::SeqCst)
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Atomic Load on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Atomic Load on thread `<unnamed>` and Write on thread `<unnamed>` at ALLOC. The Atomic Load is here
6
6
|
7
-
help: The Atomic Load on thread `<unnamed>` is here
8
-
--> $DIR/atomic_read_na_write_race1.rs:LL:CC
9
-
|
10
-
LL | ... (&*c.0).load(Ordering::SeqCst)
11
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
-
help: The Write on thread `<unnamed>` is here
7
+
help: and Write on thread `<unnamed>`, which is here
Copy file name to clipboardExpand all lines: tests/fail/data_race/atomic_write_na_read_race2.stderr
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,10 @@
1
-
error: Undefined Behavior: Data race detected between Atomic Store on thread `<unnamed>` and Read on thread `<unnamed>` at ALLOC
1
+
error: Undefined Behavior: Data race detected between Atomic Store on thread `<unnamed>` and Read on thread `<unnamed>` at ALLOC. The Atomic Store is here
2
2
--> $DIR/atomic_write_na_read_race2.rs:LL:CC
3
3
|
4
4
LL | (&*c.0).store(32, Ordering::SeqCst);
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Atomic Store on thread `<unnamed>` and Read on thread `<unnamed>` at ALLOC
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data race detected between Atomic Store on thread `<unnamed>` and Read on thread `<unnamed>` at ALLOC. The Atomic Store is here
6
6
|
7
-
help: The Atomic Store on thread `<unnamed>` is here
8
-
--> $DIR/atomic_write_na_read_race2.rs:LL:CC
9
-
|
10
-
LL | ... (&*c.0).store(32, Ordering::SeqCst);
11
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
-
help: The Read on thread `<unnamed>` is here
7
+
help: and Read on thread `<unnamed>`, which is here
0 commit comments