-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-assistsC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
rust-analyzer version: rust-analyzer 0.0.0 (5342f47 2022-07-09)
rustc version: rustc 1.62.0 (a8314ef7d 2022-06-27)
relevant settings: Neovim with coc-rust-analyzer
I tried implement default members
on some code by mistake, but got surprising results. Reproduction:
struct SomeStruct {
data: Arc<Vec<u8>>,
field: (u32, u32),
}
impl PartialEq for SomeStruct {
}
It will generate this ne
method:
impl PartialEq for SomeStruct {
fn ne(&self, other: &Self) -> bool {
self.data == other.data && self.field == other.field
}
}
The implement missing members
works as expected for eq
lnicola
Metadata
Metadata
Assignees
Labels
A-assistsC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now