about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/base.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2024-12-13 17:43:16 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2024-12-22 06:12:39 -0800
commit5ba54c9e31696f3b0a5c59cae17cffdb0d340934 (patch)
tree3d21d05dc1340d2e410f3d1f7dafd7a1f821afb6 /compiler/rustc_codegen_cranelift/src/base.rs
parentb22856d192567a55a1d2788fbc3084e3f9cb220f (diff)
downloadrust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.tar.gz
rust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.zip
Delete `Rvalue::Len`
Everything's moved to `PtrMetadata` instead.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/base.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/base.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs
index 34066eb83fc..956a024fa4d 100644
--- a/compiler/rustc_codegen_cranelift/src/base.rs
+++ b/compiler/rustc_codegen_cranelift/src/base.rs
@@ -828,12 +828,6 @@ fn codegen_stmt<'tcx>(
                         fx.bcx.ins().nop();
                     }
                 }
-                Rvalue::Len(place) => {
-                    let place = codegen_place(fx, place);
-                    let usize_layout = fx.layout_of(fx.tcx.types.usize);
-                    let len = codegen_array_len(fx, place);
-                    lval.write_cvalue(fx, CValue::by_val(len, usize_layout));
-                }
                 Rvalue::ShallowInitBox(ref operand, content_ty) => {
                     let content_ty = fx.monomorphize(content_ty);
                     let box_layout = fx.layout_of(Ty::new_box(fx.tcx, content_ty));