Skip to content

Commit

Permalink
Auto merge of rust-lang#116033 - bvanjoi:fix-116032, r=petrochenkov
Browse files Browse the repository at this point in the history
report `unused_import` for empty reexports even it is pub

Fixes rust-lang#116032

An easy fix. r? `@petrochenkov`

(Discovered this issue while reviewing rust-lang#115993.)
  • Loading branch information
bors committed Oct 23, 2023
2 parents 350a682 + 87d0ace commit 330d7fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/ui/enum_glob_use.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mod in_fn_test {
}

mod blurg {
#[allow(unused_imports)]
pub use std::cmp::Ordering::*; // ok, re-export
}

Expand Down
1 change: 1 addition & 0 deletions tests/ui/enum_glob_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mod in_fn_test {
}

mod blurg {
#[allow(unused_imports)]
pub use std::cmp::Ordering::*; // ok, re-export
}

Expand Down

0 comments on commit 330d7fa

Please sign in to comment.