rust/tests
bors 2776076efa Auto merge of #7977 - Jarcho:multi_needless_borrow, r=xFrednet
Improve `needless_borrow` lint

fixes: #5327
fixes: #1726
fixes: #1212

This is merging `needless_borrow` into the `dereference` pass in preparation for `explicit_auto_deref`. `explicit_auto_deref` needs to implement most of what `needless_borrow` implements in order to work.

There is a minor regression here where `let x: &str = &x.deref()` will trigger `needless_borrow` without triggering `explicit_deref_methods`. Removing the redundant borrow will cause `explicit_deref_methods` to trigger. This will be fixed when `explicit_auto_deref` is implemented.

changelog: Lint `needless_borrow` when a borrow is auto-derefed more than once
changelog: Lint `needless_borrow` in the trailing expression of a block for a match arm
2021-11-18 23:35:03 +00:00
..
cargo
ui Auto merge of #7977 - Jarcho:multi_needless_borrow, r=xFrednet 2021-11-18 23:35:03 +00:00
ui_test
ui-cargo
ui-internal New internal lint to make clippy::version attribute mandatory 2021-11-11 13:03:30 +01:00
ui-toml Merge remote-tracking branch 'upstream/master' into rustup 2021-11-18 12:22:00 +01:00
clippy.toml
compile-test.rs Auto merge of #7957 - surechen:fix_for_7854, r=giraffate 2021-11-15 00:50:28 +00:00
dogfood.rs
fmt.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup 2021-11-04 12:52:36 +00:00
versioncheck.rs