File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,8 @@ impl<'tcx> LateLintPass<'tcx> for Attributes {
564
564
|| is_word ( lint, sym:: deprecated)
565
565
|| is_word ( lint, sym ! ( unreachable_pub) )
566
566
|| is_word ( lint, sym ! ( unused) )
567
+ || is_word ( lint, sym ! ( unused_import_braces) )
568
+ || is_word ( lint, sym ! ( unused_imports) )
567
569
|| extract_clippy_lint ( lint) . map_or ( false , |s| {
568
570
matches ! (
569
571
s. as_str( ) ,
Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ pub mod split {
80
80
#[allow(clippy::single_component_path_imports)]
81
81
use regex;
82
82
83
+ mod module {
84
+ pub(crate) struct Struct;
85
+ }
86
+
87
+ #[rustfmt::skip]
88
+ #[allow(unused_import_braces, unused_imports)]
89
+ use module::{Struct};
90
+
83
91
fn main() {
84
92
test_indented_attr();
85
93
}
Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ pub mod split {
80
80
#[ allow( clippy:: single_component_path_imports) ]
81
81
use regex;
82
82
83
+ mod module {
84
+ pub ( crate ) struct Struct ;
85
+ }
86
+
87
+ #[ rustfmt:: skip]
88
+ #[ allow( unused_import_braces, unused_imports) ]
89
+ use module:: { Struct } ;
90
+
83
91
fn main ( ) {
84
92
test_indented_attr ( ) ;
85
93
}
You can’t perform that action at this time.
0 commit comments