Skip to content

Commit e4cb7d5

Browse files
authored
Rollup merge of #150789 - 2025-fix-vtable-for-comment, r=joboet
Fix copy-n-paste error in `vtable_for` docs This is a safe function, which doesn't take a `ptr` parameter.
2 parents b130011 + a3b72d3 commit e4cb7d5

File tree

1 file changed

+0
-4
lines changed
  • library/core/src/intrinsics

1 file changed

+0
-4
lines changed

library/core/src/intrinsics/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,10 +2739,6 @@ pub unsafe fn vtable_align(ptr: *const ()) -> usize;
27392739
/// Determining whether `T` can be coerced to the trait object type `U` requires trait resolution by the compiler.
27402740
/// In some cases, that resolution can exceed the recursion limit,
27412741
/// and compilation will fail instead of this function returning `None`.
2742-
///
2743-
/// # Safety
2744-
///
2745-
/// `ptr` must point to a vtable.
27462742
#[rustc_nounwind]
27472743
#[unstable(feature = "core_intrinsics", issue = "none")]
27482744
#[rustc_intrinsic]

0 commit comments

Comments
 (0)