Alex Macleod
0ea413fe6b
Generate lint count in template
2025-08-05 11:40:05 +00:00
Samuel Tardieu
4f1044a5a6
Do not specialize for if_chain any longer
...
Now that `if let` chains have been introduced, the `if_chain` external
crate is no longer necessary. Dropping special support for it also
alleviates the need to keep the crate as a dependency in tests.
2025-07-28 17:26:38 +02:00
Philipp Krones
c98e60a56e
Merge remote-tracking branch 'upstream/master' into rustup
2025-07-25 15:04:01 +02:00
Ralf Jung
50f36c0d34
clippy: make tests work in stage 1
2025-07-20 22:55:15 +02:00
bors
f4b827abeb
Auto merge of #143745 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
Cargo.lock update due to `ui_test` bump and restructure.
2025-07-14 19:53:18 +00:00
Ralf Jung
0cc60617d7
clippy: fix test filtering when TESTNAME is empty
2025-07-12 11:11:29 +02:00
Philipp Krones
4e614bf683
Merge commit ' cdbbf3afda' into clippy-subtree-update
2025-07-10 20:25:36 +02:00
Ralf Jung
5ff1a4164c
use ui_test dependency builder for non-internal test dependencies
2025-07-01 13:27:49 +02:00
Ralf Jung
1fcd632be3
bump ui_test to 0.30.1
2025-07-01 07:08:11 +02:00
Philipp Krones
074ccaf3c0
Merge commit ' c5dbd1de07' into clippy-subtree-update
2025-06-27 12:20:57 +02:00
Jason Newcomb
acd8810e77
Prepare to split lints into multiple crates
...
* Move `declare_clippy_lint` to it's own crate
* Move lint/group registration into the driver
* Make `dev update_lints` handle multiple lint crates
2025-06-18 22:37:23 -04:00
Philipp Krones
cbd683fe31
Merge commit ' 4ef75291b5' into clippy-subtree-update
2025-06-13 11:24:45 +02:00
Alex Macleod
4f3d529c88
Remove incremental test, disable incremental for cargo tests
2025-05-28 15:17:32 +00:00
Philipp Krones
93bd4d8931
Merge commit ' 0450db33a5' into clippy-subtree-update
2025-05-15 19:28:39 +02:00
Alex Macleod
737d3b3363
Remove some unused #![feature]s
2025-05-06 14:07:39 +00:00
Philipp Krones
ff428d91c2
Merge commit ' 0621446356' into clippy-subtree-update
2025-04-22 18:24:43 +02:00
Samuel Tardieu
c7640e0f83
Run UI tests with edition 2024 by default
...
The `ui_test` crate still uses 2021 as the default edition for running
rustc-like tests. This creates an unwelcome discrepancy between
`cargo dev lint` which uses Rust 2024 by default, and running UI tests
through `compile-test`.
2025-04-15 20:33:01 +02:00
Guillaume Gomez
893a6a381e
Update to new rinja version (askama)
2025-04-03 15:48:20 +02:00
Philipp Krones
9e6c7af4ba
Suggest ./x test src/tools/clippy --bless when in rust-lang/rust ( #14507 )
...
changelog: none
2025-03-31 17:30:19 +00:00
Alex Macleod
9172556de8
Suggest ./x test src/tools/clippy --bless when in rust-lang/rust
2025-03-31 12:39:41 +00:00
Samuel Tardieu
79c69112dc
Apply collapsible_if to Clippy itself
...
Since Clippy uses the `let_chains` feature, there are many occasions to
collapse `if` and `if let` statements.
2025-03-27 14:40:44 +01:00
Philipp Krones
c86216ebe7
Merge commit ' 1e5237f4a5' into clippy-subtree-update
2025-03-20 22:34:29 +01:00
Guillaume Gomez
ec8c0b3755
Make annotations mandatory for internal ui tests
2025-03-12 11:32:40 +01:00
Guillaume Gomez
cfc743226e
Update ui_test version to 0.29.2
2025-03-12 11:29:54 +01:00
Philipp Krones
fe01c44995
Merge commit ' 9f9a822509' into clippy-subtree-update
2025-02-28 23:27:09 +01:00
Alejandra González
b583568e72
Add unnecessary_debug_formatting lint ( #13893 )
...
Fixes #12674 , i.e., adds a lint to flag `Path`s printed with `{:?}`.
Nits are welcome.
changelog: Add `unnecessary_debug_formatting` lint
2025-02-26 15:03:57 +00:00
Samuel Moelius
6af901c51e
Add unnecessary_debug_formatting lint
...
Address review comments
Fix adjacent code
Required now that the lint is pedantic
Add inline formatting tests
Add note re formatting changes
Address `unnecessary_map_or` warnings
Address additional review comments
Typo
Update Clippy version
2025-02-26 14:25:58 +00:00
Guillaume Gomez
a50953c1b9
Disable mandatory annotations for ui-internals tests for now until we find a solution for tests/ui-internal/custom_ice_message.rs
2025-02-15 13:38:43 +01:00
Guillaume Gomez
0841f6e9dc
Don't make ui test annotations madatory for ui-cargo
2025-02-15 13:38:43 +01:00
Guillaume Gomez
95c6866dd4
Make UI tests annotations mandatory
2025-02-15 13:37:00 +01:00
Philipp Krones
9da9ddb7db
Merge commit ' 51d49c1ae2' into clippy-subtree-update
2025-01-28 19:33:54 +01:00
Samuel Tardieu
a73166872d
In edition 2024, std::env::set_var is unsafe
2025-01-13 15:58:11 +01:00
Philipp Krones
d0a74af979
Merge commit ' 19e305bb57' into clippy-subtree-update
2025-01-09 18:57:00 +01:00
Samuel Moelius
8a38bcc390
Make "all fields are shorthand" requirement configurable
...
Handle field attributes in suggestions
Fix adjacent code
Address review comments
https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1861352124
Address all review comments but one
This comment is not yet addressed: https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1874544907
`initializer_suggestions` -> `lint_inconsistent_struct_field_initializers`
2024-12-26 19:36:58 -05:00
Philipp Krones
6ced8c33c0
Merge commit ' f712eb5cdc' into clippy-subtree-update
2024-11-07 22:37:01 +01:00
Guillaume Gomez
da19d47147
Fix lints syntax highlighting
2024-10-18 18:03:16 +02:00
Philipp Krones
fea5e77da1
Merge commit ' a109190d70' into clippy-subtree-update
2024-10-18 13:44:06 +02:00
bors
6f1def79dd
Auto merge of #13269 - GuillaumeGomez:rewrite-lints-page, r=Alexendoo
...
Rewrite lints page
This PR has multiple goals:
* Make lints page to work without needing a web server by removing the json file.
* Prepare the field to also make the page work with JS (not done in this PR but should be straightforward).
* Remove angular dependency.
r? `@Alexendoo`
changelog: make lint page work without web server
2024-10-11 14:18:54 +00:00
Guillaume Gomez
603934336d
Greatly reduce generated HTML page size
2024-10-03 11:17:33 +02:00
Guillaume Gomez
47f40d468a
Improve rendering speed by moving settings generation after theme rendering
2024-10-03 11:12:19 +02:00
blyxyas
13e2633f19
Also sanitize configuration
2024-10-01 19:43:19 +02:00
blyxyas
daf730caed
Add sanitize_explanation
2024-09-26 00:23:38 +02:00
Philipp Krones
b61fcbee76
Merge commit ' 7901289135' into clippy-subtree-update
2024-09-24 11:58:04 +02:00
Guillaume Gomez
0055cebaa3
Replace search with vanilla JS
2024-09-22 22:30:45 +02:00
Guillaume Gomez
b522e7a944
Generate lint list in HTML directly instead of JS
2024-09-22 22:30:44 +02:00
Philipp Krones
3ab1da8bab
Formatting
2024-09-22 20:52:15 +02:00
Oli Scherer
1f13633359
Bump ui_test
2024-09-09 17:05:31 +02:00
Jason Newcomb
173d5a6af0
Merge commit ' 0f8eabd623' into clippyup
2024-08-24 18:33:44 -04:00
Alex Macleod
182cd5f278
Replace the metadata collector with tests
2024-08-12 20:24:46 +00:00
John Kåre Alsaker
837d9045c5
Link std statically in rustc_driver
2024-08-11 04:16:53 +02:00