未验证 提交 b1c782f2 编写于 作者: J Jack Huey 提交者: GitHub

Rollup merge of #88594 - steffahn:more_symbolic_doc_aliases, r=joshtriplett

More symbolic doc aliases

A bunch of small changes, mostly adding `#[doc(alias = "…")]` entries for symbolic `"…"`.

Also a small change in documentation of `const` keywords.
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
/// ``` /// ```
#[lang = "not"] #[lang = "not"]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[doc(alias = "!")]
pub trait Not { pub trait Not {
/// The resulting type after applying the `!` operator. /// The resulting type after applying the `!` operator.
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
......
...@@ -119,7 +119,7 @@ mod break_keyword {} ...@@ -119,7 +119,7 @@ mod break_keyword {}
#[doc(keyword = "const")] #[doc(keyword = "const")]
// //
/// Compile-time constants and compile-time evaluable functions. /// Compile-time constants, compile-time evaluable functions, and raw pointers.
/// ///
/// ## Compile-time constants /// ## Compile-time constants
/// ///
......
...@@ -388,8 +388,11 @@ mod prim_char {} ...@@ -388,8 +388,11 @@ mod prim_char {}
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
mod prim_unit {} mod prim_unit {}
#[doc(alias = "ptr")]
#[doc(primitive = "pointer")] #[doc(primitive = "pointer")]
#[doc(alias = "ptr")]
#[doc(alias = "*")]
#[doc(alias = "*const")]
#[doc(alias = "*mut")]
// //
/// Raw, unsafe pointers, `*const T`, and `*mut T`. /// Raw, unsafe pointers, `*const T`, and `*mut T`.
/// ///
...@@ -502,10 +505,10 @@ mod prim_unit {} ...@@ -502,10 +505,10 @@ mod prim_unit {}
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
mod prim_pointer {} mod prim_pointer {}
#[doc(primitive = "array")]
#[doc(alias = "[]")] #[doc(alias = "[]")]
#[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases #[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases
#[doc(alias = "[T; N]")] #[doc(alias = "[T; N]")]
#[doc(primitive = "array")]
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the /// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
/// non-negative compile-time constant size, `N`. /// non-negative compile-time constant size, `N`.
/// ///
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册