rust/crates
bors e963846656 Auto merge of #14816 - justahero:gh-14626, r=Veykril
feat: Assist to replace generic with impl trait

This adds a new assist named "Replace named generic with impl". It is the inverse operation to the existing "Replace impl trait with generic" assist.

It allows to refactor the following statement:

```rust
//      👇 cursor
fn new<T$0: ToString>(input: T) -> Self {}
```

to be transformed into:

```rust
fn new(input: impl ToString) -> Self {}
```

* adds new helper function `impl_trait_type` to create AST node
* add method to remove an existing generic param type from param list

Closes #14626
2023-05-26 12:03:44 +00:00
..
base-db fix: Fix body lowering not using block def maps 2023-05-04 20:46:05 +02:00
cfg
flycheck fix: remove useless returns 2023-05-07 09:42:52 +02:00
hir Auto merge of #14849 - alibektas:14557n, r=Veykril 2023-05-26 11:30:40 +00:00
hir-def fix need-mut false positive in closure capture of match scrutinee 2023-05-26 02:08:37 +03:30
hir-expand use ::core instead of $crate in option_env! 2023-05-25 18:46:34 +03:30
hir-ty insert type vars in function arguments 2023-05-26 14:26:13 +03:30
ide Auto merge of #14849 - alibektas:14557n, r=Veykril 2023-05-26 11:30:40 +00:00
ide-assists Integrate feedback 2023-05-26 13:43:12 +02:00
ide-completion internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
ide-db Auto merge of #14849 - alibektas:14557n, r=Veykril 2023-05-26 11:30:40 +00:00
ide-diagnostics insert type vars in function arguments 2023-05-26 14:26:13 +03:30
ide-ssr internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
intern Remove double lookups from Interned 2023-05-24 12:54:25 +02:00
limit
mbe
parser Auto merge of #14755 - poliorcetics:clippy-fixes, r=Veykril 2023-05-24 11:13:52 +00:00
paths Add AbsPath::absolutize 2023-05-13 11:51:28 +02:00
proc-macro-api Use triomphe Arc 2023-05-02 20:02:43 +03:00
proc-macro-srv
proc-macro-srv-cli
proc-macro-test
profile
project-model Add AbsPath::absolutize 2023-05-13 11:51:28 +02:00
rust-analyzer Auto merge of #14849 - alibektas:14557n, r=Veykril 2023-05-26 11:30:40 +00:00
sourcegen
stdx Depend on nohash-hasher individually 2023-05-06 00:49:23 -07:00
syntax Fix removal of generic param from list 2023-05-26 13:13:15 +02:00
test-utils Add moved-out-of-ref diagnostic 2023-05-18 19:17:06 +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 Auto merge of #14755 - poliorcetics:clippy-fixes, r=Veykril 2023-05-24 11:13:52 +00:00
vfs-notify