Skip to content

Commit

Permalink
Ignore new clippy lints in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 12, 2024
1 parent b0dd341 commit e0edbbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, U> {
#[pin]
Expand All @@ -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<T, U> {
#[pin]
Expand Down Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions tests/repr_packed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e0edbbc

Please sign in to comment.