diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-08-09 16:59:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 16:59:10 +0000 |
| commit | 63427afb69c57ce085cfda7e3a26189967c44632 (patch) | |
| tree | 9fa3665fd0e36e0637ce083d3df524d7dc05e821 /docs/dev/debugging.md | |
| parent | b2b24255c870afc1b4d7e19aa1be022d4366b760 (diff) | |
| parent | 13749e782e307fbd52c1f85112982c93bfd0f2e7 (diff) | |
Merge #9825
9825: Generate default impl when converting #[derive(Default)] to manual impl r=Veykril a=yoshuawuyts Similar to https://github.com/rust-analyzer/rust-analyzer/pull/9814, but for `#[derive(Default)]`. Thanks! ## Follow-up steps I've added the tests inside `handlers/replace_derive_with_manual_impl.rs` again, but I'm planning a follow-up PR to extract these to `utils/` so we can share them between assists - and maybe even add another assist just for the purpose of testing these impls (e.g. `generate_default_trait_body`). The step after _that_ is likely to fill out the remaining traits, so we can make it so whenever RA auto-completes a trait which also can be derived, we provide a default function body. Co-authored-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
Diffstat (limited to 'docs/dev/debugging.md')
0 files changed, 0 insertions, 0 deletions
