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 /compiler/rustc_middle/src/mir/syntax.rs | |
| parent | b22856d192567a55a1d2788fbc3084e3f9cb220f (diff) | |
| download | rust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.tar.gz rust-5ba54c9e31696f3b0a5c59cae17cffdb0d340934.zip | |
Delete `Rvalue::Len`
Everything's moved to `PtrMetadata` instead.
Diffstat (limited to 'compiler/rustc_middle/src/mir/syntax.rs')
| -rw-r--r-- | compiler/rustc_middle/src/mir/syntax.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index 0c17a2e0fe5..bbbaffc5a35 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -1351,16 +1351,6 @@ pub enum Rvalue<'tcx> { /// model. RawPtr(Mutability, Place<'tcx>), - /// Yields the length of the place, as a `usize`. - /// - /// If the type of the place is an array, this is the array length. For slices (`[T]`, not - /// `&[T]`) this accesses the place's metadata to determine the length. This rvalue is - /// ill-formed for places of other types. - /// - /// This cannot be a `UnOp(PtrMetadata, _)` because that expects a value, and we only - /// have a place, and `UnOp(PtrMetadata, RawPtr(place))` is not a thing. - Len(Place<'tcx>), - /// Performs essentially all of the casts that can be performed via `as`. /// /// This allows for casts from/to a variety of types. |
