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
..
2023-02-13 13:55:14 +02:00
2023-05-07 09:42:52 +02:00
2023-05-26 13:43:12 +02:00
2023-05-13 11:51:28 +02:00
2023-05-02 20:02:43 +03:00
2023-02-13 13:55:14 +02:00
2023-05-13 11:51:28 +02:00
2023-05-06 00:49:23 -07:00
2023-05-06 00:49:23 -07:00
2023-03-13 10:42:24 +02:00
2023-02-13 13:55:14 +02:00