rust-analyzer/crates/ide-assists/src
bors 9d0ccf01a1 Auto merge of #15597 - rmehri01:fix_promote_local_field_shorthand, r=HKalbasi
Field shorthand overwritten in promote local to const assist

Currently, running `promote_local_to_const` on the following:

```rust
struct Foo {
    bar: usize,
}

fn main() {
    let $0bar = 0;
    let foo = Foo { bar };
}
```

Results in:

```rust
struct Foo {
    bar: usize,
}

fn main() {
    const BAR: usize = 0;
    let foo = Foo { BAR };
}
```

But instead should be something like:

```rust
struct Foo {
    bar: usize,
}

fn main() {
    const BAR: usize = 0;
    let foo = Foo { bar: BAR };
}
```
2023-09-16 16:48:21 +00:00
..
handlers Auto merge of #15597 - rmehri01:fix_promote_local_field_shorthand, r=HKalbasi 2023-09-16 16:48:21 +00:00
tests Auto merge of #15524 - vsrs:bind_unused_param, r=Veykril 2023-09-08 09:12:31 +00:00
utils Parse builtin# syntax 2023-09-05 10:36:35 +02:00
assist_config.rs feat: add config for inserting must_use in generate_enum_as_method 2022-10-24 13:18:24 +05:30
assist_context.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
lib.rs Auto merge of #15524 - vsrs:bind_unused_param, r=Veykril 2023-09-08 09:12:31 +00:00
tests.rs internal: Defer rendering of structured snippets 2023-07-12 01:50:35 -04:00
utils.rs HiddenDocAttr becomes DocHiddenAttr 2023-07-07 14:15:15 +02:00