about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-07 15:51:13 +0000
committerbors <bors@rust-lang.org>2020-11-07 15:51:13 +0000
commit694cec12bed1fb01f10622511fd72a9a8e0606f0 (patch)
tree9d3e65506f556ce557c491965805dc58b50206e8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent4bbef42c4890f9b2d6a742872e525b7b548fd019 (diff)
parentf58a1695a67e2db741b7237992e696ff9a14d0ab (diff)
downloadrust-694cec12bed1fb01f10622511fd72a9a8e0606f0.tar.gz
rust-694cec12bed1fb01f10622511fd72a9a8e0606f0.zip
Auto merge of #6110 - rail-rain:care_enums_non_copy_const, r=llogiq
"Respect" enums in `interior_mutable_const`

fixes #3962
fixes #3825

Hello,

It might not be a good idea to submit another relatively large PR while I have an opened PR; but, I've finished this anyway. This may be able to wait for months.

Note: the code uses the MIR interpreter, which the author of #3962 thought unlikely to be a solution. This might be over-engineering; but, I think it's important to be able to work with the 'http' crate (#3825). (And, I don't want to write a MIR visitor)

---

changelog: fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted
even if it uses a clearly unfrozen variant
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions