use visibility to check unused imports and delete some stmts

This commit is contained in:
bohan 2023-10-15 19:38:22 +08:00
parent 8e7d1678c4
commit 87d0ace9ac
2 changed files with 2 additions and 0 deletions

View File

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

View File

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