diff options
| author | Daniel Smith <daniel.smith@datadoghq.com> | 2020-11-20 11:35:15 -0500 |
|---|---|---|
| committer | Daniel Smith <daniel.smith@datadoghq.com> | 2020-11-20 11:44:26 -0500 |
| commit | 8b21241fd57376ab35e8ae75b3f57b7c601cdcdb (patch) | |
| tree | a0fef327ca4b0b83b99936d86229abfd1b5ff149 | |
| parent | 70ffebf5f0e5edca866c624212f08e9f11d41e17 (diff) | |
| download | rust-8b21241fd57376ab35e8ae75b3f57b7c601cdcdb.tar.gz rust-8b21241fd57376ab35e8ae75b3f57b7c601cdcdb.zip | |
Revert "Convert the await holding lints to correctness"
This reverts commit d8c6bce4407b1c99ed961f75a093ffe767818069.
| -rw-r--r-- | clippy_lints/src/await_holding_invalid.rs | 4 | ||||
| -rw-r--r-- | clippy_lints/src/lib.rs | 6 | ||||
| -rw-r--r-- | src/lintlist/mod.rs | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/clippy_lints/src/await_holding_invalid.rs b/clippy_lints/src/await_holding_invalid.rs index ca819663fde..58892024ce2 100644 --- a/clippy_lints/src/await_holding_invalid.rs +++ b/clippy_lints/src/await_holding_invalid.rs @@ -45,7 +45,7 @@ declare_clippy_lint! { /// } /// ``` pub AWAIT_HOLDING_LOCK, - correctness, + pedantic, "Inside an async function, holding a MutexGuard while calling await" } @@ -84,7 +84,7 @@ declare_clippy_lint! { /// } /// ``` pub AWAIT_HOLDING_REFCELL_REF, - correctness, + pedantic, "Inside an async function, holding a RefCell ref while calling await" } diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 36016988b6b..7e8cbd00c22 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -1224,6 +1224,8 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf: store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec