bors 7e8f9c82e1 Auto merge of #17467 - winstxnhdw:bool-to-enum, r=Veykril
feat: add bool_to_enum assist for parameters

## Summary

This PR adds parameter support for `bool_to_enum` assists. Essentially, the assist can now transform this:

```rs
fn function($0foo: bool) {
    if foo {
        println!("foo");
    }
}
```

To this,

```rs
#[derive(PartialEq, Eq)]
enum Bool { True, False }

fn function(foo: Bool) {
    if foo == Bool::True {
        println!("foo");
    }
}
```

Thanks to `@/davidbarsky`  for the test skeleton (:

Closes #17400
2024-06-30 12:26:07 +00:00
..
2024-06-30 14:00:55 +02:00
2024-06-30 14:00:55 +02:00
2024-06-30 14:00:55 +02:00
2024-06-30 14:00:55 +02:00
2024-06-24 14:47:21 +02:00
2024-06-05 10:45:22 +02:00
2024-05-15 18:55:27 +02:00
2024-06-30 14:00:55 +02:00
2024-06-13 17:29:10 -07:00
2024-06-13 17:29:10 -07:00
2024-06-30 14:00:55 +02:00
2024-06-13 17:29:10 -07:00
2024-06-24 14:47:21 +02:00
2024-06-12 08:16:07 +02:00