diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index 0e925893bd5..7c0e5ab8926 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -111,6 +111,7 @@ #![feature(extended_key_value_attributes)] #![feature(extern_types)] #![feature(fundamental)] +#![cfg_attr(not(bootstrap), feature(intra_doc_pointers))] #![feature(intrinsics)] #![feature(lang_items)] #![feature(link_llvm_intrinsics)] diff --git a/library/core/src/ptr/metadata.rs b/library/core/src/ptr/metadata.rs index f89e891cb86..f4fb37bbdb7 100644 --- a/library/core/src/ptr/metadata.rs +++ b/library/core/src/ptr/metadata.rs @@ -48,7 +48,7 @@ use crate::hash::{Hash, Hasher}; /// A (possibly-wide) pointer can be put back together from its address and metadata /// with [`from_raw_parts`] or [`from_raw_parts_mut`]. /// -/// [`to_raw_parts`]: <*const _>::to_raw_parts +/// [`to_raw_parts`]: *const::to_raw_parts #[lang = "pointee_trait"] pub trait Pointee { /// The type for metadata in pointers and references to `Self`. diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 961cff661e3..70ec79a1fe9 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -276,6 +276,7 @@ #![feature(int_error_matching)] #![feature(integer_atomics)] #![feature(into_future)] +#![cfg_attr(not(bootstrap), feature(intra_doc_pointers))] #![feature(lang_items)] #![feature(link_args)] #![feature(linkage)] diff --git a/src/test/rustdoc/intra-doc/libstd-re-export.rs b/src/test/rustdoc/intra-doc/libstd-re-export.rs index d0af3aec660..fc0ff904389 100644 --- a/src/test/rustdoc/intra-doc/libstd-re-export.rs +++ b/src/test/rustdoc/intra-doc/libstd-re-export.rs @@ -1,3 +1,4 @@ #![deny(broken_intra_doc_links)] +#![feature(intra_doc_pointers)] pub use std::*;