rust-clippy/clippy_lints/src/methods
bors 9f9e9f7e52 Auto merge of #6316 - ThibsG:WrongSelfConventionTraitDef, r=ebroto
Lint also in trait def for `wrong_self_convention`

Extends `wrong_self_convention` to lint also in trait definition.

By the way, I think the `wrong_pub_self_convention` [example](dd826b4626/clippy_lints/src/methods/mod.rs (L197)) is misleading.
On [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=32615ab3f6009e7e42cc3754be0ca17f), it fires `wrong_self_convention`, so the example (or the lint maybe?) needs to be reworked.
The difference with `wrong_self_convention` [example](dd826b4626/clippy_lints/src/methods/mod.rs (L172)) is mainly the `pub` keyword on the method `as_str`, but the lint doesn't use the function visibility as condition to choose which lint to fire (in fact it uses the visibility of the impl item).

fixes: #6307

changelog: Lint `wrong_self_convention` lint in trait def also
2020-12-19 21:39:19 +00:00
..
bind_instead_of_map.rs Move find_all_ret_expressions into utils 2020-11-18 01:28:37 +09:00
inefficient_to_string.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
manual_saturating_arithmetic.rs Eat collapsible_match dogfood 2020-11-29 15:34:11 -06:00
mod.rs Auto merge of #6316 - ThibsG:WrongSelfConventionTraitDef, r=ebroto 2020-12-19 21:39:19 +00:00
option_map_unwrap_or.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
unnecessary_filter_map.rs Eat redundant else dogfood 2020-11-29 17:55:42 -06:00
unnecessary_lazy_eval.rs Auto merge of #6272 - camsteffen:unnecesary-lazy-eval-type, r=llogiq 2020-11-07 10:01:46 +00:00