Skip to content

Commit 87d0ace

Browse files
committed
use visibility to check unused imports and delete some stmts
1 parent 8e7d167 commit 87d0ace

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)