Skip to content

[Place 2.0] Convert Place's projection to a boxed slice #63420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 13, 2019
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/instcombine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down