diff options
| author | Michael Howell <michael@notriddle.com> | 2022-06-07 11:23:25 -0700 | 
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-06-07 11:25:00 -0700 | 
| commit | 1e6a85789e866c725015e0e2a5defeccbcc2cc3b (patch) | |
| tree | 3a7c86f9918ccbf0abad72322a51c4bfd3cb50af /library/std/src/primitive_docs.rs | |
| parent | 9940ed08057bbee0b681beee02025169020c7519 (diff) | |
| download | rust-1e6a85789e866c725015e0e2a5defeccbcc2cc3b.tar.gz rust-1e6a85789e866c725015e0e2a5defeccbcc2cc3b.zip  | |
rustdoc: show auto/blanket docs for tuple and unit
Diffstat (limited to 'library/std/src/primitive_docs.rs')
| -rw-r--r-- | library/std/src/primitive_docs.rs | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 688ab63bf13..06e2a0eb2de 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -439,6 +439,11 @@ mod prim_char {} #[stable(feature = "rust1", since = "1.0.0")] mod prim_unit {} +// Required to make auto trait impls render. +// See /src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls +#[doc(hidden)] +impl () {} + #[doc(primitive = "pointer")] #[doc(alias = "ptr")] #[doc(alias = "*")] @@ -949,6 +954,11 @@ mod prim_str {} #[stable(feature = "rust1", since = "1.0.0")] mod prim_tuple {} +// Required to make auto trait impls render. +// See /src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls +#[doc(hidden)] +impl<T, U> (T, U) {} + #[doc(primitive = "f32")] /// A 32-bit floating point type (specifically, the "binary32" type defined in IEEE 754-2008). ///  | 
