Skip to content

Commit 330d7fa

Browse files
committed
Auto merge of rust-lang#116033 - bvanjoi:fix-116032, r=petrochenkov
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.)
2 parents 350a682 + 87d0ace commit 330d7fa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/ui/enum_glob_use.fixed

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ mod in_fn_test {
1919
}
2020

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

tests/ui/enum_glob_use.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ mod in_fn_test {
1919
}
2020

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

0 commit comments

Comments
 (0)