Philipp Krones
bbcde66685
Merge remote-tracking branch 'upstream/master' into rustup
2022-09-28 14:27:32 +02:00
kraktus
b333645971
Add test with unsafe block to check #9503 is fixed too
...
s
2022-09-22 16:52:25 +02:00
kraktus
5c0cb0deaa
[needless_return] Recursively remove unneeded semicolons
2022-09-19 12:33:42 +02:00
est31
2be8b73328
Fix clippy
2022-09-15 21:21:18 +02:00
Jason Newcomb
fb41bfa774
Merge commit ' f51aade56f' into clippyup
2022-08-31 09:24:45 -04:00
Lukas Lueg
fe93b8d001
Don't lint needless_return if return has attrs
...
Fixes #9361
2022-08-26 19:06:07 +02:00
Philipp Krones
09f5df5087
Merge commit ' 0cb0f76368' into clippyup
2022-06-30 10:50:09 +02:00
xFrednet
bdc6ece1b6
Fix #[expect] for clippy::needless_return
2022-06-25 14:16:31 +02:00
Alex Macleod
eeedf72c33
Use RefCell in needless_return tests
2022-06-18 16:36:47 +00:00
Philipp Krones
f067783461
Merge commit ' d9ddce8a22' into clippyup
2022-06-04 13:34:07 +02:00
dswij
b885035ef7
needless_return checks for macro expr in return stmts
2022-06-02 20:22:15 +08:00
flip1995
97ab44ca97
Merge commit ' 0eff589afc' into clippyup
2021-12-30 15:10:43 +01:00
bors
fc72e910fb
needless_return suggest return unit type on void returns
...
closes #8177
previously, `needless_return` suggests an empty block `{}` to replace void `return` on match arms, this PR improve the suggestion by suggesting a unit instead.
changelog: `needless_return` suggests `()` instead of `{}` on match arms
2021-12-28 11:15:53 +00:00
flip1995
8fea1d94f3
Merge commit ' a5d597637d' into clippyup
2021-12-06 12:33:31 +01:00
Jason Newcomb
2938ffd0d9
Improve heuristics for determining whether eager of lazy evaluation is preferred
2021-11-15 20:54:13 -05:00
flip1995
e674d0a599
Merge commit ' e181011378' into clippyup
2021-11-04 12:52:36 +00:00
Andre Bogus
a4ede72b3d
update most tests to 2021 edition
2021-10-30 14:50:53 +02:00
flip1995
5cf4984872
Merge commit ' b7f3f7f608' into clippyup
2021-10-07 11:21:30 +02:00
hkalbasi
388a3d0983
Implement equatable if let lint
2021-10-04 22:16:42 +03:30
flip1995
23d5457e6d
Merge commit ' cb7915b00c' into clippyup
2021-09-28 18:03:12 +01:00
Cameron Steffen
b36591217d
Fix needless_return with let-else
2021-09-18 09:42:51 -05:00
flip1995
02bf692169
Merge commit ' 98e2b9f25b' into clippyup
2021-04-22 11:31:13 +02:00
Takayuki
e6c67ad2bf
fix limit_stderr_length error
2021-04-12 21:58:34 +09:00
Takayuki
0218a3b12f
add tests for a false negative on needless_return
2021-04-12 21:37:19 +09:00
flip1995
f6d1f368db
Merge commit ' b40ea209e7' into clippyup
2021-04-08 17:50:13 +02:00
xFrednet
a6f54f5dfd
Renaming the lint to branches_sharing_code and fixing typos
2021-04-05 13:35:51 +02:00
xFrednet
617c65baa9
Moving shared_code_in_if_blocks to clippy::complexity and running lintcheck
2021-04-05 13:35:51 +02:00
flip1995
ac912be984
Merge commit ' 95c0459217' into clippyup
2021-01-30 18:06:34 +01:00
ThibsG
e33ab3fdd8
Add test for needless_return lint
2021-01-18 22:33:25 +01:00
ThibsG
83f1abff48
Fix FP with empty return for needless_return lint
2021-01-15 18:57:56 +01:00
flip1995
488153ff2f
Merge commit ' 953f024793' into clippyup
2021-01-15 10:56:44 +01:00
flip1995
f18cf82ca8
Don't trigger needless_return lint in macros
2021-01-15 10:41:29 +01:00
flip1995
282c59820b
Merge commit ' 3d0b0e66af' into clippyup
2020-08-28 18:43:25 +02:00
David Tolnay
ef28361293
Downgrade match_bool to pedantic
2020-04-23 16:30:06 -07:00
Manish Goregaokar
a9a3350455
needless_return: add allow()s to test, make rustfixable
2019-09-25 14:45:18 -07:00