Skip to content

Commit 5e58dc1

Browse files
committed
Delete Rvalue::Len
Everything's moved to `PtrMetadata` instead.
1 parent 1f66d7d commit 5e58dc1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/base.rs

-6
Original file line numberDiff line numberDiff line change
@@ -828,12 +828,6 @@ fn codegen_stmt<'tcx>(
828828
fx.bcx.ins().nop();
829829
}
830830
}
831-
Rvalue::Len(place) => {
832-
let place = codegen_place(fx, place);
833-
let usize_layout = fx.layout_of(fx.tcx.types.usize);
834-
let len = codegen_array_len(fx, place);
835-
lval.write_cvalue(fx, CValue::by_val(len, usize_layout));
836-
}
837831
Rvalue::ShallowInitBox(ref operand, content_ty) => {
838832
let content_ty = fx.monomorphize(content_ty);
839833
let box_layout = fx.layout_of(Ty::new_box(fx.tcx, content_ty));

0 commit comments

Comments
 (0)