Move constant write checks to temporary_assignment lint They make more sense here cc #3595
This crate contains Clippy lints. For the main crate, check crates.io or GitHub.