diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-08 13:22:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-08 13:22:27 +0100 |
| commit | 3d71bada5a18c972bea9dba9397adbeb33ee07d6 (patch) | |
| tree | bb9dd77a86cb604f8f5cf6d7d28a7931d5567ac1 /compiler | |
| parent | 3e634f8c5c461f2377ea74d69ef8b669f7f28c24 (diff) | |
| parent | 025ad403a976cbb80a3a472e333f4544baef9261 (diff) | |
| download | rust-3d71bada5a18c972bea9dba9397adbeb33ee07d6.tar.gz rust-3d71bada5a18c972bea9dba9397adbeb33ee07d6.zip | |
Rollup merge of #122173 - compiler-errors:ptr-equality-in-ctfe, r=lcnr
Don't ICE in CTFE if raw/fn-ptr types differ Fixes #121688 r? lcnr
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/check.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs index 0b41b4f9682..7ec78e7b9cf 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs @@ -581,7 +581,6 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> { if is_int_bool_or_char(lhs_ty) && is_int_bool_or_char(rhs_ty) { // Int, bool, and char operations are fine. } else if lhs_ty.is_fn_ptr() || lhs_ty.is_unsafe_ptr() { - assert_eq!(lhs_ty, rhs_ty); assert!(matches!( op, BinOp::Eq |
