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 https://github.com/rust-lang/rust/pull/130244/commits/6ee87ae5944e02342e3d600700b773a1d4303845. Close #13380 changelog: [`allow_attributes`]: fix spurious warning messages
This commit is contained in:
commit
b39323bf25
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…
Add table
Add a link
Reference in a new issue