about summary refs log tree commit diff
path: root/tests/mir-opt/building/custom
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 /tests/mir-opt/building/custom
parentb22856d192567a55a1d2788fbc3084e3f9cb220f (diff)
downloadrust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.tar.gz
rust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.zip
Delete `Rvalue::Len`
Everything's moved to `PtrMetadata` instead.
Diffstat (limited to 'tests/mir-opt/building/custom')
-rw-r--r--tests/mir-opt/building/custom/arrays.arrays.built.after.mir14
-rw-r--r--tests/mir-opt/building/custom/arrays.rs22
2 files changed, 0 insertions, 36 deletions
diff --git a/tests/mir-opt/building/custom/arrays.arrays.built.after.mir b/tests/mir-opt/building/custom/arrays.arrays.built.after.mir
deleted file mode 100644
index 30d11e31e4d..00000000000
--- a/tests/mir-opt/building/custom/arrays.arrays.built.after.mir
+++ /dev/null
@@ -1,14 +0,0 @@
-// MIR for `arrays` after built
-
-fn arrays() -> usize {
-    let mut _0: usize;
-    let mut _1: [i32; C];
-    let mut _2: usize;
-
-    bb0: {
-        _1 = [const 5_i32; C];
-        _2 = Len(_1);
-        _0 = copy _2;
-        return;
-    }
-}
diff --git a/tests/mir-opt/building/custom/arrays.rs b/tests/mir-opt/building/custom/arrays.rs
deleted file mode 100644
index 4bd6f93e113..00000000000
--- a/tests/mir-opt/building/custom/arrays.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// skip-filecheck
-#![feature(custom_mir, core_intrinsics)]
-
-extern crate core;
-use core::intrinsics::mir::*;
-
-// EMIT_MIR arrays.arrays.built.after.mir
-#[custom_mir(dialect = "built")]
-fn arrays<const C: usize>() -> usize {
-    mir! {
-        {
-            let x = [5_i32; C];
-            let c = Len(x);
-            RET = c;
-            Return()
-        }
-    }
-}
-
-fn main() {
-    assert_eq!(arrays::<20>(), 20);
-}