Skip to content

Commit d98aaf7

Browse files
authored
Show auto trait and blanket impls for !
Add an empty `impl ! {}` so `rustdoc` generates auto trait impls and blanket impls on `!`'s documentation page.
1 parent 35f6036 commit d98aaf7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/core/src/primitive_docs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ mod prim_bool {}
316316
#[unstable(feature = "never_type", issue = "35121")]
317317
mod prim_never {}
318318

319+
// Required to make auto trait impls render.
320+
// See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
321+
#[doc(hidden)]
322+
impl ! {}
323+
319324
#[rustc_doc_primitive = "char"]
320325
#[allow(rustdoc::invalid_rust_codeblocks)]
321326
/// A character type.

0 commit comments

Comments
 (0)