rust/crates/syntax
Sebastian Ziebell 59f8827a6f Implement assist to replace named generic with impl
This adds a new assist named "replace named generic with impl" to move
the generic param type from the generic param list into the function
signature.

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

becomes

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

The first step is to determine if the assist can be applied, there has
to be a match between generic trait param & function paramter types.

* replace function parameter type(s) with impl
* add new `impl_trait_type` function to generate the new trait bounds with `impl` keyword  for use in the
  function signature
2023-05-26 13:13:11 +02:00
..
fuzz fix(fuzz): Fixes broken Cargo.toml for fuzz tests 2023-01-24 10:54:10 -08:00
src Implement assist to replace named generic with impl 2023-05-26 13:13:11 +02:00
test_data Spelling 2023-04-19 09:45:55 -04:00
Cargo.toml internal: Bump rustc_lexer 2023-05-18 10:17:40 +02:00
rust.ungram Parse associated return type bounds 2023-05-06 20:31:11 +09:00