File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 228
228
//!
229
229
//! - Operands implicitly convert to `Use` rvalues.
230
230
//! - `&`, `&mut`, `addr_of!`, and `addr_of_mut!` all work to create their associated rvalue.
231
- //! - [`Discriminant`] and [`Len `] have associated functions.
231
+ //! - [`Discriminant`], [`Len`], and [`CopyForDeref `] have associated functions.
232
232
//! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc.
233
233
//! - The binary operation `Offset` can be created via [`Offset`].
234
234
//! - Checked binary operations are represented by wrapping the associated binop in [`Checked`].
@@ -279,6 +279,7 @@ define!("mir_storage_dead", fn StorageDead<T>(local: T));
279
279
define ! ( "mir_deinit" , fn Deinit <T >( place: T ) ) ;
280
280
define ! ( "mir_checked" , fn Checked <T >( binop: T ) -> ( T , bool ) ) ;
281
281
define ! ( "mir_len" , fn Len <T >( place: T ) -> usize ) ;
282
+ define ! ( "mir_copy_for_deref" , fn CopyForDeref <T >( place: T ) -> T ) ;
282
283
define ! ( "mir_retag" , fn Retag <T >( place: T ) ) ;
283
284
define ! ( "mir_move" , fn Move <T >( place: T ) -> T ) ;
284
285
define ! ( "mir_static" , fn Static <T >( s: T ) -> & ' static T ) ;
You can’t perform that action at this time.
0 commit comments