Jonas Schievink
e7a2d13ff6
Fix "add missing impl members" assist for impls inside blocks
2023-01-27 16:51:55 +01:00
Ryo Yoshida
fc56cacfc1
Test TraitRef
equality before generating missing impl method body
2023-01-16 20:55:56 +09:00
bors
63a676eedf
Auto merge of #13576 - Bben01:supress_missing_impl_inside_block, r=jonas-schievink
...
Suppress "Implement default members" inside contained items
Fixes #13561
2022-11-24 15:16:36 +00:00
Bben01
95b4a7487b
Suppress "Implement default members" inside contained items
2022-11-21 22:17:04 +02:00
bvanjoi
a4f071afd5
fix(assists): remove item_const
which had default value when implement missing members`
2022-11-19 19:38:53 +08:00
Ryo Yoshida
19306c070d
Fix tests that depended on loose visibility restriction
2022-11-11 20:31:46 +09:00
Edwin Cheng
c47914c6cf
Fixes tests
2022-08-10 16:29:23 +08:00
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
Ryo Yoshida
7e0bd377c2
fix: don't replace default members' body
2022-07-20 22:30:16 +09:00
Amos Wenger
7e285e1ef5
Run cargo fmt
2022-07-20 15:06:15 +02:00
Amos Wenger
816f7fe12a
Run cargo fix --edition-idioms
2022-07-20 15:02:08 +02:00
Michael Chisolm
1c32fcfeb4
Fix generated PartialEq::ne
2022-07-20 00:26:50 -04:00
Lukas Wirth
86d1d9067e
fix: Insert whitespace into trait-impl completions when coming from macros
2022-05-24 22:56:33 +02:00
Peh
1f011fa4a3
style: rename crates to kebab case
2022-05-01 10:48:58 +00:00