Skip to content

Commit 8b7d5f1

Browse files
committed
Remove Rvalue::Len.
1 parent e2f00cb commit 8b7d5f1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/base.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -834,12 +834,6 @@ fn codegen_stmt<'tcx>(fx: &mut FunctionCx<'_, '_, 'tcx>, cur_block: Block, stmt:
834834
fx.bcx.ins().nop();
835835
}
836836
}
837-
Rvalue::Len(place) => {
838-
let place = codegen_place(fx, place);
839-
let usize_layout = fx.layout_of(fx.tcx.types.usize);
840-
let len = codegen_array_len(fx, place);
841-
lval.write_cvalue(fx, CValue::by_val(len, usize_layout));
842-
}
843837
Rvalue::ShallowInitBox(ref operand, content_ty) => {
844838
let content_ty = fx.monomorphize(content_ty);
845839
let box_layout = fx.layout_of(Ty::new_box(fx.tcx, content_ty));

0 commit comments

Comments
 (0)