diff options
| author | bors <bors@rust-lang.org> | 2024-12-22 18:49:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-22 18:49:18 +0000 |
| commit | e108481f74ff123ad98a63bd107a18d13035b275 (patch) | |
| tree | 4a709c9c315c137619abbcdde03940c439780f23 /library | |
| parent | 303e8bd768526a5812bb1776e798e829ddb7d3ca (diff) | |
| parent | 29889fd1efa01c1db8e245641fef4cedf56a7f84 (diff) | |
| download | rust-e108481f74ff123ad98a63bd107a18d13035b275.tar.gz rust-e108481f74ff123ad98a63bd107a18d13035b275.zip | |
Auto merge of #134330 - scottmcm:no-more-rvalue-len, r=matthewjasper
Delete `Rvalue::Len` 🎉 Everything's moved to `PtrMetadata`, so we can get rid of the `Len` variant now. ~~Depends on #134326, so draft until that lands~~ Ready! r? mir
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/intrinsics/mir.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/intrinsics/mir.rs b/library/core/src/intrinsics/mir.rs index 55dcf7cd47e..834f44c7790 100644 --- a/library/core/src/intrinsics/mir.rs +++ b/library/core/src/intrinsics/mir.rs @@ -233,7 +233,7 @@ //! //! - Operands implicitly convert to `Use` rvalues. //! - `&`, `&mut`, `addr_of!`, and `addr_of_mut!` all work to create their associated rvalue. -//! - [`Discriminant`], [`Len`], and [`CopyForDeref`] have associated functions. +//! - [`Discriminant`] and [`CopyForDeref`] have associated functions. //! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc. //! - The binary operation `Offset` can be created via [`Offset`]. //! - Checked binary operations are represented by wrapping the associated binop in [`Checked`]. @@ -401,7 +401,6 @@ define!("mir_storage_dead", fn StorageDead<T>(local: T)); define!("mir_assume", fn Assume(operand: bool)); define!("mir_deinit", fn Deinit<T>(place: T)); define!("mir_checked", fn Checked<T>(binop: T) -> (T, bool)); -define!("mir_len", fn Len<T>(place: T) -> usize); define!( "mir_ptr_metadata", fn PtrMetadata<P: ?Sized>(place: *const P) -> <P as ::core::ptr::Pointee>::Metadata |
