Skip to content

Commit 657c945

Browse files
committed
fix stuff
1 parent 91e5a0e commit 657c945

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_mir/transform/simplify_try.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ impl<'tcx> MirPass<'tcx> for SimplifyArmIdentity {
5050
None => continue,
5151
Some(x) => x,
5252
};
53-
if (local_tmp_s0, vf_s0) != (local_tmp_s1, vf_s1)
53+
if local_tmp_s0 != local_tmp_s1
54+
|| vf_s0 != vf_s1
5455
|| Some((local_0, vf_s0.var_idx)) != match_set_discr(s2)
5556
{
5657
continue;
@@ -188,7 +189,7 @@ impl<'tcx> MirPass<'tcx> for SimplifyBranchSame {
188189

189190
/*
190191
191-
KEEPSAKE: TODO REMOVE IF NOT NECESSARY!
192+
KEEPSAKE: REMOVE IF NOT NECESSARY!
192193
193194
fn statement_semantic_eq(sa: &StatementKind<'_>, sb: &StatementKind<'_>) -> bool {
194195
use StatementKind::*;

0 commit comments

Comments
 (0)