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
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
Guillaume Gomez
169e2ab55b
Correctly handle type relative in trait_duplication_in_bounds
lint
2024-01-16 12:13:27 +01:00
Alex Macleod
7093444bfa
Use absolute path for declare_tool_lint
in declare_clippy_lint
2023-11-25 17:45:27 +00: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
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
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
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
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
Camille GILLOT
67241bb03c
Inline WhereClause into Generics.
2022-04-30 13:51:49 +02:00
codehorseman
4beda1be70
resolve the conflict in compiler/rustc_session/src/parse.rs
...
Signed-off-by: codehorseman <cricis@yeah.net>
2022-03-16 20:12:30 +08:00
flip1995
35020280a0
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
2022-02-26 14:26:21 +01:00
Ellen
7c94736953
change to a struct variant
2022-02-12 11:23:53 +00:00
flip1995
bf66aeda0a
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
2022-01-27 15:12:45 +01:00
flip1995
fb0142ae41
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
2022-01-13 13:18:19 +01:00
flip1995
8fea1d94f3
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
2b20f49841
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
6c27482115
Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup
2021-06-03 08:41:37 +02:00
flip1995
f6d1f368db
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
2021-04-08 17:50:13 +02:00
flip1995
9f6b5de7de
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
2021-03-25 19:29:11 +01:00