We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Rvalue::Len
1 parent 1f66d7d commit 5e58dc1Copy full SHA for 5e58dc1
src/base.rs
@@ -828,12 +828,6 @@ fn codegen_stmt<'tcx>(
828
fx.bcx.ins().nop();
829
}
830
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
- }
837
Rvalue::ShallowInitBox(ref operand, content_ty) => {
838
let content_ty = fx.monomorphize(content_ty);
839
let box_layout = fx.layout_of(Ty::new_box(fx.tcx, content_ty));
0 commit comments