Files
rust/compiler
Yuki Okushi 47a418420e 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).
2021-07-13 08:54:34 +09:00
..
2021-04-04 14:10:26 -07:00
2021-05-31 13:55:43 +02:00
2021-07-04 11:09:32 -04:00
2021-07-06 19:22:27 +02:00
2021-05-31 13:55:43 +02:00