Samuel "Sam" Tardieu
e6646eb5fd
needless_else: new lint to check for empty else clauses
2023-05-22 11:52:26 +02:00
Philipp Krones
b76b0aeb63
Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup
2023-05-20 15:39:26 +02:00
Philipp Krones
96b32b1cb8
Merge remote-tracking branch 'upstream/master' into rustup
2023-05-20 15:32:20 +02:00
Guillaume Gomez
ab66a86815
Add new UNIQUE_CFG_CONDITION
lint
2023-05-19 16:16:37 +02:00
Centri3
8c191add87
the implementation!!
2023-05-14 19:25:23 -05:00
Caio
493b2ae8dc
Rename integer_arithmetic
2023-05-14 08:37:12 -03:00
bors
fff790b659
Auto merge of #10691 - jdswensen:jds/fix-doc-empty-line, r=Jarcho
...
fix: warn on empty line outer AttrKind::DocComment
changelog: [`empty_line_after_doc_comments`]: add lint for checking empty lines after rustdoc comments.
Fixes : #10395
2023-05-12 16:39:02 +00:00
Icxolu
a8834bc46a
add lint manual_next_back
...
checks for manual reverse iteration (`.rev().next()`) of a
`DoubleEndedIterator`
2023-05-11 22:25:14 +02:00
Jake Swensen
0a4cfbf1f8
fix: warn on empty line outer AttrKind::DocComment
...
changelog: [`empty_line_after_doc_comments`]: add lint for checking
empty lines after rustdoc comments.
Fixes : #10395
2023-05-10 20:41:23 -05:00
Urgau
35e5aac5c8
Drop uplifted clippy::forget_copy
2023-05-10 19:36:02 +02:00
Urgau
22688fc91f
Drop uplifted clippy::forget_ref
2023-05-10 19:36:01 +02:00
Urgau
551f6e6154
Drop uplifted clippy::drop_copy
2023-05-10 19:36:01 +02:00
Urgau
6af0359f2a
Drop uplifted clippy::drop_ref
2023-05-10 19:36:01 +02:00
NotAPenguin
56e8e1a27d
new lint: clippy::ref_patterns
2023-05-08 13:20:33 +02:00
Philipp Krones
7e9abb311d
Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup
2023-05-05 17:45:49 +02:00
Philipp Krones
88c7632659
Merge remote-tracking branch 'upstream/master' into rustup
2023-05-05 17:29:35 +02:00
bors
f9c1d155b4
Auto merge of #10716 - Icxolu:unitstruct_default_construction, r=Manishearth
...
Fixes #10609 : Adds lint to detect construction of unit struct using `default`
Using `default` to construct a unit struct increases code complexity and adds a function call. This can be avoided by simply removing the call to `default` and simply construct by name.
changelog: [`default_constructed_unit_structs`]: detects construction of unit structs using `default`
fixes #10609
2023-05-03 21:43:02 +00:00
Icxolu
4e04903631
rename to plural form
2023-05-03 19:25:25 +02:00
y21
8d8178f931
rename lint to manual_while_let_some
2023-04-29 18:59:07 +02:00
y21
1d08325293
move lint to loops, emit proper suggestion, more tests
2023-04-29 18:59:07 +02:00
y21
bb58083ce5
new lint: while_pop_unwrap
2023-04-29 18:59:06 +02:00
Deadbeef
81a614145f
uplift clippy::clone_double_ref
as suspicious_double_ref_op
2023-04-28 17:24:48 +00:00
Icxolu
9428138562
adds lint to detect construction of unit struct using default
...
Using `default` to construct a unit struct increases code complexity and
adds a function call. This can be avoided by simply removing the call to
`default` and simply construct by name.
2023-04-26 21:12:59 +02:00
bors
7a870aef1a
Auto merge of #10432 - samueltardieu:issue-10430, r=Manishearth
...
New lint: detect `if` expressions with simple boolean assignments to the same target
Closes #10430
changelog: [`needless_bool_assign`] new lint to detect simple boolean assignment to the same target in `if` branches
2023-04-23 15:47:00 +00:00
Samuel Tardieu
69da902f41
Detect if expressions with boolean assignments to the same target
2023-04-23 13:44:49 +02:00
Philipp Krones
a1b75c5108
Merge commit 'a3ed905928a03b6e433d0b429190bf3a847128b3' into clippyup
2023-04-23 13:28:56 +02:00
blyxyas
0354cee137
Add lint items_after_test_module
2023-04-22 21:12:45 +02:00
Philipp Krones
6b95029f17
Merge commit '83e42a2337dadac915c956d125f1d69132f36425' into clippyup
2023-04-11 15:31:08 +02:00
y21
5d01e6e96c
new lint: suspicious_doc_comments
2023-04-07 12:04:55 +02:00
Michael Schubart
b66aa09b95
Add [manual_slice_size_calculation
]
2023-04-06 11:48:20 +01:00
blyxyas
b2856a763e
Add tests_outside_test_module
lint
2023-04-02 00:35:46 +02:00
Samuel "Sam" Tardieu
6601d85c22
Flag bufreader.lines().filter_map(Result::ok)
as suspicious
2023-03-31 14:43:30 +02:00
bors
799732cbd8
Auto merge of #10414 - csmoe:large-future, r=xFrednet
...
add large future lint
Closes #5263
---
changelog: new lint: [`large_futures`]
[#10414 ](https://github.com/rust-lang/rust-clippy/pull/10414 )
<!-- changelog_checked -->
2023-03-30 08:51:29 +00:00
bors
ef3867f394
Auto merge of #9102 - botahamec:unused-box, r=xFrednet
...
Added the `[unnecessary_box_returns]` lint
fixes #5
I'm not confident in the name of this lint. Let me know if you can think of something better
---
changelog: New lint: ``[`unnecessary_box_returns`]``
[#9102 ](https://github.com/rust-lang/rust-clippy/pull/9102 )
<!-- changelog_checked -->
2023-03-30 08:22:16 +00:00
Micha White
022f76d432
Added the new lint with some docs and tests
2023-03-26 17:49:46 -04:00
bluthej
1d168b31c3
Merge branch 'rust-lang:master' into clear-with-drain
2023-03-26 19:11:38 +02:00
Philipp Krones
8df896c076
Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup
2023-03-24 14:26:19 +01:00
Samuel "Sam" Tardieu
d7d3dbf060
New lint: detect unnecessary struct building
2023-03-23 20:56:45 +01:00
bluthej
7f44530f54
Create clear_with_drain
lint
2023-03-21 22:51:51 +01:00
csmoe
4fdae81c70
add large future lint
2023-03-20 22:51:01 +08:00
Samuel "Sam" Tardieu
ffabdab8cf
New lint to detect &std::path::MAIN_SEPARATOR.to_string()
2023-03-16 21:42:04 +01:00
blyxyas
4b9cb857f9
Rename lint
2023-03-15 23:18:25 +01:00
blyxyas
0f1474ea27
Add allow_attribute
lint
2023-03-11 00:30:30 +01:00
Philipp Krones
cf8a67d9ad
Merge commit '3c06e0b1ce003912f8fe0536d3a7fe22558e38cf' into clippyup
2023-03-10 10:53:50 +01:00
blyxyas
ca3bf94c43
Add let_with_type_underscore
lint
2023-03-09 17:18:03 +01:00
Samuel Tardieu
d5429eab8a
Add new redundant_async_block
lint
2023-03-08 10:48:54 +01:00
Burak Varlı
ea2547b8c6
Add missing_assert_message
lint
...
Co-authored-by: Weihang Lo <me@weihanglo.tw>
2023-03-08 08:50:21 +00:00
Michael Schubart
2a9c254e23
Add collection_is_never_read
2023-02-27 07:14:55 +00:00
Jason Newcomb
0413fb35ba
Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup
2023-02-25 19:28:50 -05:00
Krishna Sundarram
00c294ad05
Add new lint no_mangle_with_rust_abi
2023-02-23 17:35:06 +00:00