rust-analyzer/crates/ide-assists
bors 894d6a232c Auto merge of #12832 - lowr:fix/impl-default-members-no-codegen, r=Veykril
fix: don't replace default members' body

cc #12779, #12821
addresses https://github.com/rust-lang/rust-analyzer/pull/12821#issuecomment-1190157506

`gen_trait_fn_body()` only attempts to implement required trait member functions, so we shouldn't call it for `Implement default members` assist.

This patch also documents the precondition of `gen_trait_fn_body()` and inserts `debug_assert!`, but I'm not entirely sure if the assertions are appropriate.
2022-07-24 12:46:08 +00:00
..
src Auto merge of #12832 - lowr:fix/impl-default-members-no-codegen, r=Veykril 2022-07-24 12:46:08 +00:00
Cargo.toml Upgrade to expect-test@1.4.0 2022-07-19 13:00:45 +02:00