You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, assert_receiver_is_total_eq is marked #[doc(hidden)], has a default implementation, and has a comment stating This should never be implemented by hand. I'd assume (admittedly not based on any particular evidence past a gut-feeling) that any trait member function that's both #[doc(hidden)] and has a default implementation shouldn't be implemented by hand, and therefore r-a shouldn't generate templates for them.
The text was updated successfully, but these errors were encountered:
bugfix : skip doc(hidden) default members
fixes#14957 . I have two questions :
1. I am definitely looking for a more idiomatic way for the things I added in `crates/ide-assists/src/utils.rs`. See `FIXME` in that file.
2. Would it be actually better to change `DefaultMethods` to something like
```rust
enum DefaultMethods {
Only( IgnoreHidden ( bool ) ) ,
None
}
```
instead of adding a boolean to every function that calls `crates/ide-assists/src/utils.rs::filter_assoc_items`
Currently, if you write something like
and trigger the
Implement default members
assist, it fills it out like this:However,
assert_receiver_is_total_eq
is marked#[doc(hidden)]
, has a default implementation, and has a comment statingThis should never be implemented by hand
. I'd assume (admittedly not based on any particular evidence past a gut-feeling) that any trait member function that's both#[doc(hidden)]
and has a default implementation shouldn't be implemented by hand, and therefore r-a shouldn't generate templates for them.The text was updated successfully, but these errors were encountered: