about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Smith <daniel.smith@datadoghq.com>2020-09-10 16:02:00 -0400
committerDaniel Smith <daniel.smith@datadoghq.com>2020-10-21 11:04:26 -0400
commit070a751d4cf350a71901f75bc99ca0e0922a3133 (patch)
treed2adbac910302d84546eeee154cf614b3a0ed341
parent8727169f7243c87e3708d99e9602562370f01a1a (diff)
downloadrust-070a751d4cf350a71901f75bc99ca0e0922a3133.tar.gz
rust-070a751d4cf350a71901f75bc99ca0e0922a3133.zip
update_lints
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/lintlist/mod.rs7
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d82f970b8bf..287301772e2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1632,6 +1632,7 @@ Released 2018-09-13
 [`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
 [`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
 [`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
+[`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
 [`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
 [`bind_instead_of_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
 [`blacklisted_name`]: https://rust-lang.github.io/rust-clippy/master/index.html#blacklisted_name
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 6301d623a2b..21185a08d5c 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -68,6 +68,13 @@ vec![
         module: "await_holding_lock",
     },
     Lint {
+        name: "await_holding_refcell_ref",
+        group: "pedantic",
+        desc: "Inside an async function, holding a RefCell ref while calling await",
+        deprecation: None,
+        module: "await_holding_refcell_ref",
+    },
+    Lint {
         name: "bad_bit_mask",
         group: "correctness",
         desc: "expressions of the form `_ & mask == select` that will only ever return `true` or `false`",