Auto merge of #116033 - bvanjoi:fix-116032, r=petrochenkov

report `unused_import` for empty reexports even it is pub

Fixes #116032

An easy fix. r? `@petrochenkov`

(Discovered this issue while reviewing #115993.)
This commit is contained in:
bors 2023-10-23 20:24:09 +00:00
commit 330d7fafb8
2 changed files with 2 additions and 0 deletions

View File

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

View File

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