We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0bbe0 commit 232a4a2Copy full SHA for 232a4a2
src/librustc_mir/transform/instcombine.rs
@@ -45,7 +45,7 @@ impl<'tcx> MutVisitor<'tcx> for InstCombineVisitor<'tcx> {
45
ref mut base,
46
projection: ref mut projection @ box [.., _],
47
}) => {
48
- let (proj_l, proj_r) = projection.split_at(projection.len() - 1);
+ let [proj_l @ .., proj_r] = projection;
49
50
let place = Place {
51
// Replace with dummy
0 commit comments