mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Check that #[deny(allow_attributes)] do not issue spurious messages
This commit is contained in:
parent
43e3384581
commit
cc2f447f07
2 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue