Skip to content

Commit 2c9c0de

Browse files
committed
remove copyforderef from custom_mir
it did not create DerefTemp locals when used, so it was never actually correct.
1 parent 501f8e0 commit 2c9c0de

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-
//! - [`CopyForDeref`], [`CastTransmute`], [`CastPtrToPtr`], [`CastUnsize`], and [`Discriminant`]
236+
//! - [`CastTransmute`], [`CastPtrToPtr`], [`CastUnsize`], and [`Discriminant`]
237237
//! have associated functions.
238238
//! - Unary and binary operations use their normal Rust syntax - `a * b`, `!c`, etc.
239239
//! - The binary operation `Offset` can be created via [`Offset`].
@@ -406,7 +406,6 @@ define!(
406406
"mir_ptr_metadata",
407407
fn PtrMetadata<P: ?Sized>(place: *const P) -> <P as ::core::ptr::Pointee>::Metadata
408408
);
409-
define!("mir_copy_for_deref", fn CopyForDeref<T>(place: T) -> T);
410409
define!("mir_retag", fn Retag<T>(place: T));
411410
define!("mir_move", fn Move<T>(place: T) -> T);
412411
define!("mir_static", fn Static<T>(s: T) -> &'static T);

0 commit comments

Comments
 (0)