From b4692905607e8b9cc42c200e344c45d93211aaa2 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Tue, 10 Jan 2023 08:44:52 +0100 Subject: [PATCH] Fix CI --- cfail/ui/freeze.stderr | 2 +- cfail/ui/not-send.stderr | 34 +++++++++++++++++----------------- suppressions.txt | 3 +++ 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/cfail/ui/freeze.stderr b/cfail/ui/freeze.stderr index b1d4bee4..1b14d854 100644 --- a/cfail/ui/freeze.stderr +++ b/cfail/ui/freeze.stderr @@ -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 diff --git a/cfail/ui/not-send.stderr b/cfail/ui/not-send.stderr index 09755e37..c9c748f2 100644 --- a/cfail/ui/not-send.stderr +++ b/cfail/ui/not-send.stderr @@ -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::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*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() | ------- 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::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*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() | ------- 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::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely + | ^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `Queue, 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>>; 4]` = note: required because it appears within the type `Queue, 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() | ------- 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::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely + | ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `heapless::Vec, 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>; 4]` = note: required because it appears within the type `heapless::Vec, 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() | ------- 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::>(); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely + | ^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `HistoryBuffer, 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>; 4]` = note: required because it appears within the type `HistoryBuffer, 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() | ------- required by a bound in this diff --git a/suppressions.txt b/suppressions.txt index 1f4eb1ef..4d81425f 100644 --- a/suppressions.txt +++ b/suppressions.txt @@ -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*