mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
b43e62584e
`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