Skip to content

Commit 717e8a5

Browse files
committed
Join arms patterns, body is empty in all arms
1 parent 59c0633 commit 717e8a5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/librustc/mir/visit.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,6 @@ macro_rules! make_mir_visitor {
724724
}
725725

726726
match & $($mutability)? proj.elem {
727-
ProjectionElem::Deref => {
728-
}
729-
ProjectionElem::Subslice { from: _, to: _ } => {
730-
}
731727
ProjectionElem::Field(_field, ty) => {
732728
self.visit_ty(ty, TyContext::Location(location));
733729
}
@@ -738,11 +734,12 @@ macro_rules! make_mir_visitor {
738734
location
739735
);
740736
}
737+
ProjectionElem::Deref |
738+
ProjectionElem::Subslice { from: _, to: _ } |
741739
ProjectionElem::ConstantIndex { offset: _,
742740
min_length: _,
743-
from_end: _ } => {
744-
}
745-
ProjectionElem::Downcast(_name, _variant_index) => {
741+
from_end: _ } |
742+
ProjectionElem::Downcast(_, _) => {
746743
}
747744
}
748745
}

0 commit comments

Comments
 (0)