Skip to content

Commit ae6117c

Browse files
borsgitbot
authored and
gitbot
committed
Auto merge of rust-lang#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 rust-lang#134326, so draft until that lands~~ Ready! r? mir
2 parents 5aee570 + d37e184 commit ae6117c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/intrinsics/mir.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
//!
234234
//! - Operands implicitly convert to `Use` rvalues.
235235
//! - `&`, `&mut`, `addr_of!`, and `addr_of_mut!` all work to create their associated rvalue.
236-
//! - [`Discriminant`], [`Len`], and [`CopyForDeref`] have associated functions.
236+
//! - [`Discriminant`] and [`CopyForDeref`] have associated functions.
237237
//! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc.
238238
//! - The binary operation `Offset` can be created via [`Offset`].
239239
//! - 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));
401401
define!("mir_assume", fn Assume(operand: bool));
402402
define!("mir_deinit", fn Deinit<T>(place: T));
403403
define!("mir_checked", fn Checked<T>(binop: T) -> (T, bool));
404-
define!("mir_len", fn Len<T>(place: T) -> usize);
405404
define!(
406405
"mir_ptr_metadata",
407406
fn PtrMetadata<P: ?Sized>(place: *const P) -> <P as ::core::ptr::Pointee>::Metadata

0 commit comments

Comments
 (0)