Fix intra-doc link to raw pointer method

CC https://github.com/rust-lang/rust/pull/80181
This commit is contained in:
Simon Sapin 2021-01-18 20:56:29 +01:00
parent 642486c2b2
commit 21ceebf296
4 changed files with 4 additions and 1 deletions

View File

@ -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)]

View File

@ -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`.

View File

@ -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)]

View File

@ -1,3 +1,4 @@
#![deny(broken_intra_doc_links)]
#![feature(intra_doc_pointers)]
pub use std::*;