about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-18 11:48:50 +1000
committerGitHub <noreply@github.com>2025-09-18 11:48:50 +1000
commit34a805b0f5860471efd5b3acbae02146d97b37f7 (patch)
tree699117f0516ce1e577bcb066439cef02d493c061 /compiler
parentd5aa8d5e5eb013707a177c27d0856963df715ec7 (diff)
parent1d8971cf4e5f954c7fc9a2611dcf359a832f4c7a (diff)
downloadrust-34a805b0f5860471efd5b3acbae02146d97b37f7.tar.gz
rust-34a805b0f5860471efd5b3acbae02146d97b37f7.zip
Rollup merge of #146645 - yotamofek:pr/rustdoc/fndecl_inner_full_print, r=fmease
Cleanup `FnDecl::inner_full_print`

`inner_full_print` was pretty hard to follow IMHO.
Hopefully this cleans it up a little bit.

Also, it was checking whether `self.inputs` is empty twice, and then handling an unreachable match arm:
https://github.com/yotamofek/rust/blob/f836ae4e663b6e8938096b8559e094d18361be55/src/librustdoc/html/format.rs#L1368C1-L1368C33
`last_input_index` could only be `None` if the fn has no parameters, in which case the loop body would never run.

r? ``@GuillaumeGomez`` if you have the capacity :)

BTW, can we rename `FnDecl::inputs` to `parameters` or something? And `output` to `return_ty`?
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions