Philipp Krones
dc0bb69e66
Merge remote-tracking branch 'upstream/master' into rustup
2024-02-22 15:59:29 +01:00
taiga.watanabe
672bd5e387
DELETE: Known problems Section
...
The `Known problems` section was removed because it is old information.
2024-02-21 23:26:30 +09:00
taiga.watanabe
aa8a82ec26
FIX: issue-12279
...
----
UPDATE: add async block into test.
FIX: no_effect
Fixed asynchronous function parameter names with underscores so that warnings are not displayed when underscores are added to parameter names
ADD: test case
2024-02-21 23:26:29 +09:00
clubby789
b3b9f31a86
Bump indexmap
...
`swap` has been deprecated in favour of `swap_remove` - the behaviour
is the same though.
2024-02-13 21:03:34 +00:00
Philipp Krones
f3b3d23416
Merge commit ' 60cb29c5e4' into clippyup
2024-02-08 20:24:42 +01:00
Seo Sanghyeon
abced206d7
Avoid deleting labeled blocks
2024-02-03 22:35:14 +01:00
Philipp Krones
798865c593
Merge commit ' 66c29b973b' into clippy-subtree-update
2024-01-25 19:17:36 +01:00
Samuel Tardieu
6267b6ca09
no_effect_underscore_binding: _ prefixed variables can be used
...
Prefixing a variable with a `_` does not mean that it will not be used.
If such a variable is used later, do not warn about the fact that its
initialization does not have a side effect as this is fine.
2024-01-19 23:25:36 +01:00
Chris Wu
73d7ce6abf
Move the new check to the end of checks
2024-01-19 21:05:58 +08:00
Chris Wu
9661f9b177
Add new condition to avoid derived code trigger lint
2024-01-19 15:01:33 +08:00
Philipp Krones
aa220c7ee7
Merge commit ' 26ac6aab02'
2024-01-11 17:27:03 +01:00
cocodery
7c389acd27
Fix error warning span for issue12045
2024-01-11 14:52:03 +08:00
Yuxiang Qiu
88541d6637
fix some typos
2024-01-02 19:21:51 -05:00
Philipp Krones
3596d44988
Merge commit ' a859e5cc1c' into clippyup
2023-12-16 14:12:50 +01:00
cocodery
56d20c2b53
Fix nits and add test for unnecessary_operation
2023-12-08 21:33:28 +08:00
cocodery
ee2354badf
Add check for unary-operator
...
Fix typo and add test for unary-opeator
2023-12-06 12:17:48 +08:00
cocodery
2e3c031528
Rename has_nontrivial_oprand to is_operator_overrided
...
Simpfy code of `is_operator_overrided`, directly use `is_method_call` to
check
if operator is overrided, at least one oprand of binary-expr must be ADT-type
So no need to check type of lhs and rhs
2023-12-05 09:29:20 +08:00
cocodery
89774234be
Rewrite logic of has_nontrivial_oprand.
...
Check whether operator is overrided with a `struct` operand.
The struct here refers to `struct`, `enum`, `union`.
Add and fix test for `no_effect` lint.
2023-12-04 15:57:27 +08:00
cocodery
6d40b105ed
Add a function to check whether binary oprands are nontrivial
...
It's hard to check whether oprator is overrided through context of lint
So assume nontrivial has overrided binary operator
2023-12-03 00:58:47 +08:00
Philipp Krones
c9a43b18f1
Merge commit ' f0cdee4a3f' into clippy-subtree-sync
2023-12-01 18:21:58 +01:00
Alex Macleod
7093444bfa
Use absolute path for declare_tool_lint in declare_clippy_lint
2023-11-25 17:45:27 +00:00
Philipp Krones
6246f0446a
Merge commit ' edb720b199' into clippyup
2023-11-16 19:13:24 +01:00
Alex Macleod
13b4bb12ad
Clean up after if chain removal
2023-11-10 18:03:13 +00:00
Alex Macleod
9681b4afe0
Run if-to-let-chain clippy*/**/*.rs
...
https://github.com/Alexendoo/if-to-let-chain
2023-11-10 17:29:28 +00:00
Philipp Krones
77c1e3aaa1
Merge commit ' 09ac14c901' into clippyup
2023-11-02 17:35:56 +01:00
Philipp Krones
62a82b361c
Format let-chains across the code base
...
In the updated nightly version, it seems that rustfmt now supports formatting
let-chains. Since we're using them a lot, it's a lot of reformatting.
2023-11-02 17:24:30 +01:00
Alex Macleod
7347c1803f
Set existing doc-tests to no_run
2023-10-23 15:28:26 +00:00
Philipp Krones
772296c50e
Merge commit ' 7671c283a5' into clippyup
2023-09-25 11:28:58 +02:00
Alex Macleod
01c25a8eb6
Remove most usage of hir_ty_to_ty
2023-09-20 14:05:00 +00:00
Nilstrieb
ed0dfed24f
Improve spans for indexing expressions
...
Indexing is similar to method calls in having an arbitrary
left-hand-side and then something on the right, which is the main part
of the expression. Method calls already have a span for that right part,
but indexing does not. This means that long method chains that use
indexing have really bad spans, especially when the indexing panics and
that span in coverted into a panic location.
This does the same thing as method calls for the AST and HIR, storing an
extra span which is then put into the `fn_span` field in THIR.
2023-08-04 13:17:39 +02:00
Philipp Krones
d6d530fd0b
Merge commit ' d9c24d1b1e' into clippyup
2023-07-17 10:22:32 +02:00
Philipp Krones
cb3ecf7b79
Merge commit ' 37f4c1725d' into clippyup
2023-07-02 14:59:02 +02:00
clubby789
f2eddc5924
Remove box expressions from HIR
2023-03-14 17:18:26 +00:00
Philipp Krones
d05e2865a0
Merge commit ' d822110d3b' into clippyup
2022-12-01 18:29:38 +01:00
Ding Xiang Fei
af3ba22313
move else block into the Local struct
2022-07-11 23:20:37 +02:00
Ding Xiang Fei
9225ebd786
lower let-else in MIR instead
2022-07-11 23:20:36 +02:00
Camille GILLOT
7b84a97c3e
Make ExprKind::Closure a struct variant.
2022-06-12 00:16:27 +02:00
flip1995
fb0142ae41
Merge commit ' 97a5daa659' into clippyup
2022-01-13 13:18:19 +01:00
flip1995
ece0946d7f
Merge commit ' 23d11428de' into clippyup
2021-12-17 13:40:22 +01:00
flip1995
8fea1d94f3
Merge commit ' a5d597637d' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
7631fc5d82
Merge commit ' 91496c2ac6' into clippyup
2021-10-21 13:11:36 +02:00
flip1995
091ed44b50
Merge commit ' 27afd6ade4' into clippyup
2021-09-08 16:31:47 +02:00
flip1995
1ad5464200
Merge commit ' 7bfc26ec8e' into clippyup
2021-08-12 11:16:25 +02: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
6c27482115
Merge commit ' 3ae8faff4d' into clippyup
2021-06-03 08:41:37 +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
Cameron Steffen
2454408318
Remove qpath_res util function
2021-01-18 14:54:58 -06:00
Valentin Lazureanu
5a20489c5c
Rename TypeckTables to TypeckResults.
2020-07-17 08:47:04 +00:00