diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 18:31:44 +0000 |
commit | c23a457e72abe608715ac76f076f47dc42af07a5 (patch) | |
tree | 2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/rc_mutex.stderr | |
parent | Releasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip |
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/rc_mutex.stderr')
-rw-r--r-- | src/tools/clippy/tests/ui/rc_mutex.stderr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/clippy/tests/ui/rc_mutex.stderr b/src/tools/clippy/tests/ui/rc_mutex.stderr index cee3bd8b2..50922fb67 100644 --- a/src/tools/clippy/tests/ui/rc_mutex.stderr +++ b/src/tools/clippy/tests/ui/rc_mutex.stderr @@ -6,9 +6,10 @@ LL | foo: Rc<Mutex<i32>>, | = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead = note: `-D clippy::rc-mutex` implied by `-D warnings` + = help: to override `-D warnings` add `#[allow(clippy::rc_mutex)]` error: usage of `Rc<Mutex<_>>` - --> $DIR/rc_mutex.rs:26:18 + --> $DIR/rc_mutex.rs:27:18 | LL | fn test1<T>(foo: Rc<Mutex<T>>) {} | ^^^^^^^^^^^^ @@ -16,7 +17,7 @@ LL | fn test1<T>(foo: Rc<Mutex<T>>) {} = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead error: usage of `Rc<Mutex<_>>` - --> $DIR/rc_mutex.rs:27:15 + --> $DIR/rc_mutex.rs:29:15 | LL | fn test2(foo: Rc<Mutex<MyEnum>>) {} | ^^^^^^^^^^^^^^^^^ @@ -24,7 +25,7 @@ LL | fn test2(foo: Rc<Mutex<MyEnum>>) {} = help: consider using `Rc<RefCell<_>>` or `Arc<Mutex<_>>` instead error: usage of `Rc<Mutex<_>>` - --> $DIR/rc_mutex.rs:28:15 + --> $DIR/rc_mutex.rs:31:15 | LL | fn test3(foo: Rc<Mutex<SubT<usize>>>) {} | ^^^^^^^^^^^^^^^^^^^^^^ |