J-ZhengLi
2d9fc6dfc8
implement unoptimized code logic for [infinite_loops]
2023-11-17 18:10:50 +08:00
Dinu Blanovschi
14b82909b0
Apply suggestions from code review
...
Co-authored-by: Alejandra González <blyxyas@gmail.com>
2023-10-31 18:21:34 +01:00
Dinu Blanovschi
0b90f72064
feat: unused_enumerate_index lint
2023-10-31 17:53:24 +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
Ben Schofield
be55a96d80
Add config flag for reborrows in explicit_iter_loop
...
This commit adds a config flag for enforcing explicit into iter lint
for reborrowed values. The config flag, enforce_iter_loop_reborrow, can be
added to clippy.toml files to enable the linting behaviour. By default
the lint is not enabled.
2023-08-27 21:45:14 -06:00
xFrednet
31397b489a
Update version attribute for 1.71 lints
2023-07-11 19:23:42 +02:00
Jason Newcomb
949712c90a
Reborrow mutable references in explicit_iter_loop
2023-06-09 21:40:03 -04:00
Jason Newcomb
482baf2bcc
Fix explicit_into_iter_loop with mutable references
2023-06-09 21:40:03 -04:00
Jason Newcomb
b6fa4d43d3
Extend explicit_iter_loop to all types
2023-06-09 19:24:55 -04:00
Raghul Nanth A
7ac15f9000
Add lint to check lint formulation messages
...
Fix lints that don't conform to the standard formulation
2023-06-03 00:00:30 +05:30
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
Tyler Weaver
4d266d31de
needless_range_loop: improve documentation
2023-01-29 11:41:53 -07:00
Jason Newcomb
b0dcb862c6
Move needless_collect into the methods lint pass
2022-11-07 13:15:39 -05:00
JT
0e360d0b21
Move needless_collect to nursery
2022-10-25 06:03:51 +13:00
Maybe Waffle
7cfc6fa1f0
deprecate clippy::for_loops_over_fallibles
2022-10-09 13:07:21 +00:00
Philipp Krones
d75b25faab
Merge commit ' ac0e10aa68' into clippyup
2022-10-06 09:44:38 +02:00
Takayuki Maeda
4bcaddeeb2
separate the receiver from arguments in HIR under /clippy
2022-09-05 22:25:57 +09:00
Philipp Krones
09f5df5087
Merge commit ' 0cb0f76368' into clippyup
2022-06-30 10:50:09 +02:00
flip1995
f8f9d01c2a
Merge commit ' d7b5cbf065' into clippyup
2022-06-16 17:39:06 +02:00
Philipp Krones
f067783461
Merge commit ' d9ddce8a22' 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
d1b087fdee
Merge commit ' dc5423ad44' into clippyup
2022-03-14 12:02:53 +01:00
Cameron Steffen
82f613ee3b
Remove a span from hir::ExprKind::MethodCall
2022-01-21 07:48:10 -06:00
Nicholas Nethercote
a83c935a18
Remove unnecessary sigils around Ident::as_str() calls.
2021-12-15 17:32:42 +11:00
flip1995
8fea1d94f3
Merge commit ' a5d597637d' into clippyup
2021-12-06 12:33:31 +01:00
Cameron Steffen
e58ffb88e6
Fix Clippy with changed for loop desugar
2021-11-21 08:16:09 -06:00
bors
eac0b26015
Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa
...
rustc: use more correct span data in for loop desugaring
Fixes #82462
Before:
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
|
LL | for x in DroppingSlice(&*v).iter(); {
| +
After:
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
|
LL | };
| +
This seems like a reasonable fix: since the desugared "expr_drop_temps_mut" contains the entire desugared loop construct, its span should contain the entire loop construct as well.
2021-09-11 07:11:01 +00:00
flip1995
091ed44b50
Merge commit ' 27afd6ade4' into clippyup
2021-09-08 16:31:47 +02:00
Michael Howell
48268f5237
fix(clippy): update loop lints to use arg.span
...
Adapts clippy for fe1a7f71fb
2021-09-06 23:30:04 -07:00
Caio
b97d4c062b
Introduce hir::ExprKind::Let - Take 2
2021-08-15 16:18:26 -03:00
flip1995
2b20f49841
Merge commit ' 0cce3f643b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
ebe52869a3
Merge commit ' 61eb38aeda' into clippyup
2021-07-01 18:17:38 +02:00
flip1995
02bf692169
Merge commit ' 98e2b9f25b' into clippyup
2021-04-22 11:31:13 +02:00
flip1995
f6d1f368db
Merge commit ' b40ea209e7' into clippyup
2021-04-08 17:50:13 +02:00
flip1995
9f6b5de7de
Merge commit ' 0e87918536' into clippyup
2021-03-25 19:29:11 +01:00
flip1995
f2f2a005b4
Merge commit ' 6ed6f1e6a1' into clippyup
2021-03-12 15:30:50 +01:00