Check that #[deny(allow_attributes)] do not issue spurious messages

This commit is contained in:
Samuel Tardieu 2024-09-12 11:34:07 +02:00
parent 43e3384581
commit cc2f447f07
2 changed files with 14 additions and 0 deletions

View file

@ -58,3 +58,10 @@ fn msrv_1_80() {
#[allow(unused)]
let x = 1;
}
#[deny(clippy::allow_attributes)]
fn deny_allow_attributes() -> Option<u8> {
let allow = None;
allow?;
Some(42)
}

View file

@ -58,3 +58,10 @@ fn msrv_1_80() {
#[allow(unused)]
let x = 1;
}
#[deny(clippy::allow_attributes)]
fn deny_allow_attributes() -> Option<u8> {
let allow = None;
allow?;
Some(42)
}