Lzu Tao
a0234b4e8b
Ignore non ExprKind::{Path,Lit) inside const context
...
- remove now dead code in ASSERTIONS_ON_CONSTANTS
cc #11966
- Partially revert "ignore `assertions-on-constants` in const contexts"
This reverts commit c7074de420a2192fb40d3f2194a20dd0d1b65cc6.
2024-06-08 18:44:40 +07:00
Lzu Tao
2c61b45576
do not lint on indexing inside const contexts
2024-06-08 16:50:25 +07:00
Lzu Tao
aff0e6d6d3
add uitest for indexing in unnecessary const items
2024-06-08 16:50:25 +07:00
Seo Sanghyeon
abced206d7
Avoid deleting labeled blocks
2024-02-03 22:35:14 +01:00
cocodery
56d20c2b53
Fix nits and add test for unnecessary_operation
2023-12-08 21:33:28 +08:00
Oli Scherer
3d88fae050
Update ui test crate
2023-08-11 14:02:28 +00:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@
for commands
2023-04-20 14:44:03 +00:00
Philipp Krones
62cba5d971
Merge remote-tracking branch 'upstream/master' into rustup
2023-03-24 13:36:09 +01:00
Samuel "Sam" Tardieu
d7d3dbf060
New lint: detect unnecessary struct building
2023-03-23 20:56:45 +01:00
clubby789
213a22efb9
Remove uses of box_syntax
in rustc and tools
2023-03-12 13:19:46 +00:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Jason Newcomb
0893322e54
Don't lint unnecessary_operation
in mixed macro contexts
2022-11-28 23:56:02 -05:00
flip1995
091ed44b50
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
2021-09-08 16:31:47 +02:00
F3real
ede977cf31
Update suggestion in case of index for unnecessary_operation lint
2021-08-10 12:08:09 +02:00
Manish Goregaokar
b94f2e89fd
unnecessary_operation: make test rustfixable
2019-09-25 14:45:18 -07:00