Join arms patterns, body is empty in all arms

This commit is contained in:
Santiago Pastorino 2019-08-24 14:19:32 -07:00
parent 59c063302f
commit 717e8a5219
No known key found for this signature in database
GPG Key ID: 88C941CDA1D46432

View File

@ -724,10 +724,6 @@ macro_rules! make_mir_visitor {
}
match & $($mutability)? proj.elem {
ProjectionElem::Deref => {
}
ProjectionElem::Subslice { from: _, to: _ } => {
}
ProjectionElem::Field(_field, ty) => {
self.visit_ty(ty, TyContext::Location(location));
}
@ -738,11 +734,12 @@ macro_rules! make_mir_visitor {
location
);
}
ProjectionElem::Deref |
ProjectionElem::Subslice { from: _, to: _ } |
ProjectionElem::ConstantIndex { offset: _,
min_length: _,
from_end: _ } => {
}
ProjectionElem::Downcast(_name, _variant_index) => {
from_end: _ } |
ProjectionElem::Downcast(_, _) => {
}
}
}