Skip to content

Commit a3b72d3

Browse files
committed
Fix copy-n-paste error in vtable_for docs
This is a safe function, which doesn't take a `ptr` parameter.
1 parent fecb335 commit a3b72d3

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
@@ -2738,10 +2738,6 @@ pub unsafe fn vtable_align(ptr: *const ()) -> usize;
27382738
/// Determining whether `T` can be coerced to the trait object type `U` requires trait resolution by the compiler.
27392739
/// In some cases, that resolution can exceed the recursion limit,
27402740
/// and compilation will fail instead of this function returning `None`.
2741-
///
2742-
/// # Safety
2743-
///
2744-
/// `ptr` must point to a vtable.
27452741
#[rustc_nounwind]
27462742
#[unstable(feature = "core_intrinsics", issue = "none")]
27472743
#[rustc_intrinsic]

0 commit comments

Comments
 (0)