We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c0633 commit 717e8a5Copy full SHA for 717e8a5
src/librustc/mir/visit.rs
@@ -724,10 +724,6 @@ macro_rules! make_mir_visitor {
724
}
725
726
match & $($mutability)? proj.elem {
727
- ProjectionElem::Deref => {
728
- }
729
- ProjectionElem::Subslice { from: _, to: _ } => {
730
731
ProjectionElem::Field(_field, ty) => {
732
self.visit_ty(ty, TyContext::Location(location));
733
@@ -738,11 +734,12 @@ macro_rules! make_mir_visitor {
738
734
location
739
735
);
740
736
737
+ ProjectionElem::Deref |
+ ProjectionElem::Subslice { from: _, to: _ } |
741
ProjectionElem::ConstantIndex { offset: _,
742
min_length: _,
743
- from_end: _ } => {
744
745
- ProjectionElem::Downcast(_name, _variant_index) => {
+ from_end: _ } |
+ ProjectionElem::Downcast(_, _) => {
746
747
748
0 commit comments