rust/tests
bors 8b0bf6423d Auto merge of #11818 - y21:more_redundant_guards, r=llogiq
[`redundant_guards`]: catch `is_empty`, `starts_with` and `ends_with` on slices and `str`s

Fixes #11807

Few things worth mentioning:
- Taking `snippet`s is now done at callsite, instead of passing a span and doing it in `emit_redundant_guards`. This is because we now need custom suggestion strings in certain places, like `""` for `str::is_empty`.
- This now uses `snippet` instead of `snippet_with_applicability`. I don't think this really makes any difference for `MaybeIncorrect`, though?
- This could also lint byte strings, as they're of type `&[u8; N]`, but that can be ugly so I decided to leave it out for now

changelog: [`redundant_guards`]: catch `str::is_empty`, `slice::is_empty`, `slice::starts_with` and `slice::ends_with`
2023-11-29 13:20:59 +00:00
..
test_utils
ui Auto merge of #11818 - y21:more_redundant_guards, r=llogiq 2023-11-29 13:20:59 +00:00
ui-cargo Merge commit '98363cbf6a' into clippyup 2023-09-12 18:44:06 +02:00
ui-internal disallow struct_span_lint 2023-11-15 03:20:04 +01:00
ui-toml Add ui test for check_private_items config 2023-11-21 11:43:16 +01:00
workspace_test Merge commit '37f4c1725d' into clippyup 2023-07-02 14:59:02 +02:00
check-fmt.rs
clippy.toml
compile-test.rs Merge commit '09ac14c901' into clippyup 2023-11-02 17:35:56 +01:00
dogfood.rs Merge commit '09ac14c901' into clippyup 2023-11-02 17:35:56 +01:00
headers.rs Merge commit '080b587854' into clippyup 2023-08-24 21:32:12 +02:00
integration.rs Merge commit '5436dba826' into clippyup 2023-07-31 23:53:53 +02:00
lint_message_convention.rs Merge commit 'd9c24d1b1e' into clippyup 2023-07-17 10:22:32 +02:00
missing-test-files.rs Merge commit '37f4c1725d' into clippyup 2023-07-02 14:59:02 +02:00
versioncheck.rs Merge commit '09ac14c901' into clippyup 2023-11-02 17:35:56 +01:00
workspace.rs Merge commit '37f4c1725d' into clippyup 2023-07-02 14:59:02 +02:00