rust/compiler/rustc_hir_analysis/src/check
bors 8b21296b5d Auto merge of #117772 - surechen:for_117448, r=petrochenkov
Tracking import use types for more accurate redundant import checking

fixes #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
```
2024-02-18 13:56:07 +00:00
..
compare_impl_item Deeply normalize when processing registered region obligations 2024-01-30 00:06:53 +00:00
check.rs Auto merge of #117772 - surechen:for_117448, r=petrochenkov 2024-02-18 13:56:07 +00:00
compare_impl_item.rs Auto merge of #120931 - chenyukang:yukang-cleanup-hashmap, r=michaelwoerister 2024-02-15 12:36:37 +00:00
dropck.rs Dejargnonize subst 2024-02-12 15:46:35 +09:00
entry.rs hir: Remove fn opt_hir_id and fn opt_span 2024-02-07 09:38:24 +03:00
errs.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
intrinsic.rs Give the (un)likely intrinsics fallback bodies 2024-02-16 22:26:01 +00:00
intrinsicck.rs Rename TyCtxt::struct_span_lint_hir as TyCtxt::node_span_lint. 2024-01-23 08:09:01 +11:00
mod.rs Auto merge of #120486 - reitermarkus:use-generic-nonzero, r=dtolnay 2024-02-16 07:46:31 +00:00
region.rs remove a bunch of dead parameters in fn 2024-02-12 09:51:35 +08:00
wfcheck.rs Use fewer delayed bugs. 2024-02-14 20:30:37 +11:00