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
..
src Better check for assign_op_pattern in const context (#15532) 2025-08-22 15:51:07 +00:00
Cargo.toml Merge commit '334fb906ae' into clippy-subtree-update 2025-08-07 17:05:15 +02:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

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