This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 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 {
564564 || is_word ( lint, sym:: deprecated)
565565 || is_word ( lint, sym ! ( unreachable_pub) )
566566 || is_word ( lint, sym ! ( unused) )
567+ || is_word ( lint, sym ! ( unused_import_braces) )
568+ || is_word ( lint, sym ! ( unused_imports) )
567569 || extract_clippy_lint ( lint) . map_or ( false , |s| {
568570 matches ! (
569571 s. as_str( ) ,
Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ pub mod split {
8080#[allow(clippy::single_component_path_imports)]
8181use regex;
8282
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+
8391fn main() {
8492 test_indented_attr();
8593}
Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ pub mod split {
8080#[ allow( clippy:: single_component_path_imports) ]
8181use regex;
8282
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+
8391fn main ( ) {
8492 test_indented_attr ( ) ;
8593}
You can’t perform that action at this time.
0 commit comments