File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 233
233
//!
234
234
//! - Operands implicitly convert to `Use` rvalues.
235
235
//! - `&`, `&mut`, `addr_of!`, and `addr_of_mut!` all work to create their associated rvalue.
236
- //! - [`Discriminant`] and [`CopyForDeref`] have associated functions.
236
+ //! - [`Discriminant`], [`Len`], and [`CopyForDeref`] have associated functions.
237
237
//! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc.
238
238
//! - The binary operation `Offset` can be created via [`Offset`].
239
239
//! - Checked binary operations are represented by wrapping the associated binop in [`Checked`].
@@ -401,6 +401,7 @@ define!("mir_storage_dead", fn StorageDead<T>(local: T));
401
401
define ! ( "mir_assume" , fn Assume ( operand: bool ) ) ;
402
402
define ! ( "mir_deinit" , fn Deinit <T >( place: T ) ) ;
403
403
define ! ( "mir_checked" , fn Checked <T >( binop: T ) -> ( T , bool ) ) ;
404
+ define ! ( "mir_len" , fn Len <T >( place: T ) -> usize ) ;
404
405
define ! (
405
406
"mir_ptr_metadata" ,
406
407
fn PtrMetadata <P : ?Sized >( place: * const P ) -> <P as :: core:: ptr:: Pointee >:: Metadata
You can’t perform that action at this time.
0 commit comments