We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fallback
1 parent b67635f commit fab85ddCopy full SHA for fab85dd
compiler/rustc_mir_build/src/thir/pattern/mod.rs
@@ -759,8 +759,6 @@ pub(crate) fn compare_const_vals<'tcx>(
759
760
let from_bool = |v: bool| v.then_some(Ordering::Equal);
761
762
- let fallback = || from_bool(a == b);
763
-
764
if a == b {
765
return from_bool(true);
766
}
@@ -792,5 +790,5 @@ pub(crate) fn compare_const_vals<'tcx>(
792
790
};
793
791
794
795
- fallback()
+ from_bool(a == b)
796
0 commit comments