Skip to content

Commit

Permalink
Auto merge of #6585 - Daniel-B-Smith:false-positive-issue, r=flip1995
Browse files Browse the repository at this point in the history
Explicitly document false positives

Adds documentation for known false positives for the `await_holding*` lints.

Issues:

#6353
#6446
  • Loading branch information
bors committed Jan 17, 2021
2 parents 990e2b3 + 02f99be commit a61fa63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/await_holding_invalid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare_clippy_lint! {
/// other solution is to ensure the mutex is unlocked before calling await,
/// either by introducing a scope or an explicit call to Drop::drop.
///
/// **Known problems:** None.
/// **Known problems:** Will report false positive for explicitly dropped guards ([#6446](https://github.com/rust-lang/rust-clippy/issues/6446)).
///
/// **Example:**
///
Expand Down Expand Up @@ -57,7 +57,7 @@ declare_clippy_lint! {
/// at runtime. Holding onto a `RefCell` ref across an `await` suspension point
/// risks panics from a mutable ref shared while other refs are outstanding.
///
/// **Known problems:** None.
/// **Known problems:** Will report false positive for explicitly dropped refs ([#6353](https://github.com/rust-lang/rust-clippy/issues/6353)).
///
/// **Example:**
///
Expand Down

0 comments on commit a61fa63

Please sign in to comment.