Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Nov 11, 2019
1 parent 91e5a0e commit 657c945
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_mir/transform/simplify_try.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ impl<'tcx> MirPass<'tcx> for SimplifyArmIdentity {
None => continue,
Some(x) => x,
};
if (local_tmp_s0, vf_s0) != (local_tmp_s1, vf_s1)
if local_tmp_s0 != local_tmp_s1
|| vf_s0 != vf_s1
|| Some((local_0, vf_s0.var_idx)) != match_set_discr(s2)
{
continue;
Expand Down Expand Up @@ -188,7 +189,7 @@ impl<'tcx> MirPass<'tcx> for SimplifyBranchSame {

/*
KEEPSAKE: TODO REMOVE IF NOT NECESSARY!
KEEPSAKE: REMOVE IF NOT NECESSARY!
fn statement_semantic_eq(sa: &StatementKind<'_>, sb: &StatementKind<'_>) -> bool {
use StatementKind::*;
Expand Down

0 comments on commit 657c945

Please sign in to comment.