rust/crates
bors f0e00ed599 Auto merge of #14948 - alibektas:14386, r=Veykril
feature : assist delegate impl

This PR ( fixes #14386 ) introduces a new IDE assist that generates a trait impl for a struct that delegates a field. This is a draft because the current `ide_db::path_transform::PathTransform` produces some unwanted results when it deals with extern crates, an example of which I attach as a GIF.

GIFs :
1. A general case
![14386-functional](https://github.com/rust-lang/rust-analyzer/assets/20956650/22114959-caa6-45ec-a154-b4b2f458f6b1)

2. A case where `ide_db::path_transform::PathTransform` fails to correctly resolve a property ( take `Allocator` as an example ) to its full path, thus causing an error to occur. ( Not to even mention that resolving this causes another error `use of unstable library feature 'allocator_api'` to occur
![14386-erroneous](https://github.com/rust-lang/rust-analyzer/assets/20956650/922ca715-594e-4168-a579-7c5c006f93aa)
2023-06-22 10:44:01 +00:00
..
base-db Change in-tree libs to workspace dependencies 2023-06-20 13:53:39 +10:00
cfg Bump serde 2 things 2023-06-22 11:44:10 +02:00
flycheck Bump more deps 2023-06-22 11:44:10 +02:00
hir Bump more deps 2023-06-22 11:44:10 +02:00
hir-def Bump more deps 2023-06-22 11:44:10 +02:00
hir-expand Bump more deps 2023-06-22 11:44:10 +02:00
hir-ty Change in-tree libs to workspace dependencies 2023-06-20 13:53:39 +10:00
ide Less eager parsing for module sources 2023-06-17 10:58:52 +02:00
ide-assists Auto merge of #14948 - alibektas:14386, r=Veykril 2023-06-22 10:44:01 +00:00
ide-completion Less eager parsing for module sources 2023-06-17 10:58:52 +02:00
ide-db Auto merge of #15070 - Veykril:analysis-stat-stuff, r=Veykril 2023-06-21 05:58:13 +00:00
ide-diagnostics Skip mutable diagnostics on synthetic bindings 2023-06-21 19:38:19 +02:00
ide-ssr internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
intern Bump more deps 2023-06-22 11:44:10 +02:00
limit
mbe Implement ${count()} metavariable expression 2023-05-28 19:54:36 +09:00
parser Use ConstArg instead of Expr for AstId of InTypeConstId 2023-06-11 00:39:28 +03:30
paths internal: use consistent style for error handling 2023-06-19 13:01:47 +01:00
proc-macro-api Bump more deps 2023-06-22 11:44:10 +02:00
proc-macro-srv Bump more deps 2023-06-22 11:44:10 +02:00
proc-macro-srv-cli Remove proc-macro server command from the rust-analyzer binary 2023-04-26 08:19:28 +02:00
proc-macro-test
profile Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00
project-model Change in-tree libs to workspace dependencies 2023-06-20 13:53:39 +10:00
rust-analyzer Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00
sourcegen
stdx Bump more deps 2023-06-22 11:44:10 +02:00
syntax Remove unused StmtList::push_front 2023-06-19 22:56:31 +08:00
test-utils Support Pointee trait 2023-06-16 16:43:43 +03:30
text-edit Make text-size a workspace dep 2023-05-06 00:49:23 -07:00
toolchain
tt Emit function bodies in expanding builtin derives 2023-05-03 14:14:47 +03:30
vfs Simplify VfsPath fmt 2023-06-21 16:13:17 +03:00
vfs-notify Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00