diff --git a/tests/lint.rs b/tests/lint.rs index 881a4585..4ed2e593 100644 --- a/tests/lint.rs +++ b/tests/lint.rs @@ -1131,6 +1131,7 @@ pub mod clippy_use_self { pub mod clippy_used_underscore_binding { use pin_project::pin_project; + #[allow(clippy::pub_underscore_fields)] #[pin_project(project_replace)] pub struct Struct { #[pin] @@ -1157,6 +1158,7 @@ pub mod clippy_used_underscore_binding { #[rustfmt::skip] macro_rules! mac { () => { + #[allow(clippy::pub_underscore_fields)] #[pin_project(project_replace)] pub struct Struct { #[pin] @@ -1187,6 +1189,7 @@ pub mod clippy_used_underscore_binding { pub mod clippy_ref_option_ref { use pin_project::pin_project; + #[allow(clippy::pub_underscore_fields)] #[pin_project] pub struct Struct<'a> { #[pin] diff --git a/tests/repr_packed.rs b/tests/repr_packed.rs index f20ffc95..149a9330 100644 --- a/tests/repr_packed.rs +++ b/tests/repr_packed.rs @@ -4,6 +4,7 @@ // https://github.com/rust-lang/rust/pull/82525 #![allow(unknown_lints, renamed_and_removed_lints)] #![forbid(unaligned_references, safe_packed_borrows)] +#![allow(clippy::thread_local_initializer_can_be_made_const)] // clippy bug: this lint doesn't consider MSRV use std::cell::Cell;