Skip to content

Commit a61fa63

Browse files
committed
Auto merge of #6585 - Daniel-B-Smith:false-positive-issue, r=flip1995
Explicitly document false positives Adds documentation for known false positives for the `await_holding*` lints. Issues: #6353 #6446
2 parents 990e2b3 + 02f99be commit a61fa63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/await_holding_invalid.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare_clippy_lint! {
1818
/// other solution is to ensure the mutex is unlocked before calling await,
1919
/// either by introducing a scope or an explicit call to Drop::drop.
2020
///
21-
/// **Known problems:** None.
21+
/// **Known problems:** Will report false positive for explicitly dropped guards ([#6446](https://github.com/rust-lang/rust-clippy/issues/6446)).
2222
///
2323
/// **Example:**
2424
///
@@ -57,7 +57,7 @@ declare_clippy_lint! {
5757
/// at runtime. Holding onto a `RefCell` ref across an `await` suspension point
5858
/// risks panics from a mutable ref shared while other refs are outstanding.
5959
///
60-
/// **Known problems:** None.
60+
/// **Known problems:** Will report false positive for explicitly dropped refs ([#6353](https://github.com/rust-lang/rust-clippy/issues/6353)).
6161
///
6262
/// **Example:**
6363
///

0 commit comments

Comments
 (0)