]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #89147 - b-naber:refs_in_check_const_value_eq, r=oli-obk
authorthe8472 <the8472@users.noreply.github.com>
Tue, 21 Sep 2021 20:54:08 +0000 (22:54 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 20:54:08 +0000 (22:54 +0200)
commita3e6c19acf12d5995407220721f4fe28452e51da
tree273157418d6ab67dbd8f0835a1d6b2ba4f6ce25d
parentaca790b3d62784ae6399ac2337a1147ea9aab9b8
parent999888c086446c4c43bd5e99d8a0d2a1a7ee0404
Rollup merge of #89147 - b-naber:refs_in_check_const_value_eq, r=oli-obk

add case for checking const refs in check_const_value_eq

Previously in `check_const_value_eq` we destructured `ConstValue::ByRef` instances, this didn't account for `ty::Ref`s however, which led to an ICE.

Fixes https://github.com/rust-lang/rust/issues/88876
Fixes https://github.com/rust-lang/rust/issues/88384

r? `@oli-obk`