Skip to content

Commit 84f6c61

Browse files
ivarflakstadizagawd
authored andcommitted
update vtable_for U bounds
1 parent 784272b commit 84f6c61

File tree

1 file changed

+2
-1
lines changed
  • library/core/src/intrinsics

1 file changed

+2
-1
lines changed

library/core/src/intrinsics/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2763,7 +2763,8 @@ pub unsafe fn vtable_align(ptr: *const ()) -> usize;
27632763
#[rustc_nounwind]
27642764
#[unstable(feature = "core_intrinsics", issue = "none")]
27652765
#[rustc_intrinsic]
2766-
pub const fn vtable_for<T: 'static, U: ?Sized + 'static>() -> Option<ptr::DynMetadata<U>>;
2766+
pub const fn vtable_for<T, U: ptr::Pointee<Metadata = ptr::DynMetadata<U>> + ?Sized>()
2767+
-> Option<ptr::DynMetadata<U>>;
27672768

27682769
/// The size of a type in bytes.
27692770
///

0 commit comments

Comments
 (0)