@@ -5,7 +5,7 @@ LL | let _ = Arc::new(RefCell::new(42));
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `Arc<RefCell<i32>>` is not `Send` and `Sync` as `RefCell<i32>` is not `Sync`
8
- = help: if the `Arc` will not used be across threads replace it with an `Rc`
8
+ = help: if the `Arc` will not be used across threads replace it with an `Rc`
9
9
= help: otherwise make `RefCell<i32>` `Send` and `Sync` or consider a wrapper type such as `Mutex`
10
10
= note: `-D clippy::arc-with-non-send-sync` implied by `-D warnings`
11
11
= help: to override `-D warnings` add `#[allow(clippy::arc_with_non_send_sync)]`
@@ -17,7 +17,7 @@ LL | let _ = Arc::new(mutex.lock().unwrap());
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
|
19
19
= note: `Arc<MutexGuard<'_, i32>>` is not `Send` and `Sync` as `MutexGuard<'_, i32>` is not `Send`
20
- = help: if the `Arc` will not used be across threads replace it with an `Rc`
20
+ = help: if the `Arc` will not be used across threads replace it with an `Rc`
21
21
= help: otherwise make `MutexGuard<'_, i32>` `Send` and `Sync` or consider a wrapper type such as `Mutex`
22
22
23
23
error: usage of an `Arc` that is not `Send` and `Sync`
@@ -27,7 +27,7 @@ LL | let _ = Arc::new(&42 as *const i32);
27
27
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
28
|
29
29
= note: `Arc<*const i32>` is not `Send` and `Sync` as `*const i32` is neither `Send` nor `Sync`
30
- = help: if the `Arc` will not used be across threads replace it with an `Rc`
30
+ = help: if the `Arc` will not be used across threads replace it with an `Rc`
31
31
= help: otherwise make `*const i32` `Send` and `Sync` or consider a wrapper type such as `Mutex`
32
32
33
33
error: aborting due to 3 previous errors
0 commit comments