rust/clippy_lints
bors 1c8cbe79ab Auto merge of #11907 - cocodery:issue11885, r=y21,xFrednet
Add a function to check whether binary oprands are nontrivial

fixes [#issue11885](https://github.com/rust-lang/rust-clippy/issues/11885)

It's hard to check whether operator is overrided through context of lint.
So, assume non-trivial structure like tuple, array or sturt, using a overrided binary operator in this lint, which might cause a side effict.
This is not detected before.
Althrough this might weaken the ability of this lint, it may more useful than before. Maybe this lint will cause an error, but now, it not. And assuming side effect of non-trivial structure with operator  is not a bad thing, right?

changelog: Fix: [`no_effect`] check if binary operands are nontrivial
2023-12-08 13:39:47 +00:00
..
src Auto merge of #11907 - cocodery:issue11885, r=y21,xFrednet 2023-12-08 13:39:47 +00:00
Cargo.toml Update regex-syntax to support new word boundry assertions 2023-12-02 19:44:36 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.