about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-05-31 07:07:03 +0200
committerGitHub <noreply@github.com>2023-05-31 07:07:03 +0200
commit77bbfbcdecae1d696da9dc7e671b33a804aa6abf (patch)
tree5134301c75d28d699b24fc1865452b1b3bef65cb /compiler/rustc_codegen_llvm
parent1d643e16c2878def86dba27a8cf736ace962cb5b (diff)
parent1862fcb1df05b116443ad3b27028616a180ffadb (diff)
downloadrust-77bbfbcdecae1d696da9dc7e671b33a804aa6abf.tar.gz
rust-77bbfbcdecae1d696da9dc7e671b33a804aa6abf.zip
Rollup merge of #112113 - notriddle:notriddle/rm-fnretty, r=GuillaumeGomez
rustdoc: simplify `clean` by removing `FnRetTy`

The default fn ret ty is always unit. Just use that.

Looking back at the time when `FnRetTy` (then called `FunctionRetTy`) was first added to rustdoc, it seems to originally be there because `-> !` was a special form: the never type didn't exist back then.

https://github.com/rust-lang/rust/commit/eb01b17b06eb35542bb80ff7456043b0ed5572ba#diff-384affc1b4190940f114f3fcebbf969e7e18657a71ef9001da6b223a036687d9L921-L924

`DefaultReturn` was later added to rustdoc to mirror a change in HIR, which added a variant for DefaultReturn because it makes `Span` management easier. This isn't needed in rustdoc, since it doesn't carry spans.

https://github.com/rust-lang/rust/commit/3f0cc8011aef3f530663302d525bd2d8cb493db5#diff-384affc1b4190940f114f3fcebbf969e7e18657a71ef9001da6b223a036687d9R1144
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions