diff options
| author | Rebecca Turner <rbt@sent.as> | 2024-05-02 11:56:38 -0700 |
|---|---|---|
| committer | Rebecca Turner <rbt@sent.as> | 2024-05-02 11:57:56 -0700 |
| commit | e9761bdc015430b818ee771b2acf00a00b40bd97 (patch) | |
| tree | c192ff45cdcf8adb69f21d4b41b954ee95334576 /tests | |
| parent | 17d2ab8f6247ea325bdc7e1c9943a0dcaf31568d (diff) | |
useless_attribute: allow dead_code
Closes https://github.com/rust-lang/rust-clippy/issues/4467
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/useless_attribute.fixed | 4 | ||||
| -rw-r--r-- | tests/ui/useless_attribute.rs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/useless_attribute.fixed b/tests/ui/useless_attribute.fixed index cb1c0346404..5fafc05cdde 100644 --- a/tests/ui/useless_attribute.fixed +++ b/tests/ui/useless_attribute.fixed @@ -92,3 +92,7 @@ use module::{Struct}; fn main() { test_indented_attr(); } + +// Regression test for https://github.com/rust-lang/rust-clippy/issues/4467 +#[allow(dead_code)] +use std::collections as puppy_doggy; diff --git a/tests/ui/useless_attribute.rs b/tests/ui/useless_attribute.rs index 44a52cba043..c9de7677ff8 100644 --- a/tests/ui/useless_attribute.rs +++ b/tests/ui/useless_attribute.rs @@ -92,3 +92,7 @@ use module::{Struct}; fn main() { test_indented_attr(); } + +// Regression test for https://github.com/rust-lang/rust-clippy/issues/4467 +#[allow(dead_code)] +use std::collections as puppy_doggy; |
