Skip to content

Commit 2ced9d9

Browse files
committed
Merge match branches
1 parent d7c09f7 commit 2ced9d9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc_mir/transform/check_consts/validation.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -560,15 +560,12 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
560560
trace!("visit_statement: statement={:?} location={:?}", statement, location);
561561

562562
match statement.kind {
563-
StatementKind::Assign(..) => {
563+
StatementKind::Assign(..) | StatementKind::SetDiscriminant { .. } => {
564564
self.super_statement(statement, location);
565565
}
566566
StatementKind::FakeRead(FakeReadCause::ForMatchedPlace, _) => {
567567
self.check_op(ops::IfOrMatch);
568568
}
569-
StatementKind::SetDiscriminant { .. } => {
570-
self.super_statement(statement, location)
571-
}
572569
// FIXME(eddyb) should these really do nothing?
573570
StatementKind::FakeRead(..) |
574571
StatementKind::StorageLive(_) |

0 commit comments

Comments
 (0)