Files
rust/clippy_lints
Philipp Krones b43e62584e Better check for assign_op_pattern in const context (#15532)
`assign_op_pattern` can be used in a `const` context if the trait
definition as well as the implementation of the corresponding `Assign`
pattern is `const` as well.

The lint was temporarily deactivated in the compiler repository for all
`const` contexts to avoid false positives when operators were
potentially constified. This reenables it when appropriate now that the
repositories have been synced.

Closes rust-lang/rust-clippy#15285

changelog: [`assign_op_pattern`]: trigger in `const` contexts when
appropriate

r? @flip1995
2025-08-22 15:51:07 +00:00
..

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