This commit is contained in:
Emil Fresk 2023-01-10 08:44:52 +01:00
parent 62b122eb5b
commit b469290560
3 changed files with 21 additions and 18 deletions

View File

@ -1,5 +1,5 @@
error[E0499]: cannot borrow `q` as mutable more than once at a time
--> ui/freeze.rs:7:5
--> $DIR/freeze.rs:7:5
|
6 | let (_p, mut _c) = q.split();
| --------- first mutable borrow occurs here

View File

@ -1,14 +1,14 @@
error[E0277]: `*const ()` cannot be sent between threads safely
--> ui/not-send.rs:19:5
--> $DIR/not-send.rs:19:15
|
19 | is_send::<Consumer<NotSend, 4>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
= note: required because it appears within the type `PhantomData<*const ()>`
= note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4>`
= note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send`
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
--> $DIR/not-send.rs:14:8
|
12 | fn is_send<T>()
| ------- required by a bound in this
@ -17,16 +17,16 @@ note: required by a bound in `is_send`
| ^^^^ required by this bound in `is_send`
error[E0277]: `*const ()` cannot be sent between threads safely
--> ui/not-send.rs:20:5
--> $DIR/not-send.rs:20:15
|
20 | is_send::<Producer<NotSend, 4>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
= note: required because it appears within the type `PhantomData<*const ()>`
= note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4>`
= note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send`
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
--> $DIR/not-send.rs:14:8
|
12 | fn is_send<T>()
| ------- required by a bound in this
@ -35,10 +35,10 @@ note: required by a bound in `is_send`
| ^^^^ required by this bound in `is_send`
error[E0277]: `*const ()` cannot be sent between threads safely
--> ui/not-send.rs:21:5
--> $DIR/not-send.rs:21:15
|
21 | is_send::<Queue<NotSend, 4>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
= help: within `Queue<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
= note: required because it appears within the type `PhantomData<*const ()>`
@ -48,7 +48,7 @@ error[E0277]: `*const ()` cannot be sent between threads safely
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
= note: required because it appears within the type `Queue<PhantomData<*const ()>, 4>`
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
--> $DIR/not-send.rs:14:8
|
12 | fn is_send<T>()
| ------- required by a bound in this
@ -57,10 +57,10 @@ note: required by a bound in `is_send`
| ^^^^ required by this bound in `is_send`
error[E0277]: `*const ()` cannot be sent between threads safely
--> ui/not-send.rs:22:5
--> $DIR/not-send.rs:22:15
|
22 | is_send::<Vec<NotSend, 4>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
= help: within `heapless::Vec<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
= note: required because it appears within the type `PhantomData<*const ()>`
@ -69,7 +69,7 @@ error[E0277]: `*const ()` cannot be sent between threads safely
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
= note: required because it appears within the type `heapless::Vec<PhantomData<*const ()>, 4>`
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
--> $DIR/not-send.rs:14:8
|
12 | fn is_send<T>()
| ------- required by a bound in this
@ -78,10 +78,10 @@ note: required by a bound in `is_send`
| ^^^^ required by this bound in `is_send`
error[E0277]: `*const ()` cannot be sent between threads safely
--> ui/not-send.rs:23:5
--> $DIR/not-send.rs:23:15
|
23 | is_send::<HistoryBuffer<NotSend, 4>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
= help: within `HistoryBuffer<PhantomData<*const ()>, 4>`, the trait `Send` is not implemented for `*const ()`
= note: required because it appears within the type `PhantomData<*const ()>`
@ -90,7 +90,7 @@ error[E0277]: `*const ()` cannot be sent between threads safely
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
= note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4>`
note: required by a bound in `is_send`
--> ui/not-send.rs:14:8
--> $DIR/not-send.rs:14:8
|
12 | fn is_send<T>()
| ------- required by a bound in this

View File

@ -5,3 +5,6 @@ race:std::thread::scope
race:drop_in_place*JoinHandle
race:alloc::sync::Arc<*>::drop_slow
race:__call_tls_dtors
# false positives in memcpy (?)
race:*memcpy*