Philipp Krones
9f53fc32cf
Merge remote-tracking branch 'upstream/master' into rustup
2024-07-25 18:23:27 +02:00
Jason Newcomb
e34c6dbae5
Refactor for using config values:
...
* Construct lint passes by taking `Conf` by reference.
* Use `HashSet` configs in less places
* Move some `check_crate` code into the pass constructor when possible.
2024-07-17 14:05:49 -04:00
Michael Goulet
185f4b06a7
Fix trivial gen ident usage in tools
2024-07-14 14:52:36 -04:00
Alex Macleod
f7aef635c1
Rework interior mutability detection
2024-04-18 17:33:39 +00:00
y21
91f514cc83
fix fallout from previous commit
2024-04-01 15:04:45 +02:00
Philipp Krones
80c6f8ff7b
Merge commit '20b085d500dfba5afe0869707bf357af3afe20be' into clippy-subtree-update
2024-05-02 17:26:44 +02:00
Philipp Krones
0ae4a048c6
Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into clippy-subtree-update
2024-04-04 19:52:55 +02:00
Philipp Krones
798865c593
Merge commit '66c29b973b3b10278bd39f4e26b08522a379c2c9' into clippy-subtree-update
2024-01-25 19:17:36 +01:00
Guillaume Gomez
169e2ab55b
Correctly handle type relative in trait_duplication_in_bounds
lint
2024-01-16 12:13:27 +01:00
Philipp Krones
c9a43b18f1
Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync
2023-12-01 18:21:58 +01:00
Alex Macleod
7093444bfa
Use absolute path for declare_tool_lint
in declare_clippy_lint
2023-11-25 17:45:27 +00:00
Philipp Krones
6246f0446a
Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup
2023-11-16 19:13:24 +01:00
Alex Macleod
13b4bb12ad
Clean up after if chain removal
2023-11-10 18:03:13 +00:00
Alex Macleod
9681b4afe0
Run if-to-let-chain clippy*/**/*.rs
...
https://github.com/Alexendoo/if-to-let-chain
2023-11-10 17:29:28 +00:00
Philipp Krones
77c1e3aaa1
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
2023-11-02 17:35:56 +01:00
Alex Macleod
4622203c9b
Move configuration to new clippy_config
crate
2023-10-23 20:05:10 +00:00
Alex Macleod
7347c1803f
Set existing doc-tests to no_run
2023-10-23 15:28:26 +00:00
Philipp Krones
cb3ecf7b79
Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup
2023-07-02 14:59:02 +02:00
y21
33b6d0d206
rename MSRV alias, add MSRV to lint doc
2023-06-22 17:19:43 +02:00
y21
765a6e4a90
put issue link between <>
2023-06-20 17:36:38 +02:00
y21
87c28b9463
[type_repetition_in_bounds
]: respect msrv for combining maybe bounds
2023-06-20 17:24:46 +02:00
bors
903fe3b9f2
Auto merge of #10894 - Centri3:type_repetition_in_bounds, r=blyxyas,xFrednet
...
[`type_repetition_in_bounds`]: Don't lint on derived code
fixes #10504 .
changelog: [`type_repetition_in_bounds`]: Don't lint on derived code
2023-06-12 07:18:39 +00:00
Jason Newcomb
949712c90a
Reborrow mutable references in explicit_iter_loop
2023-06-09 21:40:03 -04:00
Centri3
a434a7715d
impl WithSearchPat for Ty
2023-06-06 22:16:02 -05:00
Centri3
f68ee79864
Update trait_bounds.rs
2023-06-05 14:53:22 -05:00
Centri3
0250c51844
refactor
2023-06-05 14:46:47 -05:00
Centri3
6ea7cd8ec7
Fix #10504 , don't lint on derived code
2023-06-05 14:38:38 -05:00
Philipp Krones
b76b0aeb63
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
2023-05-20 15:39:26 +02:00
John Kelly
b169bdb732
Comments
2023-05-09 10:06:38 +01:00
John Kelly
5c8a00923b
Comments
2023-05-07 10:10:44 +01:00
John Kelly
122793b494
Update trait_bounds.rs
2023-05-02 18:21:23 +01:00
John Kelly
cbd0135bd2
Update trait_bounds.rs
2023-05-02 18:15:02 +01:00
John Kelly
b9788fef29
Working
2023-04-30 14:34:46 +01:00
John Kelly
8db21e9a9c
WIP
2023-04-30 14:14:47 +01:00
John Kelly
0fb3f3b256
WIP
2023-04-30 14:10:26 +01:00
John Kelly
1eff408ca4
WIP
2023-04-30 13:45:45 +01:00
John Kelly
478555d468
wip
2023-04-30 13:16:04 +01:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Philipp Krones
e2808afd60
Merge remote-tracking branch 'upstream/master' into rustup
2022-10-06 09:19:29 +02:00
Nicholas Nethercote
8b59fe4981
Shrink hir::def::Res
.
...
`Res::SelfTy` currently has two `Option`s. When the second one is `Some`
the first one is never consulted. So we can split it into two variants,
`Res::SelfTyParam` and `Res::SelfTyAlias`, reducing the size of `Res`
from 24 bytes to 12. This then shrinks `hir::Path` and
`hir::PathSegment`, which are the HIR types that take up the most space.
2022-09-29 08:44:52 +10:00
Yuri Astrakhan
e67b2bf732
Apply uninlined_format-args to clippy_lints
...
This change is needed for the uninlined_format-args lint to be merged.
See https://github.com/rust-lang/rust-clippy/pull/9233
2022-09-23 13:42:59 -04:00
Nicholas Nethercote
25f6f18834
Make hir::PathSegment::res
non-optional.
2022-09-05 14:20:25 +10:00
Jason Newcomb
fb41bfa774
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
2022-08-31 09:24:45 -04:00
Philipp Krones
7d4daaa8fa
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
2022-07-18 09:39:37 +02:00
flip1995
f8f9d01c2a
Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup
2022-06-16 17:39:06 +02:00
Philipp Krones
f067783461
Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup
2022-06-04 13:34:07 +02:00
flip1995
bca3d8a6b5
Track if a where bound comes from a impl Trait desugar
...
With #93803 `impl Trait` function arguments get desugared to hidden
where bounds. However, Clippy needs to know if a bound was originally a
impl Trait or an actual bound. This adds a field to the
`WhereBoundPredicate` struct to keep track of this information during
HIR lowering.
2022-05-07 17:10:30 +02:00
flip1995
ed8458f67a
(Partially) Revert "HACK: Move buggy lints to nursery"
...
This reverts commit bb01aca86f
.
Partial: Keep regression tests
2022-05-05 15:20:07 +01:00
flip1995
7cd86aa1be
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
2022-05-05 15:12:52 +01:00
Camille GILLOT
e2d923ac3b
Store all generic bounds as where predicates.
2022-04-30 13:55:13 +02:00