rust/tests
bors 251a475b72 Auto merge of #11511 - Jarcho:split_borrow, r=llogiq
Split `needless_borrow` into two lints

Splits off the case where the borrow is used as a generic argument to a function. I think the two cases are different  enough to warrant a separate lint.

The tests for the new lint have been reordered to group related parts together. Two warning have been dropped, one looked like it was testing the generic argument form, but it ends up triggering the auto-deref variant. The second was just a redundant test that didn't do anything interesting.

An issue with cycle detection is also included. The old version was checking if a cycle was reachable from a block when it should have been checking if the block is part or a cycle.

As a side note, I'm liking the style of just jamming all the tests into separate scopes in main.

changelog: Split off `needless_borrows_for_generic_args` from `needless_borrow`
2023-09-17 13:48:40 +00:00
..
test_utils
ui Auto merge of #11511 - Jarcho:split_borrow, r=llogiq 2023-09-17 13:48:40 +00:00
ui-cargo Merge remote-tracking branch 'upstream/master' into rustup 2023-09-07 21:43:06 +02:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2023-09-07 21:43:06 +02:00
ui-toml new lint: path_ends_with_ext 2023-09-15 16:17:51 +02:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Remove derive_new test dependency 2023-09-13 18:58:47 +00:00
dogfood.rs
headers.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs