Navigation Menu

Skip to content

Commit

Permalink
Join arms patterns, body is empty in all arms
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Aug 25, 2019
1 parent 59c0633 commit 717e8a5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/librustc/mir/visit.rs
Expand Up @@ -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));
}
Expand All @@ -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(_, _) => {
}
}
}
Expand Down

0 comments on commit 717e8a5

Please sign in to comment.