about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/tools
diff options
context:
space:
mode:
authordianqk <dianqk@dianqk.net>2025-06-30 19:23:22 +0800
committerGitHub <noreply@github.com>2025-06-30 19:23:22 +0800
commitc2904f7476b4558633a301aec9bbfedb0af0b501 (patch)
tree27cbb2839996e50da53320169addd642af303350 /compiler/rustc_codegen_gcc/tools
parente18342a7e8e93df03b4dd011fa13a974cdd5e184 (diff)
parentd98aaf7f800c52708012820b1bc9c6c21effad87 (diff)
downloadrust-c2904f7476b4558633a301aec9bbfedb0af0b501.tar.gz
rust-c2904f7476b4558633a301aec9bbfedb0af0b501.zip
Rollup merge of #143219 - zachs18:patch-5, r=tgross35
Show auto trait and blanket impls for `!`

Add an empty `impl ! {}` so rustdoc shows auto trait impls and blanket impls on `!`'s documentation page.

This is already done for [unit](https://github.com/zachs18/rust/blob/2f0ad2a71e4a4528bb80bcb24bf8fa4e50cb87c2/library/core/src/primitive_docs.rs#L493), [tuples](https://github.com/zachs18/rust/blob/2f0ad2a71e4a4528bb80bcb24bf8fa4e50cb87c2/library/core/src/primitive_docs.rs#L1148), and [`fn` pointers](https://github.com/zachs18/rust/blob/2f0ad2a71e4a4528bb80bcb24bf8fa4e50cb87c2/library/core/src/primitive_docs.rs#L1874).

cc https://github.com/rust-lang/rust/pull/97842 ``@notriddle`` which added the same for unit and tuple.

<details><summary>Comparison</summary>

[Before (current):](https://doc.rust-lang.org/nightly/std/primitive.never.html)
![image](https://github.com/user-attachments/assets/eab8126d-8d65-46d4-8dc7-3680f3162ce3)

After:
![image](https://github.com/user-attachments/assets/e0868113-ebef-4c64-ac30-dfe740d7ea38)
</details>

``@rustbot`` label A-docs F-never_type
Diffstat (limited to 'compiler/rustc_codegen_gcc/tools')
0 files changed, 0 insertions, 0 deletions