Skip to content

Commit

Permalink
Rollup merge of rust-lang#85246 - ayushmishra2005:minor-reactoring, r…
Browse files Browse the repository at this point in the history
…=petrochenkov

Miner code formatting
  • Loading branch information
GuillaumeGomez committed May 15, 2021
2 parents f805b2e + 267450a commit 7d3cbfa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_mir/src/dataflow/move_paths/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
self.loc,
InteriorOfSliceOrArray {
ty: place_ty,
is_index: match elem {
ProjectionElem::Index(..) => true,
_ => false,
},
is_index: matches!(elem, ProjectionElem::Index(..)),
},
));
}
Expand Down

0 comments on commit 7d3cbfa

Please sign in to comment.