Skip to content

Commit 150523e

Browse files
committed
Auto merge of rust-lang#117772 - surechen:for_117448, r=petrochenkov
Tracking import use types for more accurate redundant import checking fixes rust-lang#117448 By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking. For example unnecessary imports in std::prelude that can be eliminated: ```rust use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly use std::option::Option::None; //~ WARNING the item `None` is imported redundantly ```
2 parents 597c2d2 + 30336a7 commit 150523e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

std/src/os/unix/fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ pub trait OpenOptionsExt {
397397
///
398398
/// ```no_run
399399
/// # #![feature(rustc_private)]
400-
/// use libc;
401400
/// use std::fs::OpenOptions;
402401
/// use std::os::unix::fs::OpenOptionsExt;
403402
///

0 commit comments

Comments
 (0)