Max Niederman
008ba2b8bb
new lint: redundant_local
...
fix dogfood lints in `redundant_local`
keep `redundant_local` from running in proc macros
rewrite `redundant_local` as late pass
make redundant_local's `find_binding` more readable
pluralize `redundant_locals` name
add test for `redundant_locals` in macros
test `redundant_locals` in proc macros
use more destructuring in `redundant_locals`
fix: format redundant_locals.rs
ignore needless_pass_by_mut_ref in redundant_locals test
2023-07-21 18:14:03 -07:00
y21
05f78e530a
allow the lint in a bunch of tests
2023-06-06 22:56:57 +02:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@
for commands
2023-04-20 14:44:03 +00:00
blyxyas
9546517a84
Add external macro test + Now it works
2023-03-16 20:22:39 +01:00
blyxyas
e2ba75d69d
Add macro test
2023-03-15 16:27:46 +01:00
blyxyas
6631480a7b
Fix false positive with a = a
2023-03-13 19:13:56 +01:00
Jason Newcomb
efbcb99b73
Use snippet_with_context
more
2023-03-03 00:55:53 -05:00
chansuke
ebca1b5d00
Refactor almost_swapped
to lint with let
statement correctly
2023-02-13 16:16:31 +09:00
koka
928a158716
Allow manual swap in const fn
2022-11-18 21:51:43 +09:00
Andy Caldwell
66b46749e6
Change lint name to plural
2022-07-29 19:35:39 +01:00
Andy Caldwell
2f48257cfb
Rename "blacklisted name" to "disallowed name" throughout
2022-07-29 19:35:18 +01:00
Jason Newcomb
a7097b80c3
Consider auto-deref when linting manual_swap
2022-01-04 13:22:30 -05:00
hamidreza kalbasi
6d36d1a835
merge XOR_SWAP with MANUAL_SWAP
2021-08-09 02:15:10 +04:30
Hrishi Dharam
dbb10b87f8
add xor-swap lint
2021-07-29 15:25:08 +04:30
flip1995
a640696cdf
Rustup to rust-lang/rust#69506
2020-03-04 00:56:43 +01:00
flip1995
1e3b24de43
Make manual_swap autofixable
2019-12-03 13:42:05 +01:00