Skip to content

Commit fab85dd

Browse files
committed
Inline and remove fallback closure.
1 parent b67635f commit fab85dd

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_mir_build/src/thir/pattern

1 file changed

+1
-3
lines changed

compiler/rustc_mir_build/src/thir/pattern/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,6 @@ pub(crate) fn compare_const_vals<'tcx>(
759759

760760
let from_bool = |v: bool| v.then_some(Ordering::Equal);
761761

762-
let fallback = || from_bool(a == b);
763-
764762
if a == b {
765763
return from_bool(true);
766764
}
@@ -792,5 +790,5 @@ pub(crate) fn compare_const_vals<'tcx>(
792790
};
793791
}
794792

795-
fallback()
793+
from_bool(a == b)
796794
}

0 commit comments

Comments
 (0)