Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/lower.rs')
-rw-r--r--crates/hir-ty/src/mir/lower.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/hir-ty/src/mir/lower.rs b/crates/hir-ty/src/mir/lower.rs
index 169e0e204c..d320dcdad2 100644
--- a/crates/hir-ty/src/mir/lower.rs
+++ b/crates/hir-ty/src/mir/lower.rs
@@ -948,10 +948,11 @@ impl<'ctx> MirLowerCtx<'ctx> {
// for binary operator, and use without adjust to simplify our conditions.
let lhs_ty = self.expr_ty_without_adjust(*lhs);
let rhs_ty = self.expr_ty_without_adjust(*rhs);
- if matches!(op, BinaryOp::CmpOp(syntax::ast::CmpOp::Eq { .. })) {
- if lhs_ty.as_raw_ptr().is_some() && rhs_ty.as_raw_ptr().is_some() {
- break 'b true;
- }
+ if matches!(op, BinaryOp::CmpOp(syntax::ast::CmpOp::Eq { .. }))
+ && lhs_ty.as_raw_ptr().is_some()
+ && rhs_ty.as_raw_ptr().is_some()
+ {
+ break 'b true;
}
let builtin_inequal_impls = matches!(
op,