rust-analyzer/crates/hir-def/src
bors 8c9ca771c9 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
..
attr Tweak delayed bug mentions. 2024-02-12 18:39:20 +11:00
body Auto merge of #117772 - surechen:for_117448, r=petrochenkov 2024-02-18 13:56:07 +00:00
data Move ChildbySource and HasSource impls to their corresponding modules 2024-02-10 12:09:12 +01:00
dyn_map Deduplicate 2024-01-15 10:58:05 +01:00
hir new_without_default 2024-01-31 19:06:36 +01:00
item_tree 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. 2024-02-18 16:38:11 +08:00
macro_expansion_tests Auto merge of #16540 - Veykril:macro-arg, r=Veykril 2024-02-12 16:32:40 +00:00
nameres fix: Fix build scripts not being rebuilt in some occasions 2024-02-14 15:20:45 +01:00
path redundant_pattern_matching 2024-01-19 17:31:01 +01:00
attr.rs Cleanup term search related changes 2024-02-11 14:35:54 +02:00
body.rs internal: switch to tracing from log 2024-01-30 12:27:31 -05:00
builtin_type.rs Merge commit 'aa9bc8612514d216f84eec218dfd19ab83f3598a' into sync-from-ra 2023-06-05 12:04:23 +03:00
child_by_source.rs Move ChildbySource and HasSource impls to their corresponding modules 2024-02-10 12:09:12 +01:00
data.rs Encode disabled proc-macros via boolean flag, not special Expander 2024-02-12 13:39:38 +01:00
db.rs internal: switch to tracing from log 2024-01-30 12:27:31 -05:00
dyn_map.rs Merge commit '3b7c7f97e4a7bb253a8d398ee4f8346f6cf2817b' into sync-from-ra 2023-11-08 08:15:03 +02:00
expander.rs internal: macro_arg query always returns a TokenTree 2024-02-12 17:19:41 +01:00
find_path.rs fix: Respect textual length of paths in find-path 2024-02-16 10:54:54 +01:00
generics.rs Re-organize hir-def/lib.rs 2024-02-10 12:40:23 +01:00
hir.rs fix: Respect textual length of paths in find-path 2024-02-16 10:54:54 +01:00
import_map.rs 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. 2024-02-18 16:38:11 +08:00
item_scope.rs hir-def: Fix warnings about clippy str_to_string rule 2024-02-10 01:00:40 +09:00
item_tree.rs Re-organize hir-def/lib.rs 2024-02-10 12:40:23 +01:00
lang_item.rs internal: switch to tracing from log 2024-01-30 12:27:31 -05:00
lib.rs internal: Remove SELF_REF hack for self referential SyntaxContexts 2024-02-10 16:20:02 +01:00
lower.rs internal: Split out a span crate 2023-12-18 14:08:33 +01:00
nameres.rs 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. 2024-02-18 16:38:11 +08:00
path.rs needless_borrow 2024-01-19 17:31:01 +01:00
per_ns.rs derivable_impls 2024-01-31 19:06:18 +01:00
pretty.rs feat:Record FnAbi 2024-01-19 15:15:23 +01:00
resolver.rs Cleanup visibility.rs 2024-02-10 13:50:45 +01:00
src.rs Move ChildbySource and HasSource impls to their corresponding modules 2024-02-10 12:09:12 +01:00
test_db.rs borrow_deref_ref 2024-01-31 19:06:18 +01:00
trace.rs Move ChildbySource and HasSource impls to their corresponding modules 2024-02-10 12:09:12 +01:00
visibility.rs Cleanup visibility.rs 2024-02-10 13:50:45 +01:00