about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-08 21:34:55 +0000
committerbors <bors@rust-lang.org>2020-09-08 21:34:55 +0000
commit8b54f1e2d93c1dc43853578387fe1e1b7d58a3e6 (patch)
tree3edc476a26a5c3c4240893d4643dd82f329a2dbd /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent8d6cf3a824852e59b98e2038bc574fce01108cf4 (diff)
parent1d8ae3aa12567b8461436ac10ba9fc4da55adb29 (diff)
downloadrust-8b54f1e2d93c1dc43853578387fe1e1b7d58a3e6.tar.gz
rust-8b54f1e2d93c1dc43853578387fe1e1b7d58a3e6.zip
Auto merge of #6016 - giraffate:restrict_same_item_push, r=ebroto
Restrict `same_item_push` to suppress false positives

It only emits a lint when the pushed item is a literal, a constant and an immutable binding that are initialized with those, as discussed in https://github.com/rust-lang/rust-clippy/pull/5997#pullrequestreview-483005186.

Fix https://github.com/rust-lang/rust-clippy/issues/5985

changelog: Restrict `same_item_push` to literals, constants and immutable bindings that are initialized with those.

r? `@ebroto`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions