diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-12-13 17:43:16 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-12-22 06:12:39 -0800 |
| commit | 5ba54c9e31696f3b0a5c59cae17cffdb0d340934 (patch) | |
| tree | 3d21d05dc1340d2e410f3d1f7dafd7a1f821afb6 /tests/mir-opt/building/custom | |
| parent | b22856d192567a55a1d2788fbc3084e3f9cb220f (diff) | |
| download | rust-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.mir | 14 | ||||
| -rw-r--r-- | tests/mir-opt/building/custom/arrays.rs | 22 |
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); -} |
