fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: usage of `Rc<Mutex<_>>` 2 --> $DIR/rc_mutex.rs:8:10 3 | 4LL | foo: Rc<Mutex<i32>>, 5 | ^^^^^^^^^^^^^^ 6 | 7 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead 8 = note: `-D clippy::rc-mutex` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::rc_mutex)]` 10 11error: usage of `Rc<Mutex<_>>` 12 --> $DIR/rc_mutex.rs:27:18 13 | 14LL | fn test1<T>(foo: Rc<Mutex<T>>) {} 15 | ^^^^^^^^^^^^ 16 | 17 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead 18 19error: usage of `Rc<Mutex<_>>` 20 --> $DIR/rc_mutex.rs:29:15 21 | 22LL | fn test2(foo: Rc<Mutex<MyEnum>>) {} 23 | ^^^^^^^^^^^^^^^^^ 24 | 25 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead 26 27error: usage of `Rc<Mutex<_>>` 28 --> $DIR/rc_mutex.rs:31:15 29 | 30LL | fn test3(foo: Rc<Mutex<SubT<usize>>>) {} 31 | ^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead 34 35error: aborting due to 4 previous errors 36