Destructure instead of using split_at
This commit is contained in:
parent
9c0bbe09e9
commit
232a4a2881
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl<'tcx> MutVisitor<'tcx> for InstCombineVisitor<'tcx> {
|
|||
ref mut base,
|
||||
projection: ref mut projection @ box [.., _],
|
||||
}) => {
|
||||
let (proj_l, proj_r) = projection.split_at(projection.len() - 1);
|
||||
let [proj_l @ .., proj_r] = projection;
|
||||
|
||||
let place = Place {
|
||||
// Replace with dummy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue