Jacherr
941164807f
implement more types to lint, fix wording
2023-11-11 21:26:50 +00:00
Jacherr
cb90674aed
add iter_over_hash_type lint
2023-11-11 00:20:47 +00:00
Jacherr
483b109e6e
cargo dev fmt
2023-11-08 21:17:40 +00:00
Jacherr
67bb503f26
add support for std::alloc::Global, add more tests
2023-11-08 21:10:27 +00:00
Alex Macleod
f4b4e2ca1b
Remove internal feature from clippy_utils
2023-10-27 13:13:26 +00:00
bors
2f0f4ddcf7
Auto merge of #11698 - a1phyr:waker_clone_and_wake, r=y21
...
Add `waker_clone_and_wake` lint to check needless `Waker` clones
Check for patterns of `waker.clone().wake()` and replace them with `waker.wake_by_ref()`.
An alternative name could be `waker_clone_then_wake`
changelog: [ `waker_clone_wake`]: new lint
2023-10-26 21:01:40 +00:00
Benoît du Garreau
f8790963d9
Add a lint to check needless Waker
clones
2023-10-24 09:58:23 +02:00
Alex Macleod
4622203c9b
Move configuration to new clippy_config
crate
2023-10-23 20:05:10 +00:00
Philipp Krones
5f031561ef
Merge remote-tracking branch 'upstream/master' into rustup
2023-10-21 13:41:46 +02:00
Jason Newcomb
9de3e6c928
Add more diagnostic items for clippy
2023-10-05 18:21:47 -04:00
Philipp Krones
471469d30f
Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyup
2023-09-12 18:44:06 +02:00
bors
3da21b089f
Auto merge of #11396 - y21:issue11345, r=Jarcho
...
new lint: `iter_out_of_bounds`
Closes #11345
The original idea in the linked issue seemed to be just about arrays afaict, but I extended this to catch some other iterator sources such as `iter::once` or `iter::empty`.
I'm not entirely sure if this name makes a lot of sense now that it's not just about arrays anymore (specifically, not sure if you can call `.take(1)` on an `iter::Empty` to be "out of bounds"?).
changelog: [`iter_out_of_bounds`]: new lint
2023-08-30 19:51:32 +00:00
Philipp Krones
cc61aeea54
Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyup
2023-08-24 21:32:12 +02:00
Philipp Krones
e1ec41b217
Fix dogfood issues
2023-08-24 21:06:18 +02:00
y21
86b6644379
new lint: iter_out_of_bounds
2023-08-24 20:21:55 +02:00
unvalley
d5dbee4aa0
feat: update manual_retain to lint binary_heap_retain
...
refactor: rename variable
chore: reorder
test: update naming for msrv
2023-08-13 17:09:39 +09:00
Philipp Krones
f730a2655a
Merge commit '1e8fdf492808a25d78a97e1242b835ace9924e4d' into clippyup
2023-08-11 14:05:13 +02:00
Catherine Flores
1ec0501bca
Revert "New lint [filter_map_bool_then
]"
...
This reverts commits 978b1daf99d8326718684381704902fdaaf71b18 and 3235d9d612909bc64550eea3a0d387e1187e93dd.
2023-08-10 17:28:01 -05:00
Philipp Krones
b0e64a9c09
Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup
2023-07-31 23:53:53 +02:00
Catherine
978b1daf99
New lint [filter_map_bool_then
]
2023-07-25 17:42:36 -05:00
bors
70c5798993
Auto merge of #11198 - y21:issue10938, r=Centri3
...
[`slow_vector_initialization`]: catch `Vec::new()` followed by `.resize(len, 0)`
Closes #10938
changelog: [`slow_vector_initialization`]: catch `Vec::new()` followed by `.resize(len, 0)`
2023-07-25 17:23:01 +00:00
y21
c0484b74f7
simplify looking for Vec::with_capacity
exprs
2023-07-25 18:56:57 +02:00
Catherine
a4c367d0e9
Allow Self::cmp(self, other)
as a correct impl
2023-07-20 16:17:24 -05:00
Philipp Krones
d6d530fd0b
Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup
2023-07-17 10:22:32 +02:00
Alex Macleod
f945351170
Fix regex lints for regex 1.9.0
2023-07-05 18:29:43 +00:00
bors
70c2d0cfe5
Auto merge of #106450 - albertlarsan68:fix-arc-ptr-eq, r=Amanieu
...
Make `{Arc,Rc,Weak}::ptr_eq` ignore pointer metadata
FCP completed in https://github.com/rust-lang/rust/issues/103763#issuecomment-1362267967
Closes #103763
2023-06-21 05:13:39 +00:00
Philipp Krones
e6dc0efc00
Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyup
2023-06-02 11:41:57 +02:00
Philipp Krones
7e9abb311d
Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup
2023-05-05 17:45:49 +02:00
Albert Larsan
9a61550e78
Make {Arc,Rc,Weak}::ptr_eq
ignore pointer metadata
2023-04-26 15:27:32 +00:00
Philipp Krones
6b95029f17
Merge commit '83e42a2337dadac915c956d125f1d69132f36425' into clippyup
2023-04-11 15:31:08 +02:00
Philipp Krones
8df896c076
Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup
2023-03-24 14:26:19 +01:00
Jason Newcomb
0413fb35ba
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
2023-02-25 19:28:50 -05:00
Philipp Krones
d21616737b
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
2023-01-12 19:48:13 +01:00
Philipp Krones
1c422524c7
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
2022-12-17 14:12:54 +01:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Philipp Krones
46c5a5d234
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
2022-11-21 20:51:52 +01:00
flip1995
cd0bb7de01
Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup
2022-10-23 15:18:45 +02:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Markus Reiter
64a42db51a
Simplify clippy
fix.
2022-09-12 19:46:51 +02:00
Jason Newcomb
fb41bfa774
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
2022-08-31 09:24:45 -04:00
Philipp Krones
dc29cfb8d5
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
2022-08-11 19:42:16 +02:00
Philipp Krones
7d4daaa8fa
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
2022-07-18 09:39:37 +02:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
Philipp Krones
f067783461
Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup
2022-06-04 13:34:07 +02:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
flip1995
7cd86aa1be
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
2022-05-05 15:12:52 +01:00
Vadim Petrochenkov
6f825246f8
clippy: Update full path to CString
2022-04-15 16:52:58 +03:00
flip1995
71131351de
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
2022-04-08 10:06:10 +01:00
flip1995
d1b087fdee
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
2022-03-14 12:02:53 +01:00
flip1995
35020280a0
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
2022-02-26 14:26:21 +01:00