about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorMarcusGrass <marcus.grass@protonmail.com>2024-02-22 21:53:04 +0100
committerMarcusGrass <marcus.grass@protonmail.com>2024-02-22 21:53:04 +0100
commit97a3ac5b86c21cc7e478da1c90187d006ea35eb0 (patch)
tree96496cb1f9424da1d291b62b2b890c78d0688017 /tests/ui
parent341ae30a854a00c3876ac8b53b842eae31f0613e (diff)
downloadrust-97a3ac5b86c21cc7e478da1c90187d006ea35eb0.tar.gz
rust-97a3ac5b86c21cc7e478da1c90187d006ea35eb0.zip
Allow unused_imports, and unused_import_braces on `use`
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/useless_attribute.fixed8
-rw-r--r--tests/ui/useless_attribute.rs8
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/useless_attribute.fixed b/tests/ui/useless_attribute.fixed
index c7d611f36cf..7f4874b1f20 100644
--- a/tests/ui/useless_attribute.fixed
+++ b/tests/ui/useless_attribute.fixed
@@ -80,6 +80,14 @@ pub mod split {
 #[allow(clippy::single_component_path_imports)]
 use regex;
 
+mod module {
+    pub(crate) struct Struct;
+}
+
+#[rustfmt::skip]
+#[allow(unused_import_braces, unused_imports)]
+use module::{Struct};
+
 fn main() {
     test_indented_attr();
 }
diff --git a/tests/ui/useless_attribute.rs b/tests/ui/useless_attribute.rs
index 00cfa8f5d54..d0f22db727a 100644
--- a/tests/ui/useless_attribute.rs
+++ b/tests/ui/useless_attribute.rs
@@ -80,6 +80,14 @@ pub mod split {
 #[allow(clippy::single_component_path_imports)]
 use regex;
 
+mod module {
+    pub(crate) struct Struct;
+}
+
+#[rustfmt::skip]
+#[allow(unused_import_braces, unused_imports)]
+use module::{Struct};
+
 fn main() {
     test_indented_attr();
 }