We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e5a0e commit 657c945Copy full SHA for 657c945
src/librustc_mir/transform/simplify_try.rs
@@ -50,7 +50,8 @@ impl<'tcx> MirPass<'tcx> for SimplifyArmIdentity {
50
None => continue,
51
Some(x) => x,
52
};
53
- if (local_tmp_s0, vf_s0) != (local_tmp_s1, vf_s1)
+ if local_tmp_s0 != local_tmp_s1
54
+ || vf_s0 != vf_s1
55
|| Some((local_0, vf_s0.var_idx)) != match_set_discr(s2)
56
{
57
continue;
@@ -188,7 +189,7 @@ impl<'tcx> MirPass<'tcx> for SimplifyBranchSame {
188
189
190
/*
191
-KEEPSAKE: TODO REMOVE IF NOT NECESSARY!
192
+KEEPSAKE: REMOVE IF NOT NECESSARY!
193
194
fn statement_semantic_eq(sa: &StatementKind<'_>, sb: &StatementKind<'_>) -> bool {
195
use StatementKind::*;
0 commit comments