rust/crates
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
..
base_db Improve readability 2021-03-23 13:04:43 +03:00
cfg a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Merge #7907 2021-03-24 22:37:48 +00:00
hir_def Merge #7907 2021-03-24 22:37:48 +00:00
hir_expand Clean up implementation 2021-03-24 00:47:55 -07:00
hir_ty Merge #7907 2021-03-24 22:37:48 +00:00
ide Document unlinked-file diagnostic 2021-03-24 22:18:17 +01:00
ide_assists refine comment style of tests 2021-03-24 19:28:50 +08:00
ide_completion Merge hir::MacroDef::is_* into hir::MacroDef::kind 2021-03-23 11:32:14 +01:00
ide_db Sweep the new TraitEnvironmentQuery 2021-03-24 18:59:35 +01:00
ide_ssr clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
mbe a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
parser Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08:00
proc_macro_srv Improve message usage in proc-macro 2021-03-24 03:51:06 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile add more counts 2021-01-27 12:39:19 +03:00
project_model clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
rust-analyzer Merge #8177 2021-03-24 08:53:48 +00:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Simplify code 2021-03-23 19:41:15 +03:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00