rust-clippy/tests
bors c082bc2cb8 Auto merge of #13136 - xFrednet:07797-restriction-and-then, r=blyxyas
Make restriction lint's use `span_lint_and_then` (a -> e)

This migrates a few restriction lints to use `span_lint_and_then`. This change is motivated by https://github.com/rust-lang/rust-clippy/issues/7797.

I'm also interested if it will have an impact on performance. With some of these lints, like [`clippy::implicit_return`](https://rust-lang.github.io/rust-clippy/master/index.html#/implicit_return) I expect an impact, as it was previously creating a suggestion **for every implicit return** which is just wild.

I've also cleaned up some lint message. Mostly minor stuff. For example: suggestions with a longer message than `"try"` now use `SuggestionStyle::ShowAlways`

---

`@blyxyas` Could you benchmark this PR? I want to get all the numbers :3

---

This also crashed our new lintcheck CI with the following message:

> Error: $GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 46731k. For more information see: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary

Which is just wild. Like, I've [tested the first 20 lints](https://github.com/xFrednet/rust-clippy/actions/runs/10027528172) and got like four changes and then this. 50 MB of changed lint messages o.O. Looks like I'll create a separate PR to fix that step ^^

---

cc: https://github.com/rust-lang/rust-clippy/issues/7797

changelog: none

r? `@blyxyas`
2024-08-05 13:33:16 +00:00
..
test_utils
ui Auto merge of #13136 - xFrednet:07797-restriction-and-then, r=blyxyas 2024-08-05 13:33:16 +00:00
ui-cargo Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
ui-internal Store deprecated lints as an array of tuples. 2024-08-05 09:15:55 -04:00
ui-toml Migrating restriction lints to span_lint_and_then (e -> i) 2024-08-03 10:18:15 +02:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Bump ui_test version -> 0.25 2024-07-26 11:40:27 +02:00
dogfood.rs Show progress while running dogfood test 2024-07-17 12:29:18 +00:00
headers.rs
integration.rs [pathbuf_init_then_push]: Checks for calls to push immediately after creating a new PathBuf 2024-07-21 14:22:48 +08:00
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs