From a4025eba8f9ed016876f727a091e12c711c85cdb Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Sat, 25 May 2024 02:11:45 -0700 Subject: [PATCH] Add custom mir support for `PtrMetadata` --- core/src/intrinsics/mir.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/intrinsics/mir.rs b/core/src/intrinsics/mir.rs index 02665b2676cc1..fa5bb28adff94 100644 --- a/core/src/intrinsics/mir.rs +++ b/core/src/intrinsics/mir.rs @@ -360,6 +360,10 @@ define!("mir_assume", fn Assume(operand: bool)); define!("mir_deinit", fn Deinit(place: T)); define!("mir_checked", fn Checked(binop: T) -> (T, bool)); define!("mir_len", fn Len(place: T) -> usize); +define!( + "mir_ptr_metadata", + fn PtrMetadata(place: *const P) ->

::Metadata +); define!("mir_copy_for_deref", fn CopyForDeref(place: T) -> T); define!("mir_retag", fn Retag(place: T)); define!("mir_move", fn Move(place: T) -> T);