We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683c557 commit b9cc2feCopy full SHA for b9cc2fe
clippy_lints/src/types/mod.rs
@@ -257,7 +257,9 @@ declare_clippy_lint! {
257
/// **Why is this bad?** `Rc` is used in single thread and `Mutex` is used in multi thread.
258
/// Consider using `Rc<RefCell<T>>` in single thread or `Arc<Mutex<T>>` in multi thread.
259
///
260
- /// **Known problems:** Maybe false positive on trait generic.
+ /// **Known problems:** Sometimes combining generic types can lead to the requirement that a
261
+ /// type use Rc in conjunction with Mutex. We must consider those cases false positives, but
262
+ /// alas they are quite hard to rule out. Luckily they are also rare.
263
264
/// **Example:**
265
/// ```rust,ignore
0 commit comments