rust/tests
bors c419d0a8b5 Auto merge of #9136 - smoelius:enhance-needless-borrow, r=Jarcho
Enhance `needless_borrow` to consider trait implementations

The proposed enhancement causes `needless_borrow` to suggest removing `&` from `&e` when `&e` is an argument position requiring trait implementations, and `e` implements the required traits. Example:
```
error: the borrowed expression implements the required traits
  --> $DIR/needless_borrow.rs:131:51
   |
LL |     let _ = std::process::Command::new("ls").args(&["-a", "-l"]).status().unwrap();
   |                                                   ^^^^^^^^^^^^^ help: change this to: `["-a", "-l"]`
```

r? `@Jarcho`

changelog: Enhance `needless_borrow` to consider trait implementations
2022-08-18 15:57:37 +00:00
..
test_utils
ui Auto merge of #9136 - smoelius:enhance-needless-borrow, r=Jarcho 2022-08-18 15:57:37 +00:00
ui-cargo Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
ui-internal Fix some typos 2022-08-05 00:59:21 +03:00
ui-toml Auto merge of #9223 - sgued:unwrap-expect-used, r=giraffate 2022-08-01 01:27:03 +00:00
workspace_test
check-fmt.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
clippy.toml
compile-test.rs Handle CARGO_TARGET_DIR not being set in compile-test 2022-08-16 21:22:29 -04:00
dogfood.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
integration.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
lint_message_convention.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
missing-test-files.rs
versioncheck.rs
workspace.rs Fix adjacent code 2022-08-16 18:34:51 -04:00