diff --git a/Cargo.toml b/Cargo.toml index 22e8fcce..5e37ce4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,6 @@ members = [ [workspace.lints.rust] improper_ctypes = "warn" improper_ctypes_definitions = "warn" -missing_debug_implementations = "warn" non_ascii_idents = "warn" rust_2018_idioms = "warn" single_use_lifetimes = "warn" @@ -71,6 +70,7 @@ undocumented_unsafe_blocks = "warn" # Suppress buggy or noisy clippy lints bool_assert_comparison = { level = "allow", priority = 1 } borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 +declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 doc_markdown = { level = "allow", priority = 1 } float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 manual_assert = { level = "allow", priority = 1 } diff --git a/examples/pinned_drop-expanded.rs b/examples/pinned_drop-expanded.rs index 6eea110c..944769f3 100644 --- a/examples/pinned_drop-expanded.rs +++ b/examples/pinned_drop-expanded.rs @@ -26,7 +26,6 @@ #![allow( dead_code, - missing_debug_implementations, single_use_lifetimes, unused_imports, unused_parens, diff --git a/examples/pinned_drop.rs b/examples/pinned_drop.rs index 2f7ede2a..77d21a25 100644 --- a/examples/pinned_drop.rs +++ b/examples/pinned_drop.rs @@ -2,7 +2,7 @@ // See ./pinned_drop-expanded.rs for generated code. -#![allow(dead_code, missing_debug_implementations)] +#![allow(dead_code)] use std::pin::Pin; diff --git a/src/lib.rs b/src/lib.rs index f0a29366..dc53f918 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,6 +100,7 @@ see [examples] directory for more examples and generated code. #![warn(unsafe_op_in_unsafe_fn)] #![warn( // Lints that may help when writing public library. + missing_debug_implementations, missing_docs, clippy::alloc_instead_of_core, clippy::exhaustive_enums,