Auto merge of #13389 - samueltardieu:issue-13380, r=xFrednet
Check that #[deny(allow_attributes)] do not issue spurious messages
Add a new test for #13380. This bug was caused by a bug in rustc which has been fixed in 6ee87ae594
.
Close #13380
changelog: [`allow_attributes`]: fix spurious warning messages
This commit is contained in:
commit
b39323bf25
@ -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 New Issue
Block a user