diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-11-09 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-11-09 00:00:00 +0000 |
| commit | f1739575ef2890e7a746092184117d9ad2ebd834 (patch) | |
| tree | 4b6bbb57c12a994bf7b74185f7f0b8c1e568e5b6 | |
| parent | 25f6938da459a57b43bdf16ed6bdad3225b2a3ce (diff) | |
| download | rust-f1739575ef2890e7a746092184117d9ad2ebd834.tar.gz rust-f1739575ef2890e7a746092184117d9ad2ebd834.zip | |
Fix links to stabilized versions of some intrinsics
| -rw-r--r-- | library/core/src/intrinsics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 0e3129607a6..433f0129306 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -788,7 +788,7 @@ extern "rust-intrinsic" { /// The size of the referenced value in bytes. /// - /// The stabilized version of this intrinsic is [`size_of_val`]. + /// The stabilized version of this intrinsic is [`mem::size_of_val`]. #[rustc_const_unstable(feature = "const_size_of_val", issue = "46571")] pub fn size_of_val<T: ?Sized>(_: *const T) -> usize; /// The required alignment of the referenced value. @@ -1704,7 +1704,7 @@ extern "rust-intrinsic" { /// Returns the number of variants of the type `T` cast to a `usize`; /// if `T` has no variants, returns 0. Uninhabited variants will be counted. /// - /// The to-be-stabilized version of this intrinsic is [`variant_count`]. + /// The to-be-stabilized version of this intrinsic is [`mem::variant_count`]. #[rustc_const_unstable(feature = "variant_count", issue = "73662")] pub fn variant_count<T>() -> usize; |
