Skip to content

Commit b1c782f

Browse files
authored
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.
2 parents 77ac329 + 5135d86 commit b1c782f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

library/core/src/ops/bit.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/// ```
3131
#[lang = "not"]
3232
#[stable(feature = "rust1", since = "1.0.0")]
33+
#[doc(alias = "!")]
3334
pub trait Not {
3435
/// The resulting type after applying the `!` operator.
3536
#[stable(feature = "rust1", since = "1.0.0")]

library/std/src/keyword_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ mod break_keyword {}
119119

120120
#[doc(keyword = "const")]
121121
//
122-
/// Compile-time constants and compile-time evaluable functions.
122+
/// Compile-time constants, compile-time evaluable functions, and raw pointers.
123123
///
124124
/// ## Compile-time constants
125125
///

library/std/src/primitive_docs.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,11 @@ mod prim_char {}
388388
#[stable(feature = "rust1", since = "1.0.0")]
389389
mod prim_unit {}
390390

391-
#[doc(alias = "ptr")]
392391
#[doc(primitive = "pointer")]
392+
#[doc(alias = "ptr")]
393+
#[doc(alias = "*")]
394+
#[doc(alias = "*const")]
395+
#[doc(alias = "*mut")]
393396
//
394397
/// Raw, unsafe pointers, `*const T`, and `*mut T`.
395398
///
@@ -502,10 +505,10 @@ mod prim_unit {}
502505
#[stable(feature = "rust1", since = "1.0.0")]
503506
mod prim_pointer {}
504507

508+
#[doc(primitive = "array")]
505509
#[doc(alias = "[]")]
506510
#[doc(alias = "[T;N]")] // unfortunately, rustdoc doesn't have fuzzy search for aliases
507511
#[doc(alias = "[T; N]")]
508-
#[doc(primitive = "array")]
509512
/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
510513
/// non-negative compile-time constant size, `N`.
511514
///

0 commit comments

Comments
 (0)