rust-clippy/clippy_lints/src/utils
bors e636b88aa1 Auto merge of #6044 - rschoon:rc-buffer, r=yaahc
Add `rc_buffer` lint for checking Rc<String> and friends

Fixes #2623

This is a bit different from the original PR attempting to implement this type of lint.   Rather than linting against converting into the unwanted types, this PR lints against declaring the unwanted type in a struct or function definition.

I'm reasonably happy with what I have here, although I used the fully qualified type names for the Path and OsString suggestions, and I'm not sure if I should have just used the short versions instead, even if they might not have been declared via use.

Also, I don't know if "buffer type" is the best way to put it or not.  Alternatively I could call it a "growable type" or "growable buffer type", but I was thinking of PathBuf when I started making the lint.

changelog: Add `rc_buffer` lint
2020-09-23 18:35:08 +00:00
..
ast_utils.rs Auto merge of #75800 - Aaron1011:feature/full-nt-tokens, r=petrochenkov 2020-09-11 02:35:01 +00:00
attrs.rs
author.rs Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup 2020-08-28 18:43:25 +02:00
camel_case.rs
comparisons.rs
conf.rs Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup 2020-09-10 17:47:07 +02:00
constants.rs
diagnostics.rs Misc doc updates 2020-09-15 10:29:53 +02:00
eager_or_lazy.rs option_if_let_else - distinguish pure from impure else expressions 2020-09-16 01:30:50 +02:00
higher.rs Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup 2020-08-28 18:43:25 +02:00
hir_utils.rs Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup 2020-08-28 18:43:25 +02:00
inspector.rs
internal_lints.rs replace walk_ptrs_ty with peel_refs 2020-09-17 10:11:59 +12:00
mod.rs replace walk_ptrs_ty with peel_refs 2020-09-17 10:11:59 +12:00
numeric_literal.rs
paths.rs Auto merge of #6044 - rschoon:rc-buffer, r=yaahc 2020-09-23 18:35:08 +00:00
ptr.rs
sugg.rs option_if_let_else - distinguish pure from impure else expressions 2020-09-16 01:30:50 +02:00
sym.rs
usage.rs option_if_let_else - distinguish pure from impure else expressions 2020-09-16 01:30:50 +02:00