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:
authorYuki Okushi <jtitor@2k36.org>2021-07-13 08:54:34 +0900
committerGitHub <noreply@github.com>2021-07-13 08:54:34 +0900
commit47a418420ef73aa7765221ee493ee429fd96097b (patch)
tree77ca6a63446bf9542df8287617d9e153f779435d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentfab45bf4859d8c74fff421eafed0159fa3f47fde (diff)
parent79f0743b6f3e94551e5c7cef209abc042d5cea3b (diff)
downloadrust-47a418420ef73aa7765221ee493ee429fd96097b.tar.gz
rust-47a418420ef73aa7765221ee493ee429fd96097b.zip
Rollup merge of #87065 - FabianWolff:issue-87046, r=oli-obk
Fix ICE with unsized type in const pattern

Fixes #87046. The `deref_const()` query currently contains the following check:
https://github.com/rust-lang/rust/blob/e9a387d6cf5961a7f2dcb671da3147bd413355c4/compiler/rustc_mir/src/const_eval/mod.rs#L191-L204

i.e. this will cause an ICE for every unsized type except slices. An error is reported with my changes if such a type is used as a const pattern (this should not be a breaking change, since so far, this has caused an ICE).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions