rust/crates/hir_def/src
bors[bot] d7db38fff9
Merge #7907
7907: Autoderef with visibility r=cynecx a=cynecx

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7841.

I am not sure about the general approach here. Right now this simply tries to check whether the autoderef candidate is reachable from the current module. ~~However this doesn't exactly work with traits (see the `tests::macros::infer_derive_clone_in_core` test, which fails right now).~~ see comment below

Refs:

- `rustc_typeck` checking fields: 66ec64ccf3/compiler/rustc_typeck/src/check/expr.rs (L1610) 


r? @flodiebold

Co-authored-by: cynecx <me@cynecx.net>
2021-03-24 22:37:48 +00:00
..
body Fix incorrect scoping in while expressions 2021-03-21 01:28:42 +01:00
item_tree
nameres Merge bang-macros and derives in name resolution 2021-03-23 17:23:10 +01:00
path
adt.rs
attr.rs clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
body.rs
builtin_attr.rs
builtin_type.rs
child_by_source.rs
data.rs
db.rs hir_def: move visibility queries from hir_ty to hir_def 2021-03-24 23:00:03 +01:00
diagnostics.rs
dyn_map.rs
expr.rs
find_path.rs Code review fixes 2021-03-22 15:15:53 +02:00
generics.rs
import_map.rs
item_scope.rs
item_tree.rs
keys.rs
lang_item.rs
lib.rs
nameres.rs resolver: manually traverse nested block scopes 2021-03-22 18:55:51 +01:00
path.rs
per_ns.rs
resolver.rs resolver: manually traverse nested block scopes 2021-03-22 18:55:51 +01:00
src.rs
test_db.rs
trace.rs
type_ref.rs
visibility.rs hir_def: move visibility queries from hir_ty to hir_def 2021-03-24 23:00:03 +01:00