Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita4025eb

Browse files
committed
Add custom mir support forPtrMetadata
1 parent87b9f24 commita4025eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎core/src/intrinsics/mir.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ define!("mir_assume", fn Assume(operand: bool));
360360
define!("mir_deinit",fnDeinit<T>(place:T));
361361
define!("mir_checked",fnChecked<T>(binop:T) ->(T,bool));
362362
define!("mir_len",fnLen<T>(place:T) ->usize);
363+
define!(
364+
"mir_ptr_metadata",
365+
fnPtrMetadata<P: ?Sized>(place:*constP) -> <Pas::core::ptr::Pointee>::Metadata
366+
);
363367
define!("mir_copy_for_deref",fnCopyForDeref<T>(place:T) ->T);
364368
define!("mir_retag",fnRetag<T>(place:T));
365369
define!("mir_move",fnMove<T>(place:T) ->T);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp